Comments (3)
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.
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.
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)
- Unable to build ImGui example using Vcpkg out of the box HOT 6
- Dragging and Dropping Example?
- WebXR Fails to Load HOT 6
- Audio Example not working HOT 2
- Any gizmos Demo?
- ViewerExample: Generate mesh normals logic is backwards HOT 1
- Text example doesn't render any text on iOS Safari HOT 5
- Undefined variabls HOT 3
- ImGui Rendering State Features HOT 3
- Fix HDPI problem for WebGL examples HOT 1
- Creating my own glb HOT 2
- MeshData.h include no longer valid? HOT 4
- [arch] Dart example configuration fail HOT 2
- EmscriptenApplication.js:35:2:WebXR unsupported in this browser HOT 4
- <box2d/box2d.h> case-sensitive issue HOT 2
- _degf Error HOT 1
- Viewer example closes at startup... HOT 2
- Trouble loading plugins in Viewer demo HOT 5
- Linker errors building Bullet and ImGui examples HOT 5
- Clearly document the implications of deferred GL context creation HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magnum-examples.