Archive: compiling makensis on Debian


compiling makensis on Debian
Hi Im trying to compile under Debian but runnign into some problems - has anyone managed this?

Using the 2.02 distribution and keeping the precompiled headers from that. This is what i get:

delboy:/home/john/NSIS/Source# make USE_PRECOMPILED_EXEHEADS=1
make -C exehead
make[1]: Entering directory `/home/john/NSIS/Source/exehead'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/john/NSIS/Source/exehead'
gcc -Wall -O3 -DCOMPRESS_MF_BT -c zlib/deflate.c -o ../build/zlib/deflate.o
gcc -Wall -O3 -DCOMPRESS_MF_BT -c zlib/trees.c -o ../build/zlib/trees.o
gcc -Wall -O3 -DCOMPRESS_MF_BT -c bzip2/blocksort.c -o ../build/bzip2/blocksort.o
gcc -Wall -O3 -DCOMPRESS_MF_BT -c bzip2/bzlib.c -o ../build/bzip2/bzlib.o
gcc -Wall -O3 -DCOMPRESS_MF_BT -c bzip2/compress.c -o ../build/bzip2/compress.o
gcc -Wall -O3 -DCOMPRESS_MF_BT -c bzip2/huffman.c -o ../build/bzip2/huffman.o
g++ -Wall -O3 -DCOMPRESS_MF_BT -c 7zip/7zGuids.cpp -o ../build/7zip/7zGuids.o
g++ -Wall -O3 -DCOMPRESS_MF_BT -c 7zip/Common/CRC.cpp -o ../build/7zip/Common/CRC.o
g++ -Wall -O3 -DCOMPRESS_MF_BT -c 7zip/7zip/Compress/LZ/LZInWindow.cpp -o ../build/7zip/7zip/Compress/LZ/LZInWindow.o
g++ -Wall -O3 -DCOMPRESS_MF_BT -c 7zip/7zip/Compress/LZMA/LZMAEncoder.cpp -o ../build/7zip/7zip/Compress/LZMA/LZMAEncoder.o
g++ -Wall -O3 -DCOMPRESS_MF_BT -c 7zip/7zip/Common/OutBuffer.cpp -o ../build/7zip/7zip/Common/OutBuffer.o
g++ -Wall -O3 -DCOMPRESS_MF_BT -c 7zip/7zip/Compress/RangeCoder/RangeCoderBit.cpp -o ../build/7zip/7zip/Compress/RangeCoder/RangeCoderBit.o
g++ -Wall -O3 -DCOMPRESS_MF_BT -c 7zip/Common/Alloc.cpp -o ../build/7zip/Common/Alloc.o
g++ -Wall -O3 -DCOMPRESS_MF_BT -c build.cpp -o ../build/build.o
gcc -Wall -O3 -DCOMPRESS_MF_BT -c crc32.c -o ../build/crc32.o
g++ -Wall -O3 -DCOMPRESS_MF_BT -c DialogTemplate.cpp -o ../build/DialogTemplate.o
g++ -Wall -O3 -DCOMPRESS_MF_BT -c exedata.cpp -o ../build/exedata.o
g++ -Wall -O3 -DCOMPRESS_MF_BT -c lang.cpp -o ../build/lang.o
g++ -Wall -O3 -DCOMPRESS_MF_BT -c makenssi.cpp -o ../build/makenssi.o
makenssi.cpp: In function `int main(int, char **)':
makenssi.cpp:340: implicit declaration of function `int chdir(...)'
make: *** [../build/makenssi.o] Error 1


Now as its debian its using a fairly old version of gcc (2.95.4) - is this the problem? would there be a workaround?

Cheers


Add

#include <unistd.h>
on the top and it should compile. Fixed in latest CVS version.

Hi,
Almost perfect!

the include need to be in script.cpp as well - if you havent already put that in CVS.

Thanks for all you help - time to get rid of wine and those annoying "fixme" messges (when you dont want an xserver!


Thanks, fixed.


Can i just add to that that this is brilliant!

about 5 times as fast as under wine and goodbye to complicated ant build files which care about where the build is taking place... another NSIS triumph!