Fortress Forever

Go Back   Fortress Forever > Community > General Discussion

Reply
 
Thread Tools Display Modes
Old 07-22-2007, 09:09 AM   #1
stino
 
Join Date: Mar 2007
Posts Rated Helpful 0 Times
Linux compiling

Question to the dev team, how the hell did you manage to compile your mod on linux?

we tried a lot Distro's, including fedora 4 and 5, Linux XP, Cent OS 5, Slackware 11, .. but we didn't get a single one working.

slackware 11 got further than any other: it gets to a file called generatemakefile.cpp and then it stops, and complains about syntax errors in that file
stino is offline   Reply With Quote


Old 07-22-2007, 10:52 AM   #2
own3r
Custom mapper
 
own3r's Avatar
 
Join Date: Mar 2007
Posts Rated Helpful 0 Times
Quote:
Originally Posted by stino
Question to the dev team, how the hell did you manage to compile your mod on linux?

we tried a lot Distro's, including fedora 4 and 5, Linux XP, Cent OS 5, Slackware 11, .. but we didn't get a single one working.

slackware 11 got further than any other: it gets to a file called generatemakefile.cpp and then it stops, and complains about syntax errors in that file
Try ubuntu its by far the easiest to setup, go to valve's sdk site and see what libraries you need then download them using synaptic.
own3r is offline   Reply With Quote


Old 07-22-2007, 11:28 AM   #3
pizzahut
 
Join Date: Mar 2007
Posts Rated Helpful 0 Times
Maybe this will help: http://developer.valvesoftware.com/w...ng_under_Linux

Last edited by pizzahut; 07-23-2007 at 01:29 AM.
pizzahut is offline   Reply With Quote


Old 07-22-2007, 08:09 PM   #4
Dospac
Retired FF Staff
 
Join Date: Jan 2005
Location: San Jose, CA
Posts Rated Helpful 0 Times
Send a message via ICQ to Dospac Send a message via AIM to Dospac Send a message via MSN to Dospac Send a message via Yahoo to Dospac
Quote:
Originally Posted by stino
Question to the dev team, how the hell did you manage to compile your mod on linux?

we tried a lot Distro's, including fedora 4 and 5, Linux XP, Cent OS 5, Slackware 11, .. but we didn't get a single one working.

slackware 11 got further than any other: it gets to a file called generatemakefile.cpp and then it stops, and complains about syntax errors in that file
I'm not a programmer, but I can tell you that since the very beginning we've had the Linux server working and done most of our testing on it. I mean, it's been supported from the start of the mod..
Dospac is offline   Reply With Quote


Old 07-23-2007, 03:18 AM   #5
Zaskar
 
Join Date: Mar 2007
Posts Rated Helpful 0 Times
Linux dependincies are a biiiiiiiiiiiiiittttch.

Make sure you get a distro with app management.

Debian/ubuntu is the best in that department. Apt get rules.

Still, you need to know what deps it has to be able to get them.
Zaskar is offline   Reply With Quote


Old 07-23-2007, 01:07 PM   #6
stino
 
Join Date: Mar 2007
Posts Rated Helpful 0 Times
i have what i need, i only get cpp errors and he complains that he can't find xercesc/include/dom/AFILE.hpp

for what i know: the path is relative, and there is no $XERCESCROOT in front of it so it looks like an error in the cpp file valve provided.

Here's the compiler's output:
Quote:
Originally Posted by GCC
# gmake
if [ -z "/usr/bin/gcc" ]; then echo "Compiler not defined."; exit; fi
if [ ! -d . ];then mkdir .;fi
cd .
make -f Makefile.vcpm CC=/usr/bin/gcc CPLUS=/usr/bin/g++ CPP_LIB="/usr/lib/libstdc++.a /usr/lib/libgcc_eh.a" BUILD_DIR=. BUILD_OBJ_DIR=./obj SOURCE_DIR=.. SHLIBLDFLAGS=-shared -Wl,-Map,vcpm_map.txt -Wl SHLIBEXT=so CLINK=/usr/bin/gcc CFLAGS=" -mtune=i686 -march=pentium3 -mmmx -O3 -fpermissive -D_LINUX -DNDEBUG -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -Usprintf=use_Q_snprintf_instead_of_sprintf -Ustrncpy=use_Q_strncpy_instead -UPROTECTED_THINGS_ENABLE" LDFLAGS="-lm -ldl /valve/steam/bin/bin/tier0_i486.so /valve/steam/bin/bin/vstdlib_i486.so mathlib_i486.a choreoobjects_i486.a tier1_i486.a" ARCH=i486 GAME_DIR=/valve/steam/bin MOD_CONFIG=server_sdk_ReleaseSDKWin32 NAME=server XERCES_INC_DIR=/usr/src/xerces-c-src_2_6_0/include XERCES_LIB_DIR=/usr/src/xerces-c-src_2_6_0/lib
make[1]: Entering directory `/Synergy Linux Test/Test/src/linux_sdk'
mkdir ./obj
mkdir: cannot create directory `./obj': File exists
make[1]: [dirs] Error 1 (ignored)
mkdir ./obj/vcpm
mkdir: cannot create directory `./obj/vcpm': File exists
make[1]: [dirs] Error 1 (ignored)
mkdir ./obj/vcpm/public
mkdir: cannot create directory `./obj/vcpm/public': File exists
make[1]: [dirs] Error 1 (ignored)
/usr/bin/g++ -I../public -I/usr/src/xerces-c-src_2_6_0/include -I../utils/common -I../public/tier1 -w -mtune=i686 -march=pentium3 -mmmx -O3 -fpermissive -D_LINUX -DNDEBUG -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -Usprintf=use_Q_snprintf_instead_of_sprintf -Ustrncpy=use_Q_strncpy_instead -UPROTECTED_THINGS_ENABLE -DARCH=i486 -o obj/vcpm/makefilecreator.o -c ../utils/vprojtomake/makefilecreator.cpp
In file included from ../utils/vprojtomake/makefilecreator.h:18,
from ../utils/vprojtomake/makefilecreator.cpp:11:
../utils/vprojtomake/vcprojconvert.h:19:39: xercesc/dom/DOMDocument.hpp: No such file or directory
In file included from ../utils/vprojtomake/makefilecreator.h:18,
from ../utils/vprojtomake/makefilecreator.cpp:11:
../utils/vprojtomake/vcprojconvert.h:31: error: expected constructor, destructor, or type conversion before "class"
In file included from ../utils/vprojtomake/makefilecreator.cpp:11:
../utils/vprojtomake/makefilecreator.h:28: error: `CVCProjConvert' has not been declared
../utils/vprojtomake/makefilecreator.h:34: error: `CVCProjConvert' has not been declared
../utils/vprojtomake/makefilecreator.h:34: error: `CConfiguration' has not been declared
../utils/vprojtomake/makefilecreator.h:35: error: `CVCProjConvert' has not been declared
../utils/vprojtomake/makefilecreator.h:35: error: `CConfiguration' has not been declared
../utils/vprojtomake/makefilecreator.h:38: error: `CVCProjConvert' has not been declared
../utils/vprojtomake/makefilecreator.h:38: error: `CConfiguration' has not been declared
../utils/vprojtomake/makefilecreator.h:39: error: `CVCProjConvert' has not been declared
../utils/vprojtomake/makefilecreator.h:39: error: `CConfiguration' has not been declared
../utils/vprojtomake/makefilecreator.cpp:28: error: variable or field `CreateMakefiles' declared void
../utils/vprojtomake/makefilecreator.cpp:28: error: `int CMakefileCreator::CreateMakefiles' is not a static member of `class CMakefileCreator'
../utils/vprojtomake/makefilecreator.cpp:28: error: `CVCProjConvert' was not declared in this scope
../utils/vprojtomake/makefilecreator.cpp:28: error: `proj' was not declared in this scope
../utils/vprojtomake/makefilecreator.cpp:29: error: expected `,' or `;' before '{' token
../utils/vprojtomake/makefilecreator.cpp:56: error: `CVCProjConvert' has not been declared
../utils/vprojtomake/makefilecreator.cpp:56: error: variable or field `CreateBaseDirs' declared void
../utils/vprojtomake/makefilecreator.cpp:56: error: `int CMakefileCreator::CreateBaseDirs' is not a static member of `class CMakefileCreator'
../utils/vprojtomake/makefilecreator.cpp:56: error: `CConfiguration' was not declared in this scope
../utils/vprojtomake/makefilecreator.cpp:56: error: `config' was not declared in this scope
../utils/vprojtomake/makefilecreator.cpp:57: error: expected `,' or `;' before '{' token
../utils/vprojtomake/makefilecreator.cpp:97: error: `CVCProjConvert' has not been declared
../utils/vprojtomake/makefilecreator.cpp:97: error: `CConfiguration' has not been declared
../utils/vprojtomake/makefilecreator.cpp: In member function `void CMakefileCreator::CreateMakefileName(const char*, int&)':
../utils/vprojtomake/makefilecreator.cpp:100: error: request for member `GetName' in `config', which is of non-class type `int'
../utils/vprojtomake/makefilecreator.cpp: At global scope:
../utils/vprojtomake/makefilecreator.cpp:167: error: `CVCProjConvert' has not been declared
../utils/vprojtomake/makefilecreator.cpp:167: error: variable or field `OutputIncludes' declared void
../utils/vprojtomake/makefilecreator.cpp:167: error: `int CMakefileCreator::OutputIncludes' is not a static member of `class CMakefileCreator'
../utils/vprojtomake/makefilecreator.cpp:167: error: `CConfiguration' was not declared in this scope
../utils/vprojtomake/makefilecreator.cpp:167: error: `config' was not declared in this scope
../utils/vprojtomake/makefilecreator.cpp:167: error: expected primary-expression before "f"
../utils/vprojtomake/makefilecreator.cpp:168: error: expected `,' or `;' before '{' token
../utils/vprojtomake/makefilecreator.cpp:245: error: `CVCProjConvert' has not been declared
../utils/vprojtomake/makefilecreator.cpp:245: error: variable or field `OutputObjLists' declared void
../utils/vprojtomake/makefilecreator.cpp:245: error: `int CMakefileCreator::OutputObjLists' is not a static member of `class CMakefileCreator'
../utils/vprojtomake/makefilecreator.cpp:245: error: `CConfiguration' was not declared in this scope
../utils/vprojtomake/makefilecreator.cpp:245: error: `config' was not declared in this scope
../utils/vprojtomake/makefilecreator.cpp:245: error: expected primary-expression before "f"
../utils/vprojtomake/makefilecreator.cpp:246: error: expected `,' or `;' before '{' token
make[1]: *** [obj/vcpm/makefilecreator.o] Error 1
make[1]: Leaving directory `/Synergy Linux Test/Test/src/linux_sdk'
gmake: *** [vcpm] Error 2
Quote:
Originally Posted by pizzahut
look what i wrote, and now try to judge for yourself if that will help, especially the line: Slackware 11.0 ( http://www.slackware.com/ ) is a good starting base to create your compiling environment.
stino is offline   Reply With Quote


Old 07-23-2007, 01:49 PM   #7
Zaskar
 
Join Date: Mar 2007
Posts Rated Helpful 0 Times
Could be that you need an older (or newer, if your distro is old) c++/g++ version.

can get lots of compiling errors if your using the newest versions and a program was made to compile on an older version.
Zaskar is offline   Reply With Quote


Old 07-23-2007, 04:42 PM   #8
stino
 
Join Date: Mar 2007
Posts Rated Helpful 0 Times
Quote:
Originally Posted by Zaskar
Could be that you need an older (or newer, if your distro is old) c++/g++ version.

can get lots of compiling errors if your using the newest versions and a program was made to compile on an older version.
slackware 11 is suggested by valve, gcc, g++ and glibc are the same major and minor version suggested by valve. And i don't know what version valve suggests for xerces, but if you read the output i've included with my previous post you see something going wrong with xerces, its the first thing that goes wrong.
stino is offline   Reply With Quote


Old 08-08-2007, 05:24 PM   #9
stino
 
Join Date: Mar 2007
Posts Rated Helpful 0 Times
OK, we compiled our SO file, so what now, if we put it in our game dir along with the other files we and we start
./srcds_run -game synergy -map syn_apprehension it loads a game of hl2mp (game.dll loaded for half life 2 deathmatch)
and if i try to get some information on hlsw about that server on port 27015 i get a timeout :s

(only our coder gets his server to run with game.dll loaded for synergy :P)

and why is our so file 20mb? we tried to create the version_script like the mention on the developers wiki.

Last edited by stino; 08-08-2007 at 07:28 PM.
stino is offline   Reply With Quote


Old 08-08-2007, 11:26 PM   #10
Ihmhi
[AE] 0112 Ihmhi *SJB
Wiki Team
Fortress Forever Staff
 
Ihmhi's Avatar
 
Join Date: Mar 2007
Location: Newark, NJ, United States
Class/Position: A little bit o' everythin'
Gametype: Also a little bit o' everythin'
Affiliations: [AE] Asseater, *SJB Straight Jacket Brigade
Posts Rated Helpful 3 Times
Send a message via AIM to Ihmhi Send a message via MSN to Ihmhi Send a message via Yahoo to Ihmhi
Okay, since no one asked, what game is this for anyway?
__________________
Support FF:
Anime: The Thread: Reloaded
The one and only anime thread on these here forums.

Select the pistol, and then, select your horse.
Ihmhi is offline   Reply With Quote


Old 08-09-2007, 08:48 PM   #11
Dospac
Retired FF Staff
 
Join Date: Jan 2005
Location: San Jose, CA
Posts Rated Helpful 0 Times
Send a message via ICQ to Dospac Send a message via AIM to Dospac Send a message via MSN to Dospac Send a message via Yahoo to Dospac
Quote:
Originally Posted by stino
/srcds_run -game synergy -map syn_apprehension
Then take a gander at his sig.
Dospac is offline   Reply With Quote


Old 08-10-2007, 07:22 PM   #12
pizzahut
 
Join Date: Mar 2007
Posts Rated Helpful 0 Times
Quote:
Originally Posted by stino
i have what i need, i only get cpp errors and he complains that he can't find xercesc/include/dom/AFILE.hpp

for what i know: the path is relative, and there is no $XERCESCROOT in front of it so it looks like an error in the cpp file valve provided.

Here's the compiler's output:

[...]

Quote:
Originally Posted by pizzahut
look what i wrote, and now try to judge for yourself if that will help, especially the line: Slackware 11.0 ( http://www.slackware.com/ ) is a good starting base to create your compiling environment.
Well it mentions something about XERCES:
Quote:
At a minimum you should configure these parameters:
[...]
XERCES_INC_DIR, XERCES_LIB_DIR, the installation directory of the Xerces library.

Last edited by pizzahut; 08-17-2007 at 11:27 AM.
pizzahut is offline   Reply With Quote


Old 08-13-2007, 04:18 PM   #13
stino
 
Join Date: Mar 2007
Posts Rated Helpful 0 Times
never mind, got it working, my next problem now is that i can't launch a map, so how do i debug linux dump files, (like mdmp on windows ..)
stino is offline   Reply With Quote


Old 08-16-2007, 06:09 PM   #14
nodnarb
 
Join Date: Mar 2007
Posts Rated Helpful 5 Times
Quote:
Originally Posted by Ihmhi
Okay, since no one asked, what game is this for anyway?
synergy
nodnarb is offline   Reply With Quote


Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:42 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.