Page 2 of 2

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Posted: Tue Dec 21, 2010 2:21 am
by shenle
I have never actually tried to build vegastrike in cygwin, either with autotools or cmake. I could try it, but just the idea of adding yet another layer of dependencies and slowdowns... unappealing.

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Posted: Wed Dec 22, 2010 1:18 pm
by breese
klauss wrote:cmake has been running smothly for a while now. For a time, we supported both during the transition period (when cmake didn't work 100% right), but atm I've been working exclusively with cmake with absolutely no problem whatsoever.

So I'd support the removal of all autotools stuff.
While I generally agree with this move, it may be a bit premature just yet.

I had to install the following packages to get cmake to succeed:
  • libxmu-dev
  • libavcodec-dev
  • libavformat-dev
  • libavutil-dev
  • libswscale-dev
Why are they required by our cmake configuration but not by our autotools configuration? As they are not required by autotools, they are not required by our code base.

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Posted: Wed Dec 22, 2010 2:14 pm
by shenle
They're all part of ffmpeg. I think ffmpeg was added as a requirement in the cmakefiles.

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Posted: Wed Dec 22, 2010 2:41 pm
by klauss
Ya, but I remember making ffmpeg optional even in cmake.

Maybe I made a mistake somewhere in those scripts... but it should be optional.

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Posted: Wed Dec 22, 2010 3:56 pm
by breese
klauss wrote:Ya, but I remember making ffmpeg optional even in cmake.

Maybe I made a mistake somewhere in those scripts... but it should be optional.
You call find_package(FFMPEG) without the REQUIRED option, so it looks ok.

The problem is caused by FindFFMPEG.cmake (which is called by find_package(FFMPEG)). I do not know cmake very well, but I suspect that we have found a bug in it.

FindFFMPEG.cmake is looking for four libraries (libavcodec, libavformat, libavutil, and libswscale.) The first three must be found before FFMPEG is considered found. As we do not require FFMPEG, everything should be just fine. However, it seems that the missing FFMPEG libraries somehow causes the whole configuration process to fail.

I tried to remove the REQUIRED keywords from FindFFMPEG.cmake, and it worked just fine. That is unfortunately not the real fix to the problem.

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Posted: Sun Apr 10, 2011 4:00 pm
by strook
You need to execute cmake out of cygwin and then use /usr/include, instead of c:\cygwin\usr/include

For example.

Then execute eclipse from te cygwin command shell, too. It will find all paths and gcc.