compilation - cross compile on mac for windows -


I am creating a project using FLTK on a 2012 MacBook Pro Mac OSX 10.8.5 and from the i686-apple-darwin11-llvm-g ++ - 4.2 command line.

Ideally I would like to cross the compilation without learning VS for windows, installing all dependencies etc. Compile for windows from Mac

I found this and a package was downloaded, which was installed automatically. I then downloaded the source code of the example that it has worked and it only gives me a bunch of errors.

By looking at the make file it refers to the directories I do not have, for example read the file supplied

  # ------- ------------------------- ------------------------- --------------------- * # * # C + HELLOWORLDFORMINGW 3 2 ONMACOSX * # * # Updated for # 2 Release * # * # ---- --------------------------------------------------- ------------------------ * TOOL_DIR: = /usr/local/i386-mingw32-3.4.5/bin Source: = hello_world.cpp OBJECTS_DIR: = Executable objects: = hello_world_in_cpp.exe ALL_OBJECT_FILES:. = $ (Patsubst%, $ (OBJECTS_DIR) /% o $ (source)) all: $ (OBJECTS_DIR) $ (executable) # --- make object dir $ (OBJECTS_DIR): mkdir $ (OBJECTS_DIR) # - - C ++ Compilation:. Use GCC $ (OBJECTS_DIR) /% cpp.o:% .cpp $ (TOOL_DIR) / i386- Mingw32-gcc -c $ & lt; -O $ @ # --- C ++ Link: Use G ++ $ (executable): $ (ALL_OBJECT_FILES) $ (TOOL_DIR) / i386-mingw32-g ++ $ & lt; -o $ @ $ (TOOL_DIR) / i386-mingw32-strip --strip-all $ @ clean: RM-F $ (Aksikyubl) RM-RF $ (Obijeitisdiaiar) /  

see What has happened to me in my / usr / directory (among other)

  /usr/local/gcc-4.8.0-qt-4.8.4-for-mingw32 content .txt win32 -gcc / bin / i586-mingw32- G ++ i586-mingw32- GCC i586-mingw32 / bin / g ++ GCC Win32- QT /  

By trial and error I just ran from the command line

  /usr/local/gcc-4.8.0-qt-4.8.4-for-mingw32/win32-gcc/bin/i586-mingw32-g++ hello_world. Cpp  

bundle sample source The code that does the least compile and produce 'a.exe'.

I think what should I do? But I'm not sure.

Next I need to compile my FLTK project. By compiling I normally use /usr/local/gcc-4.8.0-qt-4.8.4-for-mingw32/win32-gcc/bin/i586-mingw32-g++

with G / ++ By doing this with p> I use the fltk-config script which is essentially compiled to compile with commands

  g ++ -i / usr / local / include E / sterile / local / Include / fruit / Imejej- Di_lrgefile_sors -di_lrgefile64_sors -di_thred_sef -di_rintrint  

/usr/lokl/lib/libfltk_imejejka/usr/lokl/lib/libfltk_pang. a-lz /usr/local/lib/libfltk_jpeg.a /usr/local/lib/libfltk_gl.a -framework AGL -framework Open -framework ApplicationServices /usr/local/lib/libfltk_forms.a / usr / local / lib / libfltk .a -lpthread -framework Go to Cocoa Main.cpp -O

I have some stable except for the above. I also link to libraries.

However, when I do the above with the i586-mingw32-g ++ compiler, I get the following errors, I do not know how I will score them (if it is actually possible)

< Pre> i586-mingw32-g ++: error: AGL: no such file or direct ory i586-mingw32-g ++: error: open: such a file or directory i586-mingw32-g ++: error : ApplicationServices: Any such file or directory i586-mingw32-g ++: error: cocoa: such a file or directory i586-mingw32-g ++: tru T: Non-accredited command line option '-framework' i586-mingw32-g ++: error: non-recognized command line option '-framework' i586-mingw32-g ++: error: unrecognized command line option '- Framework 'i586-mingw32-G ++: Error: Unrecognized Command Line Option' -Frework '

Any ideas? thank you in advanced.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -