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.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.
love-0.5.0 failed to compile
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- 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?
-
- 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.
So I added string.h to love_opengl.cpp but it still fails to compile.
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
Best wishes,
Cybermonkey342
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
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=voidCybermonkey342 wrote:So I added string.h to love_opengl.cpp but it still fails to compile.
-
- 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
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.
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!
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
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
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 226 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
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
This might have tipped you off as well on the apparent absence of boost: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
The log file complained about that 18(!) times.log.txt wrote:‘boost’ has not been declared
Help us help you: attach a .love.
- 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: Bing [Bot], Google [Bot] and 1 guest