Cannot mingw cross compile from linux to create a windows executable
I've installed latest CLion in my Linux (Fedora 29) box.
Also installed gcc ( for native compiler ) and mingw32/mingw64 for cross-compiling to windows
Finally created a C project, declared both toolchains, and try to compile...
- Everything goes fine with native compiler
- Trying to use mingw32 I get several errors:
* Problems about -rdynamic linker option. Solved by editing CMakeList.txt as found in serveral forums
* No executable (.exe) found in build tree
* But main problem is about "-j 2" make option. Cannot remove it, so when rebuilding/cleaning I get
error shown in provided .png links
What can I do?
i've tried either mingw32 or mingw64, and use bundled cmake or mingw provided one.
When using bundled cmake, cannot override "-rdynamic" link error
Which are right CMakelist options for either native or cross-compiled target?
How to declare an "empty" CMAKE_BUILD_OPTIONS to avoid "-j 2" error?
here comes link to configuration, CMakeList.txt and shown error when rebuilding
https://filedn.com/lYQXisoneTfLFS1OSsl7lOy/clion/
Thanks in advance
Juan Antonio
Please sign in to leave a comment.