Bug at compile time, revision 4439
Ubuntu, (9.04)
[ 31%] Building CXX object mscore/CMakeFiles/mscore.dir/importove.cpp.o
[ 32%] Building CXX object mscore/CMakeFiles/mscore.dir/ove.cpp.o
[ 32%] Building CXX object mscore/CMakeFiles/mscore.dir/interval.cpp.o
[ 32%] Building CXX object mscore/CMakeFiles/mscore.dir/alsa.cpp.o
[ 32%] Building CXX object mscore/CMakeFiles/mscore.dir/mididriver.cpp.o
Linking CXX executable mscore
CMakeFiles/mscore.dir/plugins.cpp.o: In function `ScriptEngine':
/home/olivier/musescore/mscore/mscore/mscore/plugins.cpp:341: undefined reference to `create_TimeSig_class(QScriptEngine*)'
/home/olivier/musescore/mscore/mscore/mscore/plugins.cpp:341: undefined reference to `create_TimeSig_class(QScriptEngine*)'
collect2: ld a retourné 1 code d'état d'exécution
make[3]: *** [mscore/mscore] Erreur 1
make[3]: quittant le répertoire « /home/olivier/musescore/mscore/build »
make[2]: *** [mscore/CMakeFiles/mscore.dir/all] Erreur 2
make[2]: quittant le répertoire « /home/olivier/musescore/mscore/build »
make[1]: *** [all] Erreur 2
make[1]: quittant le répertoire « /home/olivier/musescore/mscore/build »
make: *** [release] Erreur 2
Comments
It seems a file is missing with the implementation of the new script object TimeSig.
Try commenting out line 341 of file plugins.cpp. The line says:
globalObject().setProperty("TimeSig", create_TimeSig_class(this), QScriptValue::SkipInEnumeration);
change into:
// globalObject().setProperty("TimeSig", create_TimeSig_class(this), QScriptValue::SkipInEnumeration);
With this small change, the source compiles and the programme runs. It might have problems with plugins (I did not try them), but should work until the missing file is added to the repository.
M.
In reply to Same under Windows by Miwarre
Very weird because I can compile on windows. (I'm currently trying on mac). As a new file has been added you might need to compile from scratch. Did you do that? or only make install ?
The file is not missing btw. It's sctimesig.cpp and has been added at revision r4439
In reply to Very weird because I can by [DELETED] 5
I was just about to confirm this compile error (sctimesig.cpp was not listed in cmakelist.txt) when Werner updated the cmake file, so it should be fixed now, r4445.
Nope, now I get this error:
Linking CXX executable mscore.exe
Creating library file: libmscore.dll.a
..\scriptgen\qtbindings\gui\libqtscript_gui.a(main.cpp.obj):main.cpp:(.rdata+0x2a8): undefined reference to `qtscript_create_QSessionManager_class(QScriptEngine*)'
collect2: ld returned 1 exit status
mingw32-make[3]: *** [mscore/mscore.exe] Error 1
mingw32-make[3]: Leaving directory `E:/MS_BRANCH/win32build'
mingw32-make[2]: *** [mscore/CMakeFiles/mscore.dir/all] Error 2
mingw32-make[2]: Leaving directory `E:/MS_BRANCH/win32build'
mingw32-make[1]: *** [all] Error 2
mingw32-make[1]: Leaving directory `E:/MS_BRANCH/win32build'
mingw32-make: *** [win32] Error 2
In reply to I was just about to confirm by schepers
Should be fixed in 4446
In reply to Should be fixed in 4446 by [DELETED] 5
it is fixed in r4446 (now r4448). Thank you!
Does 4339 exist?
I can only see up to 4338 (here ).
In reply to Does 4339 exist? I can only by chen lung
@chenlung 4339 is on the branch
revision 4448, ok,
Thanks, Lasconic !