-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors when trying to cross compile for windows platform (on Linux) #413
Comments
@gassechen can you provide more insights into a) what version of linux you are using, b) where the gcc for the win32 cross compiler is located, c) what you specified for |
'SO version slackware64 ' |
|
OK Calculator app for windows WORK. win_sysroot= |
Using the previous code to auto detect thing and information from http://slackware.alienbase.nl/sbrepos/current/x86/MinGW-w64/MinGW-w64-v8.0.0_gcc10.2.0-i586-1alien.lst, the |
Calculator Works (run in wine) |
Great, so you also solved the multiple definition of `cmd_argc' issue? |
I think the difference is that your |
yes with -fcommon I do not know what to do. comment them for now. and everything is compiling and works. It would be important if you require any specific application to test that may make use of those $cflag_additions |
2be77d6 adds -fcommon to solve multiple definition GCC 10 issue for Linux but it seems also to be needed for cross compilation on Linux targeting win32. Will add that to master - thanks. Not sure about the win_sysroot not detecting right? |
Your change actually doesn't use the |
I will verify the win_sysroot usage. |
Sorry, I didn't find the right version file. From this listing |
Modify the SETUP file make to win64 folder in / targets / win64 L124 - case "$ hostsys" in |
./configure Calculator win64 debug verbose |
Modify the SETUP file make to win64 folder in / targets / win64 L124 - case "$ hostsys" in |
hello. Im try cross compile linux for windows platform.
checking build system type... x86_64-unknown-linux-gnu
checking host system type... i386-pc-mingw32
checking target system type... i386-pc-mingw32
checking for i386-mingw32-gcc... arg++ -g -O0 -isysroot /usr/mingw-w64-v8.0.0_gcc10.2.0/x86_64-w64-mingw32/ -DWIN32 -DWINVER=0x0501 -fcommon -I/root/.cache/lambdanative/win32/include -L/root/.cache/lambdanative/win32/lib
checking whether the C compiler works... no
configure: error: in
/root/.lambdanative/tmp_install/gambc-v4_7_9':config.log' for more details
I tried various ways but I can't get it to compile. how I can help?
Originally posted by @gassechen in #389 (comment)
The text was updated successfully, but these errors were encountered: