Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 300626 - sci-mathematics/freemat-4.0 fails due to old moc files
Summary: sci-mathematics/freemat-4.0 fails due to old moc files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-11 21:04 UTC by Hanno Böck
Modified: 2010-01-12 03:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
freemat-4.0.ebuild (freemat-4.0.ebuild,1.66 KB, text/plain)
2010-01-11 21:04 UTC, Hanno Böck
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hanno Böck gentoo-dev 2010-01-11 21:04:23 UTC
compilation of freemat fails with qt 4.6.0. Reason is that it ships with some moc files that refuse to build with a qt version other than they've been created.

Solution is to delete all moc files before the build process. They'll be regenerated.
So change
        rm -f CMakeCache.txt
to
        rm -f CMakeCache.txt libs/lib*/*.moc.* src/*.moc.*
and it'll be fine.

[  8%] Building CXX object libs/libFreeMat/CMakeFiles/FreeMatlib.dir/Intrepreter.moc.cpp.o
/var/tmp/portage/sci-mathematics/freemat-4.0/work/FreeMat-4.0.1-Source/libs/libFreeMat/Intrepreter.moc.cpp:14:2: Fehler: #error "This file was generated using the moc from 4.5.2. It"
/var/tmp/portage/sci-mathematics/freemat-4.0/work/FreeMat-4.0.1-Source/libs/libFreeMat/Intrepreter.moc.cpp:15:2: Fehler: #error "cannot be used with the include files from this version of Qt."
/var/tmp/portage/sci-mathematics/freemat-4.0/work/FreeMat-4.0.1-Source/libs/libFreeMat/Intrepreter.moc.cpp:16:2: Fehler: #error "(The moc has changed too much.)"
make[2]: *** [libs/libFreeMat/CMakeFiles/FreeMatlib.dir/Intrepreter.moc.cpp.o] Fehler 1
make[2]: *** Warte auf noch nicht beendete Prozesse...
make[1]: *** [libs/libFreeMat/CMakeFiles/FreeMatlib.dir/all] Fehler 2
make: *** [all] Fehler 2
 * ERROR: sci-mathematics/freemat-4.0 failed:
 *   Make failed!
Comment 1 Hanno Böck gentoo-dev 2010-01-11 21:04:44 UTC
Created attachment 216117 [details]
freemat-4.0.ebuild
Comment 2 Sébastien Fabbro (RETIRED) gentoo-dev 2010-01-12 03:13:17 UTC
applied in cvs. Thanks!