Windows Cross Compiling from Linux to Windows doesn't work!!

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
oliverhbailey
In need of some credit
In need of some credit
Posts: 6
Joined: Wed Oct 21, 2020 4:16 pm

Windows Cross Compiling from Linux to Windows doesn't work!!

Post by oliverhbailey »

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.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7449
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Windows Cross Compiling from Linux to Windows doesn't work!!

Post by ONEEYEMAN »

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.

Code: Select all

../configure --with-msw --host=.... --target=....
and then do "make distclean and running the same command again?

Keep in mind that it is best to do:

Code: Select all

cd ~/wxWidgets
rm -rf buildMSW
mkdir buildMSW
as there are some intermediate files that may not get deleted using {dist}clean.

Thank you.
Post Reply