Compiling my own installer

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
Post Reply
Uber Schwarz
Rookie
Rookie
Posts: 22
Joined: 27 Jun 2007, 21:30

Compiling my own installer

Post by Uber Schwarz »

How do I compile my own installer from the daily trunk snapshot in the tar.gz file? I have the NSIS program.
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Compiling my own installer

Post by DevUrandom »

On an autotools enabled system you can do:

Code: Select all

./autogen.sh
./configure --enable-data --enable-installer \
  --with-installer-extdir=\"${PREFIX}/bin\" --with-installer-version=\"2.0.999.999\" \
  --with-distributor="Uber Schwarz" \
  --prefix="${PREFIX}" \
  LIBS='-lintl -liconv -lz -lfreetype -lfontconfig -lexpat' \
  CFLAGS="-pipe -m32 -march=i686 -O2 -g" \
  CXXFLAGS="-pipe -m32 -march=i686 -O2 -g" \
  CPPFLAGS="-I${PREFIX}/include" \
  LDFLAGS="-L${PREFIX}/lib"
make -j4
(You need to set PREFIX to the place of the devpkg.)
(Having to specify LIBS is not a bug, but a result from the devpkg containing just static libs, which have no dependency information.)
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Compiling my own installer

Post by Buginator »

DevUrandom wrote: On an autotools enabled system you can do:

Code: Select all

./autogen.sh
./configure --enable-data --enable-installer \
  --with-installer-extdir="${PREFIX}/bin" --with-installer-version="2.0.999.999" \
  --with-distributor="Uber Schwarz" \
  --prefix="${PREFIX}" \
  LIBS='-lintl -liconv -lz -lfreetype -lfontconfig -lexpat' \
  CFLAGS="-pipe -m32 -march=i686 -O2 -g" \
  CXXFLAGS="-pipe -m32 -march=i686 -O2 -g" \
  CPPFLAGS="-I${PREFIX}/include" \
  LDFLAGS="-L${PREFIX}/lib"
make -j4
(You need to set PREFIX to the place of the devpkg.)
(Having to specify LIBS is not a bug, but a result from the devpkg containing just static libs, which have no dependency information.)
And just so you know, some of those flags don't work on all build systems, so you may need to edit that also.
and it ends here.
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Compiling my own installer

Post by DevUrandom »

Buginator wrote: And just so you know, some of those flags don't work on all build systems, so you may need to edit that also.
Some don't? The ones I posted are just those which we provide for Warzone, nothing which should depend on the buildsystem.

Btw, I see I forgot the crosscompilation flags...
So here you have it complete:

Code: Select all

./autogen.sh
./configure --target=${MINGW32} --host=${MINGW32} --enable-static --disable-shared \
  --enable-data --enable-installer \
  --with-installer-extdir="${PREFIX}/bin" --with-installer-version="2.0.999.999" \
  --with-distributor="Uber Schwarz" \
  --prefix="${PREFIX}" \
  LIBS='-lintl -liconv -lz -lfreetype -lfontconfig -lexpat' \
  CFLAGS="-pipe -m32 -march=i686 -O2 -g" \
  CXXFLAGS="-pipe -m32 -march=i686 -O2 -g" \
  CPPFLAGS="-I${PREFIX}/include" \
  LDFLAGS="-L${PREFIX}/lib"
make -j4
You need to set PREFIX to the place of the devpkg.
You need to set MINGW32 to the arch of your crosscompiler. For Debian this is "i386-pc-mingw32msvc", I think.
Post Reply