A fix to vlc.spec 1.34

Christopher Johnson cjohnson at mint.net
Sun Oct 21 20:18:07 CEST 2001


Tried rebuild of vlc on redhat 7.1 with updates from source rpm:
 rpm --target=i686-redhat-linux --rebuild vlc-0.2.90-1.src.rpm
which resulted in the following error:
------------------------------------------------------------------
[lots of compiles...]
gcc -fPIC -o ../qt.so qt.o intf_qt.o -shared -lqt -L/lib
/usr/bin/ld: cannot find -lqt
collect2: ld returned 1 exit status
make[1]: *** [../qt.so] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/vlc-0.2.90/plugins/qt'
make: *** [plugins/qt.so] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.75845 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.75845 (%build)
------------------------------------------------------------------
Note the -L/lib arg to gcc above!
So I pulled the latest vlc.spec file from CVS.  No better. Then upon digging
into the source tree I discovered uses of $QTDIR:
ChangeLog:  * Use $QTDIR for the qt module ;
Makefile.opts.in:LIB_QT = @LIB_QT@
configure:     LIB_QT="-lqt -L${QTDIR}/lib"

but the spec file had:
 export QTDIR=%{_libdir}/qt-2.3.0/
after the %configure so it was NOT set when used by the configure script.

I moved it up and removed the superfluous trailing "/".

Now vlc builds successfully :).



-- Attached file included as plaintext by Listar --
-- File: vlc.spec.fixqtbuild.diff

*** vlc.spec.1.34	Sun Oct 21 13:51:27 2001
--- vlc.spec	Sun Oct 21 13:50:36 2001
***************
*** 103,108 ****
--- 103,109 ----
  %endif
  
  %build
+ export QTDIR=%{_libdir}/qt-2.3.0
  %configure --with-dvdcss=local-shared \
  	   --enable-gnome --enable-gtk \
  	   --enable-x11 --enable-qt --enable-ncurses \
***************
*** 110,116 ****
  	   --enable-fb \
  	   --enable-xvideo \
  	   --enable-sdl 
- export QTDIR=%{_libdir}/qt-2.3.0/
  make
  
  %install
--- 111,116 ----





More information about the vlc-devel mailing list