Building Ogre App on Debian, issues with zzlib

Problems building or running the engine, queries about how to use features etc.
Post Reply
pierrea
Gnoblar
Posts: 8
Joined: Fri May 13, 2016 3:11 pm

Building Ogre App on Debian, issues with zzlib

Post by pierrea »

Ogre Version:<e> :1.11.5:
Operating System: :Debian Strech:

I successfully built and installed Ogre 1.11.5 following the dedicated wiki.<br/>
When I try to make a new Ogre App to follow the basic tutorials, I have the following errors when compiling (using Qt Creator with makefiles):</r>
12:34:40: Running steps for project BasicTutorial1...
12:34:40: Starting: "/usr/bin/cmake" --build . --target all
[ 16%] Linking CXX executable 0_Bootstrap
/usr/bin/ld: warning: libzzip.so.13, needed by /usr/local/lib/libOgreMain.so.1.11.5, not found (try using -rpath or -rpath-link)
/usr/local/lib/libOgreMain.so.1.11.5: undefined reference to `zzip_file_close'
/usr/local/lib/libOgreMain.so.1.11.5: undefined reference to `zzip_error'
/usr/local/lib/libOgreMain.so.1.11.5: undefined reference to `zzip_file_read'
/usr/local/lib/libOgreMain.so.1.11.5: undefined reference to `zzip_strerror_of'
/usr/local/lib/libOgreMain.so.1.11.5: undefined reference to `zzip_dir_close'
/usr/local/lib/libOgreMain.so.1.11.5: undefined reference to `zzip_dirhandle'
/usr/local/lib/libOgreMain.so.1.11.5: undefined reference to `zzip_dir_read'
/usr/local/lib/libOgreMain.so.1.11.5: undefined reference to `zzip_tell'
/usr/local/lib/libOgreMain.so.1.11.5: undefined reference to `zzip_dir_open_ext_io'
/usr/local/lib/libOgreMain.so.1.11.5: undefined reference to `zzip_seek'
/usr/local/lib/libOgreMain.so.1.11.5: undefined reference to `zzip_dir_stat'
/usr/local/lib/libOgreMain.so.1.11.5: undefined reference to `zzip_file_open'
collect2: error: ld returned 1 exit status
make[2]: *** [0_Bootstrap] Error 1
make[1]: *** [CMakeFiles/0_Bootstrap.dir/all] Error 2
make: *** [all] Error 2
CMakeFiles/0_Bootstrap.dir/build.make:104: recipe for target '0_Bootstrap' failed
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/0_Bootstrap.dir/all' failed
Makefile:83: recipe for target 'all' failed
12:34:40: The process "/usr/bin/cmake" exited with code 2.
Error while building/deploying project BasicTutorial1 (kit: Desktop)
The kit Desktop has configuration issues which might be the root cause for this problem.
When executing step "Make"
12:34:40: Elapsed time: 00:00.
I am using the sources within Samples/Tutorials
I installed libzzip-0-13 and libzzip-dev. What am I missing?
pierrea
Gnoblar
Posts: 8
Joined: Fri May 13, 2016 3:11 pm

Re: Building Ogre App on Debian, issues with zzlib

Post by pierrea »

I have been able to compile by adding /usr/lib/x86_64-linux-gnu to QtCreator Path Variable and copying renaming /usr/lib/x86_64-linux-gnu/libzzip-0.so.13 into /usr/lib/x86_64-linux-gnu/libzzip.so.13. I don't think this is such a good practice.
If anyone has a better idea, please let me know.
paroj
OGRE Team Member
OGRE Team Member
Posts: 1994
Joined: Sun Mar 30, 2014 2:51 pm
x 1074
Contact:

Re: Building Ogre App on Debian, issues with zzlib

Post by paroj »

set OGRE_BUILD_DEPENDENCIES=OFF (and remove build dir)

https://ogrecave.github.io/ogre/api/lat ... -ogre.html
pierrea
Gnoblar
Posts: 8
Joined: Fri May 13, 2016 3:11 pm

Re: Building Ogre App on Debian, issues with zzlib

Post by pierrea »

Thank you for the answer. I had the same error without building the dependencies (or maybe I missed something in the documentation). To me, it really looks like zzip library does not create the proper sym upon installation on Debian (through apt-get).
Post Reply