Results 1 to 5 of 5

Thread: ClanLib 8.1 Code::Blocks

  1. #1

    Default ClanLib 8.1 Code::Blocks

    are there any step by step guides how to install clan lib 8.1 in code blocks, im currently runny ubuntu 8.04, any help would be appericated, i have clan lib installed through ubuntu but its an older version and im not sure how to update it, and when i try to complie an example from the clan lib tutorial i get errors, and im thinking its because im not using the latest libraries, so any help on this would be great.

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

    Default

    See thread http://www.rtsoft.com/forums/showthread.php?t=1731 and http://www.rtsoft.com/forums/showthread.php?t=2126

    It looks like Code::Blocks usage within clanlib still does not work.

  3. #3

    Default

    g++ -DPACKAGE_NAME=\"ClanLib\" -DPACKAGE_TARNAME=\"clanlib\" -DPACKAGE_VERSION=\"0.8.1\" "-DPACKAGE_STRING=\"ClanLib 0.8.1\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"clanlib\" -DVERSION=\"0.8.1\" -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 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_KD_H=1 -DHAVE_SYS_VT_H=1 -DHAVE_FSTAB_H=1 -DHAVE_LIBZ=1 -DHAVE_GLX_GETPROCADDRESSARB=1 -DUSE_GETADDR=1 -I. -I. -g -O2 -I../../Sources -MT soundoutput.lo -MD -MP -MF .deps/soundoutput.Tpo -c soundoutput.cpp -fPIC -DPIC -o .libs/soundoutput.o
    In file included from soundoutput.cpp:43:
    Unix/soundoutput_alsa.h:37:29: error: alsa/asoundlib.h: No such file or directory
    In file included from soundoutput.cpp:43:
    Unix/soundoutput_alsa.h:49: error: ISO C++ forbids declaration of 'snd_pcm_t' with no type
    Unix/soundoutput_alsa.h:49: error: expected ';' before '*' token
    Unix/soundoutput_alsa.h:50: error: 'snd_pcm_uframes_t' does not name a type
    Unix/soundoutput_alsa.h:51: error: 'snd_pcm_uframes_t' does not name a type
    soundoutput.cpp: In constructor 'CL_SoundOutput::CL_SoundOutput(const CL_SoundOutput_Description&)':
    soundoutput.cpp:73: error: 'class CL_SoundOutput_alsa' has no member named 'handle'
    make[2]: *** [soundoutput.lo] Error 1
    make[2]: Leaving directory `/home/nagates/Desktop/ClanLib-0.8.1/Sources/Sound'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/nagates/Desktop/ClanLib-0.8.1/Sources'
    make: *** [all-recursive] Error 1

    im trying to do sudo make and i get the following errors, and when ever i try to compile any of the test code i get errors, it dosent error on every line, some of the class objects are ok, which makes me think its not upgrading my older version of clan lib
    apparently ubuntu kinda sucks in this area, any help would be great..

  4. #4

    Default

    Quote Originally Posted by ngates87 View Post
    g++ -DPACKAGE_NAME=\"ClanLib\" -DPACKAGE_TARNAME=\"clanlib\" -DPACKAGE_VERSION=\"0.8.1\" "-DPACKAGE_STRING=\"ClanLib 0.8.1\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"clanlib\" -DVERSION=\"0.8.1\" -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 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_KD_H=1 -DHAVE_SYS_VT_H=1 -DHAVE_FSTAB_H=1 -DHAVE_LIBZ=1 -DHAVE_GLX_GETPROCADDRESSARB=1 -DUSE_GETADDR=1 -I. -I. -g -O2 -I../../Sources -MT soundoutput.lo -MD -MP -MF .deps/soundoutput.Tpo -c soundoutput.cpp -fPIC -DPIC -o .libs/soundoutput.o
    In file included from soundoutput.cpp:43:
    Unix/soundoutput_alsa.h:37:29: error: alsa/asoundlib.h: No such file or directory
    In file included from soundoutput.cpp:43:
    Unix/soundoutput_alsa.h:49: error: ISO C++ forbids declaration of 'snd_pcm_t' with no type
    Unix/soundoutput_alsa.h:49: error: expected ';' before '*' token
    Unix/soundoutput_alsa.h:50: error: 'snd_pcm_uframes_t' does not name a type
    Unix/soundoutput_alsa.h:51: error: 'snd_pcm_uframes_t' does not name a type
    soundoutput.cpp: In constructor 'CL_SoundOutput::CL_SoundOutput(const CL_SoundOutput_Description&)':
    soundoutput.cpp:73: error: 'class CL_SoundOutput_alsa' has no member named 'handle'
    make[2]: *** [soundoutput.lo] Error 1
    make[2]: Leaving directory `/home/nagates/Desktop/ClanLib-0.8.1/Sources/Sound'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/nagates/Desktop/ClanLib-0.8.1/Sources'
    make: *** [all-recursive] Error 1

    im trying to do sudo make and i get the following errors, and when ever i try to compile any of the test code i get errors, it dosent error on every line, some of the class objects are ok, which makes me think its not upgrading my older version of clan lib
    apparently ubuntu kinda sucks in this area, any help would be great..
    Even if i can just get this to work with g++ i would be happy, i can live without code blocks

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

    Default

    I also get the same error ... i'll look into it...

    ... It looks like since alsa was added earlier this year - the configure script does not detect for its presence.

    This should be fixed (not by me though, as i do not have experience of clanlib 0.8)

    Anyway, on Ubuntu, install the following package:

    libasound2-dev

    This should fix it.
    Last edited by rombust; 06-13-2008 at 11:14 AM.

Similar Threads

  1. Code::Blocks
    By ART_Adventures in forum Official ClanLib SDK Forums
    Replies: 6
    Last Post: 01-14-2010, 12:00 AM
  2. I can't code
    By Cobra in forum Novashell Game Creation System
    Replies: 7
    Last Post: 05-30-2008, 07:12 AM
  3. Code::blocks Config file?
    By Mersel in forum Official ClanLib SDK Forums
    Replies: 5
    Last Post: 04-09-2008, 07:27 PM
  4. ClanLib and Code::Blocks
    By gmatt in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 09-17-2007, 01:55 PM
  5. Submit Code to Clanlib
    By ART_Adventures in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 09-26-2006, 10:25 PM

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
  •