Compile on SuSE Linux

Martin Krischik krischik at users.sourceforge.net
Thu May 1 01:59:57 PDT 2008


Am Mittwoch 30 April 2008 schrieb Egan Ford:

> Use the scon included with nonpareil.

There seem to be something missing in the README file:

----------------
gcc -Wall -g -DPNG_NO_MMX_CODE -pthread -pthread -Ibuild/posix -Isrc -Ibuild/common -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libxml2 -c -o 
build/posix/sound.o src/sound.c
src/sound.c:27:27: error: SDL/SDL_audio.h: No such file or directory
In file included from src/sound.c:29:
src/util.h:37: error: expected ')' before '*' token
src/util.h:101: error: expected ')' before '*' token
src/util.h:107: error: expected ')' before '*' token
src/util.h:121: error: expected ')' before '*' token
----------------

Ok, I can fix that myself. But this here does not look as good:

--------------
gcc -Wall -g -DPNG_NO_MMX_CODE -pthread -pthread -D_GNU_SOURCE=1 -D_REENTRANT -Ibuild/posix -Isrc -Ibuild/common -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libxml2 -I/usr/include/SDL -c -o 
build/posix/proc_classic.o src/proc_classic.c
src/proc_classic.c:54: warning: cast from pointer to integer of different size
src/proc_classic.c:55: warning: cast from pointer to integer of different size
src/proc_classic.c:56: warning: cast from pointer to integer of different size
src/proc_classic.c:57: warning: cast from pointer to integer of different size
src/proc_classic.c:58: warning: cast from pointer to integer of different size
src/proc_classic.c:59: warning: cast from pointer to integer of different size
src/proc_classic.c:60: warning: cast from pointer to integer of different size
src/proc_classic.c:63: warning: cast from pointer to integer of different size
src/proc_classic.c:64: warning: cast from pointer to integer of different size
src/proc_classic.c:66: warning: cast from pointer to integer of different size
src/proc_classic.c:67: warning: cast from pointer to integer of different size
src/proc_classic.c:69: warning: cast from pointer to integer of different size
src/proc_classic.c:70: warning: cast from pointer to integer of different size
src/proc_classic.c:71: warning: cast from pointer to integer of different size
src/proc_classic.c:72: warning: cast from pointer to integer of different size
src/proc_classic.c:75: warning: cast from pointer to integer of different size
----------------

May I suggest you have a look at ;-) :

http://en.wikipedia.org/wiki/Stdint.h

Apart from that the compile has worked now and the application starts. Thanks!

Regards

Martin
-- 
Martin Krischik
mailto://krischik@users.sourceforge.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
Url : http://lists.brouhaha.com/pipermail/nonpareil-users/attachments/20080501/6b1f8067/attachment.bin 


More information about the Nonpareil-users mailing list