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
Before you make a thread asking for help, read this.
User avatar
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

Post by bartbes » Mon May 11, 2009 5:54 am

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

Post by Cybermonkey342 » Sun May 24, 2009 1:33 pm

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

Cybermonkey342

User avatar
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

Post by bartbes » Sun May 24, 2009 2:20 pm

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

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

Re: love-0.5.0 failed to compile

Post by Cybermonkey342 » Sun May 24, 2009 3:22 pm

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

User avatar
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

Post by bartbes » Sun May 24, 2009 4:16 pm

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

Post by medwards » Mon Jun 01, 2009 6:58 pm

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

Post by ghost333 » Tue Jun 02, 2009 5:38 pm

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
(24.17 KiB) Downloaded 147 times

User avatar
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

Post by bartbes » Tue Jun 02, 2009 5:47 pm

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

User avatar
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

Post by Robin » Tue Jun 02, 2009 8:17 pm

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.
Help us help you: attach a .love.

User avatar
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

Post by bartbes » Wed Jun 03, 2009 5:39 am

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

Post Reply

Who is online

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