trouble compiling on mac

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

trouble compiling on mac

Jim Newton
After a recent update of musecore to the latest master, I am having lots of trouble compiling.
I tried to rebuild the xcode setup.  It looks like something is requiring Qt 4.x. I have Qt 5 installed.
Do I need to downgrade Qt, or is the makefile just wrong?

csh> make -f Makefile.osx xcode

mkdir build.xcode;              \
    cd build.xcode;                                  \
    cmake -DCMAKE_INSTALL_PREFIX=../build.xcode/mscore/Debug -DCMAKE_BUILD_TYPE=DEBUG \
          .. -G Xcode;                         \
    xcodebuild -project mscore.xcodeproj -target lrelease;
mkdir: build.xcode: File exists
CMake Error at /opt/local/share/cmake-3.2/Modules/FindQt4.cmake:1324 (message):
  Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
  build/FindQt5Transitional.cmake:92 (find_package)
  CMakeLists.txt:46 (include)


-- Configuring incomplete, errors occurred!
See also "/Users/jimka/MuseScore/build.xcode/CMakeFiles/CMakeOutput.log".
2015-05-08 20:12:55.240 xcodebuild[44801:1839492] stream error: stream error at offset 29: created by an unsupported XCDependencyGraph build
=== BUILD AGGREGATE TARGET ZERO_CHECK OF PROJECT mscore WITH THE DEFAULT CONFIGURATION (Debug) ===

Check dependencies

PhaseScriptExecution CMake\ Rules build.xcode/mscore.build/Debug/ZERO_CHECK.build/Script-376FDA5DB2694D34A90D8DFC.sh
    cd /Users/jimka/MuseScore
    /bin/sh -c /Users/jimka/MuseScore/build.xcode/mscore.build/Debug/ZERO_CHECK.build/Script-376FDA5DB2694D34A90D8DFC.sh
echo ""

make -f /Users/jimka/MuseScore/build.xcode/CMakeScripts/ReRunCMake.make
make[2]: *** No rule to make target `/Users/jimka/Qt/5.4/clang_64/lib/cmake/Qt5Concurrent/Qt5ConcurrentConfig.cmake', needed by `/Users/jimka/MuseScore/build.xcode/CMakeFiles/cmake.check_cache'.  Stop.
make[1]: *** [/Users/jimka/MuseScore/build.xcode/CMakeFiles/ZERO_CHECK] Error 2
Command /bin/sh failed with exit code 2

** BUILD FAILED **


The following build commands failed:
        PhaseScriptExecution CMake\ Rules build.xcode/mscore.build/Debug/ZERO_CHECK.build/Script-376FDA5DB2694D34A90D8DFC.sh
(1 failure)
make: *** [xcode] Error 65
Reply | Threaded
Open this post in threaded view
|

Re: trouble compiling on mac

lasconic
Administrator
The current master requires Qt5. The only recent changes was the addition of Freetype as a dependency.

2015-05-08 20:17 GMT+02:00 Jim Newton <[hidden email]>:
After a recent update of musecore to the latest master, I am having lots of
trouble compiling.
I tried to rebuild the xcode setup.  It looks like something is requiring Qt
4.x. I have Qt 5 installed.
Do I need to downgrade Qt, or is the makefile just wrong?

csh> make -f Makefile.osx xcode

mkdir build.xcode;              \
    cd build.xcode;                                  \
    cmake -DCMAKE_INSTALL_PREFIX=../build.xcode/mscore/Debug
-DCMAKE_BUILD_TYPE=DEBUG \
          .. -G Xcode;                         \
    xcodebuild -project mscore.xcodeproj -target lrelease;
mkdir: build.xcode: File exists
CMake Error at /opt/local/share/cmake-3.2/Modules/FindQt4.cmake:1324
(message):
  Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
  build/FindQt5Transitional.cmake:92 (find_package)
  CMakeLists.txt:46 (include)


-- Configuring incomplete, errors occurred!
See also "/Users/jimka/MuseScore/build.xcode/CMakeFiles/CMakeOutput.log".
2015-05-08 20:12:55.240 xcodebuild[44801:1839492] stream error: stream error
at offset 29: created by an unsupported XCDependencyGraph build
=== BUILD AGGREGATE TARGET ZERO_CHECK OF PROJECT mscore WITH THE DEFAULT
CONFIGURATION (Debug) ===

Check dependencies

PhaseScriptExecution CMake\ Rules
build.xcode/mscore.build/Debug/ZERO_CHECK.build/Script-376FDA5DB2694D34A90D8DFC.sh
    cd /Users/jimka/MuseScore
    /bin/sh -c
/Users/jimka/MuseScore/build.xcode/mscore.build/Debug/ZERO_CHECK.build/Script-376FDA5DB2694D34A90D8DFC.sh
echo ""

make -f /Users/jimka/MuseScore/build.xcode/CMakeScripts/ReRunCMake.make
make[2]: *** No rule to make target
`/Users/jimka/Qt/5.4/clang_64/lib/cmake/Qt5Concurrent/Qt5ConcurrentConfig.cmake',
needed by `/Users/jimka/MuseScore/build.xcode/CMakeFiles/cmake.check_cache'.
Stop.
make[1]: *** [/Users/jimka/MuseScore/build.xcode/CMakeFiles/ZERO_CHECK]
Error 2
Command /bin/sh failed with exit code 2

** BUILD FAILED **


The following build commands failed:
        PhaseScriptExecution CMake\ Rules
build.xcode/mscore.build/Debug/ZERO_CHECK.build/Script-376FDA5DB2694D34A90D8DFC.sh
(1 failure)
make: *** [xcode] Error 65




--
View this message in context: http://dev-list.musescore.org/trouble-compiling-on-mac-tp7579320.html
Sent from the MuseScore Developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: trouble compiling on mac

Jim Newton
Yes, I'm following those directions, and they don't seem to work on the mac, at last not on my mac.
The instructions say to use make -f Makefile.osx xcode
then start xcode.
That's what I did some months ago and it worked.
Today it fails with the errors shown in my previous mail.
Reply | Threaded
Open this post in threaded view
|

Re: trouble compiling on mac

Jim Newton
In reply to this post by lasconic
I found a problem.  The volume where QT is installed, had gotten unmounted.  Curious.  After a reboot, it is back, and the "make -f Makefile.osx xcode" succeeds.  Not sure yet if musescore makes ...
Reply | Threaded
Open this post in threaded view
|

Re: trouble compiling on mac

lasconic
Administrator
In reply to this post by Jim Newton
Then something has changed in your environment.

Are you using macport or homebrew?
What's the output of qmake -v ?

lasconic

2015-05-08 20:34 GMT+02:00 Jim Newton <[hidden email]>:
Yes, I'm following those directions, and they don't seem to work on the mac,
at last not on my mac.
The instructions say to use make -f Makefile.osx xcode
then start xcode.
That's what I did some months ago and it worked.
Today it fails with the errors shown in my previous mail.



--
View this message in context: http://dev-list.musescore.org/trouble-compiling-on-mac-tp7579320p7579322.html
Sent from the MuseScore Developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: trouble compiling on mac

lasconic
Administrator
In reply to this post by Jim Newton
Ok our emails crossed :) Good if it's back to normal.

lasconic

2015-05-08 21:22 GMT+02:00 Jim Newton <[hidden email]>:
I found a problem.  The volume where QT is installed, had gotten unmounted.
Curious.  After a reboot, it is back, and the "make -f Makefile.osx xcode"
succeeds.  Not sure yet if musescore makes ...



--
View this message in context: http://dev-list.musescore.org/trouble-compiling-on-mac-tp7579320p7579323.html
Sent from the MuseScore Developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: trouble compiling on mac

Jim Newton
So after rebooting, and forcing a make clean, I was able to recompile musescore.

csh> make clean
csh> make --makefile=Makefile.osx clean
csh> make -f Makefile.osx xcode
csh> open build.xcode/mscore.xcodeproj


Not sure why the Volume got unmounted.  I believe there is a problem with USB on the mac.   I've noticed that if I plug or unplug a USB device such as a keyboard or external hard drive, that flash drives get unmounted and remounted.  Been meaning to call the apple help desk about this.