devel:sis
This is an old revision of the document!
Table of Contents
Building SIS
- Replace
restrict
torestrict_var
– it is a keyword now. - Use
__MINGW32__
macro to distinguish Linux/Windows builds. - For Windows builds add
-lwinmm
to the linker command.
Cross-compiling for Windows
- Install MinGW-W64
sudo apt install mingw-w64
- Add the following files to
/usr/share/mingw-w64/include/sys/
djtypes.h
resource.h
wait.h
- Create symbolic links to the above files from
/usr/i686-w64-mingw32/include/sys
ln -s ../../../share/mingw-w64/include/sys/djtypes.h ln -s ../../../share/mingw-w64/include/sys/resource.h ln -s ../../../share/mingw-w64/include/sys/wait.h
- Create symbolic links to the above files from
/usr/x86_64-w64-mingw32/include/sys
ln -s ../../../share/mingw-w64/include/sys/djtypes.h ln -s ../../../share/mingw-w64/include/sys/resource.h ln -s ../../../share/mingw-w64/include/sys/wait.h
32-bit for Windows
- Rebuild SIS:
./configure --host=i686-w64-mingw32 make
64-bit for Windows
- Rebuild SIS:
./configure --host=x86_64-w64-mingw32 make
Compiling for Linux
32-bit for Linux
- Rebuild SIS:
CFLAGS=-m32 ./configure make
64-bit for Linux
- Rebuild SIS:
CFLAGS=-m64 ./configure make
Copyright © 2014-2024 workcraft.org