Executing the usual build procedure with
cmake [-DCMAKE_INSTALL_PREFIX=$PREFIX] ..
sudo make install
will install the libraries in $PREFIX/lib instead of $PREFIX/lib64 on a 64-bit system (Fedora 20 x86_64).
Building an executable with
g++ -c itpp_test.cpp
g++ -O -o itpp_test itpp_test.o -lm -litpp
will work, but execution will fail with the following error:
error while loading shared libraries: libitpp.so.8: cannot open shared object file: No such file or directory
Copying the libraries to $PREFIX/lib64 resolves the error and the executable can run. Alternatively, the executable can be run with
Both workarounds should not be necessary as the libraries should be installed in $PREFIX/lib64 on 64-bit systems.
Log in to post a comment.