trying to compile on debian stretch which has qt5.7.. there are many problems. I'm using Mike's git repo.
main problem is declarative class has been obsoleted. Found a script that renames functions and += in .pro files
It compiles bit further and then this. I don't know qt so I'm stuck.
First few errors:
In file included from src/gaugewidget.h:27:0,
from src/gaugewidget.cpp:22:
src/gaugeitem.h:86:38: error: ‘QStyleOptionGraphicsItem’ does not name a type
void paint(QPainter *painter, const QStyleOptionGraphicsItem *style , QWidget * w);
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/gaugewidget.cpp:23:0:
src/roundgaugeitem.h:42:41: error: ‘QStyleOptionGraphicsItem’ does not name a type
void paint(QPainter *painter, const QStyleOptionGraphicsItem *style , QWidget *w);
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/gaugewidget.cpp:24:0:
src/bargaugeitem.h:41:41: error: ‘QStyleOptionGraphicsItem’ does not name a type
void paint(QPainter *painter, const QStyleOptionGraphicsItem *style , QWidget *w);
^~~~~~~~~~~~~~~~~~~~~~~~
src/gaugewidget.cpp: In constructor ‘GaugeWidget::GaugeWidget(QWidget*)’:
src/gaugewidget.cpp:30:62: error: no matching function for call to ‘QQuickView::QQuickView(QWidget*&)’
GaugeWidget::GaugeWidget(QWidget *parent) : QQuickView(parent)
Compiling on > qt5.6
-
- QFP80 - Contributor
- Posts: 67
- Joined: Thu Jan 12, 2012 12:54 pm
- Location: South Shithole
- ToxicGumbo
- LQFP144 - On Top Of The Game
- Posts: 474
- Joined: Tue Jan 03, 2012 8:37 pm
- Location: Manhattan, KS. USA
Re: Compiling on > qt5.6
Which branch are you using? When he added qt5 support, he dropped FreeEMS support, so using his newer source will be an uphill battle.
FreeEMS vehicle #23: 2003 Toyota "Toxic" Tacoma
Build page: http://forum.diyefi.org/viewtopic.php?f=3&t=1635)
Build page: http://forum.diyefi.org/viewtopic.php?f=3&t=1635)
Re: Compiling on > qt5.6
AncientGeek, can you not install QT4 along side it? I seem to recall having both on various systems of mine. Let me check for you for stretch...
Yeah, they are: https://packages.debian.org/stretch/qt4-default
This should get you close:
So just do a sudo apt-get install git build-essential qt4-qmake pkg-config libqt4-dev libqt4-opengl-dev libqwt-dev libqt4-declarative libqjson-dev freeglut3-dev and you should be in business. Hopefully.
There's a couple of updated branches for both app and plugin (that we should combine) that I can hook you up with. These have been working well for John, RobUSA, RobR33, Steve, Jeff, Me, and others. EDIT: PM sent.
Yeah, they are: https://packages.debian.org/stretch/qt4-default
This should get you close:
Code: Select all
fred@karma:~$ apt-cache show emstudioqt4-dev
Package: emstudioqt4-dev
Status: install ok installed
Priority: optional
Section: misc
Installed-Size: 0
Maintainer: Fred Cooke <:-p>
Architecture: all
Version: 1.0
Depends: git, build-essential, qt4-qmake, pkg-config, libqt4-dev, libqt4-opengl-dev, libqwt-dev, libqt4-declarative, libqjson-dev, freeglut3-dev
Description: A meta package for working with, and building, EMStudio QT4-based sources. Built from Git hash 54c495e.
Description-md5: fbf456804417ef5bc666ff87c13f2b18
There's a couple of updated branches for both app and plugin (that we should combine) that I can hook you up with. These have been working well for John, RobUSA, RobR33, Steve, Jeff, Me, and others. EDIT: PM sent.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
Re: Compiling on > qt5.6
Also, last time I played with it it was really buggy. The branch we've worked on has only bug fixes, so it's decidedly less buggy in some really important ways.ToxicGumbo wrote:Which branch are you using? When he added qt5 support, he dropped FreeEMS support, so using his newer source will be an uphill battle.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
-
- QFP80 - Contributor
- Posts: 67
- Joined: Thu Jan 12, 2012 12:54 pm
- Location: South Shithole
Re: Compiling on > qt5.6
Thanks guys. I was wasting my time in so many ways. Compiled and running with a bit of extra help from Fred.