## love-0.5.0 failed to compile

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

### Re: love-0.5.0 failed to compile

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.

Cybermonkey342
Prole
Posts: 6
Joined: Fri Mar 06, 2009 2:49 pm

### Re: love-0.5.0 failed to compile

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.
Best wishes,

Cybermonkey342

bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

### Re: love-0.5.0 failed to compile

Cybermonkey342 wrote:So I added string.h to love_opengl.cpp but it still fails to compile.
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

Cybermonkey342
Prole
Posts: 6
Joined: Fri Mar 06, 2009 2:49 pm

### Re: love-0.5.0 failed to compile

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 ... ???
Best wishes,

Cybermonkey342

bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

### Re: love-0.5.0 failed to compile

Our best guess is that it's an update in one of the libraries.

medwards
Prole
Posts: 1
Joined: Mon Jun 01, 2009 6:39 pm

### Re: love-0.5.0 failed to compile

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!

ghost333
Prole
Posts: 2
Joined: Tue Jun 02, 2009 5:21 pm

### Re: love-0.5.0 failed to compile

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
Attachments
log.txt
log

bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

### Re: love-0.5.0 failed to compile

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

Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

### Re: love-0.5.0 failed to compile

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.

bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

### Re: love-0.5.0 failed to compile

That says nothing about the cause of boost not being defined, it is caused by the missing header. (details.. details...)

### Who is online

Users browsing this forum: Google [Bot] and 9 guests