Comments (7)
I'd assume it's been that way for a very long time. I don't have a strong opinion one way or the other. Is this kind of thing covered by a LSB or FHS document, or merely broader convention?
from glew.
/usr is used by the distribution package manager and can clash with it.
Also Makefile.linux
seems to force lib/lib64 for x86_64 systems which isn't the proper place everywhere. In Debian (and derivatives) you'd want lib/x86_64-linux-gnu instead, otherwise pkg-config wont be able to use GLEW.
from glew.
Packages should default to /usr/local unless told otherwise, so as not to conflict with the distro-managed install in /usr.
Also as @ghost says, instead of assuming you know that the library path is $CMAKE_INSTALL_PREFIX/lib let the user override them. This is what https://cmake.org/cmake/help/v3.0/module/GNUInstallDirs.html is for.
from glew.
@mdriftmeyer @ghost @rossburton Could you guys try to debug the /usr
issue in your CMake builds? It should not really happen. CMAKE_INSTALL_PREFIX
defaults to /usr/local
in all CMake versions at least from 2.6 up. And glew's CMakeLists.txt does not mess with it. I've just tried it to be sure and it does install to /usr/local
(CMake 3.4.3, darwin15)
from glew.
An according hint should be added to the README.txt. Simply following the steps
make
sudo make install
seemed to overwrite the glew 1.10 library which shipped with Ubuntu and broke Unity in my case.
from glew.
Revisiting this for upcoming GLEW 2.2.0
from glew.
Just rediscovered this. The issue is in the Makefile, so CMake doing the right thing isn't relevant.
from glew.
Related Issues (20)
- Building library fails on cmake and Makefile HOT 3
- CMakeLists is illformed
- arm64 on mac HOT 18
- Suddenly can't build GLEW anymore HOT 5
- definition of GLsizeiptr is inconsistent with Khronos gl32.h on armel and armhf HOT 1
- cmake: Undefined reference to glx functions when build with non-standard prefix path
- Bug - Files not found
- Regression testing of GLEW HOT 5
- The problem encountered when compiling with CMake on Windows HOT 2
- Could not make glew in Mac intel. several unknown type name HOT 1
- Building with MinGW LLVM: "unknown argument: -nostdlib, -soname"
- OSMesa build error under Ubuntu 24.04 and OsMesa 24.0.5 HOT 2
- Compilation Error: HOT 1
- (Question) What backends does GLEW support? HOT 3
- 5!
- glew.c compilation failed HOT 6
- request a new release HOT 1
- glewInit() returning "Unknown Error" HOT 35
- CMake link by building from source generically. HOT 3
- glewInit() failed with OSMesa HOT 1
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 glew.