Page 1 of 2 12 LastLast
Results 1 to 20 of 23

Thread: Trouble Seeing All Installed Libraries

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

    Default Trouble Seeing All Installed Libraries

    I've gone through and installed all the libraries including SDL onto my system and they appear in my /usr/local/lib location. When I run ./configure for ClanLib 0.8.1 I get a NO for clanGL, clanSDL, clanGUI, clanDisplay and clanMikmod. All other clan??? libraries have YES next to them so I know some are visible. What am I doing wrong?

    I also noted that when attempting to install Mikmod player it couldn't find libmikmod either. It's the latest version. I'm assuming this is a path issue but have no clue how to modify that without potentially screwing up my system.

    .....I see now where libjpeg is what is causing a lot of the missing pieces. I have no idea why it's not working. ./configure appears to work fine and make does it's job without issue. The only strange thing I noticed is make install isn't placing libjpeg "stuff" in the lib directory but into usr/local/bin. Does this make sense?
    Last edited by jmguy02; 04-02-2009 at 03:58 AM. Reason: Continued working on solution and found more information.

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

    Default

    Have a look at http://clanlib.org/docs/clanlib-0.9....linux-gcc.html ,it's 0.9 but it may contain libraries required for 0.8

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

    Default Lightbulb!

    rombust thanks for your help. I finally discovered how and why to use synaptic package manager. Instead of downloading all those libs and doing that manually I could have just run synaptic and picked the libs I needed. Particularly for the difficult ones to get going. So after installing jpeg, etc... using synaptic now clanlib finds all it needs and appears to build and install....haven't tested with example code yet but that's next.

    I do have one other question though. At the end of making clanlib there were a few errors dealing with video modes or variables...something about not in scope. Is this normal?

    Thanks again...

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

    Default problem compiling for clanlib installation test

    Okay, everything except clanGL shows to be installed. In testing an example file out to see if all if well my compiler is having trouble finding the api includes. Here is where my api are actually located:

    Documents/ClanLib-0.8.1/Sources/API

    so my #include looks like

    #include <ClanLib-0.8.1/Sources/API/core.h>

    the compiler can't find it. I've verified that it's there however. I'm missing something very simple but don't know what it is. Any suggestions?

    Ah, got it to work but have to specify this include

    #include </home/jkellar/Documents/ClanLib-0.8.1/Sources/API/core.h>

    I suppose it's in my tool settings on where to look for stuff.
    Last edited by jmguy02; 04-02-2009 at 01:29 PM. Reason: Tried more fix solutions

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

    Default

    I use ClanLib 0.9, but it should work on 0.8

    If using ubuntu:
    ./autogen.sh
    ./configure --prefix=/usr
    make
    sudo make install

    If required, use ./configure --prefix=/usr --enable-docs --enable-debug

    You may need to run "sudo ldconfig"

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

    Default

    okay, it's looking like i'm almost there. i'm using eclipse cdt now and from the INSTALL.LINUX file i've created a cpp project to test the ClanLib installation. So here's what I'm getting now:

    make all
    Building target: clanlibtry
    Invoking: GCC C++ Linker
    g++ pkg-config --libs clanCore-0.8 clanDisplay-0.8 clanApp-0.8 clanGL-0.8 -o"clanlibtry" ./src/clanlibtry.o
    g++: pkg-config: No such file or directory
    g++: clanCore-0.8: No such file or directory
    g++: clanDisplay-0.8: No such file or directory
    g++: clanApp-0.8: No such file or directory
    g++: clanGL-0.8: No such file or directory
    make: *** [clanlibtry] Error 1

    So it appears that it cannot find the libraries...

    i'd like to try your last suggested list of configs but run into a problem for running ./autogen.sh. where is located? when i shell to bash and type that in there is no such file. i'm assuming i'm just not in the right location.

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

    Default

    okay, i found it. it's all in the clanlib directory....

    i ran ./autogen.sh and had several errors based on: LIBTOOL was undefined

    then ran ./configure --prefix=/usr

    which did it's thing. then ran

    make

    which actually failed this time. appears to be from LIBTOOL not being defined.

    what did i do wrong? by the way, i'm installing clanlib v0.8, using antix 8 linux (debian base) and on a intel atom 1.1ghz processor.

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

    Default

    based on the following:

    make all
    Building target: clanlibtry
    Invoking: GCC C++ Linker
    g++ -Lusr/local/lib pkg-config --libs clanCore-0.8 clanDisplay-0.8 clanApp-0.8 clanGL-0.8 -o"clanlibtry" ./src/clanlibtry.o
    g++: pkg-config: No such file or directory
    g++: clanCore-0.8: No such file or directory
    g++: clanDisplay-0.8: No such file or directory
    g++: clanApp-0.8: No such file or directory
    g++: clanGL-0.8: No such file or directory
    make: *** [clanlibtry] Error 1

    should i be able to actually find these libraries in my usr/local/lib directory by name? because they are not written this way. for example there is no clanCore-0.8. there is libclanCore-0.8.so.1.0.0, libclanCore.a, libclanCore.la and libclanCore.so. pkg-config is the only real match but it can't be found by the compiler either so...?
    Last edited by jmguy02; 04-02-2009 at 05:33 PM. Reason: needed to clarify

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

    Default

    okay, i give. i'm lost and don't know how to make this work.

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

    Default

    Quote Originally Posted by jmguy02 View Post
    i ran ./autogen.sh and had several errors based on: LIBTOOL was undefined
    Strange! I assume libtool is installed

    You could try "LIBTOOL=/usr/bin/libtool" "export LIBTOOL"

    Quote Originally Posted by jmguy02 View Post
    then ran ./configure --prefix=/usr
    The --prefix=/usr is only required on some distros (it installs to /usr/lib and /usr/include instead of /usr/local/lib and /usr/local/include)

    If all else fails, you can try ClanLib 0.9 (SVN revision 2782 is known to work on linux)

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

    Default

    ah, okay.

    so i used synaptic to install all libtool requirements. the suggested make and installs worked after that.

    i'm using eclipse cdt and have basically added the libraries directly into the linker option under the -l option. and have added directory pkgconfig directly under the -L option. getting better build response.

    what i have now which appears to be common between make install and building a cpp project is that the directory ld doesn't exist under /usr/bin. at the end of make install i get an error that lXmu cannot be found in usr/bin/ld and when i build my project now -lclanGL-0.8 cannot be found in usr/bin/ld...see below...

    make all
    Building target: clanlibtry
    Invoking: GCC C++ Linker
    g++ -Lpkgconfig -o"clanlibtry" ./src/clanlibtry.o -lclanGL-0.8 -lclanApp-0.8 -lclanDisplay-0.8 -lclanCore-0.8
    /usr/bin/ld: cannot find -lclanGL-0.8
    collect2: ld returned 1 exit status
    make: *** [clanlibtry] Error 1

    what have i forgotten to install this time? when i ran configure for clanlib all requirements have YES next to them so i'm not missing clanGL.

    i appreciate all the help you've been giving, thanks.

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

    Default

    does anybody know where the ClanLib object files are located? I'm assuming this what I'm missing...like clanGL-0.8.o, clanApp-0.8.o, etc... I'm guessing that if I can find them I can place them manually where I need them to get my compiler to see them and include during project builds.

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

    Default

    Quote Originally Posted by jmguy02 View Post
    does anybody know where the ClanLib object files are located? I'm assuming this what I'm missing...like clanGL-0.8.o, clanApp-0.8.o, etc... I'm guessing that if I can find them I can place them manually where I need them to get my compiler to see them and include during project builds.
    There library files are in -
    /usr/local/lib or /usr/lib

    I assume you did a "sudo make install" to copy them to those directories?

    You can use the ".o" file, but there's hundreds of them!

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

    Default

    yeah, that's what i figured.

    i'm pretty sure i tried the sudo make install but will try again.

    installed subversion lastnight and tried it but no luck connecting. don't know svn at all. any suggested material to learn how to get ClanLib 0.9 using svn?

    thanks!

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

    Default

    I use Kdesvn as the linux subversion client.

    However, the version I use has a bug, that makes it counter-intuitive.

    The "checkout respository" menu option is not available when you have not got a respository open.

    The latest version of Kdesvn has fixed this bug.

    My workaround is to open the respository: svn://esoteric.clanlib.org/ClanLib/Development/ClanLib-0.9
    Then select checkout respository (I cannot remember where it's found, but it's subwhere in a sub menu)
    Then checkout svn://esoteric.clanlib.org/ClanLib/Development/ClanLib-0.9
    to /home/user/ClanLib-0.9

    Use SVN revision 2782 .. The later ones may need the makefile.am 's adjusting

    The next time you go into kdesvn, open /home/user/ClanLib-0.9

    Or download the latest version
    Last edited by rombust; 04-03-2009 at 09:18 PM.

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

    Default One last try before moving on to ClanLib 0.9

    Here's what I have in /usr/local/lib:

    libSDL-1.2.so.0
    libSDL-1.2.so.0.11.2
    libSDL.a
    libSDL.la
    libSDL.so
    libSDLmain.a
    libclanApp-0.8.so.1
    libclanApp-0.8.so.1.0.0
    libclanApp.a
    libclanApp.la
    libclanApp.so
    libclanCore-0.8.so.1
    libclanCore-0.8.so.1.0.0
    libclanCore.a
    libclanCore.la
    libclanCore.so
    libclanSignals-0.8.so.1
    libclanSignals-0.8.so.1.0.0
    libclanSignals.a
    libclanSignals.la
    libclanSignals.so
    libfontconfig.a
    libfontconfig.la
    libfontconfig.so
    libfontconfig.so.1
    libfontconfig.so.1.3.0
    libmikmod.a
    libmikmod.la
    libmikmod.so
    libmikmod.so.3
    libmikmod.so.3.0.0
    libogg.a
    libogg.la
    libogg.so
    libogg.so.0
    libogg.so.0.5.3
    libpng.a
    libpng.la
    libpng.so
    libpng.so.3
    libpng.so.3.35.0
    libpng12.a
    libpng12.la
    libpng12.so
    libpng12.so.0
    libpng12.so.0.35.0
    libvorbis.a
    libvorbis.la
    libvorbis.so
    libvorbis.so.0
    libvorbis.so.0.4.0
    libvorbisenc.a
    libvorbisenc.la
    libvorbisenc.so
    libvorbisenc.so.2
    libvorbisenc.so.2.0.3
    libvorbisfile.a
    libvorbisfile.la
    libvorbisfile.so
    libvorbisfile.so.3
    libvorbisfile.so.3.2.0
    libxml2.a
    libxml2.la
    libxml2.so
    libxml2.so.2
    libxml2.so.2.7.3
    libz.a
    pkgconfig
    python2.5
    xml2Conf.sh
    ROX-Lib2

    would that be everything?

    /usr/lib has everything that /usr/local/lib has in it too plus a ton of other files and directories. Are these all that should be in those folders for ClanLib. I'm trying to figure out now if I just don't have Eclipse setup correctly to see the libraries.

    Thought I'd better ask this last thing before moving onto ClanLib 0.9 just in case it's installed correctly now and don't realize it.

    By the way, here are my includes in my cpp file example copied from INSTALL.LINUX in ClanLib documentation.

    #include </home/jkellar/Documents/ClanLib-0.8.1/Sources/API/gl.h>
    #include </home/jkellar/Documents/ClanLib-0.8.1/Sources/API/core.h>
    #include </home/jkellar/Documents/ClanLib-0.8.1/Sources/API/application.h>
    #include </home/jkellar/Documents/ClanLib-0.8.1/Sources/API/display.h>

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

    Default

    I have never used eclipse, so I don't know what's wrong.

    I assume that you have tried compiling the examples:

    cd Examples
    cd Basic2d
    make
    ./basic2d

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

    Default

    Okay.

    Yeah, I'm trying to build the example code in INSTALL.LINUX from ClanLib. I was using an editor with compiler link called Geany at first which offered up that "undefined reference at main" then found that other post where placing that text in the linker flags in Eclipse solved the issue. I needed a good development tool anyway so installed Eclipse CDT. Geany just happen to come with this distro.

    So are the files in the usr/lib and usr/local/lib I listed all that should be there for ClanLib to work?

    Adding the single quotes didn't work. I don't know if I'm dealing with compiler setting problem or bad ClanLib install.

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

    Default Going to version 0.9

    Hi ROMBUST,

    I now have version 0.9 (figured out how to use SVN, btw here's a good reference on the command line usage http://svnbook.red-bean.com/).

    Before I install ClanLib 0.9 should I remove version 0.8? If so, how do I do this?

    Next question is what development tool do you use. I'm not glued to Eclipse. Maybe if I get it to work in one tool and I can figure out how to make it work in Eclipse later. I just really need to get this going.

    Thanks.

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

    Default

    Yeah, try to get basic2d to compile first.

    If basic2d compiles and runs (using make), then the problem is with the ide

    I don't use ide's. I use text editors, and make. ... Then again I prefer coding on Windows Visual Studio, then checking it works on linux afterwards.

    Once ClanLib compiles (0.8 or 0.9), both of the Basic2D examples should work.

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. Threading Libraries?
    By Chambers in forum Official ClanLib SDK Forums
    Replies: 5
    Last Post: 05-11-2007, 03:31 AM
  3. Trouble
    By FQ101 in forum Funeral Quest
    Replies: 1
    Last Post: 02-09-2007, 05:05 AM
  4. If you have installed  DMG beta 0.50 get 0.50b now
    By rmcnew in forum Funeral Quest
    Replies: 0
    Last Post: 01-18-2004, 09:31 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
  •