compilation error

Asked by Amiya Prakash Das

Hi

I was trying to compile the latest version of yade 2017.01a, and repeatedly i am getting this error:

Welcome to Yade 2017.01a
Traceback (most recent call last):
  File "./yade-2017.01a", line 129, in <module>
    import yade
  File "/home/amiya/yade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/__init__.py", line 65, in <module>
    import boot
ImportError: /home/amiya/yade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/qt/_GLViewer.so: undefined symbol: _ZN5boost7archive18basic_xml_oarchiveINS0_12xml_oarchiveEE13save_overrideERKNS0_14object_id_typeE

I have seen few question over this topic being asked earlier, but i was not able to follow the details of the solution. I have tried to update my boost libraries and recompiled the source code, but still the problem persists.

My boost version is 1.63 and i am using ubuntu 16.04.

Thanks
Amiya

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Anton Gladky (gladky-anton) said :
#1

Hi,

Ubuntu Xenial is shipped with Boost 1.58. If you are using another
Boost version, you should be sure that you are linking against correct
libraries.

Cheers

Anton

Revision history for this message
WANG Chao (cwangbh) said :
#2

Dear Anton,

I come across the same problem.
I am wondering how can I link to the right boost version? Do I need to modify the CMAKE file or reinstall the boost library. My existing boost library is 1.67 and the information is as follows:

 Boost_VERSION: 106700
-- Boost_LIB_VERSION: 1_67
-- Boost_INCLUDE_DIRS: /usr/local/include
-- Boost_LIBRARIES: /usr/lib/x86_64-linux-gnu/libboost_python.so/usr/lib/x86_64-linux-gnu/libboost_thread.so/usr/lib/x86_64-linux-gnu/libboost_filesystem.so/usr/lib/x86_64-linux-gnu/libboost_iostreams.so/usr/lib/x86_64-linux-gnu/libboost_regex.so/usr/lib/x86_64-linux-gnu/libboost_serialization.so/usr/lib/x86_64-linux-gnu/libboost_system.so/usr/lib/x86_64-linux-gnu/libboost_date_time.so/usr/lib/x86_64-linux-gnu/libpthread.so

Best Regards,
Chao

Can you help with this problem?

Provide an answer of your own, or ask Amiya Prakash Das for more information if necessary.

To post a message you must log in.