On Mon, Jul 29, 2013 at 07:43:09PM -0300, Fernando de Oliveira wrote:
> 
> I tried it before, and again today. Does not work so simply. First,
> tried with Arch's tar ball for ffmpeg-compat. Then, just used
> ffmpeg-0.8.7, but with their instructions to make it -compat. Build
> succeeded, audacity works, but with a dirty trick. For ffmeg-compat-0.8.7:
> 
> ./configure \
>                --prefix=/usr \
>                --incdir=/usr/include/ffmpeg-compat \
>                --libdir=/usr/lib/ffmpeg-compat \
>                --shlibdir=/usr/lib/ffmpeg-compat \
> ...
> 
> Then, DESTDIR install, remove $DESTDIR/usr/{bin,share}, copy to /usr.
> And it works fine, just used it with previous audacity that was removed
> (now) from /usr/local and new one at /usr.
> 
> Audacity build with instructions a la Arch fails at make, complaining
> that cannot find gtk/gtk.h:
> 
> CaptureEvents.cpp:34:21: fatal error: gtk/gtk.h: Arquivo ou diretório
> não encontrado
> compilation terminated.
> make[1]: ** [CaptureEvents.o] Erro 1
> ...
> 
> But it is in the system:
> 
> $ find /usr -name gtk.h 2>/dev/null
> /usr/include/gtk-3.0/gtk/gtk.h
> /usr/include/gtk-2.0/gtk/gtk.h <----------- must be this one
> /usr/src/linux-3.10.1-NG-pae/tools/perf/ui/gtk/gtk.h
> /usr/src/linux-3.10.2-NG-pae/tools/perf/ui/gtk/gtk.h
> 
> I really do not understand how to tell make where they are, using
> CPPFLAGS and/or LDFLAGS, tried many wrong combinations. Also tried to
> instruct with PKG_CONFIG_PATH as done for configure.
> 
> PKG_CONFIG_PATH+="/usr/lib/ffmpeg-compat/pkgconfig" make
> 
> Finally, the dirty trick, please find attached the complete g++
> instruction, as it would be broken by the mail client:
> 
> PKG_CONFIG_PATH+="/usr/lib/ffmpeg-compat/pkgconfig" \
> ./configure --prefix=/usr
> make
> cd src &&
> g++ -c -s `pkg-config gtk+-2.0 --cflags` `pkg-config gtk+-2.0 --libs` \
> -I../lib-src/portmixer/include ........... \
> CaptureEvents.cpp -o CaptureEvents.o &&
> cd .. &&
> make
> make install
> ...
> 
> With "-s `pkg-config gtk+-2.0 --cflags` `pkg-config gtk+-2.0 --libs`"
> included, it succeeds compiling CaptureEvents.
> 
> I do not think anyone would consider this an acceptable solution, but I
> do not know how to tell make to do it properly.
> 
> If possible to be done properly by modifying some flags for make, please
> educate me.
> 
> Thanks in advance.
> 
 Glad you managed to work around the gtk header issue.  I've no
idea what causes the problem.  I would be interested in what changes
in the output from the different call to pkg-config.  I guess I can
look at that on my own system when I'm back at a desktop machine.

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to