server compile

Discussion about topics that don't fit elsewhere.
Post Reply
User avatar
tokariew
Posts: 374
Joined: Thu May 13, 2010 8:20 pm
Location: Poland

server compile

Post by tokariew »

is it possible to compile tomenet.server without SDL dev libraries?
when i try i get this:

Code: Select all

=>Mon 30 11:57<= tokariew(at)myshell~/tomenet-4.4.8b/src> make tomenet.server
gcc -g -pipe -Wall -DUSE_X11 -DUSE_GCU -I/usr/X11R6/include -O2 -D_XOPEN_SOURCE -D_BSD_SOURCE -DMEXP=19937 -DSOUND_SDL `sdl-config --cflags` -Wno-unused-but-set-variable  -Iserver -Iserver/lua -o common/z-util.o -c common/z-util.c
sdl-config: not found
cc1: error: unrecognized command line option "-Wno-unused-but-set-variable"
*** Error code 1

img {
max-width: 100%;
}
https://tokariew.xyz
mikaelh
Developer
Posts: 217
Joined: Sun Dec 13, 2009 3:18 pm

Re: server compile

Post by mikaelh »

Yes, it's possible to compile the server (and the client) without SDL. Just use the CFLAGS and LIBS provided in the makefile:

Code: Select all

## Without SDL
#CFLAGS = -g -pipe -Wall -DUSE_X11 -DUSE_GCU -I${X11BASE}/include -O2 -D_XOPEN_SOURCE -D_BSD_SOURCE -DMEXP=19937
#LIBS = -L${X11BASE}/lib -L/usr/pkg/lib -lX11 -lncurses -lcrypt -lm
-Wno-unused-but-set-variable is a new option introduced in GCC 4.6 which somehow has ended up in our makefile. It will be removed in the next release.
User avatar
tokariew
Posts: 374
Joined: Thu May 13, 2010 8:20 pm
Location: Poland

Re: server compile

Post by tokariew »

thank you very much
img {
max-width: 100%;
}
https://tokariew.xyz
Post Reply