Git Product home page Git Product logo

Comments (3)

m5imunovic avatar m5imunovic commented on August 29, 2024

The quickest way is to modify the lines 795, 818 and 1226 in
/home/bjohnston/git/repulsive-curves/deps/geometry-central/src/../deps/happly/happly.h, respectively, to catch reference instead of value, i.e.:
} catch (std::runtime_error& ...) {
Alternatively, use more recent version of happly where this is fixed.

from repulsive-curves.

BradyAJohnston avatar BradyAJohnston commented on August 29, 2024

Thanks for the advice, adjusting to the reference instead of values worked (had to catch a couple more errors later as well) but now when it gets to 100% it has one final error.

[100%] Linking CXX executable bin/rcurves_app
/home/linuxbrew/.linuxbrew/bin/ld: lib/libglad.a(glad.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/rcurves_app.dir/build.make:104: bin/rcurves_app] Error 1
make[1]: *** [CMakeFiles/Makefile2:322: CMakeFiles/rcurves_app.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

I have tried conducting the original cmake as follows:

cmake -DCMAKE_C_COMPILER=clang -D CMAKE_CXX_FLAGS="-fPIE" ..  

But I still get the same error. Would you have any more advice?

from repulsive-curves.

m5imunovic avatar m5imunovic commented on August 29, 2024

https://stackoverflow.com/questions/38296756/what-is-the-idiomatic-way-in-cmake-to-add-the-fpic-compiler-option
This topic explains how to set position independent code property either on the specific library or all targets. I tried adding the set(CMAKE_POSITION_INDEPENDENT_CODE ON) to top level CMakeLists.txt and it worked without errors. There is also mention about the command line option in the answers but haven't tried out that one.

from repulsive-curves.

Related Issues (9)

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.