GithubHelp home page GithubHelp logo

Build error about fmo-cpp-demo HOT 3 CLOSED

rozumden avatar rozumden commented on June 2, 2024
Build error

from fmo-cpp-demo.

Comments (3)

rozumden avatar rozumden commented on June 2, 2024

Hi,

Thank you for your comment. The errors are due to some MacOS related C++ specifications. I've updated the code and it should run on MacOS now. Let me know if you have other issues.

from fmo-cpp-demo.

HANAND1979 avatar HANAND1979 commented on June 2, 2024

Hi,

Thank you for your quick revert on this issue. While running 'make' on the updated code (on same MacOS), this error is coming.

[ 89%] Building CXX object desktop/CMakeFiles/fmo-desktop.dir/loop-visualizer.cpp.o
/Users/fmo_build/fmo-cpp-demo/desktop/loop-visualizer.cpp:8:10: fatal error: 'boost/range/adaptor/reversed.hpp' file not found
#include <boost/range/adaptor/reversed.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [desktop/CMakeFiles/fmo-desktop.dir/loop-visualizer.cpp.o] Error 1
make[1]: *** [desktop/CMakeFiles/fmo-desktop.dir/all] Error 2
make: *** [all] Error 2

Note: I have boost installed - the installed version is boost: stable 1.72.0. Is it an issue with this?

from fmo-cpp-demo.

HANAND1979 avatar HANAND1979 commented on June 2, 2024

Hi,

The above issue got resolved. I added the below changes to CMakeLists.txt and the error got removed. [The reference can be found at https://stackoverflow.com/questions/24173330/cmake-is-not-able-to-find-boost-libraries]

SET (BOOST_ROOT "/usr/local/Cellar/boost/1.72.0_2")
SET (BOOST_INCLUDEDIR "/usr/local/Cellar/boost/1.72.0_2/include")
SET (BOOST_LIBRARYDIR "/usr/local/Cellar/boost/1.72.0_2/lib")

SET (BOOST_MIN_VERSION "1.72.0")
set (Boost_NO_BOOST_CMAKE ON)
FIND_PACKAGE(Boost ${BOOST_MIN_VERSION} REQUIRED)
if (NOT Boost_FOUND)
message(FATAL_ERROR "Fatal error: Boost (version >= 1.72) required.")
else()
message(STATUS "Setting up BOOST")
message(STATUS " Includes - ${Boost_INCLUDE_DIRS}")
message(STATUS " Library - ${Boost_LIBRARY_DIRS}")
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})
endif (NOT Boost_FOUND)

Thank you once again. Your work is fantastic !

from fmo-cpp-demo.

Related Issues (6)

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.