Open matthewpiatt opened 8 years ago
There is a problem with glfw3 installation. See #78. Simple fix is:
ln -s /usr/local/lib/cmake/glfw /usr/local/lib/cmake/glfw3
@rougier - thanks for responding. sorry, I quickly did a keyword search for my issue but didn't come across #78. (doh, must have only looked at "open" issues).
anyways, that command (and a few other attempts) doesn't work for me. I'm using Ubuntu 14.04. I have libglfw3 and libglfw3-dev installed, (both are 3.0.4-2~trusty)
$ ln -s /usr/local/lib/cmake/glfw /usr/local/lib/cmake/glfw3
ln: failed to create symbolic link ‘/usr/local/lib/cmake/glfw3’: No such file or directory
@rougier
Simple fix is: ln -s /usr/local/lib/cmake/glfw /usr/local/lib/cmake/glfw3
This applies only to Mac, when you have installed GLFW3 with homebrew.
@matthewpiatt
anyways, that command (and a few other attempts) doesn't work for me. I'm using Ubuntu 14.04. I have libglfw3 and libglfw3-dev installed, (both are 3.0.4-2~trusty)
The directories are somewhat different on Ubuntu. Check if my comment on the initial pull request fixes the problem for you. Don't forget to delete the CMakeCache beforehand to prevent cmake from taking old or wrong cache entries. Also you should file a bug in Ubuntu against the GLFW3 package so that they either fix it in the package or upstream (see glfw/glfw#483 and glfw/glfw#460 for more details).
Has this issue been fixed in the end ?
@rougier I'm also on Ubuntu (15.10).
Like the OP, I also have libglfw3-dev
installed.
The required files simply do not exist in any Ubuntu package:
apt-file search glfw3-config.cmake
apt-file search glfw3Config.cmake
Ah, think I've found a Debian packaging bug report that requests cmake files to be packaged: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812853
Also, if you clone https://github.com/glfw/glfw and build, glfw3Config.cmake
appears under build/src
(generated from https://github.com/glfw/glfw/blob/master/src/glfw3Config.cmake.in I suppose).
Arch properly packages them for example: https://www.archlinux.org/packages/community/x86_64/glfw/files/
So it's mostly a glfw issue I guess
Debian packaging bug it seems
Ah, and installing from source as in https://github.com/rougier/freetype-gl/blob/a4cfb9abac19a0ab62b625a9b6f856e032fe3732/.travis.yml#L16 works as well of course... had missed it, great work. Don't forget to apply the fix https://github.com/rougier/freetype-gl/blob/master/.travis.yml#L23
Thanks for all your effort ! Would you care writing the INSTALL.txt file since you've gone through all the problems ?
I am unable to build this project. cmake mentions something about not having a configuration file that is able to find glfw3. I have glfw3 installed, and am compiling/linking against it just fine in other contexts.
The error is below, along with the output log that it mentions.
CMakeOutput.log.txt