compiling the devel version on Linux

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
farvardin
Party member
Posts: 167
Joined: Sat Jun 28, 2008 6:46 pm

compiling the devel version on Linux

Post by farvardin »

Hello,

I'm trying to build the latest snapshot found in http://love2d.org/builds/ on my archlinux system.


The configure went fine, but when compiling it with make, I get:
: Entering directory `/tmp/love-20091011-ae1750d78436/src'
/.../
love.cpp:22:27: error: common/config.h: No such file or directory
love.cpp:23:28: error: common/version.h: No such file or directory
love.cpp:24:28: error: common/runtime.h: No such file or directory
love.cpp:25:31: error: common/MemoryData.h: No such file or directory
love.cpp:73: error: expected constructor, destructor, or type conversion before 'int'
It seems there is a pb with the inclusion. The files src/common/config.h does exist but the way it's declared is not correct. I don't have any problem compiling all sort of source on those computers (I've tried from several computers)


But the inclusion is working if I use " instead of < :

Code: Select all

#include "common/config.h"
#include "common/version.h"
#include "common/runtime.h"
#include "common/MemoryData.h"
I'm using gcc version 4.4.1

then, after correcting this, it stopped again at:
#include "audio/wrap_Audio.h"

it should be :

Code: Select all

#include "modules/audio/wrap_Audio.h"
#include "modules/event/sdl/wrap_Event.h"
#include "modules/filesystem/physfs/wrap_Filesystem.h"
#include "modules/graphics/opengl/wrap_Graphics.h"
#include "modules/image/wrap_Image.h"
#include "modules/joystick/sdl/wrap_Joystick.h"
#include "modules/keyboard/sdl/wrap_Keyboard.h"
#include "modules/mouse/sdl/wrap_Mouse.h"
#include "modules/physics/box2d/wrap_Physics.h"
#include "modules/sound/wrap_Sound.h"
#include "modules/timer/sdl/wrap_Timer.h"
then in audio.h, there are new errors:

Code: Select all

#include <common/Module.h>
#include "Source.h"

#include "Sound.h"

#include "Music.h"
it should be

Code: Select all

#include "common/Module.h"
#include "Source.h"

#include "Sound.h"

#include "Music.h"
etc.

since it's automatically generated from the configure, why are there so many errors?
User avatar
farvardin
Party member
Posts: 167
Joined: Sat Jun 28, 2008 6:46 pm

Re: compiling the devel version on Linux

Post by farvardin »

is everybody able to compile those snapshot on linux?
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: compiling the devel version on Linux

Post by bartbes »

I haven't built the sources found in love2d.org/builds, but I always compile every revision I come across, and if it doesn't compile I fix it, so..
Post Reply

Who is online

Users browsing this forum: No registered users and 106 guests