2014-02-13 13:18 GMT-07:00 Hossein Motevaselian <[email protected]>: > By running the $ grep Boost_PR.*LIBR tools/CMakeCache.txt I got the > following messages: > > Boost_PROGRAM_OPTIONS_LIBRARY:FILEPATH=/usr/local/boost/boost-1.51.0/lib/libboost_program_options.so > Boost_PROGRAM_OPTIONS_LIBRARY_DEBUG:FILEPATH=Boost_PROGRAM_OPTIONS_LIBRARY_DEBUG-NOTFOUND > Boost_PROGRAM_OPTIONS_LIBRARY_RELEASE:FILEPATH=/usr/lib64/libboost_program_options-mt.so > //ADVANCED property for variable: Boost_PROGRAM_OPTIONS_LIBRARY > Boost_PROGRAM_OPTIONS_LIBRARY-ADVANCED:INTERNAL=1 > //ADVANCED property for variable: Boost_PROGRAM_OPTIONS_LIBRARY_DEBUG > Boost_PROGRAM_OPTIONS_LIBRARY_DEBUG-ADVANCED:INTERNAL=1 > //ADVANCED property for variable: Boost_PROGRAM_OPTIONS_LIBRARY_RELEASE > Boost_PROGRAM_OPTIONS_LIBRARY_RELEASE-ADVANCED:INTERNAL=1 > > I also tried the following as you suggested: > ./build.sh --prefix ${prefix} > -DBoost_INCLUDE_DIR=/usr/local/boost/boost-1.51.0/include/ > -DBoost_PROGRAM_OPTIONS_LIBRARY=/usr/local/boost/boost-1.51.0/lib/libboost_program_options.so > --dev tools csg > > The error is : > ../libtools/libvotca_tools.so.3: undefined reference to > `boost::system::system_category()' > ../libtools/libvotca_tools.so.3: undefined reference to > `boost::system::generic_category()' > ../libtools/libvotca_tools.so.3: undefined reference to > `boost::filesystem::path::operator/=(boost::filesystem::path const&)' > collect2: ld returned 1 exit status > make[2]: *** [src/tools/votca_property] Error 1 > make[1]: *** [src/tools/CMakeFiles/votca_property.dir/all] Error 2 > make: *** [all] Error 2 Ok, that brings us closer! Try adding -DBoost_FILESYSTEM_LIBRARY=/usr/local/boost/boost-1.51.0/lib/libboost_filesystem.so
> > Regards, > Hossein > > > On Thursday, February 13, 2014 12:56:13 PM UTC-6, Christoph Junghans wrote: >> >> 2014-02-13 11:43 GMT-07:00 Hossein Motevaselian <[email protected]>: >> > As you said I ran the command you mentioned. The output was : -bash: >> > /usr/include/boost/boost-1.51.0/include: No such file or directory >> > So I changed the boost path to this one : >> > /usr/local/boost/boost-1.51.0/include/ which is a directiry for the >> > boost. >> > After running again the following command : ./build.sh --prefix >> > ${prefix} >> > gromacs -DBoost_INCLUDE_DIR=/usr/local/boost/boost-1.51.0/include/ --dev >> > tools csg >> > I got the following error >> > >> > >> > CMakeFiles/votca_property.dir/votca_property.cc.o: In function >> > >> > `_ZN5boost15program_options16validation_errorC2ENS1_6kind_tERKSsS4_i.clone.2': >> > votca_property.cc:(.text+0x11a): undefined reference to >> > >> > `boost::program_options::validation_error::get_template(boost::program_options::validation_error::kind_t)' >> > votca_property.cc:(.text+0x12e): undefined reference to >> > >> > `boost::program_options::error_with_option_name::error_with_option_name(std::basic_string<char, >> > std::char_traits<char>, std::allocator<char> > const&, >> > std::basic_string<char, std::char_traits<char>, std::allocator<char> > >> > const&, std::basic_string<char, std::char_traits<char>, >> > std::allocator<char> >> >> const&, int)' >> > CMakeFiles/votca_property.dir/votca_property.cc.o: In function >> > >> > `boost::program_options::error_with_option_name::~error_with_option_name()': >> > >> > votca_property.cc:(.text._ZN5boost15program_options22error_with_option_nameD2Ev[_ZN5boost15program_options22error_with_option_nameD5Ev]+0x19): >> > undefined reference to `vtable for >> > boost::program_options::error_with_option_name' >> > CMakeFiles/votca_property.dir/votca_property.cc.o: In function >> > >> > `boost::program_options::validation_error::validation_error(boost::program_options::validation_error >> > const&)': >> > >> > votca_property.cc:(.text._ZN5boost15program_options16validation_errorC2ERKS1_[_ZN5boost15program_options16validation_errorC5ERKS1_]+0x3a): >> > undefined reference to `vtable for >> > boost::program_options::error_with_option_name' >> > >> > CMakeFiles/votca_property.dir/votca_property.cc.o:(.rodata._ZTVN5boost15program_options16validation_errorE[vtable >> > for boost::program_options::validation_error]+0x20): undefined reference >> > to >> > `boost::program_options::error_with_option_name::what() const' >> > >> > CMakeFiles/votca_property.dir/votca_property.cc.o:(.rodata._ZTVN5boost15program_options16validation_errorE[vtable >> > for boost::program_options::validation_error]+0x30): undefined reference >> > to >> > >> > `boost::program_options::error_with_option_name::substitute_placeholders(std::basic_string<char, >> > std::char_traits<char>, std::allocator<char> > const&) const' >> > >> > CMakeFiles/votca_property.dir/votca_property.cc.o:(.rodata._ZTIN5boost15program_options16validation_errorE[typeinfo >> > for boost::program_options::validation_error]+0x10): undefined reference >> > to >> > `typeinfo for boost::program_options::error_with_option_name' >> > >> > CMakeFiles/votca_property.dir/votca_property.cc.o:(.rodata._ZTVN5boost16exception_detail19error_info_injectorINS_15program_options16validation_errorEEE[vtable >> > for >> > >> > boost::exception_detail::error_info_injector<boost::program_options::validation_error>]+0x20): >> > undefined reference to >> > `boost::program_options::error_with_option_name::what() const' >> > >> > CMakeFiles/votca_property.dir/votca_property.cc.o:(.rodata._ZTVN5boost16exception_detail19error_info_injectorINS_15program_options16validation_errorEEE[vtable >> > for >> > >> > boost::exception_detail::error_info_injector<boost::program_options::validation_error>]+0x30): >> > undefined reference to >> > >> > `boost::program_options::error_with_option_name::substitute_placeholders(std::basic_string<char, >> > std::char_traits<char>, std::allocator<char> > const&) const' >> > >> > CMakeFiles/votca_property.dir/votca_property.cc.o:(.rodata._ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options16validation_errorEEEEE[vtable >> > for >> > >> > boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::validation_error> >> >>]+0x28): undefined reference to >> > `boost::program_options::error_with_option_name::what() const' >> > >> > CMakeFiles/votca_property.dir/votca_property.cc.o:(.rodata._ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options16validation_errorEEEEE[vtable >> > for >> > >> > boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::validation_error> >> >>]+0x38): undefined reference to >> > >> > `boost::program_options::error_with_option_name::substitute_placeholders(std::basic_string<char, >> > std::char_traits<char>, std::allocator<char> > const&) const' >> > >> > CMakeFiles/votca_property.dir/votca_property.cc.o:(.rodata._ZTVN5boost16exception_detail19error_info_injectorINS_15program_options20invalid_option_valueEEE[vtable >> > for >> > >> > boost::exception_detail::error_info_injector<boost::program_options::invalid_option_value>]+0x20): >> > undefined reference to >> > `boost::program_options::error_with_option_name::what() const' >> > >> > CMakeFiles/votca_property.dir/votca_property.cc.o:(.rodata._ZTVN5boost16exception_detail19error_info_injectorINS_15program_options20invalid_option_valueEEE[vtable >> > for >> > >> > boost::exception_detail::error_info_injector<boost::program_options::invalid_option_value>]+0x30): >> > undefined reference to >> > >> > `boost::program_options::error_with_option_name::substitute_placeholders(std::basic_string<char, >> > std::char_traits<char>, std::allocator<char> > const&) const' >> > >> > CMakeFiles/votca_property.dir/votca_property.cc.o:(.rodata._ZTVN5boost15program_options20invalid_option_valueE[vtable >> > for boost::program_options::invalid_option_value]+0x20): undefined >> > reference >> > to `boost::program_options::error_with_option_name::what() const' >> > >> > CMakeFiles/votca_property.dir/votca_property.cc.o:(.rodata._ZTVN5boost15program_options20invalid_option_valueE[vtable >> > for boost::program_options::invalid_option_value]+0x30): undefined >> > reference >> > to >> > >> > `boost::program_options::error_with_option_name::substitute_placeholders(std::basic_string<char, >> > std::char_traits<char>, std::allocator<char> > const&) const' >> > >> > CMakeFiles/votca_property.dir/votca_property.cc.o:(.rodata._ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options20invalid_option_valueEEEEE[vtable >> > for >> > >> > boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::invalid_option_value> >> >>]+0x28): undefined reference to >> > `boost::program_options::error_with_option_name::what() const' >> > >> > CMakeFiles/votca_property.dir/votca_property.cc.o:(.rodata._ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options20invalid_option_valueEEEEE[vtable >> > for >> > >> > boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::invalid_option_value> >> >>]+0x38): undefined reference to >> > >> > `boost::program_options::error_with_option_name::substitute_placeholders(std::basic_string<char, >> > std::char_traits<char>, std::allocator<char> > const&) const' >> > ../libtools/libvotca_tools.so.3: undefined reference to >> > >> > `boost::program_options::options_description::options_description(std::basic_string<char, >> > std::char_traits<char>, std::allocator<char> > const&, unsigned int, >> > unsigned int)' >> > ../libtools/libvotca_tools.so.3: undefined reference to >> > `boost::system::system_category()' >> > ../libtools/libvotca_tools.so.3: undefined reference to >> > `boost::program_options::detail::cmdline::get_canonical_option_prefix()' >> > ../libtools/libvotca_tools.so.3: undefined reference to >> > `boost::system::generic_category()' >> > ../libtools/libvotca_tools.so.3: undefined reference to >> > `boost::filesystem::path::operator/=(boost::filesystem::path const&)' >> > ../libtools/libvotca_tools.so.3: undefined reference to >> > >> > `boost::program_options::options_description::options_description(unsigned >> > int, unsigned int)' >> > collect2: ld returned 1 exit status >> > make[2]: *** [src/tools/votca_property] Error 1 >> > make[1]: *** [src/tools/CMakeFiles/votca_property.dir/all] Error 2 >> > make: *** [all] Error 2 >> It seems like your libboost_program_options are not detected correctly. >> Can you check: >> $ grep Boost_PR.*LIBR tools/CMakeCache.txt >> >> Maybe you have to use the build option >> >> -DBoost_PROGRAM_OPTIONS_LIBRARY=/usr/local/boost/boost-1.51.0/lib/libboost_program_options.so >> >> Cheers, >> >> Christoph >> >> > >> > Best Regards, >> > Hossein >> > >> > >> > >> > On Wednesday, February 12, 2014 7:12:49 PM UTC-6, Christoph Junghans >> > wrote: >> >> >> >> 2014-02-12 17:49 GMT-07:00 Hossein Motevaselian <[email protected]>: >> >> > Dear VOTCA community, >> >> > I am trying to install VOTCA on our campus cluster using ./build.sh. >> >> > I >> >> > have >> >> > tried to install VOTCA before , but I did not get this error: >> >> > >> >> > CMake Error at CMakeModules/FindBoost.cmake:524 (FILE): >> >> > file Internal CMake error when trying to open file: >> >> > /usr/include/boost/boost-1.51.0/include/boost/version.hpp for >> >> > reading. >> >> > Call Stack (most recent call first): >> >> > CMakeLists.txt:64 (find_package) >> >> > >> >> > >> >> > CMake Error at CMakeModules/FindBoost.cmake:537 (MATH): >> >> > math cannot parse the expression: " / 100000": syntax error, >> >> > unexpected >> >> > exp_DIVIDE, expecting exp_OPENPARENT or exp_NUMBER (2) >> >> > Call Stack (most recent call first): >> >> > CMakeLists.txt:64 (find_package) >> >> > >> >> > >> >> > CMake Error at CMakeModules/FindBoost.cmake:538 (MATH): >> >> > math cannot parse the expression: " / 100 % 1000": syntax error, >> >> > unexpected >> >> > exp_DIVIDE, expecting exp_OPENPARENT or exp_NUMBER (2) >> >> > Call Stack (most recent call first): >> >> > CMakeLists.txt:64 (find_package) >> >> > >> >> > >> >> > CMake Error at CMakeModules/FindBoost.cmake:539 (MATH): >> >> > math cannot parse the expression: " % 100": syntax error, >> >> > unexpected >> >> > exp_MOD, expecting exp_OPENPARENT or exp_NUMBER (2) >> >> > Call Stack (most recent call first): >> >> > CMakeLists.txt:64 (find_package) >> >> > >> >> > >> >> > -- Boost version: .. >> >> > -- Found the following Boost libraries: >> >> > -- program_options >> >> > CMake Warning at CMakeModules/FindGROMACS.cmake:100 (message): >> >> > You are using /home/motevas2/application/VOTCA/lib/libgmx.so, but >> >> > GROMACS_PKG was libgmx_d. There seems to be a mismatch in >> >> > precision, >> >> > single vs double, no ending vs. _d. If this is not the case >> >> > ignore >> >> > this >> >> > warning otherwise enable set GROMACS_PKG correctly using >> >> > -DGROMACS_PKG_OVERWRITE=lib(gmx|gromacs)(_d). >> >> > Call Stack (most recent call first): >> >> > src/libcsg/CMakeLists.txt:12 (find_package) >> >> > >> >> > >> >> > -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) >> >> > -- Configuring incomplete, errors occurred! >> >> > >> >> > I have loaded the appropriate modules such as mercurial, git and >> >> > boost >> >> > libraries. >> >> > I am using the following commands line after getting ./build.sh >> >> > script : >> >> > ./build.sh --prefix ${prefix} gromacs --dev tools csg >> >> > I have also tried this , it did not work : ./build.sh --prefix >> >> > ${prefix} >> >> > gromacs -DBUILD_MANPAGES=off >> >> > -DBoost_INCLUDE_DIR=/usr/include/boost/boost-1.51.0/include --dev >> >> > tools >> >> > csg >> >> > >> >> > I would really appreciate it if you can help me with this. >> >> Can you post the output of: >> >> $ ls /usr/include/boost/boost-1.51.0/include >> >> and >> >> $ ls /usr/include/boost/boost-1.51.0/include/boost/ >> >> >> >> > >> >> > Thank you much >> >> > Hossein >> >> > >> >> > -- >> >> > You received this message because you are subscribed to the Google >> >> > Groups >> >> > "votca" group. >> >> > To unsubscribe from this group and stop receiving emails from it, >> >> > send >> >> > an >> >> > email to [email protected]. >> >> > To post to this group, send email to [email protected]. >> >> > Visit this group at http://groups.google.com/group/votca. >> >> > For more options, visit https://groups.google.com/groups/opt_out. >> >> >> >> >> >> >> >> -- >> >> Christoph Junghans >> >> Web: http://www.compphys.de >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups >> > "votca" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> > an >> > email to [email protected]. >> > To post to this group, send email to [email protected]. >> > Visit this group at http://groups.google.com/group/votca. >> > For more options, visit https://groups.google.com/groups/opt_out. >> >> >> >> -- >> Christoph Junghans >> Web: http://www.compphys.de > > -- > You received this message because you are subscribed to the Google Groups > "votca" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/votca. > For more options, visit https://groups.google.com/groups/opt_out. -- Christoph Junghans Web: http://www.compphys.de -- You received this message because you are subscribed to the Google Groups "votca" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/votca. For more options, visit https://groups.google.com/groups/opt_out.
