Title: ZLib Linking error · Issue #19 · fifengine/cpp-tutorials · GitHub
Open Graph Title: ZLib Linking error · Issue #19 · fifengine/cpp-tutorials
X Title: ZLib Linking error · Issue #19 · fifengine/cpp-tutorials
Description: Hi, I am currently trying to build the FIFEngine tutorial, but I am getting stuck at the following error: sromer@ubuntu:~/Development/cpp-tutorials/src/_build$ cmake .. -- The C compiler identification is GNU 5.4.0 -- The CXX compiler id...
Open Graph Description: Hi, I am currently trying to build the FIFEngine tutorial, but I am getting stuck at the following error: sromer@ubuntu:~/Development/cpp-tutorials/src/_build$ cmake .. -- The C compiler identifica...
X Description: Hi, I am currently trying to build the FIFEngine tutorial, but I am getting stuck at the following error: sromer@ubuntu:~/Development/cpp-tutorials/src/_build$ cmake .. -- The C compiler identifica...
Opengraph URL: https://github.com/fifengine/cpp-tutorials/issues/19
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ZLib Linking error","articleBody":"Hi,\n\nI am currently trying to build the FIFEngine tutorial, but I am getting stuck at the following error:\n\n```\nsromer@ubuntu:~/Development/cpp-tutorials/src/_build$ cmake ..\n-- The C compiler identification is GNU 5.4.0\n-- The CXX compiler identification is GNU 5.4.0\n-- Check for working C compiler: /usr/bin/cc\n-- Check for working C compiler: /usr/bin/cc -- works\n-- Detecting C compiler ABI info\n-- Detecting C compiler ABI info - done\n-- Detecting C compile features\n-- Detecting C compile features - done\n-- Check for working CXX compiler: /usr/bin/c++\n-- Check for working CXX compiler: /usr/bin/c++ -- works\n-- Detecting CXX compiler ABI info\n-- Detecting CXX compiler ABI info - done\n-- Detecting CXX compile features\n-- Detecting CXX compile features - done\n-- Set CMAKE_BUILD_TYPE to default 'Release'.\n\n== Building fife-cpp-tutorials using build type 'Release'.\n-- Source directory is '/home/sromer/Development/cpp-tutorials/src'.\n-- Build directory is '/home/sromer/Development/cpp-tutorials/src/_build'.\n-- Installation path is '/usr/local' (set -DCMAKE_INSTALL_PREFIX=\u003cpath\u003e to change).\n-- CXX Compiler Flags: ''.\n-- Dependencies folder: '/home/sromer/Development/cpp-tutorials/src/../dependencies'.\n\n-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so\n-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found\n-- Looking for gethostbyname\n-- Looking for gethostbyname - found\n-- Looking for connect\n-- Looking for connect - found\n-- Looking for remove\n-- Looking for remove - found\n-- Looking for shmat\n-- Looking for shmat - found\n-- Looking for IceConnectionNumber in ICE\n-- Looking for IceConnectionNumber in ICE - found\n-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so\n-- Found FIFE: /usr/local/lib/libfife.a (found version \"0.4.0\") \n-- Found the following FifeChan libraries:\n-- fifechan_opengl\n-- fifechan_sdl\n-- Found FIFECHAN: /usr/local/lib/libfifechan.so \n-- Boost version: 1.58.0\n-- Found the following Boost libraries:\n-- system\n-- filesystem\n-- regex\n-- Found VORBIS: /usr/lib/x86_64-linux-gnu/libvorbisfile.so \n-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version \"1.2.8\") \n-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version \"1.2.54\") \n-- Found OGG: /usr/lib/x86_64-linux-gnu/libogg.so \n\u003cFindSDL2.cmake\u003e\n-- Looking for pthread.h\n-- Looking for pthread.h - found\n-- Looking for pthread_create\n-- Looking for pthread_create - not found\n-- Looking for pthread_create in pthreads\n-- Looking for pthread_create in pthreads - not found\n-- Looking for pthread_create in pthread\n-- Looking for pthread_create in pthread - found\n-- Found Threads: TRUE \n\u003c/FindSDL2.cmake\u003e\n-- Found SDL2: /usr/lib/x86_64-linux-gnu/libSDL2main.a;/usr/lib/x86_64-linux-gnu/libSDL2.so;-lpthread \n-- Found SDL2_image: /usr/lib/x86_64-linux-gnu/libSDL2_image.so (found version \"2.0.1\") \n-- Found SDL2_ttf: /usr/lib/x86_64-linux-gnu/libSDL2_ttf.so (found version \"2.0.14\") \n-- Found OpenAL: /usr/lib/x86_64-linux-gnu/libopenal.so \n-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so \n-- Found TinyXML: /usr/lib/x86_64-linux-gnu/libtinyxml.so \n-- Configuring done\n-- Generating done\n-- Build files have been written to: /home/sromer/Development/cpp-tutorials/src/_build\nsromer@ubuntu:~/Development/cpp-tutorials/src/_build$ make\nScanning dependencies of target Tutorial1\n[ 14%] Building CXX object tutorial_1/CMakeFiles/Tutorial1.dir/MouseListener.cpp.o\n[ 28%] Building CXX object tutorial_1/CMakeFiles/Tutorial1.dir/ScreenScroller.cpp.o\n[ 42%] Building CXX object tutorial_1/CMakeFiles/Tutorial1.dir/Game.cpp.o\n[ 57%] Building CXX object tutorial_1/CMakeFiles/Tutorial1.dir/main.cpp.o\n[ 71%] Building CXX object tutorial_1/CMakeFiles/Tutorial1.dir/KeyListener.cpp.o\n[ 85%] Building CXX object tutorial_1/CMakeFiles/Tutorial1.dir/ViewController.cpp.o\n[100%] Linking CXX executable Tutorial1\n/usr/bin/ld: /usr/local/lib/libfife.a(zipsource.cpp.o): undefined reference to symbol 'inflateInit2_'\n/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libz.so: error adding symbols: DSO missing from command line\ncollect2: error: ld returned 1 exit status\ntutorial_1/CMakeFiles/Tutorial1.dir/build.make:268: recipe for target 'tutorial_1/Tutorial1' failed\nmake[2]: *** [tutorial_1/Tutorial1] Error 1\nCMakeFiles/Makefile2:85: recipe for target 'tutorial_1/CMakeFiles/Tutorial1.dir/all' failed\nmake[1]: *** [tutorial_1/CMakeFiles/Tutorial1.dir/all] Error 2\nMakefile:127: recipe for target 'all' failed\nmake: *** [all] Error 2\n```\n\nI figured libz.so might be missing from my system, but as you can see, CMake is able to find the libz library correctly: `Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version \"1.2.8\")`. I have checked if the library is indeed installed and can be found/accessed at the folder in which CMake locates libz and that is the case.\n\nI am running Ubuntu 16.04 LTS (x64).\n\nHopefully someone can help me out!\n","author":{"url":"https://github.com/sromer","@type":"Person","name":"sromer"},"datePublished":"2016-10-24T10:33:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/19/cpp-tutorials/issues/19"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5a0515fc-8830-56d9-57e8-153db1df12e4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF2A:31190F:42BB58B:5BB5E09:6977F83E |
| html-safe-nonce | 340646435cc72ed30cd1fc9608bb2117a6f64291756a7f1788ef20cd7736d518 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjJBOjMxMTkwRjo0MkJCNThCOjVCQjVFMDk6Njk3N0Y4M0UiLCJ2aXNpdG9yX2lkIjoiODM2MDQzNzQwNTc2NDI4NjUyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1ba998911cf9491550d53cd69ba0fd101fb61d363893474a8ce3824cd18250ce |
| hovercard-subject-tag | issue:184804613 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/fifengine/cpp-tutorials/19/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cb5fc6707f532220cef216d88b17bc6f1954a879675b3b0bcbf9ca216fcd1544/fifengine/cpp-tutorials/issues/19 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cb5fc6707f532220cef216d88b17bc6f1954a879675b3b0bcbf9ca216fcd1544/fifengine/cpp-tutorials/issues/19 |
| og:image:alt | Hi, I am currently trying to build the FIFEngine tutorial, but I am getting stuck at the following error: sromer@ubuntu:~/Development/cpp-tutorials/src/_build$ cmake .. -- The C compiler identifica... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sromer |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9306bf4a8c8a88a5945f83e25033fc5e6fb7a05f40c5fca300ac67db7fee56ae |
| turbo-cache-control | no-preview |
| go-import | github.com/fifengine/cpp-tutorials git https://github.com/fifengine/cpp-tutorials.git |
| octolytics-dimension-user_id | 3652510 |
| octolytics-dimension-user_login | fifengine |
| octolytics-dimension-repository_id | 8343577 |
| octolytics-dimension-repository_nwo | fifengine/cpp-tutorials |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 8343577 |
| octolytics-dimension-repository_network_root_nwo | fifengine/cpp-tutorials |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c586ac0f2edbf5b31f9ca03622220a4285e2def8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width