PDA

View Full Version : GL1 not building on Linux



bvanevery
03-13-2013, 08:19 PM
This is for ClanLib 2.3.6. autogen.sh and configure proceed fine. Most of the build works, but typical failures in GL1:


libtool: compile: g++ -DPACKAGE_NAME=\"ClanLib\" -DPACKAGE_TARNAME=\"clanlib\" -DPACKAGE_VERSION=\"2.3.6\" "-DPACKAGE_STRING=\"ClanLib 2.3.6\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"clanlib\" -DVERSION=\"2.3.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSTDC_HEADERS=1 -DHAVE_STDBOOL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_KD_H=1 -DHAVE_SYS_VT_H=1 -DHAVE_SYS_SYSCTL_H=1 -DHAVE_FSTAB_H=1 -DEXTERN___PROGNAME=1 -DHAVE_WCSCASECMP=1 -DHAVE_TLS=1 -DHAVE_LIBZ=1 -DHAVE_LINUX_JOYSTICK_H=1 -DHAVE_LINUX_INPUT_H=1 -DHAVE_X11_EXTENSIONS_XRENDER_H=1 -DHAVE_GLX_GETPROCADDRESSARB=1 -DHAVE_GLX_GETPROCADDRESSARB=1 -DHAVE_SYS_SOUNDCARD_H=1 -DHAVE_ALSA_ASOUNDLIB_H=1 -DUSE_GETADDR=1 -I. -g -O2 -std=c++0x -msse2 -I/usr/include/freetype2 -I../../Sources -MT libclan23GL1_la-gl1_frame_buffer_provider.lo -MD -MP -MF .deps/libclan23GL1_la-gl1_frame_buffer_provider.Tpo -c gl1_frame_buffer_provider.cpp -fPIC -DPIC -o .libs/libclan23GL1_la-gl1_frame_buffer_provider.o
In file included from ../../Sources/API/GL1/opengl1.h:36:0,
from ../../Sources/API/GL1/opengl1_wrap.h:34,
from gl1_frame_buffer_provider.cpp:35:
../../Sources/API/GL1/opengl1_defines.h:1327:2: error: expected identifier before numeric constant
../../Sources/API/GL1/opengl1_defines.h:1327:2: error: expected '}' before numeric constant
../../Sources/API/GL1/opengl1_defines.h:1327:2: error: expected unqualified-id before numeric constant
../../Sources/API/GL1/opengl1_defines.h:1533:1: error: expected declaration before '}' token
make[2]: *** [libclan23GL1_la-gl1_frame_buffer_provider.lo] Error 1
make[2]: Leaving directory `/home/bvanevery/devel/ClanLib-2.3.6/Sources/GL1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bvanevery/devel/ClanLib-2.3.6/Sources'
make: *** [all-recursive] Error 1
bvanevery@nomad:~/devel/ClanLib-2.3.6$

Judas
03-14-2013, 12:09 AM
Just tried building the SVN version of ClanLib 2.3 (svn://esoteric.clanlib.org/public/ClanLib/Development/ClanLib-2.3 - the upcoming 2.3.7) and it seems to build fine here.

If it also works for you we probably should release 2.3.7. :)

rombust
03-14-2013, 07:01 AM
Yeah, 2.3.7 probably should be released soon. (Looking at the bug fixes in svn)

The GL1 bug was fixed:


Index: opengl1_defines.h
================================================== =================
--- opengl1_defines.h (revision 8911)
+++ opengl1_defines.h (revision 8912)
@@ -1324,8 +1324,8 @@
// ARB_shader_objects:

GL_PROGRAM_OBJECT = 0x8B40,
- GL_TYPE = 0x8B4E,
- GL_SUBTYPE = 0x8B4F,
+ //GL_TYPE = 0x8B4E,
+ //GL_SUBTYPE = 0x8B4F,
#endif
#ifndef GL_DELETE_STATUS
GL_DELETE_STATUS = 0x8B80,

bvanevery
03-14-2013, 04:41 PM
Yes SVN builds cleanly!

Knasfan
04-11-2013, 09:22 AM
Can also add to that the svn version builds without problems since i had the same problem before downloading it. :prophet:

leggazoid
04-22-2013, 02:46 AM
This is for ClanLib 2.3.6. autogen.sh and configure proceed fine. Most of the build works, but typical failures in GL1:


Found patch for 2.3.6...

ClanLib-2.3.6-fix-opengl.patch


Index: ClanLib-2.3.6/Sources/API/GL1/opengl1_defines.h
================================================== =================
--- ClanLib-2.3.6.orig/Sources/API/GL1/opengl1_defines.h
+++ ClanLib-2.3.6/Sources/API/GL1/opengl1_defines.h
@@ -44,6 +44,11 @@
#ifndef CL_DISPLAYDEFINES_DEFINES
#define CL_DISPLAYDEFINES_DEFINES

+/* newer Mesa defines this and creates a conflict */
+#ifdef GL_TYPE
+#undef GL_TYPE
+#endif
+
#include <cstddef>

#ifndef __APPLE__