Page 3 of 4

Re: love-0.5.0 failed to compile

Posted: Mon May 11, 2009 5:54 am
by bartbes
Well, let's get back on-topic, did adding string.h work?
farvardin wrote:I don't need to start a new thread called "love-0.5.0 failed to compile". This one is good enough to report new bugs related to evolutions of the upstread components.
Don't worry, I wasn't too serious, and I'm not going to flame you either, didn't know that comment was going to be discussed, was there to be discarded.

Re: love-0.5.0 failed to compile

Posted: Sun May 24, 2009 1:33 pm
by Cybermonkey342
Hi, I've got the same problem here with Ubuntu 9.04 Jaunty Jackalope.

Code: Select all

opengl/love_opengl.cpp: In function »void love_opengl::screenshot(const char*)«:
opengl/love_opengl.cpp:1602: Fehler: »ILvoid« wurde in diesem Gültigkeitsbereich nicht definiert
opengl/love_opengl.cpp:1602: Fehler: expected primary-expression before »)« token
So I added string.h to love_opengl.cpp but it still fails to compile. :brows:

Re: love-0.5.0 failed to compile

Posted: Sun May 24, 2009 2:20 pm
by bartbes
Cybermonkey342 wrote:So I added string.h to love_opengl.cpp but it still fails to compile. :brows:
string.h was for printf that was missing, to solve your problem, every instance of ILvoid needs to become void, the easiest way to do it is to modify your Makefile, find the lines which say CFLAGS= CPPFLAGS= and CXXFLAGS=, add the following to each of them: -DILvoid=void

Re: love-0.5.0 failed to compile

Posted: Sun May 24, 2009 3:22 pm
by Cybermonkey342
Hi, thanks now it compiles. But I had to add a <string.h> to the physfs/File.cpp. Why is that? On older Ubuntus up to 8.10 it compiled out of the box ... ???

Re: love-0.5.0 failed to compile

Posted: Sun May 24, 2009 4:16 pm
by bartbes
Our best guess is that it's an update in one of the libraries.

Re: love-0.5.0 failed to compile

Posted: Mon Jun 01, 2009 6:58 pm
by medwards
First off adding #include <cstring> worked flawlessly for me. Going to look into making an amd64 debian package if I like what I see.... anyways some other comments:

Unless this is a task being pushed for a 'stable' release then ./configure should do more reporting or there should be better documentation of library requirements before compilation. Specifically it complained about IL like top poster which I was totally confused about and had to track down as libdevil with similar problems for physfs. All of these were trivial to overcome, but doing your part to help alleviate dependency hell is nice.

Either way, things are compiled and I'm looking forward to trying it out!

Re: love-0.5.0 failed to compile

Posted: Tue Jun 02, 2009 5:38 pm
by ghost333
hi i am using mandriva and i cant compile.
required libraries are installed
but boost seems to have issues...

i cant post my code since it is a bit too much so i attached a file

Re: love-0.5.0 failed to compile

Posted: Tue Jun 02, 2009 5:47 pm
by bartbes
Well, it looks like you're missing a dev package of boost, or your headers are located elsewhere.
liblove/include/love/Module.h:21:32: error: boost/shared_ptr.hpp: No such file or directory

Re: love-0.5.0 failed to compile

Posted: Tue Jun 02, 2009 8:17 pm
by Robin
bartbes wrote:Well, it looks like you're missing a dev package of boost, or your headers are located elsewhere.
liblove/include/love/Module.h:21:32: error: boost/shared_ptr.hpp: No such file or directory
This might have tipped you off as well on the apparent absence of boost:
log.txt wrote:‘boost’ has not been declared
The log file complained about that 18(!) times.

Re: love-0.5.0 failed to compile

Posted: Wed Jun 03, 2009 5:39 am
by bartbes
That says nothing about the cause of boost not being defined, it is caused by the missing header. (details.. details...)