Results 1 to 8 of 8

Thread: trouble compiling on archlinux

  1. #1
    Serf
    Join Date
    Jul 2007
    Posts
    4

    Default trouble compiling on archlinux

    hello,

    i have some trouble compiling clanlib on archlinux. maybe its not archlinux's fault, but the ati drivers, as it happens somewhere around opengl

    system info:
    archlinux/386
    gcc 4.2.0
    ati drivers 8.37.6

    tried with clanlib 0.8 and 0.9

    bails out at:

    g++ -DPACKAGE_NAME=\"ClanLib\" -DPACKAGE_TARNAME=\"clanlib\" -DPACKAGE_VERSION=\"0.9.0\" "-DPACKAGE_STRING=\"ClanLib 0.9.0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"clanlib\" -DVERSION=\"0.9.0\" -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 -DSTDC_HEADERS=1 -DHAVE_STDBOOL_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -DHAVE_TM_ZONE=1 -DHAVE_DIRENT_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_MBSTATE_T=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALARM=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SOCKET_H=1 -DSELECT_TYPE_ARG1=int "-DSELECT_TYPE_ARG234=(fd_set *)" "-DSELECT_TYPE_ARG5=(struct timeval *)" -DRETSIGTYPE=void -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_DECL_STRERROR_R=1 -DHAVE_STRERROR_R=1 -DSTRERROR_R_CHAR_P=1 -DHAVE_BZERO=1 -DHAVE_GETCWD=1 -DHAVE_GETHOSTBYADDR=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_LOCALTIME_R=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1 -DHAVE_MKDIR=1 -DHAVE_RMDIR=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_SQRT=1 -DHAVE_STRCASECMP=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOUL=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_KD_H=1 -DHAVE_SYS_VT_H=1 -DUSE_I386_ASSEMBLER=1 -DHAVE_FSTAB_H=1 -DHAVE_LIBZ=1 -DHAVE_GLX_GETPROCADDRESSARB=1 -DUSE_GETADDR=1 -I. -g -O2 -I/usr/include/freetype2 -I/usr/include/mysql -fPIC -march=i686 -pipe -I../../Sources -MT sprite_description.lo -MD -MP -MF .deps/sprite_description.Tpo -c sprite_description.cpp -fPIC -DPIC -o .libs/sprite_description.o
    In file included from ../../Sources/API/Display/texture.h:41,
    from ../../Sources/API/Display/sprite_description.h:39,
    from sprite_description.cpp:38:
    ../../Sources/API/Display/../GL/opengl_wrap.h:2577: error: '<anonymous>' has incomplete type
    ../../Sources/API/Display/../GL/opengl_wrap.h:2577: error: invalid use of 'CLvoid'
    make[2]: *** [sprite_description.lo] Error 1
    make[2]: Leaving directory `/home/god/src/ext/ClanLib-0.9/Sources/Display'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/god/src/ext/ClanLib-0.9/Sources'
    make: *** [all-recursive] Error 1

    thanx in advance

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

    Default

    Are you using ClanLib from the SVN ? See http://www.clanlib.org/development.html

  3. #3
    Serf
    Join Date
    Jul 2007
    Posts
    4

    Default

    0.9 was from svn (checked out right before my post), 0.8 was from the downloadable tar file, same error on both versions

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

    Default

    Line 2577 of opengl_wrap.h contains:
    typedef CLuint (CL_GLFUNC *ptr_glCreateProgramObjectARB)(CLvoid);

    Ensure glCreateProgramObjectARB exists as follows....

    grep CreateProgramObjectARB /usr/include/GL/*

    /usr/include/GL/glext.h:extern GLhandleARB APIENTRY glCreateProgramObjectARB (void);
    /usr/include/GL/gl_mangle.h:#define glCreateProgramObjectARB MANGLE(CreateProgramObjectARB)

  5. #5
    Serf
    Join Date
    Jul 2007
    Posts
    4

    Default

    hm, they are not there, just added them by hand, but it still didn't work

    where are they comming from? do they belong to a specific package, or should this be provided with the ati video drivers?

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

    Default

    They should be provided by the ATI video drivers.

    The top of my glext.h says: Copyright NVIDIA Corporation 2006

    Make sure that you are using the latest ATI driver
    Make sure that you do not have an "old" glext.h being included by mistake
    You "might" need libgl1-mesa-dev installed "A free implementation of the OpenGL API -- GLX development support files", but i may be wrong


    **** EDIT: I am now getting the same error, since updating gcc to V4.2.1 ***
    (Still investigating)
    Last edited by rombust; 07-17-2007 at 02:17 PM.

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

    Default

    Fixed in ClanLib 0.9 SVN.
    Also fixed (previously) in ClanLib 0.8 SVN

  8. #8
    Serf
    Join Date
    Jul 2007
    Posts
    4

    Default

    great, thanx

    so i used current svn version of 0.8, but there was a compile error again. i had to change in file richedit_paragraph.h two lines (line 83 + 84) that say:

    Item::Item(....

    to

    Item(....

    to get it compiled

Similar Threads

  1. Trouble with CL_SoundBuffer_Session
    By somar in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 06-30-2007, 01:30 PM
  2. having trouble compiling clanlib programs on a mac
    By mike in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 06-20-2007, 05:00 PM
  3. Install ClanLib in ArchLinux with KDE 3.5
    By Nikitto46 in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 05-02-2007, 10:42 AM
  4. Trouble
    By FQ101 in forum Funeral Quest
    Replies: 1
    Last Post: 02-09-2007, 05:05 AM
  5. anyone else having trouble getting
    By jimbobbucky in forum Funeral Quest
    Replies: 4
    Last Post: 07-16-2003, 04:41 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
  •