Page 1 of 1

oss make fails with 'cannot find -lQtGui'

Posted: Thu Apr 23, 2009 3:04 pm
by ggking7
When I issue 'make -f makefile.linux' inside of makemkv_v1.4.1_beta_oss, I get:

-I/usr/include/qt4 -lc -lstdc++ -lQtGui -lQtCore
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lQtGui
collect2: ld returned 1 exit status
make: *** [out/makemkv.full] Error 1

I'm on Gentoo and I have qt-gui installed and I have '/usr/include/qt4/QtGui'. Am I missing another dependency?

Re: oss make fails with 'cannot find -lQtGui'

Posted: Fri Apr 24, 2009 5:29 am
by oxyis
Hi.

I have posted an somewhat working ebuild for gentoo here. I had to apply the following patch to the makefile.linux to make it compile.

Code: Select all

--- makemkv_v1.4.1_beta_oss/makefile.linux.org  2009-04-14 09:21:01.000000000 +0200
+++ makemkv_v1.4.1_beta_oss/makefile.linux      2009-04-22 14:47:33.000000000 +0200
@@ -48,7 +48,7 @@
        $(GCC) -o$@ $(MAKEMKVGUI_INC) $(LIBMAKEMKV_INC) $(SSTRING_INC) $(LIBDRIVEIO_INC) \
        $(MAKEMKVGUI_SRC) $(MAKEMKVGUI_SRC_POSIX) $(MAKEMKVGUI_GEN) $(SSTRING_SRC) $(LIBDRIVEIO_SRC_PUB) \
        -DHAVE_BUILDINFO_H -Itmp \
-       -I/usr/include/qt4 -lc -lstdc++ -lQtGui -lQtCore
+       -I/usr/include/qt4 -L/usr/lib/qt4 -lc -lstdc++ -lQtGui -lQtCore

 tmp/gen_buildinfo.h:
        mkdir -p tmp 
Ox

Re: oss make fails with 'cannot find -lQtGui'

Posted: Fri Apr 24, 2009 2:10 pm
by ggking7
That fixed it, thanks a lot.