IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
How to compile a static oggenc-aotuv on a restricted machine
schlauf
post Feb 18 2011, 03:00
Post #1





Group: Members
Posts: 92
Joined: 7-September 02
From: Germany
Member No.: 3321



Hi everyone,

I'm sitting here on a debian powerpc-box on which I would like to use an aotuv-tuned build of vorbis-tools (oggenc). Unfortunately, I don't have root access and cannot install own compiled libs. Luckily, though, there is libogg-dev available on this box, so I think I may compile the aotuv-modified source of libvorbis, and subsequently, the original vorbis-tools package from xiph.org.

Since I cannot install the modified libs from aotuv to /usr/lib/libvorbis-aotuv or something like that, I am in desperate need of the adequate commands for linking vorbis-tools against the already compiled libvorbis-aotuv libs. How do I do that? Please help!

Thanks!
Go to the top of the page
+Quote Post
cpchan
post Feb 18 2011, 10:25
Post #2





Group: Members
Posts: 299
Joined: 14-July 07
Member No.: 45304



QUOTE (schlauf @ Feb 17 2011, 22:00) *
Since I cannot install the modified libs from aotuv to /usr/lib/libvorbis-aotuv or something like that, I am in desperate need of the adequate commands for linking vorbis-tools against the already compiled libvorbis-aotuv libs. How do I do that? Please help!


  1. Compile and install aotuv to a temp directory with the following command:

    CODE
    sh configure --prefix=/tmp/$USER/test --enable-static --disable-shared&&make&&make install

  2. Now compile and install vorbis tools with the following script (adjust --prefix to your liking):
    CODE
    #!/bin/sh
    PKG_CONFIG_PATH=/tmp/$USER/test/lib/pkgconfig:$PKG_CONFIG_PATH&&./configure --prefix=$HOME&&make&&make install&&rm -R /tmp/$USER/test/


This post has been edited by cpchan: Feb 18 2011, 10:54
Go to the top of the page
+Quote Post
schlauf
post Feb 19 2011, 19:40
Post #3





Group: Members
Posts: 92
Joined: 7-September 02
From: Germany
Member No.: 3321



Thanks :-)

I'm obviously missing another package for compilation: the error displayed reads:


CODE
checking for OGG... yes
checking for VORBIS... no
checking for ov_read_filter... no
checking for library containing cos... -lm
checking for Vorbis... no
*** Could not run Vorbis test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means Vorbis was incorrectly installed
*** or that you have moved Vorbis since it was installed.
configure: error: Vorbis needed!
make: *** No targets specified and no makefile found.  Stop.


What I do have is displayed in my first post ... what am I missing?
Go to the top of the page
+Quote Post
DonP
post Feb 19 2011, 19:58
Post #4





Group: Members (Donating)
Posts: 1477
Joined: 11-February 03
From: Vermont
Member No.: 4955



Can you put the lib you need in your own directory and add that to the lib path?
Go to the top of the page
+Quote Post
schlauf
post Feb 19 2011, 20:09
Post #5





Group: Members
Posts: 92
Joined: 7-September 02
From: Germany
Member No.: 3321



It appears I'm missing the Vorbis header files. Aren't those included in the aotuv-release? When I do install the libvorbis-dev package from Debian, everything works fine, but then I'm not using the respective changes, right?
Go to the top of the page
+Quote Post
cpchan
post Feb 19 2011, 20:11
Post #6





Group: Members
Posts: 299
Joined: 14-July 07
Member No.: 45304



QUOTE (schlauf @ Feb 19 2011, 14:40) *
Thanks :-)

I'm obviously missing another package for compilation: the error displayed reads:


CODE
checking for OGG... yes
checking for VORBIS... no
checking for ov_read_filter... no
checking for library containing cos... -lm
checking for Vorbis... no
*** Could not run Vorbis test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means Vorbis was incorrectly installed
*** or that you have moved Vorbis since it was installed.
configure: error: Vorbis needed!
make: *** No targets specified and no makefile found.  Stop.


What I do have is displayed in my first post ... what am I missing?


Let me guess, you are trying to compile vorbis-tools from the Xiph site. That version needs the 1.3 libs, where as aotuv provides 1.2.1RC2. You need an older version of vorbis-tools. Also, did you follow all my directions? I have no problems compiling the statically linked version- I did it out of curiosity.


This post has been edited by cpchan: Feb 19 2011, 20:16
Go to the top of the page
+Quote Post
cpchan
post Feb 19 2011, 20:17
Post #7





Group: Members
Posts: 299
Joined: 14-July 07
Member No.: 45304



QUOTE (schlauf @ Feb 19 2011, 15:09) *
It appears I'm missing the Vorbis header files. Aren't those included in the aotuv-release? When I do install the libvorbis-dev package from Debian, everything works fine, but then I'm not using the respective changes, right?


The vorbis header files are included and installed with aotuv. I can send you the tarball of the vorbis-tools that I used if you want.

This post has been edited by cpchan: Feb 19 2011, 20:27
Go to the top of the page
+Quote Post
schlauf
post Feb 19 2011, 20:22
Post #8





Group: Members
Posts: 92
Joined: 7-September 02
From: Germany
Member No.: 3321



Yes, I did follow your directions. aotuv compiles flawlessly and is present in the tmp-directory where pkgconfig is referenced correctly.

Where would I go for older vorbis-tools-packages? Sorry for a maybe stupid question ... ?
Go to the top of the page
+Quote Post
cpchan
post Feb 19 2011, 20:30
Post #9





Group: Members
Posts: 299
Joined: 14-July 07
Member No.: 45304



QUOTE (schlauf @ Feb 19 2011, 15:22) *
Yes, I did follow your directions. aotuv compiles flawlessly and is present in the tmp-directory where pkgconfig is referenced correctly.

Where would I go for older vorbis-tools-packages? Sorry for a maybe stupid question ... ?


Send me a message with your email address. I will email you the tarball. Alternatively, you can get it form here:

http://downloads.xiph.org/releases/vorbis/

I just downloaded and tried the 1.2 version and it worked. The version that I tested originally was 1.3 which I got from the svn tree (which I haven't updated).

This post has been edited by cpchan: Feb 19 2011, 21:09
Go to the top of the page
+Quote Post
schlauf
post Feb 19 2011, 23:04
Post #10





Group: Members
Posts: 92
Joined: 7-September 02
From: Germany
Member No.: 3321



Just downloaded vorbis-tools 1.2.0 and tried to compile with your script; the error remains the same as quoted in my 3rd posting of this thread. Obviously, "VORBIS" cannot be found which is intriguing ...

The aotuv package was compiled flawlessly and resides in the /tmp/$myusername/ dir ... maybe the ./configure script called from your vorbis-tools-compilation script does not refer to this directory correctly? I'm no gcc fan so I'm lost in parameters ... is it possible that the lib path must be added somewhere?
Go to the top of the page
+Quote Post
cpchan
post Feb 19 2011, 23:09
Post #11





Group: Members
Posts: 299
Joined: 14-July 07
Member No.: 45304



QUOTE (schlauf @ Feb 19 2011, 18:04) *
The aotuv package was compiled flawlessly and resides in the /tmp/$myusername/ dir ...


Post your config.log for vorbis-tools.

QUOTE (schlauf @ Feb 19 2011, 18:04) *
maybe the ./configure script called from your vorbis-tools-compilation script does not refer to this directory correctly? I'm no gcc fan so I'm lost in parameters ... is it possible that the lib path must be added somewhere?


I am using the exact commands that I gave you- it is referenced correctly in my compile. Here is the relevant part from my config.log

CODE
pkg_cv_VORBIS_CFLAGS='-I/tmp/hoor/test/include  '
pkg_cv_VORBIS_LIBS='-L/tmp/hoor/test/lib -lvorbis -lm -logg  '


This post has been edited by cpchan: Feb 19 2011, 23:25
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 27th December 2014 - 14:10