Page 1 of 1

[solved] 3.9.9: Compilation error (openSUSE 11.x)

Posted: 10 Jan 2011 16:29
by coogor
Hi,

just transferred the new source to the openSUSE Build Service, and received some compilation errors.

Code: Select all

GUI/ui_CurveDrawerDialog.h:26:22: fatal error: qwt_plot.h: No such file or directory
Are there any new dependencies or libraries that need to be included?
Thanks

Re: 3.9.9: Compilation error (openSUSE 11.x)

Posted: 10 Jan 2011 21:00
by jza
Hi,
Sorry, I forgot the announcement on the site : from now the QWT library is needed (version 5 ok, version 6 not tested).
It's easy to compile it, but there is probably a package for your distribution.
http://qwt.sourceforge.net/

Re: 3.9.9: Compilation error (openSUSE 11.x)

Posted: 13 Jan 2011 22:46
by coogor
Thanks for the hint... but I'm still struggeling. I have included qwt-devel-5.2.1 (which contains the file qwt_plot.h )and libqwt, but the error still occurs in the same place.

I would love to attach the error log, but neither .txt, nor .log or no extention are allowed :cry:

Any idea?

Re: 3.9.9: Compilation error (openSUSE 11.x)

Posted: 14 Jan 2011 01:27
by jza
Hi,
Replace the path to your qwt installation directory (where is qwt_plot.h), line 30 the file src/zyGrib.pro

Code: Select all

INCLUDEPATH += /usr/include/qwt-qt4/
and the name of the linked library in your distribution (line 31)

Code: Select all

LIBS += -lqwt-qt4
If you don't know exactly what to write here, you should ask a forum of openSUZE developpers (it's not a zyGrib problem)... and give here the answer for other openSuse users.

Re: 3.9.9: Compilation error (openSUSE 11.x)

Posted: 15 Jan 2011 14:04
by coogor
For openSuSE, the settings need to be:

Code: Select all

INCLUDEPATH += /usr/include/qwt/
LIBS += -lqwt
For what reason did you relocate them into the qwt-qt4 directory? I can't spot his in the original source file of qwt. If you intend to keep it like this, I need to find a way to override it in the .spec file.

EDIT: Build for 11.1, 11.2 and 11.3 is done.

Re: 3.9.9: Compilation error (openSUSE 11.x)

Posted: 22 Jan 2011 17:24
by jza
coogor wrote:For openSuSE, the settings need to be:

Code: Select all

INCLUDEPATH += /usr/include/qwt/
LIBS += -lqwt
Thank you for the information.
For what reason did you relocate them into the qwt-qt4 directory? I can't spot his in the original source file of qwt.
A better question would be: why the library path are they not standardized between different linux distribution ?
If you intend to keep it like this, I need to find a way to override it in the .spec file.
There are only 2 short lines to update in the .pro file, this is not an insurmountable job. Or find a way to easily recognize opensuse from qmake.

Re: 3.9.9: Compilation error (openSUSE 11.x)

Posted: 24 Jan 2011 18:24
by coogor
jza wrote: A better question would be: why the library path are they not standardized between different linux distribution ?
As I checked the file from the qwt-project, it seems that Ubuntu is going their own way - dont ask me why, maybe because it is a Gnome-distribution
There are only 2 short lines to update in the .pro file, this is not an insurmountable job. Or find a way to easily recognize opensuse from qmake.
I have chosen the lazy way: Create a patchfile and activate the %patch tag in the spec file. 3.9.9.1 is build that way.

Re: 3.9.9: Compilation error (openSUSE 11.x)

Posted: 24 Jan 2011 20:54
by jza
coogor wrote:As I checked the file from the qwt-project, it seems that Ubuntu is going their own way - dont ask me why, maybe because it is a Gnome-distribution
Ubuntu library path are the same than debian, and other debian-like distributions.
I have chosen the lazy way: Create a patchfile and activate the %patch tag in the spec file. 3.9.9.1 is build that way.
Sorry, I do not know the solution really satisfactory and universal.

Re: 3.9.9: Compilation error (openSUSE 11.x)

Posted: 24 Jan 2011 22:54
by coogor
jza wrote:
coogor wrote:As I checked the file from the qwt-project, it seems that Ubuntu is going their own way - dont ask me why, maybe because it is a Gnome-distribution
Ubuntu library path are the same than debian, and other debian-like distributions.
...that may be the problem, no idea. As said, on the files from http://qwt.sourceforge.net/ I could not find any *-qt4
I have chosen the lazy way: Create a patchfile and activate the %patch tag in the spec file. 3.9.9.1 is build that way.
Sorry, I do not know the solution really satisfactory and universal.
adding a patch file is a quite common approach, it works for openSUSE and probably for other (RPM) distributions - did not try Fedora yet.

Anybody who is interested can download the files (spec and patch) here:
https://build.opensuse.org/package/file ... ome%3ADocB