Jump to content

GNU/Linux Codeblocks Leadwerks 4.4 RC Compiling Errors


Recommended Posts

Since the last update, Codeblocks seems to be getting some new errors now, and it is unclear, if even possible by the user, how to correct them. Also, after the last update to the 4.4 branch, the libcurl4-openssl-dev package was required.

||=== Build: Debug in OpenWorld (compiler: GNU GCC Compiler) ===|
/home/robb/.local/share/Steam/steamapps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Client.o)||In function `Leadwerks::Client::CountServers(std::string const&, int, std::string const&)':|
/home/josh/Leadwerks/Engine/Source/Classes/Client.cpp|64|undefined reference to `curl_global_init'|
/home/josh/Leadwerks/Engine/Source/Classes/Client.cpp|66|undefined reference to `curl_easy_init'|
/home/josh/Leadwerks/Engine/Source/Classes/Client.cpp|69|undefined reference to `curl_easy_setopt'|
/home/josh/Leadwerks/Engine/Source/Classes/Client.cpp|72|undefined reference to `curl_easy_setopt'|
/home/josh/Leadwerks/Engine/Source/Classes/Client.cpp|73|undefined reference to `curl_easy_setopt'|
/home/josh/Leadwerks/Engine/Source/Classes/Client.cpp|77|undefined reference to `curl_easy_setopt'|
/home/josh/Leadwerks/Engine/Source/Classes/Client.cpp|80|undefined reference to `curl_easy_setopt'|
/home/josh/Leadwerks/Engine/Source/Classes/Client.cpp|84|undefined reference to `curl_easy_perform'|
/home/josh/Leadwerks/Engine/Source/Classes/Client.cpp|91|undefined reference to `curl_easy_strerror'|
/home/josh/Leadwerks/Engine/Source/Classes/Client.cpp|121|undefined reference to `curl_easy_cleanup'|
/home/robb/.local/share/Steam/steamapps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Server.o)||In function `Leadwerks::Server::Publish(std::string const&, std::string const&, int, std::string const&)':|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|63|undefined reference to `curl_global_init'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|65|undefined reference to `curl_easy_init'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|68|undefined reference to `curl_easy_setopt'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|71|undefined reference to `curl_easy_setopt'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|72|undefined reference to `curl_easy_setopt'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|76|undefined reference to `curl_easy_setopt'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|79|undefined reference to `curl_easy_setopt'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|83|undefined reference to `curl_easy_perform'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|90|undefined reference to `curl_easy_strerror'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|107|undefined reference to `curl_easy_cleanup'|
/home/robb/.local/share/Steam/steamapps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Server.o)||In function `Leadwerks::Server::Remove(int)':|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|126|undefined reference to `curl_global_init'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|128|undefined reference to `curl_easy_init'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|131|undefined reference to `curl_easy_setopt'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|134|undefined reference to `curl_easy_setopt'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|135|undefined reference to `curl_easy_setopt'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|139|undefined reference to `curl_easy_setopt'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|142|undefined reference to `curl_easy_setopt'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|146|undefined reference to `curl_easy_perform'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|153|undefined reference to `curl_easy_strerror'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|170|undefined reference to `curl_easy_cleanup'|
/home/robb/.local/share/Steam/steamapps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Server.o)||In function `Leadwerks::Server::Refresh(int)':|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|184|undefined reference to `curl_global_init'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|186|undefined reference to `curl_easy_init'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|189|undefined reference to `curl_easy_setopt'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|192|undefined reference to `curl_easy_setopt'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|193|undefined reference to `curl_easy_setopt'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|197|undefined reference to `curl_easy_setopt'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|200|undefined reference to `curl_easy_setopt'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|204|undefined reference to `curl_easy_perform'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|210|undefined reference to `curl_easy_strerror'|
/home/josh/Leadwerks/Engine/Source/Classes/Server.cpp|227|undefined reference to `curl_easy_cleanup'|
||=== Build failed: 40 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|

SpEcIeS

Link to comment
Share on other sites

See this:

Code::Blocks

Add these include header search directories:

  • $(LeadwerksPath)/Include/Libraries/NewtonDynamics/packages/thirdParty/timeTracker

You also need the dev files for libcurl:

sudo apt-get install libcurl4-openssl-dev

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Already added the dev package, according the to the rem line. Added the include line, which was missing, however the same errors are still present.

 

Edit:

Here is the version of libcurl4-openssl-dev:

Package: libcurl4-openssl-dev
Priority: optional
Section: libdevel
Installed-Size: 1226
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Alessandro Ghedini <ghedo@debian.org>
Architecture: amd64
Source: curl
Version: 7.47.0-1ubuntu2
Provides: libcurl-dev, libcurl-ssl-dev, libcurl3-dev, libcurl3-openssl-dev, libcurl4-dev
Depends: libcurl3 (= 7.47.0-1ubuntu2)

SpEcIeS

Link to comment
Share on other sites

Oh, I think the curl lib has to be added to your C++ project.  If you open up the cbp project in a text editor it is easy to see where it gets added:

<Add library="libcurl" />

 

  • Upvote 1

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

  • Josh locked this topic
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...