Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation problems #9

Open
XiaoTaoWang opened this issue Jun 28, 2017 · 2 comments
Open

Compilation problems #9

XiaoTaoWang opened this issue Jun 28, 2017 · 2 comments

Comments

@XiaoTaoWang
Copy link

Hi,

I tried to compile armatus using G++::

$ g++ -std=c++11 -w -L /public/home/xtwang/Tools/anaconda2/lib -I include/ -I /public/home/xtwang/Tools/anaconda2/include/ -O3 -o binaries/armatus-linux-x64 src/*.cpp -lboost_iostreams -lboost_program_options -lboost_system

No error occured during the compilation, just some warning information:

In file included from /public/home/xtwang/Tools/anaconda2/include/boost/iostreams/detail/is_dereferenceable.hpp:12:0,
                 from /public/home/xtwang/Tools/anaconda2/include/boost/iostreams/detail/resolve.hpp:26,
                 from /public/home/xtwang/Tools/anaconda2/include/boost/iostreams/detail/push.hpp:24,
                 from /public/home/xtwang/Tools/anaconda2/include/boost/iostreams/chain.hpp:29,
                 from /public/home/xtwang/Tools/anaconda2/include/boost/iostreams/filtering_streambuf.hpp:17,
                 from src/ArmatusUtil.cpp:13:
/public/home/xtwang/Tools/anaconda2/include/boost/type_traits/detail/bool_trait_def.hpp:18:79: note: #pragma message: NOTE: Use of this header (bool_trait_def.hpp) is deprecated
 # pragma message("NOTE: Use of this header (bool_trait_def.hpp) is deprecated")
                                                                               ^
In file included from /public/home/xtwang/Tools/anaconda2/include/boost/type_traits/detail/bool_trait_def.hpp:21:0,
                 from /public/home/xtwang/Tools/anaconda2/include/boost/iostreams/detail/is_dereferenceable.hpp:12,
                 from /public/home/xtwang/Tools/anaconda2/include/boost/iostreams/detail/resolve.hpp:26,
                 from /public/home/xtwang/Tools/anaconda2/include/boost/iostreams/detail/push.hpp:24,
                 from /public/home/xtwang/Tools/anaconda2/include/boost/iostreams/chain.hpp:29,
                 from /public/home/xtwang/Tools/anaconda2/include/boost/iostreams/filtering_streambuf.hpp:17,
                 from src/ArmatusUtil.cpp:13:
/public/home/xtwang/Tools/anaconda2/include/boost/type_traits/detail/template_arity_spec.hpp:13:84: note: #pragma message: NOTE: Use of this header (template_arity_spec.hpp) is deprecated
 # pragma message("NOTE: Use of this header (template_arity_spec.hpp) is deprecated")
                                                                                    ^
In file included from /public/home/xtwang/Tools/anaconda2/include/boost/iostreams/detail/is_dereferenceable.hpp:13:0,
                 from /public/home/xtwang/Tools/anaconda2/include/boost/iostreams/detail/resolve.hpp:26,
                 from /public/home/xtwang/Tools/anaconda2/include/boost/iostreams/detail/push.hpp:24,
                 from /public/home/xtwang/Tools/anaconda2/include/boost/iostreams/chain.hpp:29,
                 from /public/home/xtwang/Tools/anaconda2/include/boost/iostreams/filtering_streambuf.hpp:17,
                 from src/ArmatusUtil.cpp:13:
/public/home/xtwang/Tools/anaconda2/include/boost/type_traits/detail/template_arity_spec.hpp:13:84: note: #pragma message: NOTE: Use of this header (template_arity_spec.hpp) is deprecated
 # pragma message("NOTE: Use of this header (template_arity_spec.hpp) is deprecated")
                                                                                    ^
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libc.so when searching for -lc

However, when I ran the exported binary file::

$ binaries/armatus-linux-x64

I got this error:

binaries/armatus-linux-x64: error while loading shared libraries: libboost_iostreams.so.1.61.0: cannot open shared object file: No such file or directory

Do you have any suggestions?

@kingsfordgroup
Copy link
Owner

kingsfordgroup commented Jun 28, 2017 via email

@arnaudceol
Copy link

I'm also using conda and I had the same problem (even worse using cmake, as suggested on the README for macOS).

I fixed this by exporting the LD_LIBRARY_PATH variable:

export LD_LIBRARY_PATH=$CONDA_PREFIX/lib/

before to launch armatus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants