I just found the command line switch /MPx for visual studio 2005 (x = number of CPU).
Fucking awesome compile speed on my dual quad xeon. A full "rebuild all" in 3 minutes.
I'm so sorry I did not find this option sooner...
Is there a similar option for gcc/scons ?
Multithreaded compiler
Moderator: Moderators
Re: Multithreaded compiler
scons -j#
cmake depends on make, which doesn't support -j on windows. works fine on posix.
btw can you write up some instructions how to compile in vs 2008 with java skirmish ai support? links to vclibs and such welcome ^^
cmake depends on make, which doesn't support -j on windows. works fine on posix.
btw can you write up some instructions how to compile in vs 2008 with java skirmish ai support? links to vclibs and such welcome ^^
Re: Multithreaded compiler
Ah, very nice. Less than 4 minutes with gcc/scons.
I'm not sure about building the java skirmish AI. Will look into it.
Oh, by the way. Java AI build does not work for me with scons either.
If u can help me fix that, maybe I can do something with MSVC.
I modified the Sconscript file slightly to eliminate the file not found error, and instead get crash:
I'm not sure about building the java skirmish AI. Will look into it.
Oh, by the way. Java AI build does not work for me with scons either.
If u can help me fix that, maybe I can do something with MSVC.
Code: Select all
g++ -mno-tls-direct-seg-refs -mwindows -mthreads -lstdc++ -Wl,--kill-at --add-st
dcall-alias -mno-cygwin -shared -o build\AI\Interfaces\C\AIInterface.dll build\r
ts\Game\GameVersion-aiinterface.o build\rts\System\Platform\SharedLib-aiinterfac
e.o build\rts\System\Platform\Win\DllLib-aiinterface.o build\AI\Wrappers\CUtils\
SharedLibrary-aiinterface.o build\AI\Wrappers\CUtils\SimpleLog-aiinterface.o bui
ld\AI\Wrappers\CUtils\SSkirmishAISpecifier-aiinterface.o build\AI\Wrappers\CUtil
s\Util-aiinterface.o build\AI\Interfaces\C\Interface.cpp.o build\AI\Interfaces\C
\InterfaceExport.cpp.o -Lmingwlibs\lib -Lmingwlibs\dll -L#mingwlibs\lib -L#mingw
libs\dll -LC:\dev-cpp\lib -LC:\dev-cpp\dll -lboost_regex-mt -lboost_thread-mt -l
opengl32 -lglu32 -lglew32 -lzlib1 -lfreetype6 -ldevil -lILU -lopenal32 -limagehl
p -lgdi32 -lwinmm -lwsock32 -lole32 -lmingw32 -lSDLmain -lvorbisfile -lvorbis -l
ogg -lSDL -lpython25 -Wl,--out-implib,build\AI\Interfaces\C\AIInterface.a -Wl,--
output-def,build\AI\Interfaces\C\AIInterface.def
Creating library file: build\AI\Interfaces\C\AIInterface.a
os.chdir('AI\\Interfaces\\Java\\bin')
Creating dir "F:\spring_git\spring\build\AI\Interfaces\Java\generated-java-src\c
om\clan_sy\spring\ai\event"
os.chdir('F:\\spring_git\\spring')
os.chdir('AI\\Interfaces\\Java\\bin')
Creating dir "F:\spring_git\spring\build\AI\Interfaces\Java\generated-java-src\c
om\clan_sy\spring\ai\oo"
os.chdir('F:\\spring_git\\spring')
os.chdir('AI\\Interfaces\\Java\\bin')
F:\spring_git\spring\#mingwlibs\bin\awk.exe -v SPRING_SOURCE_DIR=F:/spring_git/s
pring -v INTERFACE_SOURCE_DIR=F:/spring_git/spring/AI/Interfaces/Java/java/src -
v GENERATED_SOURCE_DIR=F:/spring_git/spring/build/AI/Interfaces/Java/generated-j
ava-src -f jna_wrappEvents.awk -f AI\Wrappers\CUtils\bin\common.awk -f AI\Wrappe
rs\CUtils\bin\commonDoc.awk F:\spring_git\spring\rts\ExternalAI\Interface\AISEve
nts.h
awk: cmd. line:475: fatal: can't open source file `AI\Wrappers\CUtils\bin\common
.awk' for reading (No such file or directory)
scons: *** [build\AI\Interfaces\Java\generated-java-src\com\clan_sy\spring\ai\ev
ent\InitAIEvent.java] Error 2
scons: building terminated because of errors.
Code: Select all
F:\spring_git\spring\#mingwlibs\bin\awk.exe -v SPRING_SOURCE_DIR=F:/spring_git/s
pring -v INTERFACE_SOURCE_DIR=F:/spring_git/spring/AI/Interfaces/Java/java/src -
v GENERATED_SOURCE_DIR=F:/spring_git/spring/build/AI/Interfaces/Java/generated-j
ava-src -f jna_wrappEvents.awk -f F:\spring_git\spring\AI\Wrappers\CUtils\bin\co
mmon.awk -f F:\spring_git\spring\AI\Wrappers\CUtils\bin\commonDoc.awk F:\spring_
git\spring\rts\ExternalAI\Interface\AISEvents.h
awk: jna_wrappEvents.awk:412: (FILENAME=F:\spring_git\spring\rts\ExternalAI\Inte
rface\AISEvents.h FNR=4) fatal error: internal error (SIGSEGV)
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
scons: *** [build\AI\Interfaces\Java\generated-java-src\com\clan_sy\spring\ai\ev
ent\InitAIEvent.java] Error 3
scons: building terminated because of errors.
Re: Multithreaded compiler
sorry, the first error is my fault. if you fixed it, please commit it, or i will do a fix.
the error you get now is most likely becasue of the awk you use.
use (extract it to your mingwlibs/bin/ folder), just overwrite the one that is currently there.
we have to include this one with the next release of mingwlibs.
tell me if you wont upload a fix for the first problem.
the error you get now is most likely becasue of the awk you use.
use (extract it to your mingwlibs/bin/ folder), just overwrite the one that is currently there.
we have to include this one with the next release of mingwlibs.
tell me if you wont upload a fix for the first problem.