-
Notifications
You must be signed in to change notification settings - Fork 10
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
Comments
If you can, using cmake (as described in README.md) might help with this. If not, or that is not possible, run
$ ldd binaries/armatus-linux-x64
and check the directory for libboost_iostreams.so.1.61.0 and make sure that file exists. If not, there might be something wrong with your boost install.
… On Jun 28, 2017, at 3:05 AM, Xiaotao Wang ***@***.***> wrote:
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?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#9>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFAPX0CvcrZXY9Dfe7DMtn0PfVxv-9onks5sIfsdgaJpZM4OHkco>.
|
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:
before to launch armatus |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I tried to compile armatus using G++::
No error occured during the compilation, just some warning information:
However, when I ran the exported binary file::
I got this error:
Do you have any suggestions?
The text was updated successfully, but these errors were encountered: