Results 1 to 9 of 9

Thread: Problems with linux build

  1. #1
    ClanLib Developer
    Join Date
    Sep 2006
    Location
    Bergen, Norway
    Posts
    588

    Default Problems with linux build

    Ok, this is really unfamiliar area for me, but I'm been trying to compile ClanLib-2.0 SVN under some linux OS.

    I've noticed a few problems with the configure and compilation:

    - I don't have SDL installed, and when configure is trying to locate it, the entire configure script bums out and does not continue.

    - I don't have X11/extensions/xf86vmode.h installed, but this was not discovered by configure, so I got a compile error after a while.

    - Why is Configure / Setup\Tests\opengl.cpp testing for GLU? Afaik, we're not using that.

    - I don't have any GL stuff installed, so it didn't build clanGL (which is not needed by my server anyway). But the big problem here is that render_buffer.h and texture.h in clanDisplay includes some direct files from ClanGL!
    #include "../../GL/opengl_wrap.h"
    We should not have such a dependency in ClanDisplay, but I am not sure how we should solve it.

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

    Default

    - I don't have SDL installed, and when configure is trying to locate it, the entire configure script bums out and does not continue.
    Whoops! This should not happen. I did test it, but obviously not enough!

    Can you paste the section of log where this happens.

    - I don't have X11/extensions/xf86vmode.h installed, but this was not discovered by configure, so I got a compile error after a while.
    This is a known problem from a long time ago ( http://www.rtsoft.com/forums/showthread.php?t=1464 )

    Yes, configure should look for this.

    I am unsure at the moment if clanlib can be compiled without xf86vmode (with reduced functionality). This needs to be checked

    - Why is Configure / Setup\Tests\opengl.cpp testing for GLU? Afaik, we're not using that.
    It should not be there!

    - I don't have any GL stuff installed, so it didn't build clanGL (which is not needed by my server anyway). But the big problem here is that render_buffer.h and texture.h in clanDisplay includes some direct files from ClanGL!
    #include "../../GL/opengl_wrap.h"
    We should not have such a dependency in ClanDisplay, but I am not sure how we should solve it.
    Again, it should not be there! Hopefully, it should be as simple as removing the #include

  3. #3
    ClanLib Developer
    Join Date
    Sep 2006
    Location
    Bergen, Norway
    Posts
    588

    Default

    I'm afraid the last issue isn't as easy as it looks CL_Texture and others needs its own enum of texture formats instead of abusing the enums in OpenGL..

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

    Default

    - I don't have SDL installed, and when configure is trying to locate it, the entire configure script bums out and does not continue.
    Fixed

    - I don't have X11/extensions/xf86vmode.h installed, but this was not discovered by configure, so I got a compile error after a while.
    Fixed. Able to compile ClanDisplay with reduced functionality. Ideally, this should also be made an optional in the configure script. Maybe i'll look at it again later.

    - Why is Configure / Setup\Tests\opengl.cpp testing for GLU? Afaik, we're not using that.
    Fixed.

    - I don't have any GL stuff installed, so it didn't build clanGL (which is not needed by my server anyway). But the big problem here is that render_buffer.h and texture.h in clanDisplay includes some direct files from ClanGL!
    #include "../../GL/opengl_wrap.h"
    I have not looked at this.

    But a possible solution is:
    #ifdef HAVE_OPENGL_H
    #define cl_texture_define 12231
    ...
    #else
    #include "../../GL/opengl_wrap.h"
    #endif

  5. #5
    ClanLib Developer
    Join Date
    Sep 2006
    Location
    Bergen, Norway
    Posts
    588

    Default

    > But a possible solution is:
    > #ifdef HAVE_OPENGL_H
    > #define cl_texture_define 12231
    > ...
    > #else
    > #include "../../GL/opengl_wrap.h"
    > #endif

    Eh..no

    CL_Texture and others needs its own set of enums instead of using the enums from OpenGL.

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

    Default

    heh heh, I meant:

    #ifndef HAVE_OPENGL_H
    ...

  7. #7
    ClanLib Developer
    Join Date
    Sep 2006
    Location
    Bergen, Norway
    Posts
    588

    Default

    Now I get these errors after compiling my project and it tries to link using pkg-config. This used to work. I workaround it for now by manualling linking with -lXxf86vm but this really should be in pkg-config, right?

    /usr/local/lib/libclanDisplay.so: undefined reference to `XF86VidModeGetViewPort'
    /usr/local/lib/libclanDisplay.so: undefined reference to `XF86VidModeGetAllModeLines'
    /usr/local/lib/libclanDisplay.so: undefined reference to `XF86VidModeQueryExtension'
    /usr/local/lib/libclanDisplay.so: undefined reference to `XF86VidModeSwitchToMode'
    /usr/local/lib/libclanDisplay.so: undefined reference to `XF86VidModeSetViewPort'
    /usr/local/lib/libclanDisplay.so: undefined reference to `XF86VidModeGetModeLine'

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

    Default

    Humm
    I sounds like you did not re-run autogen.sh

    This builds ./configure from ./configure.ac

    (You may need a make clean as well)

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

    Default

    Fixed in SVN.

    It was missing the library.

    It is strange that it worked here!

Similar Threads

  1. Make problems on Linux (Ubuntu)
    By happybrowndog in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 12-11-2008, 08:12 AM
  2. Build System ?
    By zyklo in forum Official ClanLib SDK Forums
    Replies: 10
    Last Post: 09-22-2008, 02:00 PM
  3. OS X Leopard build problem
    By yogi183 in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 12-19-2007, 08:21 AM
  4. build clanLib on vc6.0 error
    By silekey in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 07-11-2007, 05:18 AM
  5. Can't build configure.dsw
    By Angew in forum Official ClanLib SDK Forums
    Replies: 5
    Last Post: 12-06-2006, 09:43 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
  •