Add library option is disabled in MuseScore project in QT
Add library option is disabled in MuseScore project in QT. Therefore I can't add library to the project. How can I fix this.
Add library option is disabled in MuseScore project in QT. Therefore I can't add library to the project. How can I fix this.
Do you still have an unanswered question? Please log in first to post your question.
Comments
in QtCreator? Which option exactly is disabled? What library are you trying to add?
In reply to in QtCreator? Which option… by Jojo-Schmitz
In QTCreator. "Add Library"option. I'm trying to add "libmysqlclient.so" file as an external library for database connection.
In reply to In QTCreator. "Add Library… by Gangani Chamika
My QtCreator 4.5.1 for Windows doesn't have that option at all. And with that it is probably clear why it shouldn't be done that way in Linux either ;-)
In reply to My QtCreator 4.5.1 for… by Jojo-Schmitz
I dont' know why this option doesn't show up at all in your Creator but I think that menu option is deactivated because MuseScore uses CMake and IIRC QtCreator can't really modify a CMake project the same way it can modify a qmake based project. I think Gangani needs to modify the CMake setup.
In reply to I dont' know why this option… by rmattes
Probably the diff between QtCreator on Windows and Linux?
But yes, adding libs needs to get done in the CMakeLists.txt, and differently per platform
In reply to I dont' know why this option… by rmattes
Thanks rmattes and jojo. I'll try this in that way. Thank you.
In reply to Thanks rmattes and jojo. I… by Gangani Chamika
While we are at it: what's the purpose of linking the Mysql client lib into MS? Using that would require a MySQL server installation as well, which is pretty unrealistic for most MS users (unless you use the embedded MySql server library ...). If you "just" need a database it might be much simpler to use Sqlite, wich is an in-process SQL database (i.e. it doesn't need an external server running). It's probably best to use Qt's sql module for that (https://doc.qt.io/qt-5/sql-driver.html#qsqlite).
Where to get MuseScore 1.0 qml or library to fix error in qt?
In reply to Where to get MuseScore 1.0… by BaronB
It is built-in into MuseScore
In reply to It is built-in into MuseScore by Jojo-Schmitz
So how can I debug my project for MuseScore in qt, or built new plugin ?
Thanks.
In reply to So how can I debug my… by BaronB
In QtCreator? Simple, you can't.
You could use MuseScore's plugin creator
In reply to In QtCreator? Simple, you… by Jojo-Schmitz
As far as I can understand qt is useless for purpose of creating and debugging plugins for MuseScore ?
In reply to As far as I can understand… by BaronB
Qt is not, but QtCreator is, more or less, pretty useless for developing plugins.
I'm not sure though what all this has to do with the topic of this thread?
In reply to Qt is not, but QtCreator is,… by Jojo-Schmitz
I thing I fond more appropriate topic for that question. https://musescore.org/en/node/269220#comment-825547
I thought this is right topic to find the answer on how to make qt-creator work with MuseScore plugins, but I see I am not the only one confused with that matter, what library to use and what software to use to develop and improve plugins as MuseScore's Plugin Creator is rather scant.
In reply to So how can I debug my… by BaronB
See #269612: Plugin development with Qt Creator
In reply to See #269612: Plugin… by Jojo-Schmitz
Dear Jojo,
i find the development of plugins with the musescore plugin editor very difficult.
I am used to Eclipse or XCode, where you have context-sensitive help, debugging, etc. and all of this is not available in Musescore plugin editor.
A simple task such as figuring out if a specific music sequence is present in a score, and at which positions, becomes quite complicated by not having the possibility to inspect with breakpoints and usual programming tools.
Therefore, please advice on how to enable doing that in some sort of IDE.
Thankyou
In reply to Dear Jojo, i find the… by lucatoldo
QtCreator can be used.
In reply to QtCreator can be used. by Jojo-Schmitz
Thankyou Jo-Jo for your prompt reply !
Glad that it is possible to use QtCreator.
Could you please explain how to add the MuseScore module to QtCreator ?
THANKYOU !
In reply to Thankyou Jo-Jo for your… by lucatoldo
Same as if you'd build MuseScore with it
In reply to Same as if you'd build… by Jojo-Schmitz
Could you please be a bit more detailed ?
I checked the documentation on how to build musescore and there is no explanation on then how to enable QtCreator to import musescore module.
Thankyou
In reply to Could you please be a bit… by lucatoldo
Because there isn't any explanation and none seems needed, it just works