Results 1 to 10 of 10

Thread: Building does _not_ work

  1. #1
    Squire
    Join Date
    Nov 2009
    Posts
    12

    Default Building does _not_ work

    Hi all,

    i'm copletely confused.

    I built 2.1 like it said in the install.linux (i mean typing 3 commands is quite easy) but it doesnt work.

    If I want to build the Basic2D thing, it says i have to set up the PKG_CONFIG_PATH correctly.

    I could built the command-line-tool, but it also didnt work, because the shared library could not be found?

    Am I doing anything wrong?

    Code:
    cd /ClanLib
    ./configure
    make
    sudo make install
    cd /Examples/Basic2D
    make
    Thanx

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

    Default

    If building on ubuntu, you need to use:

    ./configure --prefix=/usr

    See http://www.clanlib.org/docs/clanlib-...linux-gcc.html

    else it installs the libs in /usr/local

  3. #3
    Squire
    Join Date
    Nov 2009
    Posts
    12

    Default

    Thanks for fast answer. Compiling...

    Edit:
    Doesnt work :S

    Code:
    finn@tuxhome:~/Desktop/ClanLib-2.1.0$ cd '/home/finn/Desktop/Examples' 
    finn@tuxhome:~/Desktop/Examples$ cd Basic2D
    finn@tuxhome:~/Desktop/Examples/Basic2D$ make
    g++ `pkg-config --cflags clanApp-2.1 clanDisplay-2.1 clanCore-2.1 clanGL-2.1` -pthread -c basic2d.cpp -o basic2d.o
    Package clanGL-2.1 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `clanGL-2.1.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'clanGL-2.1' found
    basic2d.cpp:1:26: error: ClanLib/core.h: No such file or directory
    basic2d.cpp:2:33: error: ClanLib/application.h: No such file or directory
    basic2d.cpp:3:29: error: ClanLib/display.h: No such file or directory
    basic2d.cpp:26:24: error: ClanLib/gl.h: No such file or directory
    basic2d.cpp:33: error: expected unqualified-id before ‘<’ token
    basic2d.cpp:33: error: expected ‘)’ before ‘<’ token
    basic2d.cpp:33: error: expected ‘;’ before ‘<’ token
    basic2d.cpp:36: error: ISO C++ forbids declaration of ‘CL_InputEvent’ with no type
    basic2d.cpp:36: error: expected ‘,’ or ‘...’ before ‘&’ token
    basic2d.cpp:47: error: expected unqualified-id before ‘<’ token
    basic2d.cpp:47: error: expected ‘)’ before ‘<’ token
    basic2d.cpp:47: error: expected ‘;’ before ‘<’ token
    basic2d.cpp:76: error: expected ‘;’ before ‘}’ token
    basic2d.cpp:79: error: ‘CL_ClanApplication’ does not name a type
    basic2d.cpp:82: error: expected unqualified-id before ‘<’ token
    basic2d.cpp:82: error: expected ‘)’ before ‘<’ token
    basic2d.cpp:82: error: expected initializer before ‘<’ token
    make: *** [basic2d.o] Fehler 1
    finn@tuxhome:~/Desktop/Examples/Basic2D$
    kay, but the libs are there...

    Ok, i think, I know what the Problem is. The ClanGL-2.1.pc isnt there in Setup. Theres only a ClanGL-1.pc ...
    Last edited by kingfinn; 11-12-2009 at 09:26 PM.

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

    Default

    The "ClanGL-2.1.pc" is converted to the correct format by the automake stuff.

    Humm...

    Try:
    ./autogen.sh
    ./configure --prefix=/usr
    (Look at what components are being compiled ... clanApp, clanCore, clanDisplay, clanGL should all be there)

    make
    sudo make install

    Then, "pkg-config --cflags clanCore-2.1" should work



    Also what distro are you using?

  5. #5
    Squire
    Join Date
    Nov 2009
    Posts
    12

    Default

    as you already guess'ed I use Ubuntu 9.10 Karmic.
    Edit: unfortunately a Fail.

    Code:
    test -z "/usr/local/lib/pkgconfig" || mkdir -p -- "/usr/local/lib/pkgconfig"
     /usr/bin/install -c -m 644 'clanApp-2.1.pc' '/usr/local/lib/pkgconfig/clanApp-2.1.pc'
     /usr/bin/install -c -m 644 'clanCore-2.1.pc' '/usr/local/lib/pkgconfig/clanCore-2.1.pc'
     /usr/bin/install -c -m 644 'clanDisplay-2.1.pc' '/usr/local/lib/pkgconfig/clanDisplay-2.1.pc'
     /usr/bin/install -c -m 644 'clanSound-2.1.pc' '/usr/local/lib/pkgconfig/clanSound-2.1.pc'
     /usr/bin/install -c -m 644 'clanDatabase-2.1.pc' '/usr/local/lib/pkgconfig/clanDatabase-2.1.pc'
     /usr/bin/install -c -m 644 'clanSqlite-2.1.pc' '/usr/local/lib/pkgconfig/clanSqlite-2.1.pc'
     /usr/bin/install -c -m 644 'clanGUI-2.1.pc' '/usr/local/lib/pkgconfig/clanGUI-2.1.pc'
     /usr/bin/install -c -m 644 'clanGDI-2.1.pc' '/usr/local/lib/pkgconfig/clanGDI-2.1.pc'
     /usr/bin/install -c -m 644 'clanNetwork-2.1.pc' '/usr/local/lib/pkgconfig/clanNetwork-2.1.pc'
    make[2]: Verlasse Verzeichnis '/home/finn/Desktop/ClanLib-2.1.0/Setup/pkgconfig'
    could you post your ClanGL-2.1.pc ? Ahh, btw: It made a file this time but it was empty.
    Last edited by kingfinn; 11-13-2009 at 12:09 AM.

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

    Default

    I have just installed "Ubuntu 9.10 Karmic." (complete fresh install)

    And ClanLib compiles without any problems


    I see you have:

    test -z "/usr/local/lib/pkgconfig"

    that should be

    test -z "/usr/lib/pkgconfig"

    Either you have made a spelling mistake running ./configure or you need a "make clean"

    Try:
    ./configure --prefix=/usr
    make clean
    make
    sudo make install

  7. #7
    Squire
    Join Date
    Nov 2009
    Posts
    12

    Default

    It still doesn't work for me.
    I tried my other PC (also Karmic) which has a clean installation.

    Code:
    ./autogen.sh
    ./configure --prefix=/usr
    make
    sudo make install


    Oh yeah before I had to install zlib automake and libtool. Do I have to install more things?

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

    Default

    Everything listed in:

    http://www.clanlib.org/docs/clanlib-...linux-gcc.html

    (I am running 64 bit ubuntu)

    Are you sure "./configure --prefix=/usr" is enabling all the components? It says at the end.

    It sounds like nothing is enabled. Like it can't find zlib dev or something like that

  9. #9
    Squire
    Join Date
    Nov 2009
    Posts
    12

    Default

    ok, now it works
    I really didnt install all of the things.

    I made me a little install Script, because otherwise, it would have taken to long to type in that all:
    Code:
    #!/usr/bin/perl
    #Little install Script that installs
    #all the things you need for ClanLib
    #by kingfinn '09
    
    use strict;
    
    my @things_to_install = qw(
            automake
    	autoconf
    	autotools-dev
    	m4
    	libtool
    	libc6-dev
    	linux-libc-dev
    	g++
    	libstdc++6-4.1-dev
    	zlib1g
    	zlib1g-dev
    	libpng12-0
    	libpng12-dev
    	libjpeg62-dev
    	libfreetype6
    	libfreetype6-dev
    	libfontconfig1-dev
    	libxi-dev
    	libgl1-mesa-dev
    	libice-dev
    	libsm-dev
    	libx11-dev
    	libxau-dev
    	libxdmcp-dev
    	libxext-dev
    	libxt-dev
    	mesa-common-dev
    	x11proto-core-dev
    	x11proto-input-dev
    	x11proto-kb-dev
    	x11proto-xext-dev
    	xtrans-dev
    	libasound2-dev
            libmikmod2
    	libmikmod2-dev
    	libvorbis0a
    	libvorbis-dev
    	libogg-dev
    	libpcre3
    	libpcre3-dev);
    
    foreach (@things_to_install)
    {
    	system("sudo aptitude install $_");
    }
    Thank you man!

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

    Default

    thanks, that script will be very useful

    It took me ages earlier, finding each package one at a time and installing it.

    I'll add it to the next clanlib release.

Similar Threads

  1. City Building
    By cousac in forum Novashell Game Creation System
    Replies: 0
    Last Post: 10-23-2009, 02:44 AM
  2. Building ClanLib 1.0
    By Starclopsofish in forum Novashell Game Creation System
    Replies: 4
    Last Post: 10-20-2009, 06:08 PM
  3. Building Novashell on Linux.
    By erikharrison in forum Novashell Game Creation System
    Replies: 2
    Last Post: 04-01-2009, 09:25 AM
  4. some improvements for smoother building
    By grgro in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 11-13-2008, 09:49 AM
  5. Problem building ClanLib
    By jtaylor1126 in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 03-31-2007, 12:10 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
  •