[Wengophone-devel] Some problems with external libs
Hi all, I have been rubbing noses with some compilation problems with external libs, and thought that others might benefit from my experiences: 1. External FFMPEG: on Dapper, the system ffmpeg is compiled with support for vorbis and theora - but the correct -ls aren't brought in by CMakeFiles-external in the ffmpeg directory (not sure where the best place to solve this is - should it be in FindFfmpeg?) 2. External PortAudio: If you're using build_make.sh, you get PORTAUDIO_INTERNAL set to OFF by default regardless of what you put in DefineWengoOptions or on the command line - so make sure your external PortAudio is a V19, or the compilation will fail in owsound. The solution I've found is to run cmake directly, or to change CMakeCache.txt to use the internal PortAudio after the failure and re-run make 3. External speex: There's a problem with pkgconfig returning \n as CFLAGS for speex, thus inserting a newline into the flags.make file for phspeexplugin There may be others, but the work-around is (for these 3 libraries) to compile with the internal copy for the moment. Anyone able to advise me on what the correct fix is for each of these problems? Cheers, Dave. -- Dave Neary OpenWengo Community Development Manager Email: [EMAIL PROTECTED] ___ Wengophone-devel mailing list Wengophone-devel@lists.openwengo.com http://dev.openwengo.com/mailman/listinfo/wengophone-devel
Re: [Wengophone-devel] Patch for Linux install
Hi, Is this line from *build_make.sh* a problem to you??? OPTIONS=-DCMAKE_INSTALL_PREFIX=/usr --graphviz=${BUILDDIR}/wengophone.dot No. Here are the problems to me: First problem: cmake -DCMAKE_INSTALL_PREFIX=/opt/wengophone make make install Will install the wengophone in /usr, not in /opt/wengophone. Variant: cmake make make install Will install the wengophone in /usr, while the default behavior for all CMake based projects is /usr/local. Second problem: cmake -DCMAKE_INSTALL_PREFIX=/usr make make install DESTDIR=/packager/chroot Will install the wengophone in /usr, not in /packager/chroot/usr. Aurélien ___ Wengophone-devel mailing list Wengophone-devel@lists.openwengo.com http://dev.openwengo.com/mailman/listinfo/wengophone-devel
Re: [Wengophone-devel] Some problems with external libs
It is not what you are talking about, anyway: - I think build_make.sh should be changed in order to avoid hardcoded settings that should conflict with DefineWengoOptions, or command line parameters. For example, if i use build_make.sh, Aurelien patch is not going to act as i expect, since a hardcode /usr is going to be there. Dave Neary wrote: Hi all, I have been rubbing noses with some compilation problems with external libs, and thought that others might benefit from my experiences: 1. External FFMPEG: on Dapper, the system ffmpeg is compiled with support for vorbis and theora - but the correct -ls aren't brought in by CMakeFiles-external in the ffmpeg directory (not sure where the best place to solve this is - should it be in FindFfmpeg?) 2. External PortAudio: If you're using build_make.sh, you get PORTAUDIO_INTERNAL set to OFF by default regardless of what you put in DefineWengoOptions or on the command line - so make sure your external PortAudio is a V19, or the compilation will fail in owsound. The solution I've found is to run cmake directly, or to change CMakeCache.txt to use the internal PortAudio after the failure and re-run make 3. External speex: There's a problem with pkgconfig returning \n as CFLAGS for speex, thus inserting a newline into the flags.make file for phspeexplugin There may be others, but the work-around is (for these 3 libraries) to compile with the internal copy for the moment. Anyone able to advise me on what the correct fix is for each of these problems? Cheers, Dave. ___ Wengophone-devel mailing list Wengophone-devel@lists.openwengo.com http://dev.openwengo.com/mailman/listinfo/wengophone-devel
Re: [Wengophone-devel] Some problems with external libs
Attached my idea of the patch. Claudio André wrote: It is not exactly what you are talking about, anyway: - I think build_make.sh should be changed in order to avoid hardcoded settings that should conflict with DefineWengoOptions, or command line parameters. For example, if i use build_make.sh, Aurelien patch is not going to act as i expect, since a hardcode /usr is going to be there. Dave Neary wrote: Hi all, I have been rubbing noses with some compilation problems with external libs, and thought that others might benefit from my experiences: 1. External FFMPEG: on Dapper, the system ffmpeg is compiled with support for vorbis and theora - but the correct -ls aren't brought in by CMakeFiles-external in the ffmpeg directory (not sure where the best place to solve this is - should it be in FindFfmpeg?) 2. External PortAudio: If you're using build_make.sh, you get PORTAUDIO_INTERNAL set to OFF by default regardless of what you put in DefineWengoOptions or on the command line - so make sure your external PortAudio is a V19, or the compilation will fail in owsound. The solution I've found is to run cmake directly, or to change CMakeCache.txt to use the internal PortAudio after the failure and re-run make 3. External speex: There's a problem with pkgconfig returning \n as CFLAGS for speex, thus inserting a newline into the flags.make file for phspeexplugin There may be others, but the work-around is (for these 3 libraries) to compile with the internal copy for the moment. Anyone able to advise me on what the correct fix is for each of these problems? Cheers, Dave. ___ Wengophone-devel mailing list Wengophone-devel@lists.openwengo.com http://dev.openwengo.com/mailman/listinfo/wengophone-devel Index: wengophone-2.1/build/build_make.sh === --- wengophone-2.1/build/build_make.sh (revisão 9596) +++ wengophone-2.1/build/build_make.sh (cópia de trabalho) @@ -46,14 +46,13 @@ } function usage () { -echo Usage: `basename $0` [--build [debug|final]|--clean|--verbose|--help] +echo Usage: `basename $0` [--build [debug|release|final]|--clean|--verbose|--help] cleanup_and_exit } cd ${BUILDDIR} -OPTIONS=-DCMAKE_INSTALL_PREFIX=/usr --graphviz=${BUILDDIR}/wengophone.dot -OPTIONS=${OPTIONS} -DPORTAUDIO_INTERNAL=OFF -DFFMPEG_INTERNAL=OFF -DSPEEX_INTERNAL=OFF -DSAMPLERATE_INTERNAL=OFF +OPTIONS=--graphviz=${BUILDDIR}/wengophone.dot if [ $(uname -m) == x86_64 ]; then OPTIONS=${OPTIONS} -DLIB_SUFFIX=64 @@ -118,6 +117,7 @@ test -f ${BUILDDIR}/.build.log rm -f ${BUILDDIR}/.build.log touch ${BUILDDIR}/.build.log + # log everything from here to .build.log exec 1 (exec -a 'build logging tee' tee -a ${BUILDDIR}/.build.log) 21 echo ${HOST} started build at $(date). ___ Wengophone-devel mailing list Wengophone-devel@lists.openwengo.com http://dev.openwengo.com/mailman/listinfo/wengophone-devel