BUG compiling from some folders

About Monkey 2 Forums Monkey 2 Programming Help BUG compiling from some folders

This topic contains 2 replies, has 3 voices, and was last updated by  jondecker76 2 years, 9 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1218

    ziggy
    Participant

    I was playing with Monkey 2, preparing the compiler toolchain integration for Jungle Ide, and found a very weird bug:

    Steps to replicate:
    1.- Download Monkey 2 source code in (FOLDER A)
    2.- Copy it to another folder in your system (FOLDER B), and install in that folder B all related dev tools (MinGW), set the path variable etc, so you’ll be using the Monkey 2 compiler and toolchain located in FOLDER B.

    Now:
    * If you compile one banana located in FOLDER B\Bananas, it compiles and runs fine
    * If you compile the same banana from a random folder in your system, it will compile and run fine too.
    * If you compile the same banana from FOLDER A\Bananas, it’ll fails to compile. even tho I’m using the compiler located at FOLDER B to compile code in bananas folder of FLODER A

    This is the output generated by the compiler when compilation fails:

     

    C:\Users\Manel\Documents\Jungle Ide Framework\Monkey2\bin\mx2cc_windows.exe makeapp -run -target=Desktop -config=debug “C:\Users\Manel\Documents\projects\Jungle Ide\monkide\JungleIDE\bin\Debug\monkey2\bananas\commanche\commanche.monkey2″
    MX2CC V0.010

    ***** Building app ‘C:/Users/Manel/Documents/projects/Jungle Ide/monkide/JungleIDE/bin/Debug/monkey2/bananas/commanche/commanche.monkey2’ *****

    Parsing…
    Semanting…
    Translating…
    Compiling….
    Build error: System command ‘g++ -std=c++11 -m32 -I”C:/Users/Manel/Documents/Jungle Ide Framework/Monkey2/modules/freetype/freetype-2.6.3/include/” -I”C:/Users/Manel/Documents/Jungle Ide Framework/Monkey2/modules/sdl2-mixer/SDL_mixer/” -I”C:/Users/Manel/Documents/Jungle Ide Framework/Monkey2/modules/gles20/angle/include/” -I”C:/Users/Manel/Documents/Jungle Ide Framework/Monkey2/modules/sdl2/SDL/include/” -I”C:/Users/Manel/Documents/Jungle Ide Framework/Monkey2/modules/monkey/native” -c -o “C:/Users/Manel/Documents/projects/Jungle Ide/monkide/JungleIDE/bin/Debug/monkey2/bananas/commanche/commanche.buildv010/build_cache/desktop_debug_windows/commanche_0commanche.cpp.o” “C:/Users/Manel/Documents/projects/Jungle Ide/monkide/JungleIDE/bin/Debug/monkey2/bananas/commanche/commanche.buildv010/build_cache/desktop_debug_windows/commanche_commanche.cpp”‘ failed.

    g++ -std=c++11 -m32 -I”C:/Users/Manel/Documents/Jungle Ide Framework/Monkey2/modules/freetype/freetype-2.6.3/include/” -I”C:/Users/Manel/Documents/Jungle Ide Framework/Monkey2/modules/sdl2-mixer/SDL_mixer/” -I”C:/Users/Manel/Documents/Jungle Ide Framework/Monkey2/modules/gles20/angle/include/” -I”C:/Users/Manel/Documents/Jungle Ide Framework/Monkey2/modules/sdl2/SDL/include/” -I”C:/Users/Manel/Documents/Jungle Ide Framework/Monkey2/modules/monkey/native” -c -o “C:/Users/Manel/Documents/projects/Jungle Ide/monkide/JungleIDE/bin/Debug/monkey2/bananas/commanche/commanche.buildv010/build_cache/desktop_debug_windows/commanche_0commanche.cpp.o” “C:/Users/Manel/Documents/projects/Jungle Ide/monkide/JungleIDE/bin/Debug/monkey2/bananas/commanche/commanche.buildv010/build_cache/desktop_debug_windows/commanche_commanche.cpp”

    In file included from C:/Users/Manel/Documents/projects/Jungle Ide/monkide/JungleIDE/bin/Debug/monkey2/bananas/commanche/commanche.buildv010/build_cache/desktop_debug_windows/commanche_commanche.cpp:2:0:

    C:/Users/Manel/Documents/projects/Jungle Ide/monkide/JungleIDE/bin/Debug/monkey2/bananas/commanche/commanche.buildv010/build_cache/desktop_debug_windows/commanche_commanche.h:9:145: fatal error: ../../../../../../../../../../../../Jungle Ide Framework/Monkey2/modules/mojo/mojo.buildv010/desktop_debug_windows/mojo_app_2window.h: No such file or directory

    compilation terminated.

    ***** Fatal mx2cc error *****

    Build error.
    Abnormal program termination.
    Exit code: -1

    #1244

    Mark Sibly
    Keymaster

    Can you post an issue at github for this?

    I’m gonna start trying to use that from now on!

    #1545

    jondecker76
    Participant

    is this the same as my issue here?: http://monkey2.monkey-x.com/forums/topic/module-woes/

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.