[CF-Devel] Compiling the server on a non-X machine

crossfire-devel-admin at archives.real-time.com crossfire-devel-admin at archives.real-time.com
Fri Jul 11 09:57:55 CDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Le Vendredi 11 Juillet 2003 16:34, MAL a écrit :
>
     
      I have a server sitting on a fast internet connection, which has been
     
     >
     
      running for years, and I would like to run a crossfire server on it.
     
     >
     
     
     >
     
      It doesn't have X, or any X development libraries, but it does have many
     
     >
     
      other devel libs on it.
     
     >
     
     
     >
     
      I would like to either compile the server on this machine, or compile
     
     >
     
      the server remotely and staticly, so it will run on this machine.
     
     >
     
     
     >
     
      My progress so far is: ./configure ran fine from the machine itself, I
     
     >
     
      used:
     
     >
     
     
     >
     
      CFLAGS="-march=i686 -O2-march=i686 -O2" CXXFLAGS="" ./configure
     
     >
     
      --prefix=/home/mal/cfs
     
     >
     
     
     >
     
      No problem so far.
     
     >
     
     
     >
     
      However, make spews out this after a short time:
     
     >
     
     
     >
     
      make[2]: Entering directory
     
     >
     
      `/home/mal/active/crossfire-1.5.0/crossedit/Cnv' source='CnvUtil.c'
     
     >
     
      object='CnvUtil.o' libtool=no \
     
     >
     
      depfile='.deps/CnvUtil.Po' tmpdepfile='.deps/CnvUtil.TPo' \
     
     >
     
      depmode=gcc3 /bin/sh ../../utils/depcomp \
     
     >
     
      gcc -DHAVE_CONFIG_H -I. -I. -I../../include  -I./../include
     
     >
     
      -I../../include   -g -O2 -c `test -f 'CnvUtil.c' || echo './'`CnvUtil.c
     
     >
     
      In file included from Cnv.h:26,
     
     >
     
                        from CnvUtil.c:22:
     
     
>
     
      ../include/Xaw.h:64:30: X11/Xaw/Viewport.h: No such file or directory
     
     >
     
      make[2]: *** [CnvUtil.o] Error 1
     
     >
     
      make[2]: Leaving directory `/home/mal/active/crossfire-1.5.0/crossedit/Cnv'
     
     >
     
      make[1]: *** [all-recursive] Error 1
     
     >
     
      make[1]: Leaving directory `/home/mal/active/crossfire-1.5.0/crossedit'
     
     >
     
      make: *** [all-recursive] Error 1
     
     >
     
     
     >
     
     
     >
     
      I would be hard pressed to install any additional libraries on this
     
     >
     
      machine, but still please let me know if that is indeed what is missing.
     
     >
     
     
     >
     
      On a side note, is crossfire development still going strong?  The
     
     >
     
      mailing list archives seem vacant to say the least!
     
     >
     
     
     >
     
      Cheers people,
     
     >
     
      MAL
     
     


Crossedit is the crossfire maps editor. I comes along with the server, but it 
may be interesting if somone on the mailing list could remove it from the 
default target (perhaps adding a make crossedit to the Makefiles).

Concerning your compilation, here is 2 suggestion:
- - 1st if you have tools such that automake autoconf autoheader installed,
edit the file Makefile.am and, in the line 
SUBDIRS = common random_maps socket server include lib utils doc plugin devel 
crossedit

and remove the crossedit part of the line. Then run the script autogen.sh
and rerun configure

- - 2nd possibility is not to use the toplevel Makefile but instead those in 
subdirectories.
Follow this order, everything should go well if configure script went alright:
go in include directory
run make; make install
go in common directory
run make; make install
go in random_maps directory
run make; make install
go in socket directory
run make; make install
go in server directory
run make; make install
if you want also the python plugin and have python library
go in plugin directory 
run make; make install
if you want also the logger plugin (web interface with server stats)
go in plugin_logger directory
read the INSTALL file in details.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/DtB4HHGOa1Q2wXwRAi/kAJ0RB2bcxQntTA0yyPKUIsWugALYWQCg0ywF
JQXEtDEO+R+k7Hffcv6gudo=
=YxIE
-----END PGP SIGNATURE-----


_______________________________________________
crossfire-devel mailing list
     
     crossfire-devel at lists.real-time.com
     
     
     https://mailman.real-time.com/mailman/listinfo/crossfire-devel
     
     
    


More information about the crossfire mailing list