Git Product home page Git Product logo

Comments (3)

Moomboh avatar Moomboh commented on August 14, 2024 2

Got it to compile on Apple M1 Max macOS 13.5.2.

First make sure you have all the other necessary dependencies installed:

brew install zlib bzip2 autoconf automake

Then install boost at version 1.76 with homebrew (1.83 did not work for me):

brew install [email protected]

Once installed export compiler flags for it to be able to find boost:

export LDFLAGS="-L/opt/homebrew/opt/[email protected]/lib"
export CPPFLAGS="-I/opt/homebrew/opt/[email protected]/include"

Also add compiler flags to ignore deprecated and unused variable warnings (needs to be set before ./configure, otherwise make will fail later):

export CPPFLAGS="$CPPFLAGS -Wno-deprecated -Wno-unused-but-set-variable"

Finally just follow the instructions but additionally pass the boost libdir to ./configure:

./autogen.sh
./configure --with-boost-libdir=/opt/homebrew/opt/[email protected]/lib 
make

Hope this might help some people!

from hssp.

tnozturk avatar tnozturk commented on August 14, 2024

Following everything suggested above, I'm getting the following errors:

In file included from src/dssp.cpp:11:
./src/mas.h:44:9: error: keyword is hidden by macro definition [-Werror,-Wkeyword-macro]
#define nullptr NULL
        ^
In file included from src/dssp.cpp:14:
In file included from ./src/structure.h:11:
In file included from ./src/primitives-3d.h:16:
In file included from /opt/homebrew/Cellar/boost/1.84.0//include/boost/math/quaternion.hpp:14:
/opt/homebrew/Cellar/boost/1.84.0//include/boost/math/tools/config.hpp:23:6: error: #warning is a C++2b extension [-Werror,-Wpedantic]
#    warning "The minimum language standard to use Boost.Math will be C++14 starting in July 2023 (Boost 1.82 release)"
     ^
/opt/homebrew/Cellar/boost/1.84.0//include/boost/math/tools/config.hpp:23:6: error: "The minimum language standard to use Boost.Math will be C++14 starting in July 2023 (Boost 1.82 release)" [-Werror,-W#warnings]
In file included from src/dssp.cpp:16:
/opt/homebrew/Cellar/boost/1.84.0//include/boost/bind.hpp:36:1: warning: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior. [-W#pragma-messages]
BOOST_PRAGMA_MESSAGE(
^
/opt/homebrew/Cellar/boost/1.84.0//include/boost/config/pragma_message.hpp:24:34: note: expanded from macro 'BOOST_PRAGMA_MESSAGE'
# define BOOST_PRAGMA_MESSAGE(x) _Pragma(BOOST_STRINGIZE(message(x)))
                                 ^

from hssp.

beavenah avatar beavenah commented on August 14, 2024

I was able to compile using @Moomboh 's suggestions. Just to note that I needed to add the extra option:

export CPPFLAGS="$CPPFLAGS -Wno-deprecated -Wno-unused-but-set-variable -Wno-enum-constexpr-conversion"

from hssp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.