I am compiling the latest tremulous fork from grangerhub github. I am getting errors related to the curl package:
ubuntu@ubuntu:~/Github/tremulous$ make
make[1]: Entering directory ‘/home/ubuntu/Github/tremulous’Building in build/release-linux-x86_64:
PLATFORM: linux
ARCH: x86_64
VERSION: v1.3.0-alpha.0.13-10-g38cbdc8d
COMPILE_PLATFORM: linux
COMPILE_ARCH: x86_64
CC: cc
CXX: g++
TOOLS_CC gccCFLAGS:
-m64 -fPIC -fpic -DLUA_USE_LINUX -Iexternal/lua-5.3.3/include
-Iexternal/sol -Isrc/script/rapidjson -I-Isrc -Iexternal/rapidjson
-Iexternal/sol -Iexternal/nettle-3.3 -Iexternal/nettle-3.3
-Iexternal/semver/src/include -Isrc -fno-strict-aliasing -DUSE_ICON
-DNO_GZIP -Iexternal/zlib -DUSE_INTERNAL_JPEG -Iexternal/jpeg-8c
-DUSE_LOCAL_HEADERS -DPRODUCT_VERSION=“v1.3.0-alpha.0.13-10-g38cbdc8d”
-MMD -DNDEBUG -O3 -ffast-math -msse2CXXFLAGS:
-fno-strict-aliasing -DUSE_ICON -DNO_GZIP -Iexternal/zlib
-DUSE_INTERNAL_JPEG -Iexternal/jpeg-8c -DUSE_LOCAL_HEADERS
-DPRODUCT_VERSION=“v1.3.0-alpha.0.13-10-g38cbdc8d” -m64 -fPIC -fpic
-DLUA_USE_LINUX -Iexternal/lua-5.3.3/include -Iexternal/sol -DNDEBUG -O3
-ffast-math -msse2CLIENT_CFLAGS:
-D_REENTRANT -I/usr/include/SDL2 -Iexternal/libcurl-7.35.0 -DUSE_OPENAL
-DUSE_OPENAL_DLOPEN -DUSE_CURL -DUSE_CODEC_OPUS -DOPUS_BUILD
-DHAVE_LRINTF -DFLOATING_POINT -DFLOAT_APPROX -DUSE_ALLOCA -D
OPTIMIZE -Iexternal/opus-1.1.4/include -Iexternal/opus-1.1.4/celt
-Iexternal/opus-1.1.4/silk -Iexternal/opus-1.1.4/silk/float
-Iexternal/opusfile-0.8/include -DUSE_CODEC_VORBIS
-Iexternal/libvorbis-1.3.5/include -Iexternal/libvorbis-1.3.5/lib
-DUSE_RESTCLIENT -Iexternal/restclient -Iexternal/libogg-1.3.2/include
-DUSE_RENDERER_DLOPENCLIENT_CXXFLAGS:
SERVER_CFLAGS:
SERVER_CXXFLAGS:
LDFLAGS:
LIBS:
-ldl -lmCLIENT_LIBS:
-lSDL2Output:
tremded
tremulous
renderer_opengl1.so
renderer_opengl2.so
gpp/cgame.so
gpp/game.so
gpp/ui.so
gpp/vm/cgame.qvm
gpp/vm/game.qvm
gpp/vm/ui.qvm
gpp/vms-gpp-v1.3.0-alpha.0.13-10-g38cbdc8d.pk3
gpp_11/vm/cgame.qvm
gpp_11/vm/ui.qvm
gpp_11/vms-1.1.0-v1.3.0-alpha.0.13-10-g38cbdc8d.pk3
gpp/data-v1.3.0-alpha.0.13-10-g38cbdc8d.pk3
granger
scripts
GPL
COPYING
CCmake[2]: Entering directory ‘/home/ubuntu/Github/tremulous’
make[2]: ‘build/release-linux-x86_64/tremded’ is up to date.
LD build/release-linux-x86_64/tremulous
build/release-linux-x86_64/client/restclient/connection.o: In functionRestClient::Connection::Connection(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)': connection.cpp:(.text+0x55a): undefined reference to
curl_easy_init’
build/release-linux-x86_64/client/restclient/connection.o: In functionRestClient::Connection::performCurlRequest(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': connection.cpp:(.text+0x73e): undefined reference to
curl_easy_setopt’
connection.cpp:(.text+0x752): undefined reference tocurl_easy_setopt' connection.cpp:(.text+0x768): undefined reference to
curl_easy_setopt’
connection.cpp:(.text+0x77a): undefined reference tocurl_easy_setopt' connection.cpp:(.text+0x790): undefined reference to
curl_easy_setopt’
build/release-linux-x86_64/client/restclient/connection.o:connection.cpp:(.text+0x7a2): more undefined references tocurl_easy_setopt' follow build/release-linux-x86_64/client/restclient/connection.o: In function
RestClient::Connection::performCurlRequest(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)‘:
connection.cpp:(.text+0x813): undefined reference tocurl_slist_append' connection.cpp:(.text+0x83a): undefined reference to
curl_easy_setopt’
connection.cpp:(.text+0x961): undefined reference tocurl_easy_setopt' connection.cpp:(.text+0x975): undefined reference to
curl_easy_setopt’
connection.cpp:(.text+0x9aa): undefined reference tocurl_easy_setopt' connection.cpp:(.text+0x9f5): undefined reference to
curl_easy_setopt’
connection.cpp:(.text+0x9fd): undefined reference tocurl_easy_perform' connection.cpp:(.text+0xa47): undefined reference to
curl_easy_getinfo’
connection.cpp:(.text+0xa5d): undefined reference tocurl_easy_getinfo' connection.cpp:(.text+0xa73): undefined reference to
curl_easy_getinfo’
connection.cpp:(.text+0xa89): undefined reference tocurl_easy_getinfo' connection.cpp:(.text+0xa9f): undefined reference to
curl_easy_getinfo’
build/release-linux-x86_64/client/restclient/connection.o:connection.cpp:(.text+0xab5): more undefined references tocurl_easy_getinfo' follow build/release-linux-x86_64/client/restclient/connection.o: In function
RestClient::Connection::performCurlRequest(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)‘:
connection.cpp:(.text+0xae9): undefined reference tocurl_slist_free_all' connection.cpp:(.text+0xaf1): undefined reference to
curl_easy_reset’
connection.cpp:(.text+0xb98): undefined reference tocurl_easy_setopt' connection.cpp:(.text+0xbac): undefined reference to
curl_easy_setopt’
connection.cpp:(.text+0xbca): undefined reference tocurl_easy_setopt' connection.cpp:(.text+0xbf9): undefined reference to
curl_easy_getinfo’
build/release-linux-x86_64/client/restclient/connection.o: In functionRestClient::Connection::post(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': connection.cpp:(.text+0xe24): undefined reference to
curl_easy_setopt’
connection.cpp:(.text+0xe37): undefined reference tocurl_easy_setopt' connection.cpp:(.text+0xe4b): undefined reference to
curl_easy_setopt’
build/release-linux-x86_64/client/restclient/connection.o: In functionRestClient::Connection::put(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': connection.cpp:(.text+0xec1): undefined reference to
curl_easy_setopt’
connection.cpp:(.text+0xed5): undefined reference tocurl_easy_setopt' build/release-linux-x86_64/client/restclient/connection.o:connection.cpp:(.text+0xeeb): more undefined references to
curl_easy_setopt’ follow
build/release-linux-x86_64/client/restclient/connection.o: In functionRestClient::Connection::~Connection()': connection.cpp:(.text+0xfd6): undefined reference to
curl_easy_cleanup’
build/release-linux-x86_64/client/cl_curl.o: In functionCL_cURL_Cleanup()': cl_curl.cpp:(.text+0xd1): undefined reference to
curl_multi_remove_handle’
cl_curl.cpp:(.text+0xe1): undefined reference tocurl_easy_cleanup' cl_curl.cpp:(.text+0xed): undefined reference to
curl_multi_cleanup’
cl_curl.cpp:(.text+0x113): undefined reference tocurl_multi_strerror' cl_curl.cpp:(.text+0x139): undefined reference to
curl_easy_cleanup’
cl_curl.cpp:(.text+0x153): undefined reference tocurl_multi_strerror' build/release-linux-x86_64/client/cl_curl.o: In function
qcurl_easy_setopt_warn(void*, CURLoption, …)‘:
cl_curl.cpp:(.text+0x1d3): undefined reference tocurl_easy_setopt' cl_curl.cpp:(.text+0x1fb): undefined reference to
curl_easy_strerror’
build/release-linux-x86_64/client/cl_curl.o: In functionCL_cURL_BeginDownload(char const*, char const*)': cl_curl.cpp:(.text+0x305): undefined reference to
curl_easy_init’
cl_curl.cpp:(.text+0x3cc): undefined reference tocurl_version' cl_curl.cpp:(.text+0x4d7): undefined reference to
curl_multi_init’
cl_curl.cpp:(.text+0x4f6): undefined reference tocurl_multi_add_handle' cl_curl.cpp:(.text+0x58d): undefined reference to
curl_easy_cleanup’
cl_curl.cpp:(.text+0x5a3): undefined reference tocurl_multi_strerror' cl_curl.cpp:(.text+0x5c5): undefined reference to
curl_easy_cleanup’
build/release-linux-x86_64/client/cl_curl.o: In functionCL_cURL_PerformDownload()': cl_curl.cpp:(.text+0x62f): undefined reference to
curl_multi_perform’
cl_curl.cpp:(.text+0x653): undefined reference tocurl_multi_perform' cl_curl.cpp:(.text+0x68b): undefined reference to
curl_multi_info_read’
cl_curl.cpp:(.text+0x6e7): undefined reference tocurl_easy_getinfo' cl_curl.cpp:(.text+0x6f4): undefined reference to
curl_easy_strerror’
build/release-linux-x86_64/client/restclient/restclient.o: In functionRestClient::init()': restclient.cpp:(.text+0xa): undefined reference to
curl_global_init’
build/release-linux-x86_64/client/restclient/restclient.o: In functionRestClient::disable()': restclient.cpp:(.text+0x21): undefined reference to
curl_global_cleanup’
collect2: error: ld returned 1 exit status
Makefile:2275: recipe for target ‘build/release-linux-x86_64/tremulous’ failed
make[2]: *** [build/release-linux-x86_64/tremulous] Error 1
make[2]: Leaving directory ‘/home/ubuntu/Github/tremulous’
Makefile:1184: recipe for target ‘targets’ failed
make[1]: *** [targets] Error 2
make[1]: Leaving directory ‘/home/ubuntu/Github/tremulous’
Makefile:1128: recipe for target ‘release’ failed
make: *** [release] Error 2
Before doing this, I made sure to install curl and libcurl4:
ubuntu@ubuntu:~/Github/tremulous$ sudo apt-get install curl
ubuntu@ubuntu:~/Github/tremulous$ sudo apt-get install libcurl4
I don’t know what the problem could possible be. It would be greatly appreciated if anyone can give suggestions, thanks.