LIBRECAD ISSUE WITH QT

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
IRD
Reply | Threaded
Open this post in threaded view
|

LIBRECAD ISSUE WITH QT

IRD
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
Reply | Threaded
Open this post in threaded view
|

Re: LIBRECAD ISSUE WITH QT

dxli

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 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


If you reply to this email, your message will be added to the discussion below:
http://forum.librecad.org/LIBRECAD-ISSUE-WITH-QT-tp5709218.html
To start a new topic under LibreCAD-dev, email [hidden email]
To unsubscribe from LibreCAD-dev, click here.
NAML
IRD
Reply | Threaded
Open this post in threaded view
|

Re: LIBRECAD ISSUE WITH QT

IRD
I work with Ubuntu 13.10.
What do I have to change in the Run option of Qt?
Reply | Threaded
Open this post in threaded view
|

Re: LIBRECAD ISSUE WITH QT

dxli

hi,

for qt creator: http://qt-project.org/doc/qtcreator-2.8/creator-run-settings.html

it is easy by command line:

qmake -r
make -j4
unix/librecad

thanks,

Dongxu

On 2013-11-28 3:25 PM, "IRD [via LibreCAD]" <[hidden email]> wrote:
I work with Ubuntu 13.10.
What do I have to change in the Run option of Qt?


If you reply to this email, your message will be added to the discussion below:
http://forum.librecad.org/LIBRECAD-ISSUE-WITH-QT-tp5709218p5709221.html
To start a new topic under LibreCAD-dev, email [hidden email]
To unsubscribe from LibreCAD-dev, click here.
NAML
IRD
Reply | Threaded
Open this post in threaded view
|

Re: LIBRECAD ISSUE WITH QT

IRD
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.

Reply | Threaded
Open this post in threaded view
|

Re: LIBRECAD ISSUE WITH QT

dxli
remove the librecad package from ubuntu daily build:

sudo apt-get remove librecad

we have disabled building of plugins by default.
IRD
Reply | Threaded
Open this post in threaded view
|

Re: LIBRECAD ISSUE WITH QT

IRD
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)?
Reply | Threaded
Open this post in threaded view
|

Re: LIBRECAD ISSUE WITH QT

dxli
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?
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)?


If you reply to this email, your message will be added to the discussion below:
http://forum.librecad.org/LIBRECAD-ISSUE-WITH-QT-tp5709218p5709225.html
To start a new topic under LibreCAD-dev, email [hidden email]
To unsubscribe from LibreCAD-dev, click here.
NAML



--
Dongxu Li, Ph.D.
www.librecad.org
IRD
Reply | Threaded
Open this post in threaded view
|

Re: LIBRECAD ISSUE WITH QT

IRD
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();
}

                       
IRD
Reply | Threaded
Open this post in threaded view
|

Re: LIBRECAD ISSUE WITH QT

IRD
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);
...