Git Product home page Git Product logo

Comments (3)

mosra avatar mosra commented on May 23, 2024

Hi,

thanks for the reports!

This particular error is, in fact, really related to static build. Are you sure you didn't link to static MagnumShaders library by accident? (For example because CMake found it sooner than the shared one -- look for MAGNUM_SHADERS_LIBRARY in CMakeCache.txt.) The original point with the example was to keep it as short as possible, but, yeah, that doesn't work with static build. The fix for static build is simple, just adding these three lines. I'll add these or find a way to avoid these inconveniences altogether.

Incidentally, I tested the OpenGEX importer on GCC 4.9 and 4.7 and it worked on both, so I expected it to work also on all versions in between. Guess I need to install 4.8 and test it also there, then :)

from magnum-examples.

unity-car-tutorials avatar unity-car-tutorials commented on May 23, 2024

Thanks. The demos compiled and worked when I deleted the caches and rebuilt all the projects, including the demos, with the STATIC_BUILD=OFF option. But I had to explicitly mention the libEGL library in the examples' CMake files because of undefined references to a specific EGL method.

Here is the type of errors I receive when building the OpenGEXImporter with 64-bit GCC 4.8.2 on Linux.

....../MagnumPlugins/OpenGexImporter/OpenDdl/parsers.cpp:328:52: error: redeclaration ‘Magnum::OpenDdl::Type Magnum::OpenDdl::Implementation::{anonymous}::typeFor() [with = unsigned char]’ differs in ‘constexpr’
#define _c(T) template<> constexpr Type typeFor() { return Type::T; }

I instead used Clang++ 3.4 to build the plug-ins.

from magnum-examples.

mosra avatar mosra commented on May 23, 2024

Okay, so:

  • examples with static builds should be working now, no more group 'MagnumShaders' was not found messages
  • EGL linking is now also done automatically
  • OpenGEX plugin (and everything else) now builds also on GCC 4.8 without errors and test failures

Note that you need to pull new changes also from Corrade to make the fixes compilable.

Thanks for all the reports!

from magnum-examples.

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.