-
Notifications
You must be signed in to change notification settings - Fork 36
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
Error when installing DynamO1.6 on workstation #44
Comments
Hi, Can you tell me which version of CentOS you have? Version 7 has up to date boost packages so this should just work, but version 6.5 and earlier has to use a local installation for compilation. I've only tested it on v6.5 and v7. If you have an earlier version I can try compiling it there too using a virtual machine. Can you also post the output of trying to build using the verbose make command (see below)? Marcus |
Hi Marcus, Thank you for your reply. The version of CentOS is 6.5. Gcc compiler is 4.4.7 but I use "scl enable devtoolset-1.1 bash" before installing. Here is the error information: SNIP Thank you! |
Hi, You have to make sure that cmake finds the local boost installation during its configuration, not the system one. To make absolutely sure, perform the following commands to remove your current build dir, force a reconfigure, and rebuild using a local boost install which has already been built.
I will add an additional check to DynamO to make sure that configuration with an out-of-date boost fails. |
I've reviewed the build process on CentOS, and the configuration checks already fail when the current system version of boost is installed (so there is no need to add the check). Can you still try a clean build, using the above commands, to see if it is an error brought about by an inconsistency in the build environment? |
The same error still exists. It seems that new boost_1_56_0 is not linked efficiently. |
On CentOS6.5 my link command is different:
This might be caused through me using an updated CMake as well from the stock version. I will try my fresh install image to see if this finds the error. |
I've tested compilation on a fresh install of CentOS, and it fails to compile as cmake 2.6 does not properly detect the setup of a local boost installation. I've backported the required FindBoost module from cmake 2.8 and stuck it in the source tree for DynamO. I'm currently performing a test compilation, if this succeeds, I'll upload a patch to fix your error later today. |
I've now uploaded the patch, this seems to fix the error on CentOS6.5 Please pull the patch using "git pull" and force a full rebuild by deleting your build-dir and restarting. I'm currently performing a full rebuild on all test systems, which you can watch here (http://my.cdash.org/index.php?project=DynamOMD). Provided these all build I'll mark this as solved and close the bug later today. If you're still having trouble, please just reopen it/comment again. |
Thank you for your help. I just installed DynamO successfully after updating the cmake to 2.8. |
Ah I'm glad, closing this issue as solved. |
Hi again, |
Thank you! |
BTW Do you have the plan to add ellipsoid or superball to DynamO? I think it is very interesting to study and also meaningful. |
Ellipsoids (and probably superballs) will eventually be added to DynamO but it will take some work. Donev and co-workers have already figured out how to implement them, but they're not straightforward as their overlap functions are not algebraic and need a minimisation step. The other obstacle is that the anisotropic parts of DynamO need cleaning up before I want to add more complexity to the code (see Issue #23). |
Donev only shared its hard-sphere codes, but not ellipsoid ones (precompiled executables). If you have related codes, I would like to be a helper to develop DynamO! |
Hi, can you start a new issue, and I'll tag it as a feature request to discuss how to implement this? |
I tried to install new DynamO on the workstation but encountered a problem following instructions for CentOS. Maybe something is wrong with the boost? Taking "Alternative Step 2:Compiling using a local boost installation" still didn't fix it. If anyone has an idea, please give me some advice. Thank you!
Scanning dependencies of target dynahist_rw
[ 81%] Building CXX object CMakeFiles/dynahist_rw.dir/src/dynamo/programs/dynahist_rw.cpp.o
Linking CXX executable dynahist_rw
CMakeFiles/dynahist_rw.dir/src/dynamo/programs/dynahist_rw.cpp.o: In function
main': dynahist_rw.cpp:(.text+0x2068): undefined reference to
boost::program_options::options_description::options_description(std::string const&, unsigned int, unsigned int)'CMakeFiles/dynahist_rw.dir/src/dynamo/programs/dynahist_rw.cpp.o: In function
__static_initialization_and_destruction_0(int, int)': dynahist_rw.cpp:(.text+0x335d): undefined reference to
boost::system::generic_category()'dynahist_rw.cpp:(.text+0x3369): undefined reference to
boost::system::generic_category()' dynahist_rw.cpp:(.text+0x3375): undefined reference to
boost::system::system_category()'Thank you for your time!
The text was updated successfully, but these errors were encountered: