PDB-REDO/dssp

Unable to use MRC

Closed this issue · 1 comments

Hello everyone,

I am not able to use MRC while invoking cmake for DSSP installation:

cmake --cifpp_DIR=/home/peter/libcifpp/build/cifpp/ ..


-- Could NOT find Mrc (missing: MRC_EXECUTABLE) 
CMake Warning at CMakeLists.txt:128 (find_package):
  Found package configuration file:

    /home/peter/mrc/mrc-config.cmake

  but it set Mrc_FOUND to FALSE so package "Mrc" is considered to be NOT
  FOUND.


CMake Warning at CMakeLists.txt:133 (message):
  Not using resources since mrc was not found


-- Configuring done
-- Generating done
-- Build files have been written to: /home/peter/dssp/build

Could someone please highlight the issue here?

If I proceed without making any changes, I get the following errors in the next step:

cmake --build . --config Release


Scanning dependencies of target unit-test
[ 16%] Building CXX object CMakeFiles/unit-test.dir/test/unit-test.cpp.o
[ 33%] Building CXX object CMakeFiles/unit-test.dir/src/dssp.cpp.o
[ 50%] Linking CXX executable unit-test
/usr/bin/ld: CMakeFiles/unit-test.dir/src/dssp.cpp.o: in function `boost::date_time::month_formatter<boost::gregorian::greg_month, boost::date_time::iso_extended_format<char>, char>::format_month(boost::gregorian::greg_month const&, std::ostream&)':
dssp.cpp:(.text._ZN5boost9date_time15month_formatterINS_9gregorian10greg_monthENS0_19iso_extended_formatIcEEcE12format_monthERKS3_RSo[_ZN5boost9date_time15month_formatterINS_9gregorian10greg_monthENS0_19iso_extended_formatIcEEcE12format_monthERKS3_RSo]+0x4c): undefined reference to `boost::gregorian::greg_month::as_short_string() const'
/usr/bin/ld: dssp.cpp:(.text._ZN5boost9date_time15month_formatterINS_9gregorian10greg_monthENS0_19iso_extended_formatIcEEcE12format_monthERKS3_RSo[_ZN5boost9date_time15month_formatterINS_9gregorian10greg_monthENS0_19iso_extended_formatIcEEcE12format_monthERKS3_RSo]+0x6f): undefined reference to `boost::gregorian::greg_month::as_long_string() const'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/unit-test.dir/build.make:105: unit-test] Error 1
make[1]: *** [CMakeFiles/Makefile2:106: CMakeFiles/unit-test.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

Regards
Peter

Hi Peter,

DId you install mrc? It can be found at https://github.com/mhekkel/mrc.git

It is not strictly required, but makes the executable more portable.

The second issue is now fixed, you should checkout a fresh copy of the git repository and try again.

regards, -maarten