Code Monkey home page Code Monkey logo

Comments (7)

nigels-com avatar nigels-com commented on September 28, 2024

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.

 avatar commented on September 28, 2024

/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.

rossburton avatar rossburton commented on September 28, 2024

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.

tamaskenez avatar tamaskenez commented on September 28, 2024

@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.

nlichtenberg avatar nlichtenberg commented on September 28, 2024

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.

nigels-com avatar nigels-com commented on September 28, 2024

Revisiting this for upcoming GLEW 2.2.0

from glew.

rossburton avatar rossburton commented on September 28, 2024

Just rediscovered this. The issue is in the Makefile, so CMake doing the right thing isn't relevant.

from glew.

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.