ShakaZ
-
Posts
2 -
Joined
-
Last visited
Posts posted by ShakaZ
-
-
Hello,
I've been trying to install 0AD, first from SVN but that failed.
Now using the released files.
When running ./update-workspaces.sh there was an error about libxml-2.0.pc not being found, which was resolved by export PKG_CONFIG_PATH=/usr/lib32/pkgconfig.
Now it gives following error :
$ ./update-workspaces.shUpdating bundled third-party dependencies...
bash -c 'mkdir -p output/{debug,release,test}/{FCollada/{FCDocument,FMath,FUtils,FColladaTest/{FCTestAssetManagement,FCTestExportImport,FCTestXRef}},FColladaPlugins/FArchiveXML}'
FCollada/FCollada.cpp
g++ -fvisibility=hidden -W -Wall -Wno-unused-parameter -Wno-unused-function -DLINUX -fpic -fno-strict-aliasing -O0 -g -D_DEBUG -DRETAIL -IFCollada `pkg-config libxml-2.0 --cflags` -MD -MF output/debug/FCollada/FCollada.d -c FCollada/FCollada.cpp -o output/debug/FCollada/FCollada.o
In file included from FCollada/FCollada.h:49:0,
from FCollada/StdAfx.h:13,
from FCollada/FCollada.cpp:9:
FCollada/FUtils/FUtils.h:91:25: fatal error: libxml/tree.h: No such file or directory
compilation terminated.
make: *** [output/debug/FCollada/FCollada.o] Error 1
ERROR: FCollada build failed
A search on my system doesn't show a tree.h file located in a libxml directory.
EDIT: Nevermind, what I wrote above was fixed after installing the dependencies (except libcurl4-gnutls-dev libcurl4-openssl-devas they depend on licurl-dev which is not available) suggested on the build instructions page.
./update-workspaces.sh builds fine now, however there are some errors during the make:
NetHost.cppIn file included from ../../../source/network/NetHost.cpp:22:0:
../../../source/lib/external_libraries/enet.h:33:2: error: #error The game currently requires ENet 1.2.x. You are using a newer version, which has an incompatible API and network protocol. Please switch to an older version.
ScriptStats.cpp
make[1]: *** [obj/network_Release/NetHost.o] Error 1
make: *** [network] Error 2
make: *** Waiting for unfinished jobs....
ICmpVisual.cpp
CCmpObstruction.cpp
ScriptInterface.cpp
ICmpUnitMotion.cpp
../../../source/scriptinterface/ScriptInterface.cpp: In constructor 'ScriptInterface_impl::ScriptInterface_impl(const char*, const boost::shared_ptr<scriptRuntime>&)':
../../../source/scriptinterface/ScriptInterface.cpp:417:9: warning: variable 'ok' set but not used [-Wunused-but-set-variable]
ICmpDecay.cpp
There are no ./test and ./pyrogenesis files in binaries/system, so something must have gone wrong even though there didn't seem to be any fatal error.
EDIT2 :
Downgraded libenet to version 1.2.1-1, which removed the previous errors, though now there's a fatal error and more errors about unused variables or parameters.
p
UserReport.cppIn file included from ../../../source/ps/UserReport.cpp:24:0:
../../../source/lib/external_libraries/curl.h:50:23: fatal error: curl/curl.h: No such file or directory
compilation terminated.
make[1]: *** [obj/engine_Release/UserReport.o] Error 1
make: *** [engine] Error 2
make: *** Waiting for unfinished jobs....
Still no ./test and ./pyrogenesis files in binaries/system
Compilation Errors On Debian Sid
in Help & Feedback
Posted · Edited by ShakaZ
I eventually realised that instead of libcurl4-gnutls-dev and libcurl4-openssl-dev needing an unavailable libcurl-dev they were conflicting with each other and libcurl-dev is just a stub installed by either one of them.
So I installed only libcurl4-openssl-dev and then the compilation ran fine. Might be wise to update the wiki about this.
So eventually the only unorthodox thing I had to do in the process was the downgrading of the libenet packages with versions that aren't available in debian sid anymore.
Any idea when you will switch to libeven 1.3.x? Atm these libraries being limited to versions 1.2.x means no packages are available on the debian frickelplatz repository which is the only one, I know of, providing 0AD on debian.