Giter Club home page Giter Club logo

Comments (7)

wjakob avatar wjakob commented on July 19, 2024

Hi,

I decided to make a different set of changes. Can you check if you can compile the latest version out of the box?

Thanks,
Wenzel

from nanogui.

phicore avatar phicore commented on July 19, 2024

Hi,

Your last changes have the benefit of creating the library and the both examples out of the box without tweaking the CMakelists.txt.

But unfortunately the executables are not working anymore:

image

During the link phase i saw something new about LTO items

image

Indeed if I comment out the line

  set_property(TARGET nanogui APPEND_STRING PROPERTY COMPILE_FLAGS "-flto ")

Everything is fine again. So the message is clear TDM-GCC unlike standard GCC doesn't like LTO.

Best regards

from nanogui.

phicore avatar phicore commented on July 19, 2024

I was able to suppress the linker warnings by applying what is included here :

http://stackoverflow.com/questions/32221221/mingw-x64-windows-plugin-needed-to-handle-lto-object

But the executables are still not working

So the only thing working for me currently is removing the -flto option altogether.

from nanogui.

wjakob avatar wjakob commented on July 19, 2024

ok, another attempt. I tried to add some code that tries to autodetect if -flto is supported in the first place.

Can you check if you're able to compile the latest nanogui out of the box?

from nanogui.

wjakob avatar wjakob commented on July 19, 2024

I committed this in cee7e03 -- please check that version.

from nanogui.

phicore avatar phicore commented on July 19, 2024

It works perfectly now out of the box.
Thanks for supporting a now even larger set of the platforms out there.

from nanogui.

wjakob avatar wjakob commented on July 19, 2024

Great, thanks. I am closing this ticket then.

from nanogui.

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.