User Tools

Site Tools


develop:cc64mingw

Cross compile 64/32 bit binaries

Tested platforms

  • Debian
  • PiOS

Needed Packages

- mingw-w64

sudo apt-get install mingw-w64


wxWidgets

Get sources

git clone --recurse-submodules https://github.com/wxWidgets/wxWidgets.git
cd wxWidgets
mkdir winbuild

Check out a stable build

Tags can be found here:

cd wxWidgets
git checkout v3.2.3

Update sources

cd wxWidgets
git checkout master
git pull
git submodule update
git checkout v3.2.3

Build the 64bit library

cd winbuild
../configure --prefix=/usr/x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-msw --enable-unicode --disable-shared --enable-graphics_ctx --enable-monolithic --enable-stc --enable-debug=no
make
sudo make install

Build the 32bit library

cd win32build
../configure --prefix=/usr/i686-w64-mingw32 --host=i686-w64-mingw32 --target=i686-w64-mingw32 --with-msw --enable-unicode --disable-shared --enable-graphics_ctx LDFLAGS=-static --enable-monolithic --enable-stc --enable-debug=no
make
sudo make install


Rocrail

Get sources

git clone <repository link>
cd Rocrail

Update sources

cd Rocrail
git pull

Generate the Rocs Utilities

cd rocs
make fromtar all
cp unxbin/ogen winbin
cp unxbin/wgen winbin
cp unxbin/xml2cstr winbin
cp unxbin/png2wx winbin

Build the 64bit binaries

make all DEBUG= PLATFORM=WIN64 TOOLPREFIX=x86_64-w64-mingw32- LIBSUFFIX=-x86_64-w64-mingw32 MINGWINSTALL=/usr/x86_64-w64-mingw32 WXCONFIG=/usr/x86_64-w64-mingw32/bin/wx-config






Build the 32bit binaries

make all PLATFORM=WIN32 TOOLPREFIX=i686-w64-mingw32- LIBSUFFIX=-i686-w64-mingw32 MINGWINSTALL=/usr/i686-w64-mingw32 WXCONFIG=/usr/i686-w64-mingw32/bin/wx-config
develop/cc64mingw.txt · Last modified: 2023/10/29 11:34 by rjversluis