Trouble compiling
I´m trying to compile with the command
cmake -P build.cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=ON
and i find this error at the end:
[ 94%] Linking CXX executable engraving_tests
/usr/bin/ld: CMakeFiles/engraving_tests.dir/drawdata_tests.cpp.o: undefined reference to symbol '_ZN4muse4draw5ColorC1EPKc'
/usr/bin/ld: /home/margarida/uni/PIC/MuseScore/builds/Linux-Qt-usr-Make-Release/src/framework/draw/libmuse_draw.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
gmake[2]: *** [src/engraving/tests/CMakeFiles/engraving_tests.dir/build.make:1215: src/engraving/tests/engraving_tests] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:7420: src/engraving/tests/CMakeFiles/engraving_tests.dir/all] Error 2
[ 94%] Linking CXX shared library libinspector.so
[ 94%] Built target inspector
[ 94%] Linking CXX shared library libnotation.so
[ 94%] Built target notation
gmake: *** [Makefile:166: all] Error 2
CMake Error at build.cmake:249 (message):
Build step failed with status 2. See output above for details.
Comments
Same issue is currently being discissed on Discord, https://discord.com/channels/818804595450445834/1366583991125147688/137… ff. and https://discord.com/channels/818804595450445834/939880479887327302/1373… ff