Results 1 to 3 of 3

Thread: Installing 2.0.1 (0.9) over 1.0.0 (0.8.1)

  1. #1
    Lesser Knight jmguy02's Avatar
    Join Date
    Apr 2009
    Location
    Georgia
    Posts
    43

    Default Installing 2.0.1 (0.9) over 1.0.0 (0.8.1)

    I have a nicely working installation of 0.8.1 right now running on Ubuntu 8.04. Do I have to uninstall 0.8.1 before installing 2.0.1 (0.9)? If so, where I can I find how to do this cleanly and reliably?

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

    Default

    I am not sure, as I have not tried it, but it should be okay:

    Assuming "--prefix=/usr" the installation directories are

    /usr/include/ClanLib-0.8 etc
    /usr/lib/pkgconfig/clanDisplay-0.8.pc etc
    /usr/share/doc/clanlib-2.0 etc

    For /usr/lib, things are not as simple:

    The include directory is as expected:
    pkg-config --cflags clanDisplay-2.0
    reports "-I/usr/include/ClanLib-2.0"

    For the linker,

    pkg-config --libs clanDisplay-2.0
    reports "-lclanDisplay -lpng -ljpeg -lfreetype -lz -lfontconfig -lXxf86vm -lX11 -lclanCore"

    Since /usr/lib contains:
    libclanDisplay-2.0.so.1
    libclanDisplay.a

    So, the static library is always the latest version installed
    And the dynamic library is set to the actual version required

    If you want to use both when static linking, you will need to perform the following steps:
    cd src/ClanLib-0.8; sudo make install; sudo cp /usr/lib/libclanDisplay.a /usr/lib/libclanDisplay_old.a
    Then sudo vi /usr/lib/pkgconfig/clanDisplay-0.8.pc
    And modify the line: "Libs: -L${libdir} -lclanDisplay"
    to "Libs: -L${libdir} -lclanDisplay_old"
    cd src/ClanLib-2.0; sudo make install

    The ClanLib library behavior is as expected. See http://www.yolinux.com/TUTORIALS/Lib...ndDynamic.html for more info

  3. #3
    Lesser Knight jmguy02's Avatar
    Join Date
    Apr 2009
    Location
    Georgia
    Posts
    43

    Default

    Excellent. Thanks for the help. I think I'm gonna play it super safe and just get another computer to install 2.0 on. I very afraid of breaking what I already have working.

Similar Threads

  1. installing clanlib on dev-c++
    By Daunt in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 03-03-2008, 11:08 PM
  2. Help ! Installing ClanLib ...
    By dzoni88 in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 10-29-2007, 06:01 AM
  3. Installing in VS2005
    By mojtaba in forum Official ClanLib SDK Forums
    Replies: 5
    Last Post: 10-26-2007, 02:50 PM
  4. Help Installing clanlib
    By dgilla in forum Official ClanLib SDK Forums
    Replies: 5
    Last Post: 01-03-2007, 07:29 PM
  5. Help! installing ClanLib
    By thfai2000 in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 12-21-2006, 09:28 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
  •