Setup for Cross Compiling of wxWidget for Windows on Fedora 7

I haven't managed to get…

Login

Blog History

I haven't managed to get wxWidgets-2.8.5 to compile using MinGW and the w32 target under Fedora 7.

The following was an attempt but sadly not a working one.

Install MinGW
Download the following from http://mirzam.it.vu.nl/mingw/packages/fc2/

binutils-mingw-2.15.90-4hl.i386.rpm
gcc-mingw-3.2.3-7hl.i386.rpm
mingw-runtime-3.2-7hl.i386.rpm
mingw-w32api-2.5-7hl.i386.rpm

install with rpm -Uvh *.rpm

Install wxWidgets

use this script to configure then make && make install

#!/bin/bash

# This script configures wxWidgets 2.6.2 for cross-compiling
# with MinGW on Fedora Core 4.

MINGW_PREFIX=i386-mingw32
MINGW_PATH_PREFIX=/usr/local/i386-mingw32
MINGW_INC=$MINGW_PATH_PREFIX/include/

USER_CONFIGURE_OPTIONS="--without-sdl --without-odbc --without-expat --without-libtiff -enable-fs_zip --enable-html --enable-image --enable-unicode --enable-zipstream "

export CC=$MINGW_PREFIX-gcc
export CXX=$MINGW_PREFIX-c++
export LD=$MINGW_PREFIX-ld
export AR=$MINGW_PREFIX-ar
export AS=$MINGW_PREFIX-as
export NM=$MINGW_PREFIX-nm
export STRIP=$MINGW_PREFIX-strip
export RANLIB=$MINGW_PREFIX-ranlib
export DLLTOOL=$MINGW_PREFIX-dlltool
export OBJDUMP=$MINGW_PREFIX-objdump
export RESCOMP=$MINGW_PREFIX-windres
export CFLAGS=-I$MINGW_INC
export CXXFLAGS=-I$MINGW_INC
export PATH=$PATH:$MINGW_PATH_PREFIX/bin/

./configure --prefix=$MINGW_PATH_PREFIX --target=i386-mingw32msvc --host=i386-mingw32msvc --build=i386-linux --with-msw $USER_CONFIGURE_OPTIONS

2 Comments

  1. james

    Yeah tru dat. I wanted to move from wxPerl to wxWidgets and C++. And it would have been nice to compile for Windows on my home box. After many attempts I think I will wait for someone to package a working cross-compile environment.

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.