Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

glew and glfw headers do not go both into /usr/local/include/GL as expected #13068

Closed
laurolins opened this issue Jun 28, 2012 · 5 comments
Closed

Comments

@laurolins
Copy link

After installing glew and glfw the directory /usr/local/include/GL is a symbolic
link to ../Cellar/glew/1.7.0/include/GL

llins@jupara:/usr/local/include$ ls -l | grep GL
lrwxr-xr-x   1 llins  admin    31 Jun 27 21:38 GL -> ../Cellar/glew/1.7.0/include/GL

And the glew headers are, as expected, in there:

llins@jupara:/usr/local/Cellar/glew/1.7.0/include/GL$ ls -l
total 1888
-rw-r--r--  1 llins  admin  837247 Jun 27 21:38 glew.h
-rw-r--r--  1 llins  admin   62741 Jun 27 21:38 glxew.h
-rw-r--r--  1 llins  admin   59403 Jun 27 21:38 wglew.h

The problem is that the glfw.h header in

llins@jupara:/usr/local/Cellar/glfw/2.7.5/include/GL$ ls -l
total 40
-rw-r--r--  1 llins  admin  19929 Jun 27 21:21 glfw.h

is not accessible by default when compiling programs, since
they only look at /usr/local/include/GL.

@adamv
Copy link
Contributor

adamv commented Jun 28, 2012

We may have to add include/GL to the list of folders that aren't "owned" by any one brew.

@jacknagel
Copy link
Contributor

Shouldn't it be mkpath'd when two things link into it?

@jacknagel
Copy link
Contributor

Without special casing, I mean.

@jacknagel
Copy link
Contributor

It works as advertised here:

$ ls -ld /usr/local/include/GL
ls: /usr/local/include/GL: No such file or directory
$ brew install glew glfw
[snip]
$ ls -l /usr/local/include/GL
total 32
lrwxr-xr-x  1 jacknagel  admin  41 Jun 28 00:13 glew.h -> ../../Cellar/glew/1.7.0/include/GL/glew.h
lrwxr-xr-x  1 jacknagel  admin  41 Jun 28 00:13 glfw.h -> ../../Cellar/glfw/2.7.5/include/GL/glfw.h
lrwxr-xr-x  1 jacknagel  admin  42 Jun 28 00:13 glxew.h -> ../../Cellar/glew/1.7.0/include/GL/glxew.h
lrwxr-xr-x  1 jacknagel  admin  42 Jun 28 00:13 wglew.h -> ../../Cellar/glew/1.7.0/include/GL/wglew.h
$ ls -ld /usr/local/include/GL
drwxr-xr-x  6 jacknagel  admin  204 Jun 28 00:13 /usr/local/include/GL

@laurolins
Copy link
Author

I tried again on my system and it is working as expected as jacknagel reported. I am not sure what happened before. My guess is that there was a permission problem on my /usr/local/* causing the problem: there were folders in my /usr/local/* from different users llins:admin and root:wheel and at some point brew doctor complained about permissions. I made everything on /usr/local/* to be owned by llins:admin. In the tests below I tried to install glew and glfw together and separate in different orders and it all worked fine. I will put a log below just to document my tests.

llins@jupara:/usr/local/include$ brew uninstall glfw glew
Uninstalling /usr/local/Cellar/glfw/2.7.5...
Uninstalling /usr/local/Cellar/glew/1.7.0...
llins@jupara:/usr/local/include$ ls GL
ls: GL: No such file or directory
llins@jupara:/usr/local/include$ brew install glfw glew
==> Downloading http://downloads.sourceforge.net/project/glfw/glfw/2.7.5/glfw-2.7.5.tar.bz2
Already downloaded: /Library/Caches/Homebrew/glfw-2.7.5.tar.bz2
==> make PREFIX=/usr/local/Cellar/glfw/2.7.5 cocoa-dist-install
/usr/local/Cellar/glfw/2.7.5: 6 files, 184K, built in 8 seconds
==> Downloading http://downloads.sourceforge.net/project/glew/glew/1.7.0/glew-1.7.0.tgz
Already downloaded: /Library/Caches/Homebrew/glew-1.7.0.tgz
==> make GLEW_DEST=/usr/local/Cellar/glew/1.7.0 all
==> make GLEW_DEST=/usr/local/Cellar/glew/1.7.0 install.all
/usr/local/Cellar/glew/1.7.0: 14 files, 3.5M, built in 47 seconds
llins@jupara:/usr/local/include$ ls GL
glew.h  glfw.h  glxew.h wglew.h
llins@jupara:/usr/local/include$ ls -l GL
total 32
lrwxr-xr-x  1 llins  admin  41 Jun 28 08:33 glew.h -> ../../Cellar/glew/1.7.0/include/GL/glew.h
lrwxr-xr-x  1 llins  admin  41 Jun 28 08:33 glfw.h -> ../../Cellar/glfw/2.7.5/include/GL/glfw.h
lrwxr-xr-x  1 llins  admin  42 Jun 28 08:33 glxew.h -> ../../Cellar/glew/1.7.0/include/GL/glxew.h
lrwxr-xr-x  1 llins  admin  42 Jun 28 08:33 wglew.h -> ../../Cellar/glew/1.7.0/include/GL/wglew.h
llins@jupara:/usr/local/include$ brew uninstall glew glfw
Uninstalling /usr/local/Cellar/glew/1.7.0...
Uninstalling /usr/local/Cellar/glfw/2.7.5...
llins@jupara:/usr/local/include$ brew install glfw
==> Downloading http://downloads.sourceforge.net/project/glfw/glfw/2.7.5/glfw-2.7.5.tar.bz2
Already downloaded: /Library/Caches/Homebrew/glfw-2.7.5.tar.bz2
==> make PREFIX=/usr/local/Cellar/glfw/2.7.5 cocoa-dist-install
/usr/local/Cellar/glfw/2.7.5: 6 files, 184K, built in 4 seconds
llins@jupara:/usr/local/include$ brew install glew
==> Downloading http://downloads.sourceforge.net/project/glew/glew/1.7.0/glew-1.7.0.tgz
Already downloaded: /Library/Caches/Homebrew/glew-1.7.0.tgz
==> make GLEW_DEST=/usr/local/Cellar/glew/1.7.0 all
==> make GLEW_DEST=/usr/local/Cellar/glew/1.7.0 install.all
/usr/local/Cellar/glew/1.7.0: 14 files, 3.5M, built in 46 seconds
llins@jupara:/usr/local/include$ ls GL
glew.h  glfw.h  glxew.h wglew.h
llins@jupara:/usr/local/include$ ls -l GL
total 32
lrwxr-xr-x  1 llins  admin  41 Jun 28 08:37 glew.h -> ../../Cellar/glew/1.7.0/include/GL/glew.h
lrwxr-xr-x  1 llins  admin  41 Jun 28 08:37 glfw.h -> ../../Cellar/glfw/2.7.5/include/GL/glfw.h
lrwxr-xr-x  1 llins  admin  42 Jun 28 08:37 glxew.h -> ../../Cellar/glew/1.7.0/include/GL/glxew.h
lrwxr-xr-x  1 llins  admin  42 Jun 28 08:37 wglew.h -> ../../Cellar/glew/1.7.0/include/GL/wglew.h
llins@jupara:/usr/local/include$ brew uninstall glew glfw
Uninstalling /usr/local/Cellar/glew/1.7.0...
Uninstalling /usr/local/Cellar/glfw/2.7.5...
llins@jupara:/usr/local/include$ brew install glew
==> Downloading http://downloads.sourceforge.net/project/glew/glew/1.7.0/glew-1.7.0.tgz
Already downloaded: /Library/Caches/Homebrew/glew-1.7.0.tgz
==> make GLEW_DEST=/usr/local/Cellar/glew/1.7.0 all
==> make GLEW_DEST=/usr/local/Cellar/glew/1.7.0 install.all
/usr/local/Cellar/glew/1.7.0: 14 files, 3.5M, built in 48 seconds
llins@jupara:/usr/local/include$ ls -l GL
lrwxr-xr-x  1 llins  admin  31 Jun 28 08:39 GL -> ../Cellar/glew/1.7.0/include/GL
llins@jupara:/usr/local/include$ brew install glfw
==> Downloading http://downloads.sourceforge.net/project/glfw/glfw/2.7.5/glfw-2.7.5.tar.bz2
Already downloaded: /Library/Caches/Homebrew/glfw-2.7.5.tar.bz2
==> make PREFIX=/usr/local/Cellar/glfw/2.7.5 cocoa-dist-install
/usr/local/Cellar/glfw/2.7.5: 6 files, 184K, built in 4 seconds
llins@jupara:/usr/local/include$ ls -l GL
total 32
lrwxr-xr-x  1 llins  admin  41 Jun 28 08:40 glew.h -> ../../Cellar/glew/1.7.0/include/GL/glew.h
lrwxr-xr-x  1 llins  admin  41 Jun 28 08:40 glfw.h -> ../../Cellar/glfw/2.7.5/include/GL/glfw.h
lrwxr-xr-x  1 llins  admin  42 Jun 28 08:40 glxew.h -> ../../Cellar/glew/1.7.0/include/GL/glxew.h
lrwxr-xr-x  1 llins  admin  42 Jun 28 08:40 wglew.h -> ../../Cellar/glew/1.7.0/include/GL/wglew.h
llins@jupara:/usr/local/include$ ls GL
glew.h  glfw.h  glxew.h wglew.h
llins@jupara:/usr/local/include$ brew uninstall glfw
Uninstalling /usr/local/Cellar/glfw/2.7.5...
llins@jupara:/usr/local/include$ ls -l GL
total 24
lrwxr-xr-x  1 llins  admin  41 Jun 28 08:40 glew.h -> ../../Cellar/glew/1.7.0/include/GL/glew.h
lrwxr-xr-x  1 llins  admin  42 Jun 28 08:40 glxew.h -> ../../Cellar/glew/1.7.0/include/GL/glxew.h
lrwxr-xr-x  1 llins  admin  42 Jun 28 08:40 wglew.h -> ../../Cellar/glew/1.7.0/include/GL/wglew.h
llins@jupara:/usr/local/include$ ls GL
glew.h  glxew.h wglew.h
llins@jupara:/usr/local/include$ lg -l | grep GL
-bash: lg: command not found
llins@jupara:/usr/local/include$ ls -l | grep GL
drwxr-xr-x   5 llins  admin   170 Jun 28 08:42 GL

@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants