Results 1 to 2 of 2

Thread: Errors when making Clanlib

  1. #1
    Serf
    Join Date
    Aug 2008
    Posts
    1

    Default Errors when making Clanlib

    sudo ./configure seems to go okay. But during sudo make things seem wrong:
    Code:
    Making all in Sources
    make[1]: Entering directory `/home/bjo/Pr/ClanLib-0.8.1/Sources'
    Making all in API
    make[2]: Entering directory `/home/bjo/Pr/ClanLib-0.8.1/Sources/API'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/bjo/Pr/ClanLib-0.8.1/Sources/API'
    Making all in Application
    make[2]: Entering directory `/home/bjo/Pr/ClanLib-0.8.1/Sources/Application'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/bjo/Pr/ClanLib-0.8.1/Sources/Application'
    Making all in Core
    make[2]: Entering directory `/home/bjo/Pr/ClanLib-0.8.1/Sources/Core'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/bjo/Pr/ClanLib-0.8.1/Sources/Core'
    Making all in Signals
    make[2]: Entering directory `/home/bjo/Pr/ClanLib-0.8.1/Sources/Signals'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/bjo/Pr/ClanLib-0.8.1/Sources/Signals'
    Making all in Display
    make[2]: Entering directory `/home/bjo/Pr/ClanLib-0.8.1/Sources/Display'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/bjo/Pr/ClanLib-0.8.1/Sources/Display'
    Making all in Sound
    make[2]: Entering directory `/home/bjo/Pr/ClanLib-0.8.1/Sources/Sound'
    depbase=`echo soundoutput.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \
    	if /bin/bash ../../libtool --tag=CXX --mode=compile 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 -DUSE_I386_ASSEMBLER=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 "$depbase.Tpo" -c -o soundoutput.lo soundoutput.cpp; \
    	then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f "$depbase.Tpo"; exit 1; fi
     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 -DUSE_I386_ASSEMBLER=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/bjo/Pr/ClanLib-0.8.1/Sources/Sound'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/bjo/Pr/ClanLib-0.8.1/Sources'
    make: *** [all-recursive] Error 1
    When I then perform sudo make install I get errors too and sometimes saying there's nothing to be done.

    I have checked, though, and I saw libraries installed in /usr/local/lib and .h files clanstring.h and clanapp.h in
    Code:
    /usr/local/include/ClanLib-0.8/ClanLib/Core/System/clanstring.h
    /usr/local/include/ClanLib-0.8/ClanLib/Application/clanapp.h
    I haven't yet tried a simple test program, but the way it looks now do you think this installation is functional for use or should I not even try like this?

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

    Default

    See http://www.rtsoft.com/forums/showthread.php?p=8291 - This should fix the alsa sound problem.

    Also, you should not "sudo" configure and make, only sudo "make install".
    (You may need to do a "sudo make clean" to remove the root owner object files)

    Depending on your distro (ubuntu, suse), you may made need:
    ./configure --prefix=/usr

Similar Threads

  1. Errors in ClanLib headers
    By mmiikkee12 in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 09-03-2007, 08:17 AM
  2. Need help in making new d-mod
    By axeflame in forum Dink Smallwood HD
    Replies: 2
    Last Post: 05-17-2007, 03:32 AM
  3. Making tiles
    By Suudsu2200 in forum Novashell Game Creation System
    Replies: 3
    Last Post: 03-05-2007, 10:30 PM
  4. Anyone making DMODs recently??
    By in forum Dink Smallwood HD
    Replies: 1
    Last Post: 09-09-2005, 03:39 AM
  5. Making a perfect sale
    By pinko in forum Funeral Quest
    Replies: 3
    Last Post: 12-13-2003, 06:45 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
  •