This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Trouble building with Qt 4.8.5

Tags: None
(comma "," separated)
rainbowgoblin
Registered Member
Posts
21
Karma
0

Trouble building with Qt 4.8.5

Sat Mar 15, 2014 12:51 am
I'm trying to build the latest stable Marble sources (from the KDE 4.12 repository), and I'm running into a snag. I've got Qt 4.8.5, and I'm building on Mac OSX Mavericks (10.9). I get a bunch of warnings from Qt about this version of OSX being unsupported, but I don't think that's the issue (I've tried building a Qt Hello World, and it ran just fine).

I'm running cmake in my/home/dir/marble, with subdirectories sources and build (as source and build directories, respectively).

The error that I'm getting is:

In file included from /my/home/dir/marble/sources/src/apps/marble-ui/ControlView.cpp:644:
/my/home/dir/marble/build/src/ControlView.moc:10:10: fatal error:
'../../sources/src/ControlView.h' file not found
#include "../../sources/src/ControlView.h"

Indeed, ControlView.h is located in ../../sources/src/apps/marble-ui/

I've successfully built the same Marble sources on a Windows system with Qt 4.8.4, and I notice that ControlView.moc is in a different location, marble/build/src/apps/marble-ui/

So I'm wondering if either moc is somehow different in Qt 4.8.5 and is ignoring some arguments, or else if the Mac OSX cmake instructions are broken (and if so, what file should I look in to fix them).
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Can you please compare the versions of CMake you are using on Windows and Mac to see if they differ significantly? It seems that Moc may be getting called with the wrong output directory locations - leading to the wrong paths being generated.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
rainbowgoblin
Registered Member
Posts
21
Karma
0

Re: Trouble building with Qt 4.8.5

Sat Mar 15, 2014 10:31 pm
I've got cmake 2.8.12.2 on my Windows system, and 2.8.11.1 on the Mac.

EDIT: I've updated cmake on the Mac to 2.8.12.2 (and ran make clean and cmake again), and everything seems to compile just fine now. Thanks!


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]