Hi,
I am new on Librecad and I would like to contribute on its development with Qt. However, when I compile the source code with Qt 5 there is no issue but it doesn't open Librecad at the end of teh process. Is-it normal? Many thanks, IRD |
hi, which os? if you are building by qt-Creator, you need to configure the "Run" option to librecad instead of ttf2lff. thanks, Dongxu On 2013-11-28 1:44 PM, "IRD [via LibreCAD]" <[hidden email]> wrote:
Hi, |
I work with Ubuntu 13.10.
What do I have to change in the Run option of Qt? |
hi, for qt creator: http://qt-project.org/doc/qtcreator-2.8/creator-run-settings.html it is easy by command line: qmake -r thanks, Dongxu On 2013-11-28 3:25 PM, "IRD [via LibreCAD]" <[hidden email]> wrote:
I work with Ubuntu 13.10. |
I have tried your answer on the terminal.
I have the following errors even if I am able not to open the project: RS_DEBUG::setLevel(3) RS_DEBUG: Critical RS_DEBUG: Errors RS_DEBUG: Warnings Erreurs au lancement en ligne de commande : Plugin verification data mismatch in '/usr/lib/librecad/libalign.so' Plugin verification data mismatch in '/usr/lib/librecad/libasciifile.so Plugin verification data mismatch in '/usr/lib/librecad/libimportshp.so' Plugin verification data mismatch in '/usr/lib/librecad/liblist.so' Plugin verification data mismatch in '/usr/lib/librecad/libsameprop.so' Plugin verification data mismatch in '/usr/lib/librecad/libsample.so' Does it mean that I have to import additional libraries? Furthermore, I have failed to set up Qt : comilation ends without opening LibreCad. |
remove the librecad package from ubuntu daily build:
sudo apt-get remove librecad we have disabled building of plugins by default. |
Does it mean that I can download a new package to continue my project?
Could it be due to the fact that I am working with Qt 5.1 (I Will have to switch to Qt 5.2 for bluetooth issues)? |
no. because you have old binary plugins in /usr/lib/librecad/ from the ubuntu librecad package.On Fri, Nov 29, 2013 at 12:09 PM, IRD [via LibreCAD] <[hidden email]> wrote: Does it mean that I can download a new package to continue my project? -- Dongxu Li, Ph.D. www.librecad.org |
I have applied your line of command.
However, even if I have not modified the qc_applicationwindow.cpp I have now the following bug : librecad/src/main/qc_applicationwindow.cpp:314: error: cannot declare variable 'pligundoc' to be of abstract type 'Doc_plugin_interface' Doc_plugin_interface pligundoc(currdoc, w->getGraphicView(), this); What's wrong? NB: Extract from the qc_applicationwindow.cpp /** * Execute the plugin. */ void QC_ApplicationWindow::execPlug() { QAction *action = qobject_cast<QAction *>(sender()); QC_PluginInterface *plugin = qobject_cast<QC_PluginInterface *>(action->parent()); //get actual drawing QC_MDIWindow* w = getMDIWindow(); RS_Document* currdoc = w->getDocument(); //create document interface instance Doc_plugin_interface pligundoc(currdoc, w->getGraphicView(), this); //execute plugin plugin->execComm(&pligundoc, this, action->data().toString()); //TODO call update view w->getGraphicView()->redraw(); } |
I have solved this issue.
In fact the problem come from the frame of sameprop.cpp. Indeed, it uses Qvariant and therefore some types have to be defined as Q_DECLARE_METATYPE() However I am unabled to identify what have to declare as Q_METATYPE. Anyone has an idea? Thanks Extract from sameprop.cpp ... QHash<int, QVariant> data, moddata; QList<Plug_Entity *> obj; QVariant lay, col, ltype, lwidth; ... lay = data.value(DPI::LAYER); col = data.value(DPI::COLOR); ltype = data.value(DPI::LTYPE); lwidth = data.value(DPI::LWIDTH); ... |
Free forum by Nabble | Edit this page |