About Monkey 2 › Forums › Monkey 2 Development › rebuildall only rebuilds release mode
This topic contains 6 replies, has 3 voices, and was last updated by
therevills 2 years, 9 months ago.
-
AuthorPosts
-
June 25, 2016 at 12:24 am #1211
Just grabbed the latest code from GitHub and executed a rebuildall, then tried to compile my test monkey code for my module and got an error saying mx2cc couldnt find a file… scratched my head for tens mins or so.
Tried rebuildall again and noticed it was only rebuilding the “release” versions, I then compiled my test code in release mode and it worked!
Looks like performing a mx2cc makemods does create a debug version…
So should rebuildall, rebuild release and debug versions of everything?!
June 25, 2016 at 1:54 am #1212Please post the console output from a rebuildall.
June 25, 2016 at 2:20 am #1213Should have done that in the first post – sorry:
[/crayon]Monkey123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275[crayon-5cba15b220778216215893 inline="true" ]Microsoft Windows [Version 6.3.9600](c) 2013 Microsoft Corporation. All rights reserved.C:\Users\therevills>H:H:\>cd Projects\monkey2H:\Projects\monkey2>cd scriptsH:\Projects\monkey2\scripts>rebuildall.batH:\Projects\monkey2\scripts>echo off***** Rebuilding modules *****MX2CC V0.011***** Making module 'monkey' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/monkey/monkey.buildv011/desktop_release_windows/monkey.a***** Making module 'freetype' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/freetype/freetype.buildv011/desktop_release_windows/freetype.a***** Making module 'emscripten' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/emscripten/emscripten.buildv011/desktop_release_windows/emscripten.a***** Making module 'libc' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/libc/libc.buildv011/desktop_release_windows/libc.a***** Making module 'stb-image' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/stb-image/stb-image.buildv011/desktop_release_windows/stb-image.a***** Making module 'miniz' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/miniz/miniz.buildv011/desktop_release_windows/miniz.a***** Making module 'std' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/std/std.buildv011/desktop_release_windows/std.a***** Making module 'gles20' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/gles20/gles20.buildv011/desktop_release_windows/gles20.a***** Making module 'sdl2' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/sdl2/sdl2.buildv011/desktop_release_windows/sdl2.a***** Making module 'sdl2-mixer' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/sdl2-mixer/sdl2-mixer.buildv011/desktop_release_windows/sdl2-mixer.a***** Making module 'mojo' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/mojo/mojo.buildv011/desktop_release_windows/mojo.a***** Making module 'diddy2' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/diddy2/diddy2.buildv011/desktop_release_windows/diddy2.a***** Making module 'hoedown' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/hoedown/hoedown.buildv011/desktop_release_windows/hoedown.a***** Making module 'litehtml' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/litehtml/litehtml.buildv011/desktop_release_windows/litehtml.a***** Making module 'stb-truetype' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/stb-truetype/stb-truetype.buildv011/desktop_release_windows/stb-truetype.aMX2CC V0.011***** Making module 'monkey' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/monkey/monkey.buildv011/desktop_debug_windows/monkey.a***** Making module 'freetype' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/freetype/freetype.buildv011/desktop_debug_windows/freetype.a***** Making module 'emscripten' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/emscripten/emscripten.buildv011/desktop_debug_windows/emscripten.a***** Making module 'libc' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/libc/libc.buildv011/desktop_debug_windows/libc.a***** Making module 'stb-image' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/stb-image/stb-image.buildv011/desktop_debug_windows/stb-image.a***** Making module 'miniz' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/miniz/miniz.buildv011/desktop_debug_windows/miniz.a***** Making module 'std' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/std/std.buildv011/desktop_debug_windows/std.a***** Making module 'gles20' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/gles20/gles20.buildv011/desktop_debug_windows/gles20.a***** Making module 'sdl2' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/sdl2/sdl2.buildv011/desktop_debug_windows/sdl2.a***** Making module 'sdl2-mixer' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/sdl2-mixer/sdl2-mixer.buildv011/desktop_debug_windows/sdl2-mixer.a***** Making module 'mojo' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/mojo/mojo.buildv011/desktop_debug_windows/mojo.a***** Making module 'diddy2' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/diddy2/diddy2.buildv011/desktop_debug_windows/diddy2.a***** Making module 'hoedown' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/hoedown/hoedown.buildv011/desktop_debug_windows/hoedown.a***** Making module 'litehtml' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/litehtml/litehtml.buildv011/desktop_debug_windows/litehtml.a***** Making module 'stb-truetype' *****Parsing...Semanting...Translating...Compiling....Archiving H:/Projects/monkey2/modules/stb-truetype/stb-truetype.buildv011/desktop_debug_windows/stb-truetype.aMX2CC V0.011***** Doccing module 'monkey' *****Parsing...Semanting...***** Doccing module 'std' *****Parsing...Semanting...***** Doccing module 'mojo' *****Parsing...Semanting...H:\Projects\monkey2\scripts>June 25, 2016 at 4:46 am #1214According to the above, the debug modules are building OK.
Can you post the output from the unsuccessful debug build of the app?
If it thinks there are files missing, can you check if they are there or not?
June 25, 2016 at 6:05 am #1216It complained about a missing file which wasnt there…
[/crayon]Monkey123456789101112131415161718192021[crayon-5cba15b22f111552687288 inline="true" ]"H:/Projects/monkey2/bin/mx2cc_windows" makeapp -target=Desktop -config=Debug "H:/Projects/monkey2/modules/diddy2/examples/diddy2test.monkey2"MX2CC V0.011***** Building app 'H:/Projects/monkey2/modules/diddy2/examples/diddy2test.monkey2' *****Parsing...Semanting...Translating...Compiling....Build error: System command 'g++ -std=c++11 -m32 -I"H:/Projects/monkey2/modules/freetype/freetype-2.6.3/include/" -I"H:/Projects/monkey2/modules/sdl2-mixer/SDL_mixer/" -I"H:/Projects/monkey2/modules/gles20/angle/include/" -I"H:/Projects/monkey2/modules/sdl2/SDL/include/" -I"H:/Projects/monkey2/modules/monkey/native" -c -o "H:/Projects/monkey2/modules/diddy2/examples/diddy2test.buildv011/build_cache/desktop_debug_windows/diddy2test_0diddy2test.cpp.o" "H:/Projects/monkey2/modules/diddy2/examples/diddy2test.buildv011/build_cache/desktop_debug_windows/diddy2test_diddy2test.cpp"' failed.g++ -std=c++11 -m32 -I"H:/Projects/monkey2/modules/freetype/freetype-2.6.3/include/" -I"H:/Projects/monkey2/modules/sdl2-mixer/SDL_mixer/" -I"H:/Projects/monkey2/modules/gles20/angle/include/" -I"H:/Projects/monkey2/modules/sdl2/SDL/include/" -I"H:/Projects/monkey2/modules/monkey/native" -c -o "H:/Projects/monkey2/modules/diddy2/examples/diddy2test.buildv011/build_cache/desktop_debug_windows/diddy2test_0diddy2test.cpp.o" "H:/Projects/monkey2/modules/diddy2/examples/diddy2test.buildv011/build_cache/desktop_debug_windows/diddy2test_diddy2test.cpp"In file included from H:/Projects/monkey2/modules/diddy2/examples/diddy2test.buildv011/build_cache/desktop_debug_windows/diddy2test_diddy2test.cpp:2:0:H:/Projects/monkey2/modules/diddy2/examples/diddy2test.buildv011/build_cache/desktop_debug_windows/diddy2test_diddy2test.h:9:75: fatal error: ../../../../diddy2.buildv011/desktop_debug_windows/diddy2_app.h: No such file or directorycompilation terminated.***** Fatal mx2cc error *****Build error.Done.But I cant reproduce it now…. the output of rebuildall was after the issue…
Its strange… seems to be working now?
Oh has canvas.Clear been changed recently? It now requires a colour to be passed to it…
June 27, 2016 at 2:58 am #1246According to Git blame, Clear has always required a Color struct.
https://github.com/blitz-research/monkey2/blame/master/modules/mojo/graphics/canvas.monkey2#L198
June 27, 2016 at 8:19 am #1247Yeah I checked that too… but only since v011 has MX2 complained when compiling without Color…
-
AuthorPosts
You must be logged in to reply to this topic.