Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: UT2004 openAL alsa-dev

  1. #1
    Join Date
    Jun 2005
    Location
    Shaolin
    Beans
    294
    Distro
    Ubuntu Breezy 5.10

    UT2004 openAL alsa-dev

    i read in this guide:

    http://www.linux-gamers.net/modules/...p?articleid=40

    in section three if i use the openAL module suggested there, that i would get a performance boost when playing UT2004 and using openAL, and an Audigy card. I then downloaded it, extracted, in terminal i wento the src dir, and typed make, to make the module (not sure if its a module) but i get this error

    gcc -O2 -W -Wall -Wmissing-prototypes -Werror -fPIC -I../include -c al_listener.c
    In file included from al_listener.c:23:
    alc_context.h:23:21: pthread.h: No such file or directory
    alc_context.h:24:23: semaphore.h: No such file or directory
    In file included from alc_context.h:30,
    from al_listener.c:23:
    alc_device.h:23:28: alsa/asoundlib.h: No such file or directory
    In file included from alc_device.h:28,
    from alc_context.h:30,
    from al_listener.c:23:
    al_source.h:23:28: alsa/asoundlib.h: No such file or directory
    In file included from al_source.h:28,
    from alc_device.h:28,
    from alc_context.h:30,
    from al_listener.c:23:
    al_buffer.h:31: error: syntax error before "int32_t"
    al_buffer.h:31: warning: no semicolon at end of struct or union
    al_buffer.h:34: error: syntax error before '}' token
    al_buffer.h:35: warning: type defaults to `int' in declaration of `AL_buffer'
    al_buffer.h:35: warning: data definition has no type or storage class
    al_buffer.h:37: error: syntax error before '*' token
    al_buffer.h:37: warning: type defaults to `int' in declaration of `_alLockBuffer'
    al_buffer.h:37: warning: data definition has no type or storage class
    al_buffer.h:38: error: syntax error before '*' token
    In file included from alc_device.h:28,
    from alc_context.h:30,
    from al_listener.c:23:
    al_source.h:33: error: syntax error before "AL_buffer"
    al_source.h:33: warning: no semicolon at end of struct or union
    al_source.h:35: error: syntax error before '}' token
    al_source.h:36: warning: type defaults to `int' in declaration of `AL_queue'
    al_source.h:36: warning: data definition has no type or storage class
    al_source.h:42: error: syntax error before "snd_pcm_t"
    al_source.h:42: warning: no semicolon at end of struct or union
    al_source.h:43: warning: type defaults to `int' in declaration of `vol_ctl'
    al_source.h:43: warning: data definition has no type or storage class
    al_source.h:44: error: syntax error before '*' token
    al_source.h:44: warning: type defaults to `int' in declaration of `send_ctl'
    al_source.h:44: warning: data definition has no type or storage class
    al_source.h:50: error: syntax error before '*' token
    al_source.h:50: warning: type defaults to `int' in declaration of `buffer'
    al_source.h:50: warning: data definition has no type or storage class
    al_source.h:51: warning: built-in function `index' declared as non-function
    al_source.h:53: error: syntax error before '*' token
    al_source.h:53: warning: type defaults to `int' in declaration of `first_q'
    al_source.h:53: warning: data definition has no type or storage class
    al_source.h:54: error: syntax error before '*' token
    al_source.h:54: warning: type defaults to `int' in declaration of `last_q'
    al_source.h:54: warning: data definition has no type or storage class
    al_source.h:55: error: syntax error before '*' token
    al_source.h:55: warning: type defaults to `int' in declaration of `current_q'
    al_source.h:55: warning: data definition has no type or storage class
    al_source.h:75: error: syntax error before '}' token
    al_source.h:76: warning: type defaults to `int' in declaration of `AL_source'
    al_source.h:76: warning: data definition has no type or storage class
    al_source.h:78: error: syntax error before '*' token
    al_source.h:79: error: syntax error before '*' token
    In file included from alc_context.h:30,
    from al_listener.c:23:
    alc_device.h:34: error: syntax error before "snd_ctl_t"
    alc_device.h:34: warning: no semicolon at end of struct or union
    alc_device.h:39: error: syntax error before '}' token
    alc_device.h:41: error: syntax error before '*' token
    alc_device.h:42: error: syntax error before '*' token
    In file included from al_listener.c:23:
    alc_context.h:37: error: syntax error before "AL_source"
    alc_context.h:37: warning: no semicolon at end of struct or union
    alc_context.h:39: warning: type defaults to `int' in declaration of `thread'
    alc_context.h:39: warning: data definition has no type or storage class
    alc_context.h:40: error: syntax error before "mutex"
    alc_context.h:40: warning: type defaults to `int' in declaration of `mutex'
    alc_context.h:40: warning: data definition has no type or storage class
    alc_context.h:41: error: syntax error before "cond"
    alc_context.h:41: warning: type defaults to `int' in declaration of `cond'
    alc_context.h:41: warning: data definition has no type or storage class
    alc_context.h:49: error: syntax error before '*' token
    alc_context.h:51: warning: type defaults to `int' in declaration of `AL_context'alc_context.h:51: warning: data definition has no type or storage class
    alc_context.h:53: error: syntax error before '*' token
    alc_context.h:53: warning: type defaults to `int' in declaration of `_alcCurrentContext'
    alc_context.h:53: warning: data definition has no type or storage class
    alc_context.h:58: error: syntax error before '*' token
    alc_context.h:58: error: syntax error before '*' token
    alc_context.h:58: warning: type defaults to `int' in declaration of `_alFindSource'
    alc_context.h:58: warning: data definition has no type or storage class
    alc_context.h:60: error: syntax error before '*' token
    al_listener.c: In function `alListenerf':
    al_listener.c:84: error: `ctx' undeclared (first use in this function)
    al_listener.c:84: error: (Each undeclared identifier is reported only once
    al_listener.c:84: error: for each function it appears in.)
    al_listener.c:92: warning: implicit declaration of function `pthread_mutex_lock'al_listener.c:104: warning: implicit declaration of function `pthread_mutex_unlock'
    al_listener.c: In function `alListener3f':
    al_listener.c:109: error: `ctx' undeclared (first use in this function)
    al_listener.c: In function `alListenerfv':
    al_listener.c:141: error: `ctx' undeclared (first use in this function)
    al_listener.c: In function `alGetListeneriv':
    al_listener.c:194: error: `ctx' undeclared (first use in this function)
    al_listener.c: In function `alGetListenerfv':
    al_listener.c:261: error: `ctx' undeclared (first use in this function)
    make: *** [al_listener.o] Error 1

    i went to the linux-gamers forum, and it was stated there (from another person posting the similar problem) that i need alsa-dev package from my distro...but in synpatic i cant find it, and i cant apt-get install alsa-dev....

    so basically i want to know how do i get this to work ?
    System Specs
    ASUS A8V Deluxe (NOT ASUS A8V-E DELUXE!!!!)
    AMD 64 3500
    1 GIG Kingston DDR
    Nvidia Geforce 6800GT
    SB Audigy 2

  2. #2
    Join Date
    Jun 2005
    Location
    Shaolin
    Beans
    294
    Distro
    Ubuntu Breezy 5.10

    Re: UT2004 openAL alsa-dev

    anyone know how to get this compiled properly?
    Last edited by DarkManX4lf; July 15th, 2005 at 04:01 PM.
    System Specs
    ASUS A8V Deluxe (NOT ASUS A8V-E DELUXE!!!!)
    AMD 64 3500
    1 GIG Kingston DDR
    Nvidia Geforce 6800GT
    SB Audigy 2

  3. #3
    Join Date
    Jul 2005
    Beans
    387

    Re: UT2004 openAL alsa-dev

    Before you go down this path, perhaps try running UT2004 with sound off, to see if recompiling ALSA would do anything for you? Seems like a lot of work that may have zero yield for you...


    Code:
    gedit ~/.ut2004/System/UT2004.ini
    (Find line "UseSound=True" and change to UseSound="False" under [Engine.GameEngine])
    Try running UT2004 then, with a "stat fps" and see if there's even a change. On my system, there was none. You could also rename/move the openal.so in the [UT2004 Installation Folder]/System directory if you don't trust UseSound=False.
    Last edited by evilghost; July 16th, 2005 at 04:29 AM.

  4. #4
    Join Date
    Jun 2005
    Location
    Shaolin
    Beans
    294
    Distro
    Ubuntu Breezy 5.10

    Re: UT2004 openAL alsa-dev

    Quote Originally Posted by evilghost
    Before you go down this path, perhaps try running UT2004 with sound off, to see if recompiling ALSA would do anything for you? Seems like a lot of work that may have zero yield for you...


    Code:
    gedit ~/.ut2004/System/UT2004.ini
    (Find line "UseSound=True" and change to UseSound="False" under [Engine.GameEngine])
    Try running UT2004 then, with a "stat fps" and see if there's even a change. On my system, there was none. You could also rename/move the openal.so in the [UT2004 Installation Folder]/System directory if you don't trust UseSound=False.

    yep, i had to rename openal.so, it the sound would still be there if i set "usesound=false" also i did get a fps boost, almost +20fps
    System Specs
    ASUS A8V Deluxe (NOT ASUS A8V-E DELUXE!!!!)
    AMD 64 3500
    1 GIG Kingston DDR
    Nvidia Geforce 6800GT
    SB Audigy 2

  5. #5
    Join Date
    Jul 2005
    Beans
    387

    Re: UT2004 openAL alsa-dev

    Woah....I just did the UseSound=False, and it had no affect. I renamed openal.so and saw about a 15 to 20 fps boost. Excellent. Now we just need to figure out how to recompile openal.so for our system. I've got a Sound Blaster Live so we should be able to use the same openal.so module.

    Today I'm going to try to get this figured out and will gladly share anything I've learned.

  6. #6
    Join Date
    Jul 2005
    Beans
    387

    Re: UT2004 openAL alsa-dev

    Here you go:

    Code:
    sudo apt-get install alsa-source
    sudo apt-get install alsa-headers
    cd ~/openal-alsa-emu10k1-1.2/src
    make
    Now I get:

    Code:
    luser@400sc:~/openal-alsa-emu10k1-1.2/src$ make
    gcc -O2 -W -Wall -Wmissing-prototypes -Werror -fPIC -I../include -c al_listener.c
    gcc -O2 -W -Wall -Wmissing-prototypes -Werror -fPIC -I../include -c al_source.c
    gcc -O2 -W -Wall -Wmissing-prototypes -Werror -fPIC -I../include -c al_buffer.c
    gcc -O2 -W -Wall -Wmissing-prototypes -Werror -fPIC -I../include -c al_play.c
    gcc -O2 -W -Wall -Wmissing-prototypes -Werror -fPIC -I../include -c al_able.c
    al_able.c:20:22: ansidecl.h: No such file or directory
    al_able.c:24: error: syntax error before "ATTRIBUTE_UNUSED"
    al_able.c: In function `alEnable':
    al_able.c:25: error: number of arguments doesn't match prototype
    ../include/AL/al.h:72: error: prototype declaration
    al_able.c: At top level:
    al_able.c:29: error: syntax error before "ATTRIBUTE_UNUSED"
    al_able.c: In function `alDisable':
    al_able.c:30: error: number of arguments doesn't match prototype
    ../include/AL/al.h:74: error: prototype declaration
    al_able.c: At top level:
    al_able.c:34: error: syntax error before "ATTRIBUTE_UNUSED"
    al_able.c: In function `alIsEnabled':
    al_able.c:35: error: number of arguments doesn't match prototype
    ../include/AL/al.h:76: error: prototype declaration
    make: *** [al_able.o] Error 1
    Have to run, hopefully this will be enough to get us started down the path to a solution. I hope to check back later in the afternoon, hopefully you've found a solution

  7. #7
    Join Date
    Jun 2005
    Location
    Shaolin
    Beans
    294
    Distro
    Ubuntu Breezy 5.10

    Re: UT2004 openAL alsa-dev

    nah i havent found any solution, but i do know that UT2004 comes with its own openal and libSDL-1.2.so.0 sources, im going to see if i can compile that. i'm pretty new to linux so bear with me a bit



    edit

    yea it seems that i cant compile the openal-alsa-emu10k1-1.2, i get the same error as you do...but i can compile the one that UT2004 gives you, but that one only gave me a slight increase (2fps)
    Last edited by DarkManX4lf; July 16th, 2005 at 03:12 PM.
    System Specs
    ASUS A8V Deluxe (NOT ASUS A8V-E DELUXE!!!!)
    AMD 64 3500
    1 GIG Kingston DDR
    Nvidia Geforce 6800GT
    SB Audigy 2

  8. #8
    Join Date
    Nov 2004
    Location
    Brooklyn, NY
    Beans
    210

    Re: UT2004 openAL alsa-dev

    1st, Install the build-essential package
    2nd, if you'd like an easy way to fix this youself in the future without blindly installing unnecessary packages, install apt-file and search for the missing includes:
    Code:
    $ apt-file search usr/include/pthread.h
    libc6-dev: usr/include/pthread.h
    $ apt-file search usr/include/semaphore.h
    libc6-dev: usr/include/semaphore.h
    $ apt-file search usr/include/alsa/asoundlib.h
    libasound2-dev: usr/include/alsa/asoundlib.h
    $ apt-file search usr/include/ansidecl.h
    binutils-dev: usr/include/ansidecl.h
    All you needed to install was libc6-dev, libasound2-dev and binutils-dev

  9. #9
    Join Date
    Jul 2005
    Beans
    387

    Re: UT2004 openAL alsa-dev

    Quote Originally Posted by tomchuk
    1st, Install the build-essential package
    2nd, if you'd like an easy way to fix this youself in the future without blindly installing unnecessary packages, install apt-file and search for the missing includes:
    Code:
    $ apt-file search usr/include/pthread.h
    libc6-dev: usr/include/pthread.h
    $ apt-file search usr/include/semaphore.h
    libc6-dev: usr/include/semaphore.h
    $ apt-file search usr/include/alsa/asoundlib.h
    libasound2-dev: usr/include/alsa/asoundlib.h
    $ apt-file search usr/include/ansidecl.h
    binutils-dev: usr/include/ansidecl.h
    All you needed to install was libc6-dev, libasound2-dev and binutils-dev
    Wow, didn't even realize that. After doing a "sudo apt-get install libc6-dev" I was able to successfully compile the package. Thank you for your help.

    Code:
    luser@400sc:~/openal-alsa-emu10k1-1.2/src$ make
    gcc -O2 -W -Wall -Wmissing-prototypes -Werror -fPIC -I../include -c al_able.c
    gcc -O2 -W -Wall -Wmissing-prototypes -Werror -fPIC -I../include -c al_state.c
    gcc -O2 -W -Wall -Wmissing-prototypes -Werror -fPIC -I../include -c al_doppler.c
    gcc -O2 -W -Wall -Wmissing-prototypes -Werror -fPIC -I../include -c al_distance. c
    gcc -O2 -W -Wall -Wmissing-prototypes -Werror -fPIC -I../include -c al_error.c
    gcc -O2 -W -Wall -Wmissing-prototypes -Werror -fPIC -I../include -c al_ext.c
    gcc -O2 -W -Wall -Wmissing-prototypes -Werror -fPIC -I../include -c al_vector.c
    gcc -O2 -W -Wall -Wmissing-prototypes -Werror -fPIC -I../include -c alc_context. c
    gcc -O2 -W -Wall -Wmissing-prototypes -Werror -fPIC -I../include -c alc_speaker. c
    gcc -O2 -W -Wall -Wmissing-prototypes -Werror -fPIC -I../include -c alc_device.c
    gcc -O2 -W -Wall -Wmissing-prototypes -Werror -fPIC -I../include -c alc_state.c
    gcc -O2 -W -Wall -Wmissing-prototypes -Werror -fPIC -I../include -c alc_error.c
    gcc -O2 -W -Wall -Wmissing-prototypes -Werror -fPIC -I../include -c alc_ext.c
    gcc -O2 -W -Wall -Wmissing-prototypes -Werror -fPIC -I../include -c alut_main.c
    gcc -O2 -W -Wall -Wmissing-prototypes -Werror -fPIC -I../include -c alut_wav.c
    gcc -shared -Wl,-soname,libopenal.so.0 -o libopenal.so.0.1.2 al_listener.o al_so urce.o al_buffer.o al_play.o al_able.o al_state.o al_doppler.o al_distance.o al_ error.o al_ext.o al_vector.o alc_context.o alc_speaker.o alc_device.o alc_state. o alc_error.o alc_ext.o alut_main.o alut_wav.o -lasound -lpthread -lm
    luser@400sc:~/openal-alsa-emu10k1-1.2/src$ ls -la|grep -i openal
    -rwxr-xr-x  1 luser luser 51585 2005-07-16 11:36 libopenal.so.0.1.2
    Will let you know if I see an FPS decrease or increase.

  10. #10
    Join Date
    Jun 2005
    Location
    Shaolin
    Beans
    294
    Distro
    Ubuntu Breezy 5.10

    Re: UT2004 openAL alsa-dev

    well i compiled it, and even tho there were errors, it spat o ut a module, when i used that module i noticed an avg 10fps in crease and a max 20fps increase so i would say its good...maybe if we get rid of those errors we can get more performance.


    EDIT

    i just tested the new module, and it seems fine BUT the volume seems to be very low, even tho i turned it up high in UT2004, when using the older module this wasnt the case....and i had the same errors as the above posted....hopefully we can get t hem fixed.
    Last edited by DarkManX4lf; July 17th, 2005 at 06:52 AM.
    System Specs
    ASUS A8V Deluxe (NOT ASUS A8V-E DELUXE!!!!)
    AMD 64 3500
    1 GIG Kingston DDR
    Nvidia Geforce 6800GT
    SB Audigy 2

Page 1 of 3 123 LastLast

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
  •