You are not logged in.

#1 2015-10-01 08:36:04

setzer22
Member
Registered: 2014-07-26
Posts: 47

Compiling an application with qt4

I have an application from our teacher meant to be compiled with qt4 in Ubuntu, although he mentioned other distros would have no problems with compilation as long as they could satisfy the dependencies: Qt4.8 and GLEW, which I have.

Despite that, for me, t's failing after qmake && make because of some type definition being incomplete. I checked the affected type in Qt's docs and only found it in the Qt4.8 documentation.

Thus, I think this has to do with my system compiling with qt4 (I've used the qmake-qt4 symlink, and the Makefile appears to have proper paths, e.g. /usr/include/qt4/) but linking with qt5 libs (link flags include several modules labeled as Qt5 in the make output).

Do I need to do anything special, besides from using qmake-qt4, in order to compile a qt4 application?

PD: Sorry for the brevity and the lack of logs, I'm unable to post them from my phone right now, I'll post more info later if needed.

Offline

#2 2015-10-01 10:28:38

pb
Member
From: Krakow, PL
Registered: 2014-12-26
Posts: 336
Website

Re: Compiling an application with qt4

You've prepared PKGBUILD for this apps or compiles it in "traditional" way?
Maybe this variable:

export QT_SELECT=qt4

will be helpful for you. Take a look at:

https://wiki.archlinux.org/index.php/KDE_package_guidelines#Force_Qt4

Offline

Board footer

Powered by FluxBB