Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build - Ubuntu 12.04.2 64bit #11

Closed
czardoz opened this issue Dec 10, 2013 · 12 comments
Closed

Unable to build - Ubuntu 12.04.2 64bit #11

czardoz opened this issue Dec 10, 2013 · 12 comments

Comments

@czardoz
Copy link

czardoz commented Dec 10, 2013

Here's the output of cmake .

[~/src/Craft] -> cmake .                                                    ±[master]
-- Using X11 for window creation
-- Using GLX for context creation
CMake Error at CMakeLists.txt:20 (find_package):
  Could not find module FindGLEW.cmake or a configuration file for package
  GLEW.

  Adjust CMAKE_MODULE_PATH to find FindGLEW.cmake or set GLEW_DIR to the
  directory containing a CMake configuration file for GLEW.  The file will
  have one of the following names:

    GLEWConfig.cmake
    glew-config.cmake
@rmack
Copy link

rmack commented Dec 10, 2013

I am having the same issue.
Ubuntu 12.04.3 LTS 64bit.

Note: After apt-get libglew-dev

sudo apt-get install libglew-dev
Note, selecting 'libglew1.6-dev' instead of 'libglew-dev'
libglew1.6-dev is already the newest version.

Note: Cmake on Ubuntu is not the latest version

cmake version 2.8.7 - Ubuntu
cmake version 2.8.12 - Current version

Thank you very much...

@Lilykos
Copy link

Lilykos commented Dec 10, 2013

Same issue here, Kubuntu 12.04. Thanks!

@czardoz
Copy link
Author

czardoz commented Dec 10, 2013

Installing the dependencies also broke my X server for some reason.
apt-get ended up removing xserver-xorg-lts-precise package (No idea if that was supposed to happen)

I fixed it by reinstalling it

sudo apt-get install xserver-xorg-lts-precise

@ghost
Copy link

ghost commented Dec 10, 2013

I'm having issues with this on Linux Mint 16 (based on Ubuntu 13.10). I installed the dependencies and then tried sudo apt-get build-dep glfw but I get the following error:

Unable to find a source package for glfw

@masterzu
Copy link

see #22 : GLEW is include in cmake from the 2.8.10 version.

@rmack
Copy link

rmack commented Dec 10, 2013

@masterzu, Thank you... I guess this means we will need to install a newer version of cmake for the time being. I will try it out and report back.

@rmack
Copy link

rmack commented Dec 10, 2013

Update: I am now able to compile. Instructions below.
Note: I had to install doxygen as well: sudo apt-get install doxygen

  1. Go to this link http://www.cmake.org/cmake/resources/software.html
  2. Download the latest version of cmake: http://www.cmake.org/files/v2.8/cmake-2.8.12.1.tar.gz
  3. gzip -d ~/Download/cmake-2.8.12.1.tar.gz
  4. tar xvf ~/Download/cmake-2.8.12.1.tar
  5. cd ~/Download/cmake-2.8.12.1
  6. cmake .
  7. make
  8. sudo su
  9. make install
  10. which cmake
  11. cmake -version # should be greater then 2.8.7
  12. cd
  13. cmake .
  14. make
  15. chmod 755 craft
  16. ./craft

@josefnpat
Copy link

If you don't want to overwrite your version of cmake, you can compile it just for Craft:

git clone https://github.com/fogleman/Craft.git && cd Craft
wget http://www.cmake.org/files/v2.8/cmake-2.8.12.1.tar.gz
tar xvf cmake-2.8.12.1.tar.gz
cd cmake-2.8.12.1
cmake . && make
cd ..
cmake-2.8.12.1/bin/cmake .
make
./craft

This works for Ubuntu 12.04 LTS 32 bit

@mwarning
Copy link

Debian 7.2 and cmake 2.8.9 - same issue. This fixed the problem for me:

wget http://raw.github.com/Kitware/CMake/master/Modules/FindGLEW.cmake
sudo cp FindGLEW.cmake /usr/share/cmake-2.8/Modules/

@masterzu
Copy link

@mwarning yes indeed.
But isn't it better to change the source then force ubuntu/debian users to change their system configuration ?

if yes, add FindGLEW.cmake in the source tree (I dont know how to do that, not a cmake wizard). if not, change CMakeLists.txt with cmake_minimum_required(VERSION 2.8.10)

@mwarning
Copy link

@masterzu true; this is just a convenient fix that I like to share

@fogleman fogleman closed this as completed Jan 2, 2014
@supreethkrishnarao
Copy link

@mwarning, the link you suggested ( http://raw.github.com/Kitware/CMake/master/Modules/FindGLEW.cmake) did not solve the issue for me.. I'm using Ubuntu 12.04 LTS.. That could be a reason..

Instead, the following link solved it-
http://jasonjuang.blogspot.com/2013/10/adding-findglewcmake-to-cmake-in-ubuntu.html

Alternatively, FindGLEW.cmake (exactly the same given in the above blog) can be found in the following link:
https://code.google.com/p/nvidia-texture-tools/source/browse/trunk/cmake/FindGLEW.cmake?r=96

Once you download the file, you just have to add it to your cmake as mwarning said-

  sudo cp FindGLEW.cmake /usr/share/cmake-2.8/Modules/

AlexPanacea pushed a commit to AlexPanacea/Craft that referenced this issue Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants