Light Style© by Fisana

Jump to content


Photo

Error While Compiling From Svn


  • Please log in to reply
2 replies to this topic

#1 grepmaster

grepmaster

    Discens

  • Community Members
  • Pip
  • 10 posts

Posted 03 March 2011 - 06:41 AM

when i ran make CONFIG=Release -j3, below messages appears and i could not find test binary in 0ad/binaries/system
//snipped
In file included from ../../../source/ps/UserReport.cpp:24:
../../../source/lib/external_libraries/curl.h:50:23: warning: curl/curl.h: No such file or directory
CCmpDecay.cpp
../../../source/ps/UserReport.cpp:478: error: ISO C++ forbids declaration of ‘CURL’ with no type
../../../source/ps/UserReport.cpp:478: error: expected ‘;’ before ‘*’ token
../../../source/ps/UserReport.cpp:479: error: ISO C++ forbids declaration of ‘curl_slist’ with no type
../../../source/ps/UserReport.cpp:479: error: expected ‘;’ before ‘*’ token
../../../source/ps/UserReport.cpp:486: error: ‘CURL_ERROR_SIZE’ was not declared in this scope
../../../source/ps/UserReport.cpp: In constructor ‘CUserReporterWorker::CUserReporterWorker(const std::string&, const std::string&)’:
../../../source/ps/UserReport.cpp:91: error: ‘m_Curl’ was not declared in this scope
../../../source/ps/UserReport.cpp:91: error: ‘curl_easy_init’ was not declared in this scope
../../../source/ps/UserReport.cpp:99: error: ‘CURLOPT_ERRORBUFFER’ was not declared in this scope
../../../source/ps/UserReport.cpp:99: error: ‘m_ErrorBuffer’ was not declared in this scope
../../../source/ps/UserReport.cpp:99: error: ‘curl_easy_setopt’ was not declared in this scope
../../../source/ps/UserReport.cpp:102: error: ‘CURLOPT_NOSIGNAL’ was not declared in this scope
../../../source/ps/UserReport.cpp:105: error: ‘CURLOPT_FOLLOWLOCATION’ was not declared in this scope
../../../source/ps/UserReport.cpp:108: error: ‘CURLOPT_WRITEFUNCTION’ was not declared in this scope
../../../source/ps/UserReport.cpp:109: error: ‘CURLOPT_WRITEDATA’ was not declared in this scope
../../../source/ps/UserReport.cpp:110: error: ‘CURLOPT_READFUNCTION’ was not declared in this scope
../../../source/ps/UserReport.cpp:111: error: ‘CURLOPT_READDATA’ was not declared in this scope
../../../source/ps/UserReport.cpp:114: error: ‘CURLOPT_URL’ was not declared in this scope
../../../source/ps/UserReport.cpp:115: error: ‘CURLOPT_POST’ was not declared in this scope
../../../source/ps/UserReport.cpp:118: error: ‘m_Headers’ was not declared in this scope
../../../source/ps/UserReport.cpp:121: error: ‘curl_version’ was not declared in this scope
../../../source/ps/UserReport.cpp:123: error: ‘curl_slist_append’ was not declared in this scope
../../../source/ps/UserReport.cpp:128: error: ‘CURLOPT_HTTPHEADER’ was not declared in this scope
../../../source/ps/UserReport.cpp: In destructor ‘CUserReporterWorker::~CUserReporterWorker()’:
../../../source/ps/UserReport.cpp:147: error: ‘m_Headers’ was not declared in this scope
../../../source/ps/UserReport.cpp:147: error: ‘curl_slist_free_all’ was not declared in this scope
../../../source/ps/UserReport.cpp:148: error: ‘m_Curl’ was not declared in this scope
../../../source/ps/UserReport.cpp:148: error: ‘curl_easy_cleanup’ was not declared in this scope
../../../source/ps/UserReport.cpp: In member function ‘void CUserReporterWorker::Run()’:
../../../source/ps/UserReport.cpp:246: error: ‘m_Curl’ was not declared in this scope
../../../source/ps/UserReport.cpp:246: error: ‘CURLOPT_PROXY’ was not declared in this scope
../../../source/ps/UserReport.cpp:246: error: ‘curl_easy_setopt’ was not declared in this scope
../../../source/ps/UserReport.cpp: In member function ‘bool CUserReporterWorker::ProcessReport()’:
../../../source/ps/UserReport.cpp:333: error: ‘m_Curl’ was not declared in this scope
../../../source/ps/UserReport.cpp:333: error: ‘CURLOPT_POSTFIELDSIZE_LARGE’ was not declared in this scope
../../../source/ps/UserReport.cpp:333: error: ‘curl_off_t’ was not declared in this scope
../../../source/ps/UserReport.cpp:333: error: ‘curl_easy_setopt’ was not declared in this scope
../../../source/ps/UserReport.cpp:341: error: ‘CURLcode’ was not declared in this scope
../../../source/ps/UserReport.cpp:341: error: expected ‘;’ before ‘err’
../../../source/ps/UserReport.cpp:347: error: ‘err’ was not declared in this scope
../../../source/ps/UserReport.cpp:347: error: ‘CURLE_OK’ was not declared in this scope
../../../source/ps/UserReport.cpp:350: error: ‘CURLINFO_RESPONSE_CODE’ was not declared in this scope
../../../source/ps/UserReport.cpp:350: error: ‘curl_easy_getinfo’ was not declared in this scope
../../../source/ps/UserReport.cpp:369: error: ‘m_ErrorBuffer’ was not declared in this scope
../../../source/ps/UserReport.cpp: In member function ‘void CUserReporterWorker::AppendEscaped(std::string&, const std::string&)’:
../../../source/ps/UserReport.cpp:420: error: ‘m_Curl’ was not declared in this scope
../../../source/ps/UserReport.cpp:420: error: ‘curl_easy_escape’ was not declared in this scope
../../../source/ps/UserReport.cpp:422: error: ‘curl_free’ was not declared in this scope
../../../source/ps/UserReport.cpp: In static member function ‘static size_t CUserReporterWorker::SendCallback(char*, size_t, size_t, void*)’:
../../../source/ps/UserReport.cpp:442: error: ‘CURL_READFUNC_ABORT’ was not declared in this scope
../../../source/ps/UserReport.cpp: In member function ‘void CUserReporter::Initialize()’:
../../../source/ps/UserReport.cpp:569: error: ‘CURL_GLOBAL_ALL’ was not declared in this scope
../../../source/ps/UserReport.cpp:569: error: ‘CURL_GLOBAL_WIN32’ was not declared in this scope
../../../source/ps/UserReport.cpp:569: error: ‘curl_global_init’ was not declared in this scope
../../../source/ps/UserReport.cpp: In member function ‘void CUserReporter::Deinitialize()’:
../../../source/ps/UserReport.cpp:586: error: ‘curl_global_cleanup’ was not declared in this scope
make[1]: *** [obj/engine_Release/UserReport.o] Error 1
make: *** [engine] Error 2
make: *** Waiting for unfinished jobs....
//snipped
WaterManager.cpp
Linking graphics

was building on debian 6 64-bit

Edited by grepmaster, 03 March 2011 - 06:42 AM.

  • 0

#2 Ykkrosh

Ykkrosh

    Primus Pilus

  • WFG Programming Team
  • 4,908 posts

Posted 03 March 2011 - 09:31 AM

You need to install libcurl (probably package libcurl4-openssl-dev on Debian, or something like that).
  • 0
Philip Taylor [aka Ykkrosh]

Wildfire Games Programmer
Contact me: philip@wildfiregames.com

#3 grepmaster

grepmaster

    Discens

  • Community Members
  • Pip
  • 10 posts

Posted 03 March 2011 - 11:35 AM

You need to install libcurl (probably package libcurl4-openssl-dev on Debian, or something like that).

thanks. With this i can finally play 0ad
  • 0