xmar / 360Transformations

68 stars 16 forks source link

Error: undefined reference to symbol 'inflateInit2_ #24

Closed ddrmorais closed 6 years ago

ddrmorais commented 6 years ago

Guys,

 Any ideas how to sort it out?
 Regards,

Dario

/usr/bin/ld: /usr/local/lib/libavformat.a(http.o): undefined reference to symbol 'inflateInit2_' //lib/x86_64-linux-gnu/libz.so.1: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status MainProject/CMakeFiles/trans.dir/build.make:455: recipe for target 'MainProject/trans' failed make[2]: [MainProject/trans] Error 1 CMakeFiles/Makefile2:140: recipe for target 'MainProject/CMakeFiles/trans.dir/all' failed make[1]: [MainProject/CMakeFiles/trans.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

ddrmorais commented 6 years ago

I am using Linux Mint to install this library and I tried 2 Linux Mint versions.

Problem:

Solution

Linux Mint 19.1

When I tried sudo apt-get install ffmpeg, version installed 3.4.2-2 and everything worked.

Conclusion:

Do not use the lastest version from website.
use apt-get install ffmpeg. However if an old-dated ffmpeg version is installed is this case. 
You need to change the Operational System.