Building and Eclipse on Xubuntu 13.04
I've managed to build Musescore on Xubuntu 13.04 and have tried following the instructions on
http://musescore.org/en/developers-handbook/compilation/compile-instruc… for Eclipse development but on trying
cmake -G"Eclipse CDT4 - Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug ../MuseScore
I get:
Could not determine Eclipse version, assuming at least 3.6 (Helios). Adjust CMAKE_ECLIPSE_VERSION if this is wrong.
qmake: could not find a Qt installation of ''
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (message): Makefiles" -D CMAKE_BUILD_TYPE=Debug ../MuseSc Could NOT find Qt4 (missing: QT_QMAKE_EXECUTABLE QT_MOC_EXECUTABLE
QT_UIC_EXECUTABLE QT_INCLUDE_DIR QT_LIBRARY_DIR QT_QTCORE_LIBRARY)Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:291 (_FPHSA_FAILURE_MESSAGE)
I've got QT5.1.1 - how can I get it to use this without re-building cmake?
Comments
And correcting PATH!
I renamed the project to mscore1 and in a new directory mscorebuild ran :
cmake -G"Eclipse CDT4 - Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug ../MuseScore
succesfully.
On trying to import the project into eclipse (3.8) I get the following:
Error processing changed links in project description file.
Cannot create linked resource '/mscore1-Debug@mscorebuild/[Targets]/[lib] testutils/omr'. Files cannot be linked to folders.
Any ideas how to fix this?
In reply to Cant import into Eclipse by madtom1999
Edit the workspace/musescore_build/.project file and search for testutils/omr. If you look carefully, you'll see that the entries for directories are type 2, while the entries for files are type 1. I changed the type 1 to type 2 for the testutils/omr entry and the error went away.