Hello,
I have been trying to cross compile wxWidgets for Windpws on Debian 10. Depending on where you look, wiki, forum, or documentation; the information is different on how to accomplish the task. If you look in the build folder, there is a msw subfolder already there. If you build in that folder using the ../config, everything works fine until you attempt to run distclean and build for another platform. Using the current x86_64-w64-ming32 prefix, things work until you run make distclean and eveything in /build/msw get blasted away. It would be nice if someone familiar would update these dcouments for the current version of wxWidgets so those who aren't familiar can find their way around easier.
Thank you.
Windows Cross Compiling from Linux to Windows doesn't work!!
-
- In need of some credit
- Posts: 6
- Joined: Wed Oct 21, 2020 4:16 pm
Re: Windows Cross Compiling from Linux to Windows doesn't work!!
Hi,
1. Why do you want to run "make distclean"?
2. If you want to build for a different architecture/OS, you should create a new build directory.
3. Are building using "configure & friends"? I.e.
and then do "make distclean and running the same command again?
Keep in mind that it is best to do:
as there are some intermediate files that may not get deleted using {dist}clean.
Thank you.
1. Why do you want to run "make distclean"?
2. If you want to build for a different architecture/OS, you should create a new build directory.
3. Are building using "configure & friends"? I.e.
Code: Select all
../configure --with-msw --host=.... --target=....
Keep in mind that it is best to do:
Code: Select all
cd ~/wxWidgets
rm -rf buildMSW
mkdir buildMSW
Thank you.