LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   BALLView 1.4.2 Compile Error (https://www.linuxquestions.org/questions/linux-software-2/ballview-1-4-2-compile-error-4175500541/)

pople 04-04-2014 01:57 AM

BALLView 1.4.2 Compile Error
 
I have been trying to compile ballview 1.4.2. My system is Ubuntu 12.04 gcc 4.8.1 g++ 4.8.1 and I have been using the dependencies provided in the contrib tarball. Everything configures fine when I do make BALLView I get the following compile error.

Code:

Linking CXX shared library ../../../lib/VIEW.so
[ 98%] Built target VIEWmodule
[ 98%] Built target compile_translations
Linking CXX executable ../../../bin/BALLView
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::detail::gzip_footer::reset()'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::detail::gzip_header::process(char)'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::detail::gzip_header::reset()'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::detail::gzip_footer::process(char)'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::detail::zlib_base::before(char const*&, char const*, char*&, char*)'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::zlib_error::check(int)'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::zlib::default_compression'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::detail::zlib_base::do_init(boost::iostreams::zlib_params const&, bool, void* (*)(void*, unsigned int, unsigned int), void (*)(void*, void*), void*)'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::zlib::stream_end'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::detail::zlib_base::zlib_base()'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::detail::zlib_base::~zlib_base()'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::detail::zlib_base::after(char const*&, char*&, bool)'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::zlib::default_strategy'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::zlib::okay'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::detail::zlib_base::reset(bool, bool)'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::zlib::sync_flush'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::detail::zlib_base::xinflate(int)'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::zlib::deflated'
collect2: ld returned 1 exit status
make[2]: *** [bin/BALLView] Error 1
make[1]: *** [source/APPLICATIONS/BALLVIEW/CMakeFiles/BALLView.dir/all] Error 2
make: *** [all] Error 2

I think this is a problem with boost but I'm not sure how to solve it. Any thoughts?

John VV 04-05-2014 12:20 PM

seeing as ballview 1.4.2 is over a year old
and was released BEFORE the very very very NEW gcc 4.8 came out

install gcc4.3 or gcc 4.1
then use that version and see if it builds

the error is do to zlib not being defined for the linker

security changes in gcc 4 are responsible
this software needs to be fixed to build on gcc 4.8

you could try adding " -lz " to the make file for the linker

from
http://www.ballview.org/Downloads
did you already build and install these?
-- the required "Contrib" code
http://www.ballview.org/Downloads/in...b-1.4.2.tar.gz

pople 04-05-2014 12:32 PM

I tohught so to however I looked at the build.log file the contrib_build script created and the boost iostreams library was not being compiled. Turns out I was missing the libbz2-dev package that provided a header file boost needed. Long story short I reconfigured and was able to compile.


All times are GMT -5. The time now is 05:50 PM.