Build problem on Ubuntu 64-bit

The place to discuss linux version of MakeMKV
Post Reply
godzawor
Posts: 2
Joined: Fri Jul 24, 2009 3:28 pm

Build problem on Ubuntu 64-bit

Post by godzawor » Fri Jul 24, 2009 3:33 pm

It compiled (and worked) fine on my 32-bit laptop but on my 64-bit desktop, the OSS component compile fails with:

mkdir -p out
gcc -O3 -D_linux_ -oout/makemkv.full -Imakemkvgui/inc -Ilibmakemkv/inc -Isstring/inc -Ilibdriveio/inc \
makemkvgui/src/aboutbox.cpp makemkvgui/src/client.cpp makemkvgui/src/dirselectbox.cpp makemkvgui/src/logic.cpp makemkvgui/src/logtext.cpp makemkvgui/src/main.cpp makemkvgui/src/nativefiledialog.cpp makemkvgui/src/mainwnd.cpp makemkvgui/src/marshall.cpp makemkvgui/src/progress.cpp makemkvgui/src/scsiinfo.cpp makemkvgui/src/settingdlg.cpp makemkvgui/src/uisync.cpp makemkvgui/src/viteminfo.cpp makemkvgui/src/str/getstr.cpp makemkvgui/src/str/en_utf16.cpp makemkvgui/src/api_posix.cpp makemkvgui/src/api_linux.cpp makemkvgui/src/logic_posix.cpp tmp/qt_rsrc.cpp tmp/moc_mainwnd.cpp tmp/moc_logtext.cpp tmp/moc_dirselectbox.cpp tmp/moc_aboutbox.cpp tmp/moc_settingdlg.cpp sstring/src/sstring.cpp libdriveio/src/srlist.cpp \
-DHAVE_BUILDINFO_H -Itmp \
-I/usr/include/qt4 -I/usr/lib/qt4/include -L/usr/lib/qt4 -lc -lstdc++ -lQtGui -lQtCore
tmp/moc_mainwnd.cpp:12:25: error: qmetaobject.h: No such file or directory
tmp/moc_mainwnd.cpp:13:26: error: qapplication.h: No such file or directory
tmp/moc_mainwnd.cpp:15:34: error: private/qucomextra_p.h: No such file or directory
tmp/moc_mainwnd.cpp:17:2: error: #error "This file was generated using the moc from 3.3.8b. It"
tmp/moc_mainwnd.cpp:18:2: error: #error "cannot be used with the include files from this version of Qt."
tmp/moc_mainwnd.cpp:19:2: error: #error "(The moc has changed too much.)"

/usr/include/qt4 exists and qmetaobject.h exists inside /usr/include/qt4/Qt and /usr/include/qt4/QtCore

I'm running Ubuntu 9.04.

Any ideas?

Thanks.

mike admin
Posts: 4075
Joined: Wed Nov 26, 2008 2:26 am
Contact:

Re: Build problem on Ubuntu 64-bit

Post by mike admin » Sat Jul 25, 2009 9:37 am

This is qt moc error. moc is a tool that generates glue code from qt classes. I can only guess that you either have two versions or a too old moc version on your system. moc is part of libqt4-dev. Also your log indicates that you're using moc from QT3, which is too old. Are you sure you have libqt4-dev package installed?

WolfOfCampscapel
Posts: 5
Joined: Sun Jul 05, 2009 10:21 pm

Re: Build problem on Ubuntu 64-bit

Post by WolfOfCampscapel » Sat Jul 25, 2009 5:20 pm

Try to change (in makefile.linux)

Code: Select all

MOC=moc
to

Code: Select all

MOC=moc-qt4
You probably have both libqt3-dev and libqt4-dev installed, and alternatives set to use qt3 tools by default. The change above was enough for me.

godzawor
Posts: 2
Joined: Fri Jul 24, 2009 3:28 pm

Re: Build problem on Ubuntu 64-bit

Post by godzawor » Mon Jul 27, 2009 2:44 pm

nope, no love.

I removed all qt3 dev components from the machine and rebooted.

when I 'moc' from the prompt I get:

Qt Meta Object Compiler version 61 (Qt 4.5.0)

Same error when compiling.

Thanks.

mike admin
Posts: 4075
Joined: Wed Nov 26, 2008 2:26 am
Contact:

Re: Build problem on Ubuntu 64-bit

Post by mike admin » Tue Jul 28, 2009 6:37 am

That should be it. Look at your error, it says "This file was generated using the moc from 3.3.8b." In your case it should be 4.5.0 . There is some stale binary somewhere.

WolfOfCampscapel
Posts: 5
Joined: Sun Jul 05, 2009 10:21 pm

Re: Build problem on Ubuntu 64-bit

Post by WolfOfCampscapel » Tue Jul 28, 2009 6:49 pm

make clean

Post Reply