Results 1 to 11 of 11

Thread: Problem with make and alsa

  1. #1

    Default Problem with make and alsa

    Hi!
    I tried to compile clanlib with openSuSE and I have a problem running make:
    Unix/soundoutput_alsa.h: In constructor 'CL_SoundOutput_alsa::CL_SoundOutput_alsa(int)':
    Unix/soundoutput_alsa.h:51: error: 'CL_SoundOutput_alsa::frames_in_buffer' will be initialized after
    Unix/soundoutput_alsa.h:50: error: 'snd_pcm_uframes_t CL_SoundOutput_alsa::frames_in_period'
    Unix/soundoutput_alsa.cpp:43: error: when initialized here
    make[2]: *** [Unix/soundoutput_alsa.lo] Fehler 1
    alsa and alsa-devel are installed, what could I do?
    Thank you for aid.

  2. #2

    Default

    Okay, now I have installed a compiled version.
    I am using KDevelop and I tried to use a simple automake-template.
    I ve inserted a sample-clanlib-program but configure gives these errors:
    checking for g++... g++
    checking for C++ compiler default output file name...
    configure: error: C++ compiler cannot create executables
    See `config.log' for more details.
    *** Beendet mit Status: 77 ***
    I think it is, because he links clanlib but the testing-sourcecode (e.g. int main(){ ; return 0; }) does not use a clanlib-main-function but I am not sure.

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

    Default

    This is very strange, it should would without any problems.

    Can you compile a "hello world" problem without clanlib ?

    When i have time later (maybe in a week), i will try installing opensuse on my machine to see what happens

  4. #4

    Default

    Yes, I can compile C++-programs.
    But when I try to compile a simple, commandline, hello-world-program with Clanlib, I get these Errors:
    /usr/lib/gcc/i586-suse-linux/4.3/../../../libclanCore.so: undefined reference to `CL_Slot_Generic::release_signal_ref(CL_Signal*)'
    /usr/lib/gcc/i586-suse-linux/4.3/../../../libclanCore.so: undefined reference to `CL_Slot_Generic::is_persistent() const'
    /usr/lib/gcc/i586-suse-linux/4.3/../../../libclanCore.so: undefined reference to `CL_Slot::CL_Slot()'
    /usr/lib/gcc/i586-suse-linux/4.3/../../../libclanCore.so: undefined reference to `typeinfo for CL_Slot_Generic'
    /usr/lib/gcc/i586-suse-linux/4.3/../../../libclanCore.so: undefined reference to `CL_Slot_Generic::add_signal_ref(CL_Signal*)'
    /usr/lib/gcc/i586-suse-linux/4.3/../../../libclanCore.so: undefined reference to `CL_Slot_Generic::get_slot_ref() const'
    /usr/lib/gcc/i586-suse-linux/4.3/../../../libclanCore.so: undefined reference to `CL_Slot::~CL_Slot()'
    /usr/lib/gcc/i586-suse-linux/4.3/../../../libclanCore.so: undefined reference to `CL_Slot::CL_Slot(CL_Slot_Generic*)'
    /usr/lib/gcc/i586-suse-linux/4.3/../../../libclanCore.so: undefined reference to `CL_Slot_Generic::CL_Slot_Generic()'
    /usr/lib/gcc/i586-suse-linux/4.3/../../../libclanDisplay.so: undefined reference to`CL_Slot::CL_Slot(CL_Slot const&)'
    /usr/lib/gcc/i586-suse-linux/4.3/../../../libclanCore.so: undefined reference to `CL_Slot:perator=(CL_Slot const&)'
    /usr/lib/gcc/i586-suse-linux/4.3/../../../libclanCore.so: undefined reference to `CL_Slot_Generic::~CL_Slot_Generic()'
    collect2: ld returned 1 exit status
    Strange errors, I dont think that these functions are really missing...

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

    Default

    It looks like it is linking to an incorrect version of clanlib

    Did you perform these actions to install clanlib?

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

  6. #6

    Lightbulb

    Okay, I did not run autogen.sh.
    I ll retry.

    Edit:
    Again compiling-problems:
    opengl.cpp:386: error: ‘strlen’ was not declared in this scope
    opengl.cpp:391: error: ‘strcspn’ was not declared in this scope
    opengl.cpp:392: error: ‘strncmp’ was not declared in this scope
    Newer Binaries arent better.
    Last edited by The User; 08-05-2008 at 08:50 PM.

  7. #7

    Default

    No ideas?
    I hope there are any solutions fpr the problem.

  8. #8

    Default

    I think there is a g++-parameter to skip those error, but I not sure...

  9. #9

    Wink

    /usr/lib/gcc/i586-suse-linux/4.3/../../../libclanCore.so: undefined reference to `CL_Slot_Generic::release_signal_ref(CL_Signal*)'
    /usr/lib/gcc/i586-suse-linux/4.3/../../../libclanCore.so: undefined reference to `CL_Slot_Generic::is_persistent() const'
    /usr/lib/gcc/i586-suse-linux/4.3/../../../libclanCore.so: undefined reference to `CL_Slot::CL_Slot()'
    /usr/lib/gcc/i586-suse-linux/4.3/../../../libclanCore.so: undefined reference to `typeinfo for CL_Slot_Generic'
    /usr/lib/gcc/i586-suse-linux/4.3/../../../libclanCore.so: undefined reference to `CL_Slot_Generic::add_signal_ref(CL_Signal*)'
    /usr/lib/gcc/i586-suse-linux/4.3/../../../libclanCore.so: undefined reference to `CL_Slot_Generic::get_slot_ref() const'
    /usr/lib/gcc/i586-suse-linux/4.3/../../../libclanCore.so: undefined reference to `CL_Slot::~CL_Slot()'
    /usr/lib/gcc/i586-suse-linux/4.3/../../../libclanCore.so: undefined reference to `CL_Slot::CL_Slot(CL_Slot_Generic*)'
    /usr/lib/gcc/i586-suse-linux/4.3/../../../libclanCore.so: undefined reference to `CL_Slot_Generic::CL_Slot_Generic()'
    /usr/lib/gcc/i586-suse-linux/4.3/../../../libclanDisplay.so: undefined reference to`CL_Slot::CL_Slot(CL_Slot const&)'
    /usr/lib/gcc/i586-suse-linux/4.3/../../../libclanCore.so: undefined reference to `CL_Slot:perator=(CL_Slot const&)'
    /usr/lib/gcc/i586-suse-linux/4.3/../../../libclanCore.so: undefined reference to `CL_Slot_Generic::~CL_Slot_Generic()'
    collect2: ld returned 1 exit status
    Any ideas??

    The Code:
    Code:
    #include <ClanLib/core.h>
    #include <ClanLib/application.h>
    
    class MyClanLibApplication : public CL_ClanApplication
    {
    public:
        virtual int main(int argc, char **argv)
        {
            CL_SetupCore setup_init;
            // Insert game code here
            
            return 0;
        }
    } app;
    g++ -lclanApp -lclanCore -o testcl ./clanlibtest.cpp

  10. #10
    ClanLib Developer
    Join Date
    Sep 2006
    Location
    Bergen, Norway
    Posts
    588

    Default

    Try linking with clanSignals ?

  11. #11

    Smile

    Thank you!
    Great!
    Now I can start with developing Clanlib, I am sure there will be questions.

Similar Threads

  1. How do I make a new map
    By Gill in forum Novashell Game Creation System
    Replies: 2
    Last Post: 03-13-2008, 04:11 PM
  2. D-MOD It's to hard to make!
    By Dinkarl in forum Dink Smallwood HD
    Replies: 5
    Last Post: 03-19-2007, 05:08 AM
  3. How do i make a dmod??
    By axeflame in forum Dink Smallwood HD
    Replies: 0
    Last Post: 02-27-2007, 06:27 AM
  4. Make Server
    By in forum Funeral Quest
    Replies: 17
    Last Post: 03-19-2005, 03:08 AM
  5. How to make a d-mods?
    By in forum Dink Smallwood HD
    Replies: 0
    Last Post: 04-19-2003, 12:13 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
  •