home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


Sauerbraten with just the server?

by afdskjlconorhfjdshk on 12/27/2007 21:01, 10 messages, last message: 12/28/2007 22:21, 1668 views, last view: 04/26/2024 09:29

Is it possible to compile sauerbraten with *just* the server in it, and not any graphical part of it?

For example, a sauerbraten executable that runs without anything but a server?

   Board Index   

#1: ..

by Drakas on 12/27/2007 22:42

'make server'?

reply to this message

#2: ..

by rancor on 12/27/2007 23:11

I don't know about the Windows build, but the Linux dedicated server is not linked to any SDL libraries IIRC.

reply to this message

#3: Okay

by afdskjlconorhfjdshk on 12/27/2007 23:24

I tried make server but I am getting this error, I do have /bin/sh (I don't know if I would be typing if I didn't! :D) and I don't know what ^M is...

Macintosh:src conorkirk$ make server
cd enet; ./configure
/bin/sh: ./configure: /bin/sh^M: bad interpreter: No such file or directory
make: *** [enet/Makefile] Error 126

reply to this message

#4: Re: Okay

by Drakas on 12/28/2007 00:02, refers to #3

sudo apt-get install tofrodos
dos2unix enet/configure

reply to this message

#5: Re: Okay

by rancor on 12/28/2007 01:28, refers to #4

To clarify, ^M is the way the difference between the DOS line ending convention of \r\n, or carriage return + new line, and the UNIX convention of \n. So seeing ^M typically indicates that the file is in DOS format, and needs conversion.

Thanks for the package name, I could never find it, and always ended up using some Perl or Sed hack...

reply to this message

#6: hmm? win32?

by afdskjlconorhfjdshk on 12/28/2007 08:00

Macintosh:src conorkirk$ sudo make server
cd enet; ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
: command not foundsktop/src/enet/missing: line 3:
: command not foundsktop/src/enet/missing: line 5:
: command not foundsktop/src/enet/missing: line 9:
: command not foundsktop/src/enet/missing: line 14:
: command not foundsktop/src/enet/missing: line 19:
: command not foundsktop/src/enet/missing: line 24:
: command not foundsktop/src/enet/missing: line 29:
/Users/conorkirk/Desktop/src/enet/missing: line 47: syntax error near unexpected'token `in
'Users/conorkirk/Desktop/src/enet/missing: line 47: `case "$1" in
configure: WARNING: `missing' script is too old or missing
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for ranlib... ranlib
checking for gethostbyaddr_r... no
checking for gethostbyname_r... no
checking for poll... yes
checking for fcntl... yes
checking for inet_pton... yes
checking for inet_ntop... yes
checking for struct msghdr.msg_flags... yes
checking for socklen_t... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
checking whether to use CRC32... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating include/enet/Makefile
config.status: executing depfiles commands
make -C enet/ all
Makefile:255: .deps/callbacks.Po: No such file or directory
Makefile:256: .deps/host.Po: No such file or directory
Makefile:257: .deps/list.Po: No such file or directory
Makefile:258: .deps/packet.Po: No such file or directory
Makefile:259: .deps/peer.Po: No such file or directory
Makefile:260: .deps/protocol.Po: No such file or directory
Makefile:261: .deps/unix.Po: No such file or directory
Makefile:262: .deps/win32.Po: No such file or directory
make[1]: *** No rule to make target `.deps/win32.Po'. Stop.
make: *** [libenet] Error 2

reply to this message

#7: Re: hmm? win32?

by Drakas on 12/28/2007 10:34, refers to #6

Files are non-existent?

nfi.

reply to this message

#8: Re: hmm? win32?

by absinth_grrr on 12/28/2007 21:13, refers to #6

the makefiles are quite linux-specific and won't work on a mac.

reply to this message

#9: Re: hmm? win32?

by rancor on 12/28/2007 22:09, refers to #8

Interesting... How'd Enet end up with such a convoluted build system? The overall Sauerbraten build system is nice and simple...

reply to this message

#10: Worked!

by afdskjlconorhfjdshk on 12/28/2007 22:21

I got it to work, I just had to run dos2unix on the configure script.


I can't build it now, because I somehow fscked my current compiler when I installed the iPhone toolchain :/

reply to this message

   Board Index   


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
53865530 visitors requested 71640677 pages
page created in 0.023 seconds using 10 queries
hosted by Boost Digital