Coder Social home page Coder Social logo

Comments (7)

janbender avatar janbender commented on June 20, 2024

The openmp errors should be fixed in the current version. The problem was a missing compiler flag in the debug build. However, I cannot reproduce the C++11 problem.

from splishsplash.

practisedaybyday avatar practisedaybyday commented on June 20, 2024

So,how to solve the openmp errors?

from splishsplash.

fredaas avatar fredaas commented on June 20, 2024

Okay, so the errors related to openmp are gone now, thanks! However, I still get the following error:

/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

I've tried setting the cmake environment variables to reflect the ISO C++ 2011 standard, but no luck. It should be noted that I don't have much experience with cmake, so it's possible I'm overlooking something trivial. I'm building the project using:

cmake CMakeLists.txt -DCMAKE_CXX_COMPILER="/usr/bin/g++" -DCMAKE_CXX_FLAGS="-std=c++11" -DCMAKE_CXX_STANDARD=11

from splishsplash.

janbender avatar janbender commented on June 20, 2024

This is strange since I set the C++11 standard in the common.cmake file:

set(CMAKE_CXX_STANDARD 11)

from splishsplash.

fredaas avatar fredaas commented on June 20, 2024

So, I' building from a new system now: Linux x86_64, 4.15.0-42-generic, Ubuntu 18.04.01, g++ 7.3.0.

ISO C++ problems appears to be gone, however the OpenMP errors are back:

SPlisHSPlasH/Utilities/PoissonDiskSampling.cpp:127:25: error: ‘omp_get_max_threads’ was not declared in this scope

I'm giving up on this now, maybe next year. Merry Christmas 🎄

from splishsplash.

janbender avatar janbender commented on June 20, 2024

Try to build it in release mode:

cmake -DCMAKE_BUILD_TYPE=Release

from splishsplash.

fredaas avatar fredaas commented on June 20, 2024

Building with cmake -DCMAKE_BUILD_TYPE=Release works. Thanks for helping! Can't wait to play with this during Christmas holidays 😃

Closing...

from splishsplash.

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.