CerberuS_21 Posted July 16, 2005 Share Posted July 16, 2005 I remember ensiform posting a thread about optimizing compiler options in order to improve performance. Unfortunately, that thread seems to have vanished (due to the technical problems LF is having recently I suppose). If ensiform or anybody else could re-post the contents of this thread, that'd be great (Decided to create a thread instead of using PM since I think this might be of interest for more people than only myself.) Link to comment Share on other sites More sharing options...
ensiform Posted July 16, 2005 Share Posted July 16, 2005 no i deleted it cause stupid at first didnt tell me not to post and then after posting told me too keep it secret. Link to comment Share on other sites More sharing options...
Tinny Posted July 16, 2005 Share Posted July 16, 2005 Aww, its a secret? How come? Link to comment Share on other sites More sharing options...
ensiform Posted July 16, 2005 Share Posted July 16, 2005 ask stu Link to comment Share on other sites More sharing options...
CerberuS_21 Posted July 16, 2005 Author Share Posted July 16, 2005 Aww Link to comment Share on other sites More sharing options...
razorace Posted July 16, 2005 Share Posted July 16, 2005 Well, from what I remember, the only difference was that the optimization was switched from the Pentium 3 class to the Pentium 4s. Link to comment Share on other sites More sharing options...
ensiform Posted July 16, 2005 Share Posted July 16, 2005 no, theres more. and if u only change optimization on, you get errors up the wazoo. Link to comment Share on other sites More sharing options...
razorace Posted July 16, 2005 Share Posted July 16, 2005 *shrug* uh, ok. Well, please ask Stubert to let you repost the thread. It's sort of important. Link to comment Share on other sites More sharing options...
zERoCooL2479 Posted July 21, 2005 Share Posted July 21, 2005 I'd like to know this as well! Link to comment Share on other sites More sharing options...
stubert Posted July 21, 2005 Share Posted July 21, 2005 all will be revealed after our next release Link to comment Share on other sites More sharing options...
zERoCooL2479 Posted August 2, 2005 Share Posted August 2, 2005 Have you guys experienced anything wierd with compiling it in gcc. Most notiably, the saber combat? I was under the assumption we are supposed to be using icc to compile it. Is it really that much different? Thanks, c1 Link to comment Share on other sites More sharing options...
stubert Posted August 2, 2005 Share Posted August 2, 2005 i use gcc 4 for linux, ms .net compiler for windows Link to comment Share on other sites More sharing options...
razorace Posted August 2, 2005 Share Posted August 2, 2005 Me too. The only problem I've ever had with it is that sometimes the gcc compiler craps out and gives you a bogus .so file. When this happens, the .so simply makes the game immediately crash on start up. To fix this, I just delete all the .o files and recompile. It doesn't happen very often thou. Other than that, things have worked fine for me with gcc. The only real difference is that using the gcc code requires some minor definition changes to fix a variety of compiler errors that you get with gcc that you wouldn't get with icc. Link to comment Share on other sites More sharing options...
stubert Posted August 3, 2005 Share Posted August 3, 2005 to compile on linux i did this i downloaded the universal jk3 source which qubit made it's called universal source on lucasfiles it includes a patch written by qubit (aka devoid, the second developer of jk2++), this will let it compile with gcc but it didn't really work out for me. so i asked hex how to do it. he pointed me to cmake (cmake.org) which you can use to create makefiles and scripts to build a project on any OS he also gave me his build scripts he made for jk3, excluding the lines that include his modules for the jk3 server so, all i have to do to get a linux .so is to do ALL the development in the .net editor in xp. then 1) reboot to slackware 2) cd to /game (same folder i'm working with in windows) 3) run "cmake ." bam, instant .so no fuss, no muss Link to comment Share on other sites More sharing options...
razorace Posted August 3, 2005 Share Posted August 3, 2005 Alternatively, OJP has been preconfigured to compile with gcc. All you gotta do is download the source to your linux box and run the makefile in the /game directory for whatever branch you're using. Link to comment Share on other sites More sharing options...
zERoCooL2479 Posted August 12, 2005 Share Posted August 12, 2005 I have also made my own makefile that seems to run pretty smooth. Cmake is an excellent tool though. I used that before I knew how to make my own. Link to comment Share on other sites More sharing options...
razorace Posted August 12, 2005 Share Posted August 12, 2005 *shrug* I just used notepad and pimped out a pre-existing makefile. Link to comment Share on other sites More sharing options...
zERoCooL2479 Posted September 4, 2005 Share Posted September 4, 2005 *shrug* I just used notepad and pimped out a pre-existing makefile. I'm having trouble linking the libraries statically using the Intel compiler. Anyone know a workaround? SUSE 9.3, gcc 3.3.5, icc 9.0 thanks! Link to comment Share on other sites More sharing options...
stubert Posted September 5, 2005 Share Posted September 5, 2005 i may fool around with the linux compiler flags... but it's not that big of a deal Link to comment Share on other sites More sharing options...
razorace Posted September 5, 2005 Share Posted September 5, 2005 I'm not sure what you mean by "statically" linking the libraries. Link to comment Share on other sites More sharing options...
Tinny Posted September 14, 2005 Share Posted September 14, 2005 Hey Stubert, will you post the optimization before December? Just wondering becaused I wanted to release a new version of my mod around Christmas Link to comment Share on other sites More sharing options...
zERoCooL2479 Posted September 30, 2005 Share Posted September 30, 2005 I'm not sure what you mean by "statically" linking the libraries. Nevermind, I got it compiling sweetly on the Intel Compiler. Statically linking libraries means that you do not need to include them with your Binary. For example, we need to link the math library with whatever we are compiling with. gcc = -lm icc = -limf If you dynamically link these in the linker (as seen above), then you have to have them on the server in order to run. If you statically link them (in icc it's "-Bstatic -limf"), then they are built in with your binary. If you want to see an example of my makefile, I can post it here. It's much easier to see it than explain it, heh. -c1 Link to comment Share on other sites More sharing options...
razorace Posted September 30, 2005 Share Posted September 30, 2005 Oh, ok. Well, I have a question for everyone. Is there a way to make the G++ compiler not be so picky about type casting? It totally freaks out on the JKA code. Link to comment Share on other sites More sharing options...
zERoCooL2479 Posted September 30, 2005 Share Posted September 30, 2005 There are flags you can set so it will ignore those type of errors. gcc --help I think you can find everything there you need. If not, try using the man pages. Link to comment Share on other sites More sharing options...
ck-killa Posted March 20, 2006 Share Posted March 20, 2006 It only seems proper to post here, but I hate bumping old posts up, and I appologize for this. I coded my own mod for quite some time now, and im ready to begin building in Linux. I have my Linux laptop all ready to go here, and would like to begin the process. I tried http://www.lucasfiles.com/?s=&action=download&id=367&agree=true but no luck. Just tons of warnings. I tried this idea here, which was the cmake program, but it tells me to make a CMake.txt file, and I have no idea how to go about that, and the documents for CMake are very confusing to me. Does anyone have a pre-built one I could use? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.