Errors compiling on Mac

• Feb 1, 2014 - 19:31

I'm using:

OSX Mavericks
cmake 2.8.12
qt 5.2.0

I've searched the forums for answers to the following error:

---------------------
CMake Error at /opt/local/share/cmake-2.8/Modules/FindQt4.cmake:1388 (message):
Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
build/FindQt5Transitional.cmake:88 (find_package)
CMakeLists.txt:32 (include)

-- Configuring incomplete, errors occurred!
See also "/Users/craig/MuseScore/build.release/CMakeFiles/CMakeOutput.log".
xcodebuild: error: 'mscore.xcodeproj' does not exist.
xcodebuild: error: 'mscore.xcodeproj' does not exist.
make: *** [release] Error 66
----------------------

Also, I get the following strange output when I run 'make clean':

rm -rf build.debug build.release
rm -rf win32build win32install

Should I be seeing 'win32' when I'm running a Mac? I recently migrated from a Windows PC, but I'm using a fresh download from github.

Also, what's wrong with my Qt version. Is Qt not being detected at all?


Comments

Still having the same problem.

I uninstalled and re-installed everything (this time using homebrew instead of Macports), but to no avail. To reiterate, I'm especially baffled by the following lines since I am not using Windows anymore:


rm -rf build.debug build.release
rm -rf win32build win32install

In reply to by moonlake

You shouldn't run make clean but make -f Makefile.osx clean or make will use the default makefile, the one for linux which also try to remove cross compilation result for Windows...

Regarding the Qt message, can you run qmake -v and make sure that you have Qt5.2.X installed ? if qmake is not found, you need to add it to your PATH.

Since it's been roughly another day without replies, I want to stress this line:


CMake Error at /opt/local/share/cmake-2.8/Modules/FindQt4.cmake:1388 (message):
Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x

I think I'm not alone. Another individual has posted the same error a few weeks ago on the developer forum, and they've also gotten no responses. http://dev-list.musescore.org/CMake-Error-at-usr-share-cmake-2-8-Module…

At the very least, is anyone looking into this problem? Thank you.

My error turned out to be simple. I used the following in my path:

/Users/me/Qt5.2.0/5.2.0/clang_64/bin

but my directory structure actually looks like this:

/Users/me/Qt/5.2.0/clang_64/bin

Do you still have an unanswered question? Please log in first to post your question.