Windows dev environment

• Sep 20, 2024 - 21:48

I am trying to set up a dev environment for MuseScore on my Windows 10 box. I already have both VS2019 and VS2022 installed on the machine, and they are updated current. I have been following the directions at the Compile instructions (Windows - MSVC with Qt Creator) page. Though this page is somewhat out of date, I was able to build the dev branch from the command-line by installing Qt 6.4.2 and using msvc2019_64\bin in the batch file given on the web page.

I have also successfully built from within Qt Creator, but when I try to debug it throws up the following error below. I have also included a list of the Issues tab in Qt Creator. There must be some setting(s) that I a missing in Qt.

Thanks


Comments

In reply to by Jojo-Schmitz

Thanks, that got me well down the road. (I had been looking for those pages, because they were helpful in setting my macOS environment, but Google for some reason insists on returning the older pages on this forum.)

I am attaching a screen shot of my run config. The executable appears in red, which suggests to me that it doesn't like it. When I try to debug the program (which compiles and links without error), it now pops up the error screenshotted below that proves that some this wrong about the executable path.

I am hitting F5 after a complete rebuild, so all it's doing is prepping for debugging. Here is the full script. It looks the the MuseScore4.exe is going to a different directory that that specified. I have modified all the CMAKE_INSTALL_PREFIX values as directed in on the website.

21:40:29: Running steps for project mscore...
21:40:29: Starting: "C:\Qt\Tools\CMake_64\bin\cmake.exe" --build C:/Users/rober/source/repos/MuseScore/msvc.build/x64-Debug --target ALL_BUILD --config Debug
MSBuild version 17.11.9+a69bbaaf5 for .NET Framework

  Checking File Globs
  rcc_object_fonts_Bravura.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\engraving\rcc_object_fonts_Bravura.dir\Debug\rcc_object_fonts_Bravura.lib
  rcc_object_fonts_Campania.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\engraving\rcc_object_fonts_Campania.dir\Debug\rcc_object_fonts_Campania.lib
  rcc_object_fonts_Edwin.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\engraving\rcc_object_fonts_Edwin.dir\Debug\rcc_object_fonts_Edwin.lib
  rcc_object_fonts_FinaleBroadway.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\engraving\rcc_object_fonts_FinaleBroadway.dir\Debug\rcc_object_fonts_FinaleBroadway.lib
  rcc_object_fonts_FinaleMaestro.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\engraving\rcc_object_fonts_FinaleMaestro.dir\Debug\rcc_object_fonts_FinaleMaestro.lib
  rcc_object_fonts_FreeSans.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\engraving\rcc_object_fonts_FreeSans.dir\Debug\rcc_object_fonts_FreeSans.lib
  rcc_object_fonts_FreeSerif.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\engraving\rcc_object_fonts_FreeSerif.dir\Debug\rcc_object_fonts_FreeSerif.lib
  rcc_object_fonts_Gootville.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\engraving\rcc_object_fonts_Gootville.dir\Debug\rcc_object_fonts_Gootville.lib
  rcc_object_fonts_Leland.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\engraving\rcc_object_fonts_Leland.dir\Debug\rcc_object_fonts_Leland.lib
  rcc_object_fonts_MScore.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\engraving\rcc_object_fonts_MScore.dir\Debug\rcc_object_fonts_MScore.lib
  rcc_object_fonts_MuseJazz.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\engraving\rcc_object_fonts_MuseJazz.dir\Debug\rcc_object_fonts_MuseJazz.lib
  rcc_object_fonts_Petaluma.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\engraving\rcc_object_fonts_Petaluma.dir\Debug\rcc_object_fonts_Petaluma.lib
  rcc_object_fonts_Tabulature.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\engraving\rcc_object_fonts_Tabulature.dir\Debug\rcc_object_fonts_Tabulature.lib
  Automatic MOC and UIC for target kddockwidgets
  kddockwidgets.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\dockwindow\thirdparty\KDDockWidgets\src\Debug\kddockwidgets-qt61d.lib
  Automatic MOC and UIC for target muse_global
  muse_global.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\global\Debug\muse_global.lib
  Automatic MOC and UIC for target muse_dockwindow  
  muse_dockwindow.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\dockwindow\Debug\muse_dockwindow.lib
  Automatic MOC and UIC for target muse_ui  
  muse_ui.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\ui\Debug\muse_ui.lib
  Automatic MOC and UIC for target muse_uicomponents    
  muse_uicomponents.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\uicomponents\Debug\muse_uicomponents.lib
  Automatic MOC and UIC for target appshell 
  appshell.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\appshell\Debug\appshell.lib
  Automatic MOC and UIC for target beatroot 
  beatroot.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\importexport\midi\beatroot\Debug\beatroot.lib
  Automatic MOC and UIC for target freetype
  freetype.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\draw\freetype\Debug\freetype.lib
  Automatic MOC and UIC for target harfbuzz 
  harfbuzz.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\draw\harfbuzz\Debug\harfbuzz.lib
  Automatic MOC and UIC for target muse_draw    
  muse_draw.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\draw\Debug\muse_draw.lib
  Automatic MOC and UIC for target engraving    
  engraving.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\engraving\Debug\engraving.lib
  Automatic MOC and UIC for target liblouis
  liblouis.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\braille\thirdparty\liblouis\Debug\liblouis.lib
  Automatic MOC and UIC for target braille  
  braille.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\braille\Debug\braille.lib
  Automatic MOC and UIC for target gmock
  gmock.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\lib\Debug\gmockd.lib
  Automatic MOC and UIC for target muse_accessibility   
  muse_accessibility.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\accessibility\Debug\muse_accessibility.lib
  Automatic MOC and UIC for target braille_tests
  braille_tests.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\braille\tests\Debug\braille_tests.exe
  Automatic MOC and UIC for target commonscene  
  commonscene.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\commonscene\Debug\commonscene.lib
  Automatic MOC and UIC for target context  
  context.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\context\Debug\context.lib
  Automatic MOC and UIC for target converter    
  converter.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\converter\Debug\converter.lib
  Automatic MOC and UIC for target engraving_tests
  engraving_tests.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\engraving\tests\Debug\engraving_tests.exe
  Automatic MOC and UIC for target flac
  flac.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\audio\flac\Debug\flac.lib
  Automatic MOC and UIC for target fluidsynth
  fluidsynth.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\audio\fluidsynth\Debug\fluidsynth.lib
  Automatic MOC and UIC for target gmock_main
  gmock_main.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\lib\Debug\gmock_maind.lib
  Automatic MOC and UIC for target gtest
  gtest.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\lib\Debug\gtestd.lib
  Automatic MOC and UIC for target gtest_main
  gtest_main.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\lib\Debug\gtest_maind.lib
  Automatic MOC and UIC for target iex_audioexport  
  iex_audioexport.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\importexport\audioexport\Debug\iex_audioexport.lib
  Automatic MOC and UIC for target iex_bb   
  iex_bb.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\importexport\bb\Debug\iex_bb.lib
  Automatic MOC and UIC for target iex_bb_tests
  iex_bb_tests.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\importexport\bb\tests\Debug\iex_bb_tests.exe
  Automatic MOC and UIC for target iex_bww  
  iex_bww.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\importexport\bww\Debug\iex_bww.lib
  Automatic MOC and UIC for target iex_bww_tests
  iex_bww_tests.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\importexport\bww\tests\Debug\iex_bww_tests.exe
  Automatic MOC and UIC for target rtf2html 
  rtf2html.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\importexport\capella\rtf2html\Debug\rtf2html.lib
  Automatic MOC and UIC for target iex_capella  
  iex_capella.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\importexport\capella\Debug\iex_capella.lib
  Automatic MOC and UIC for target iex_capella_tests
  iex_capella_tests.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\importexport\capella\tests\Debug\iex_capella_tests.exe
  Automatic MOC and UIC for target iex_guitarpro    
  iex_guitarpro.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\importexport\guitarpro\Debug\iex_guitarpro.lib
  Automatic MOC and UIC for target iex_guitarpro_tests
  iex_guitarpro_tests.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\importexport\guitarpro\tests\Debug\iex_guitarpro_tests.exe
  Automatic MOC and UIC for target iex_imagesexport 
  iex_imagesexport.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\importexport\imagesexport\Debug\iex_imagesexport.lib
  Automatic MOC and UIC for target iex_mei  
  iex_mei.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\importexport\mei\Debug\iex_mei.lib
  Automatic MOC and UIC for target iex_mei_tests
  iex_mei_tests.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\importexport\mei\tests\Debug\iex_mei_tests.exe
  Automatic MOC and UIC for target iex_midi 
  iex_midi.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\importexport\midi\Debug\iex_midi.lib
  Automatic MOC and UIC for target iex_midi_tests
  iex_midi_tests.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\importexport\midi\tests\Debug\iex_midi_tests.exe
  Automatic MOC and UIC for target iex_musedata 
  iex_musedata.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\importexport\musedata\Debug\iex_musedata.lib
  Automatic MOC and UIC for target iex_musicxml 
  iex_musicxml.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\importexport\musicxml\Debug\iex_musicxml.lib
  Automatic MOC and UIC for target iex_musicxml_tests
  iex_musicxml_tests.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\importexport\musicxml\tests\Debug\iex_musicxml_tests.exe
  Automatic MOC and UIC for target iex_ove  
  iex_ove.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\importexport\ove\Debug\iex_ove.lib
  Automatic MOC and UIC for target inspector    
  inspector.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\inspector\Debug\inspector.lib
  Automatic MOC and UIC for target instrumentsscene 
  instrumentsscene.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\instrumentsscene\Debug\instrumentsscene.lib
  Automatic MOC and UIC for target lame
  lame.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\audio\lame\Debug\lame.lib
  Automatic MOC and UIC for target muse_actions 
  muse_actions.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\actions\Debug\muse_actions.lib
  Automatic MOC and UIC for target opus
  opus.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\audio\opusenc\opus\Debug\opus.lib
  Automatic MOC and UIC for target opusenc
  opusenc.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\audio\opusenc\Debug\opusenc.lib
  Automatic MOC and UIC for target muse_audio   
  muse_audio.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\audio\Debug\muse_audio.lib
  Automatic MOC and UIC for target muse_audioplugins    
  muse_audioplugins.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\audioplugins\Debug\muse_audioplugins.lib
  Automatic MOC and UIC for target muse_autobot 
  muse_autobot.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\autobot\Debug\muse_autobot.lib
  Automatic MOC and UIC for target muse_cloud   
  muse_cloud.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\cloud\Debug\muse_cloud.lib
  Automatic MOC and UIC for target muse_diagnostics 
  muse_diagnostics.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\diagnostics\Debug\muse_diagnostics.lib
  Automatic MOC and UIC for target muse_extensions  
  muse_extensions.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\extensions\Debug\muse_extensions.lib
  Automatic MOC and UIC for target muse_languages   
  muse_languages.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\languages\Debug\muse_languages.lib
  Automatic MOC and UIC for target muse_learn   
  muse_learn.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\learn\Debug\muse_learn.lib
  Automatic MOC and UIC for target muse_midi    
  muse_midi.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\midi\Debug\muse_midi.lib
  Automatic MOC and UIC for target muse_mpe 
  muse_mpe.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\mpe\Debug\muse_mpe.lib
  Automatic MOC and UIC for target muse_multiinstances  
  muse_multiinstances.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\multiinstances\Debug\muse_multiinstances.lib
  Automatic MOC and UIC for target muse_musesampler 
  muse_musesampler.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\musesampler\Debug\muse_musesampler.lib
  Automatic MOC and UIC for target muse_network 
  muse_network.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\network\Debug\muse_network.lib
  Automatic MOC and UIC for target muse_shortcuts   
  muse_shortcuts.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\shortcuts\Debug\muse_shortcuts.lib
  Automatic MOC and UIC for target muse_update  
  muse_update.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\update\Debug\muse_update.lib
  Automatic MOC and UIC for target muse_vst 
  muse_vst.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\stubs\vst\Debug\muse_vst.lib
  Automatic MOC and UIC for target muse_workspace   
  muse_workspace.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\workspace\Debug\muse_workspace.lib
  Automatic MOC and UIC for target notation 
  notation.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\notation\Debug\notation.lib
  Automatic MOC and UIC for target palette  
  palette.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\palette\Debug\palette.lib
  Automatic MOC and UIC for target playback 
  playback.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\playback\Debug\playback.lib
  Automatic MOC and UIC for target print    
  print.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\print\Debug\print.lib
  Automatic MOC and UIC for target project  
  project.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\project\Debug\project.lib
  Automatic MOC and UIC for target workspacescene   
  workspacescene.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\workspacescene\Debug\workspacescene.lib
  Automatic MOC and UIC for target mscore
  mscore.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\app\Debug\MuseScore4.exe
  Automatic MOC and UIC for target muse_accessibility_tests
  muse_accessibility_tests.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\accessibility\tests\Debug\muse_accessibility_tests.exe
  Automatic MOC and UIC for target muse_audioplugins_test
  muse_audioplugins_test.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\audioplugins\tests\Debug\muse_audioplugins_test.exe
  Automatic MOC and UIC for target muse_diagnostics_tests
  muse_diagnostics_tests.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\diagnostics\tests\Debug\muse_diagnostics_tests.exe
  Automatic MOC and UIC for target muse_draw_tests
  muse_draw_tests.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\draw\tests\Debug\muse_draw_tests.exe
  Automatic MOC and UIC for target muse_global_tests
  muse_global_tests.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\global\tests\Debug\muse_global_tests.exe
  Automatic MOC and UIC for target muse_mpe_test
  muse_mpe_test.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\mpe\tests\Debug\muse_mpe_test.exe
  Automatic MOC and UIC for target muse_network_test
  muse_network_test.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\network\tests\Debug\muse_network_test.exe
  Automatic MOC and UIC for target muse_ui_tests
  muse_ui_tests.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\ui\tests\Debug\muse_ui_tests.exe
  Automatic MOC and UIC for target notation_tests
  notation_tests.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\notation\tests\Debug\notation_tests.exe
  Automatic MOC and UIC for target playback_test
  playback_test.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\playback\tests\Debug\playback_test.exe
  Automatic MOC and UIC for target project_test
  project_test.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\project\tests\Debug\project_test.exe
  Automatic MOC and UIC for target update_test
  update_test.vcxproj -> C:\Users\rober\source\repos\MuseScore\msvc.build\x64-Debug\src\framework\update\tests\Debug\update_test.exe
21:40:43: The process "C:\Qt\Tools\CMake_64\bin\cmake.exe" exited normally.
21:40:43: Elapsed time: 00:14.

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