Problems with compiling source code.

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems with compiling source code.

Barry Say
Hi all, I am new here and I have just downloaded the source code with a view to seeing whether I can offer any help with the project.

I tried compiling from the command line but the make process failed with
In file included from actions/rs_actiondrawarctangential.cpp:35:0:
../../generated/librecad/ui/ui_qg_arctangentialoptions.h:13:25: fatal error: QtGui/QAction: No such file or directory
 #include <QtGui/QAction>
                         ^

The source code includes 50 occurrences of this line.

There is a file QActionEvent in directory:
/usr/include/x86_64-linux-gnu/qt5/QtGui
 but that is the nearest match I can find.

Can anyone help on this.

Barry








Reply | Threaded
Open this post in threaded view
|

Re: Problems with compiling source code.

ravas
Administrator
What operating system?
https://github.com/LibreCAD/LibreCAD/wiki/Build-from-source

My first guess is you don't have the associated -dev or -devel
package for qtgui.
Reply | Threaded
Open this post in threaded view
|

Re: Problems with compiling source code.

Barry Say
Almost all is sorted. I am running Debian 8 Jessie with an old kernel because of my display card.

Athough the 'missing' file is
QtGui/Qaction
 it is actually found at
QtWidgets/QAction
 It changed its location between qt4 and qt5. Apparently the Makefile allows for this, but quite how is beyond my paygrade. Could this cause a problem further down the line? The file comes from
qtbase5-dev
 which I thought I had loaded by copying your instructions for building from source.

Anyway, I now have a copy of the source code, an installation of qt-designer from a Debian package and an installation of the qt5 development suite from Qt. I can build LibreCad with either Qt package or from the command line.(3 routes).  When I tred to run LibreCAD I obtained a series of messages like
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'
 .......

These came from an earlier version of LibreCAD which I had installed as a Debian package. I have now removed that package and all is well. Does this mean that anyone developing  the package cannot simultaneously have a version installed as a package?
Reply | Threaded
Open this post in threaded view
|

Re: Problems with compiling source code.

ravas
Administrator
I can't say for Debian...
but on openSUSE I have the package installed,
and I build / run LibreCAD from Qt Creator,
with 'Shadow Build' disabled in 'Projects'.
This builds/places everything in my local repository.