dridri / libge

Fast and easy multiplatform game engine
9 stars 4 forks source link

Cant compile under Ubuntu 14.04 #1

Open ghost opened 9 years ago

ghost commented 9 years ago

/home/muresan/Downloads/libge-master/src/audio/linux/geaudio_mp3.c:22:17: fatal error: mad.h: No such file or directory

include

             ^

compilation terminated. make[2]: * [CMakeFiles/ge.dir/src/audio/linux/geaudio_mp3.c.o] Error 1 make[1]: * [CMakeFiles/ge.dir/all] Error 2 make: *\ [all] Error 2 15:23:00: The process "/usr/bin/make" exited with code 2. Error while building/deploying project Project (kit: Desktop) When executing step "Make"

dridri commented 9 years ago

It should work after an apt-get install libmad0-dev. (You also need all the *-dev packages of the 'Dependancies' list in the readme

ghost commented 9 years ago

Linking C shared library libge.so /usr/bin/ld: cannot find -llua_static collect2: error: ld returned 1 exit status make[2]: * [libge.so] Error 1 make[1]: * [CMakeFiles/ge.dir/all] Error 2 make: *\ [all] Error 2 15:43:38: The process "/usr/bin/make" exited with code 2. Error while building/deploying project Project (kit: Desktop) When executing step "Make"

dridri commented 9 years ago

Sorry for the late, commit 700f6776229eea9359b37d8ded45035ae1511ea1 should sove the issue.

ghost commented 9 years ago

/home/omx/Dev/libge/src/video/geshader.c: In function 'geShaderUse': /home/omx/Dev/libge/src/video/geshader.c:130:42: error: 'glUseProgram' undeclared (first use in this function) if(!libge_context->shaders_available || glUseProgram == 0)return 0; ^ /home/omx/Dev/libge/src/video/geshader.c:130:42: note: each undeclared identifier is reported only once for each function it appears in make[2]: * [CMakeFiles/ge.dir/src/video/geshader.c.o] Error 1 make[1]: * [CMakeFiles/ge.dir/all] Error 2 make: *\ [all] Error 2 15:58:44: The process "/usr/bin/make" exited with code 2. Error while building/deploying project Project (kit: Desktop Qt 5.4.2 GCC 64bit) When executing step "Make"

If I comment the function it successfully builds.

ghost commented 9 years ago

Also how should the samples be run ? I can see any cmake files for them.

dridri commented 9 years ago

After a few changes, It now should compile fine on every platforms (ie win32, linux, mac osx, android; except iOS, still working on it). Clean and up-to-date samples are comming