Results 1 to 6 of 6

Thread: GL1 not building on Linux

  1. #1

    Default GL1 not building on Linux

    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$

  2. #2
    ClanLib Developer
    Join Date
    Sep 2006
    Location
    Denmark
    Posts
    554

    Default

    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.

  3. #3
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Yeah, 2.3.7 probably should be released soon. (Looking at the bug fixes in svn)

    The GL1 bug was fixed:
    Code:
    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,

  4. #4

    Default

    Yes SVN builds cleanly!

  5. #5

    Default

    Can also add to that the svn version builds without problems since i had the same problem before downloading it.

  6. #6

    Default

    Quote Originally Posted by bvanevery View Post
    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__

Similar Threads

  1. Building RTBareBones on Linux and a small fix
    By Aki Koskinen in forum Proton SDK
    Replies: 17
    Last Post: 01-22-2012, 10:52 PM
  2. City Building
    By cousac in forum Novashell Game Creation System
    Replies: 0
    Last Post: 10-23-2009, 02:44 AM
  3. Building ClanLib 1.0
    By Starclopsofish in forum Novashell Game Creation System
    Replies: 4
    Last Post: 10-20-2009, 06:08 PM
  4. Building Novashell on Linux.
    By erikharrison in forum Novashell Game Creation System
    Replies: 2
    Last Post: 04-01-2009, 09:25 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •