project-navigation
Personal tools

Author Topic: Won't start - libvorbis problem  (Read 11854 times)

Offline Doctor J

  • Squad Leader
  • ****
  • Posts: 265
    • View Profile
Won't start - libvorbis problem
« on: September 17, 2007, 05:53:47 pm »
Okeh, Saturday i went through all the compilation steps in the Wiki [didn't find a binary for linux_X86_64], used the svn version.  This is on Ubuntu Dapper Drake.  Anyway, i didn't see any major errors while compiling, but the executable won't go:

"error while loading shared libraries: libvorbisfile.so.3: cannot open shared object file: No such file or directory"

I do have the libvorbisfile3 package [v 1.1.2] installed.  What should i be looking at now [i'm still kinda new at compiling]?

Advance Thanks!

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Won't start - libvorbis problem
« Reply #1 on: September 17, 2007, 06:57:23 pm »
have a look in /usr/lib whether this lib is there

Offline Doctor J

  • Squad Leader
  • ****
  • Posts: 265
    • View Profile
Re: Won't start - libvorbis problem
« Reply #2 on: September 18, 2007, 05:46:49 pm »
dave@ubuntu:/usr/lib$ ls *libvorbis*
libvorbis.a      libvorbisenc.so        libvorbisfile.a   libvorbisfile.so.3      libvorbis.so
libvorbisenc.a   libvorbisenc.so.2      libvorbisfile.la  libvorbisfile.so.3.1.1  libvorbis.so.0
libvorbisenc.la  libvorbisenc.so.2.0.2  libvorbisfile.so  libvorbis.la            libvorbis.so.0.3.1

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Won't start - libvorbis problem
« Reply #3 on: September 18, 2007, 07:03:53 pm »
have a look whether libvorbisfile.so.3 is a symlink and whether it is valid

Punkiee

  • Guest
Re: Won't start - libvorbis problem
« Reply #4 on: September 18, 2007, 08:36:31 pm »
Try to delete and add the package again.

Offline Doctor J

  • Squad Leader
  • ****
  • Posts: 265
    • View Profile
Re: Won't start - libvorbis problem
« Reply #5 on: September 20, 2007, 05:24:30 pm »
have a look whether libvorbisfile.so.3 is a symlink and whether it is valid

The *so.3 is in fact a link to the .3.1.1 shared object.

Offline Doctor J

  • Squad Leader
  • ****
  • Posts: 265
    • View Profile
Re: Won't start - libvorbis problem
« Reply #6 on: September 20, 2007, 06:07:09 pm »
In an attempt to get a handle on this, i did an SVN update this morning.  Watching the output closer this time i see this result of the config:

Code: [Select]
checking for openal-config... no
configure: WARNING: cannot find openal-config might fail to find OpenAL!
checking OpenAL/al.h usability... no
checking OpenAL/al.h presence... no
checking for OpenAL/al.h... no
checking OpenAL/alc.h usability... no
checking OpenAL/alc.h presence... no
checking for OpenAL/alc.h... no
checking for library containing alSourcePlay... no
configure: WARNING: Could not find OpenAL library!
checking for ogg_stream_init in -logg... yes
checking for vorbis_info_init in -lvorbis... yes
checking for ov_open in -lvorbisfile... yes

So we see that at least the configuration process is picking up on the vorbisfile library.  However is OpenAL needed, or just an option?

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Won't start - libvorbis problem
« Reply #7 on: September 20, 2007, 07:33:49 pm »
openal is not needed - nor 100% working right now

Offline Doctor J

  • Squad Leader
  • ****
  • Posts: 265
    • View Profile
Re: Won't start - libvorbis problem
« Reply #8 on: September 21, 2007, 12:25:47 am »
So, continuing the build process where we left off, here is where 'make' leaves off.  I have 2 questions here:

1) Is there nothing like a build log anywhere?

2) Is this a minor error i can ignore, or somewhat serious??

[code] * [UFO] src/renderer/r_sdl.c
src/renderer/r_sdl.c: In function

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Won't start - libvorbis problem
« Reply #9 on: September 21, 2007, 07:37:18 am »
1) the build log is on the console
2) that's only half of the message, don't it? the important part is missing

are you sure, that the libvorbis so files are for x86_64? remember, that you can't mix 32 and 64 bit libs easily

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Won't start - libvorbis problem
« Reply #10 on: September 21, 2007, 07:38:10 am »
ah btw. there are 64 bits in the latest linux-test-installer at http://mattn.ninex.info

and it works just fine on 64 bit - i'm even developing this with a 64 bit machine

Offline Doctor J

  • Squad Leader
  • ****
  • Posts: 265
    • View Profile
Re: Won't start - libvorbis problem
« Reply #11 on: September 21, 2007, 06:01:39 pm »
quote author=Mattn link=topic=1839.msg10300#msg10300 date=1190353038]
1) the build log is on the console
[/quote]

I'm afraid i don't understand what you mean by that.  Is there an actual file i can look at after the fact?

2) that's only half of the message, don't it? the important part is missing

There seems to be an issue with the forum interface.  I'm just cutting and pasting from Gnome Terminal to Firefox.  The complete message shows up properly when previewed, but is truncated after posting.  I will instead try attaching the output.  Oops, it is now telling me: "The attachments directory is not writeable".  Well, would you like me to mail you the text file, or what?

are you sure, that the libvorbis so files are for x86_64? remember, that you can't mix 32 and 64 bit libs easily

All those libraries were instlled by Synaptic, so i would hope they are correct for this system.  Can you suggest a way to test?
« Last Edit: September 21, 2007, 06:29:20 pm by Doctor J »

Offline Doctor J

  • Squad Leader
  • ****
  • Posts: 265
    • View Profile
Re: Won't start - libvorbis problem
« Reply #12 on: September 21, 2007, 06:04:27 pm »
ah btw. there are 64 bits in the latest linux-test-installer at http://mattn.ninex.info

and it works just fine on 64 bit - i'm even developing this with a 64 bit machine

I'll keep that in mind as an option, but will do my best to finish this compile!

Offline Doctor J

  • Squad Leader
  • ****
  • Posts: 265
    • View Profile
Re: Won't start - libvorbis problem
« Reply #13 on: September 24, 2007, 08:16:51 pm »
I got SDL 1.2.12 compiled & installed.  The UFO:AI compile lasted much longer this time:


dave@ubuntu:~/ufoai/trunk$ make  * [UFO] src/client/cl_main.c
In file included from /usr/local/include/SDL/SDL_stdinc.h:137,
                 from /usr/local/include/SDL/SDL_main.h:26,
                 from /usr/local/include/SDL/SDL.h:28,
                 from src/client/ref.h:36,
                 from src/client/client.h:32,
                 from src/client/cl_main.c:29:
/usr/local/include/SDL/begin_code.h:94:8: warning: extra tokens at end of #endif directive
In file included from /usr/local/include/SDL/SDL_error.h:30,
                 from /usr/local/include/SDL/SDL_audio.h:29,
                 from /usr/local/include/SDL/SDL.h:30,
                 from src/client/ref.h:36,
                 from src/client/client.h:32,
                 from src/client/cl_main.c:29:
/usr/local/include/SDL/begin_code.h:94:8: warning: extra tokens at end of #endif directive
In file included from /usr/local/include/SDL/SDL_endian.h:47,
                 from /usr/local/include/SDL/SDL_audio.h:30,
                 from /usr/local/include/SDL/SDL.h:30,
                 from src/client/ref.h:36,
                 from src/client/client.h:32,
                 from src/client/cl_main.c:29:
/usr/local/include/SDL/begin_code.h:94:8: warning: extra tokens at end of #endif directive
In file included from /usr/local/include/SDL/SDL_mutex.h:34,
                 from /usr/local/include/SDL/SDL_audio.h:31,
                 from /usr/local/include/SDL/SDL.h:30,
                 from src/client/ref.h:36,
                 from src/client/client.h:32,
                 from src/client/cl_main.c:29:
/usr/local/include/SDL/begin_code.h:94:8: warning: extra tokens at end of #endif directive
In file included from /usr/local/include/SDL/SDL_thread.h:37,
                 from /usr/local/include/SDL/SDL_audio.h:32,
                 from /usr/local/include/SDL/SDL.h:30,
                 from src/client/ref.h:36,
                 from src/client/client.h:32,
                 from src/client/cl_main.c:29:
/usr/local/include/SDL/begin_code.h:94:8: warning: extra tokens at end of #endif directive
In file included from /usr/local/include/SDL/SDL_rwops.h:33,
                 from /usr/local/include/SDL/SDL_audio.h:33,
                 from /usr/local/include/SDL/SDL.h:30,
                 from src/client/ref.h:36,
                 from src/client/client.h:32,
                 from src/client/cl_main.c:29:
/usr/local/include/SDL/begin_code.h:94:8: warning: extra tokens at end of #endif directive
In file included from /usr/local/include/SDL/SDL_audio.h:35,
                 from /usr/local/include/SDL/SDL.h:30,
                 from src/client/ref.h:36,
                 from src/client/client.h:32,
                 from src/client/cl_main.c:29:
/usr/local/include/SDL/begin_code.h:94:8: warning: extra tokens at end of #endif directive
In file included from /usr/local/include/SDL/SDL_cdrom.h:31,
                 from /usr/local/include/SDL/SDL.h:31,
                 from src/client/ref.h:36,
                 from src/client/client.h:32,
                 from src/client/cl_main.c:29:
/usr/local/include/SDL/begin_code.h:94:8: warning: extra tokens at end of #endif directive
In file included from /usr/local/include/SDL/SDL_cpuinfo.h:31,
                 from /usr/local/include/SDL/SDL.h:32,
                 from src/client/ref.h:36,
                 from src/client/client.h:32,
                 from src/client/cl_main.c:29:
/usr/local/include/SDL/begin_code.h:94:8: warning: extra tokens at end of #endif directive
In file included from /usr/local/include/SDL/SDL_active.h:31,
                 from /usr/local/include/SDL/SDL_events.h:30,
                 from /usr/local/include/SDL/SDL.h:35,
                 from src/client/ref.h:36,
                 from src/client/client.h:32,
                 from src/client/cl_main.c:29:
/usr/local/include/SDL/begin_code.h:94:8: warning: extra tokens at end of #endif directive
In file included from /usr/local/include/SDL/SDL_keyboard.h:32,
                 from /usr/local/include/SDL/SDL_events.h:31,
                 from /usr/local/include/SDL/SDL.h:35,
                 from src/client/ref.h:36,
                 from src/client/client.h:32,
                 from src/client/cl_main.c:29:
/usr/local/include/SDL/begin_code.h:94:8: warning: extra tokens at end of #endif directive
In file included from /usr/local/include/SDL/SDL_video.h:32,
                 from /usr/local/include/SDL/SDL_mouse.h:30,
                 from /usr/local/include/SDL/SDL_events.h:32,
                 from /usr/local/include/SDL/SDL.h:35,
                 from src/client/ref.h:36,
                 from src/client/client.h:32,
                 from src/client/cl_main.c:29:
/usr/local/include/SDL/begin_code.h:94:8: warning: extra tokens at end of #endif directive
In file included from /usr/local/include/SDL/SDL_mouse.h:32,
                 from /usr/local/include/SDL/SDL_events.h:32,
                 from /usr/local/include/SDL/SDL.h:35,
                 from src/client/ref.h:36,
                 from src/client/client.h:32,
                 from src/client/cl_main.c:29:
/usr/local/include/SDL/begin_code.h:94:8: warning: extra tokens at end of #endif directive
In file included from /usr/local/include/SDL/SDL_joystick.h:31,
                 from /usr/local/include/SDL/SDL_events.h:33,
                 from /usr/local/include/SDL/SDL.h:35,
                 from src/client/ref.h:36,
                 from src/client/client.h:32,
                 from src/client/cl_main.c:29:
/usr/local/include/SDL/begin_code.h:94:8: warning: extra tokens at end of #endif directive
In file included from /usr/local/include/SDL/SDL_events.h:36,
                 from /usr/local/include/SDL/SDL.h:35,
                 from src/client/ref.h:36,
                 from src/client/client.h:32,
                 from src/client/cl_main.c:29:
/usr/local/include/SDL/begin_code.h:94:8: warning: extra tokens at end of #endif directive
In file included from /usr/local/include/SDL/SDL_loadso.h:47,
                 from /usr/local/include/SDL/SDL.h:36,
                 from src/client/ref.h:36,
                 from src/client/client.h:32,
                 from src/client/cl_main.c:29:
/usr/local/include/SDL/begin_code.h:94:8: warning: extra tokens at end of #endif directive
In file included from /usr/local/include/SDL/SDL_timer.h:31,
                 from /usr/local/include/SDL/SDL.h:40,
                 from src/client/ref.h:36,
                 from src/client/client.h:32,
                 from src/client/cl_main.c:29:
/usr/local/include/SDL/begin_code.h:94:8: warning: extra tokens at end of #endif directive
In file included from /usr/local/include/SDL/SDL_version.h:30,
                 from /usr/local/include/SDL/SDL.h:42,
                 from src/client/ref.h:36,
                 from src/client/client.h:32,
                 from src/client/cl_main.c:29:
/usr/local/include/SDL/begin_code.h:94:8: warning: extra tokens at end of #endif directive
In file included from /usr/local/include/SDL/SDL.h:44,
                 from src/client/ref.h:36,
                 from src/client/client.h:32,
                 from src/client/cl_main.c:29:
/usr/local/include/SDL/begin_code.h:94:8: warning: extra tokens at end of #endif directive
In file included from /usr/local/include/SDL/SDL_syswm.h:32,
                 from src/client/ref.h:37,
                 from src/client/client.h:32,
                 from src/client/cl_main.c:29:
/usr/local/include/SDL/begin_code.h:94:8: warning: extra tokens at end of #endif directive
 * [UFO] ... linking  (-ldl  -lm   -lz -lcurl -ljpeg -lpng -lSDL_ttf -lvorbisfile -lvorbis -logg  -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread )
CFLAGS
-----------------------
-g -O2 -D_GNU_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE -DSHARED_EXT="so" -DHAVE_CONFIG_H -Wall -pipe -Winline -Wcast-qual -Wcast-align -ansi -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -ggdb -O0 -DDEBUG -fno-inline
-I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT

LDFLAGS
-----------------------

-ldl -lm -lz -lcurl -ljpeg -lpng -lSDL_ttf -lvorbisfile -lvorbis -logg -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread


However, when i try  to run the game, i still get the original message about libvorbisfile.  Any more hints?