Author Topic: Packaging my first KDE4 program - now, where is qmake..  (Read 1636 times)

Online MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Packaging my first KDE4 program - now, where is qmake..
« on: July 30, 2009, 05:16:20 AM »
I have updated one of my VM's to KDE4, wow it looks good :-)

I'm missing the pkgutils in KDE4, but recon they will appear sometime (it's like having my right arm cut off when it is not there :-) Can I eventually help out building it?

Now, I'm looking at Kfreeflight for FlightGear that is made specifically for KDE4, and when compiling (outside the rpm enviroment) I get the message that:
Qt qmake not found

again, can I help out building qmake, or how do I get on with this,

any tips appreciated :-)

cheers,
MBantz

Online MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: Packaging my first KDE4 program - now, where is qmake..
« Reply #1 on: July 30, 2009, 05:47:07 AM »
Got past the first one - there was a qt4-task that must have installed qmake :-)

Any info on pkgutils for kde4 is still very appreciated :-)

thanks

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12512
Re: Packaging my first KDE4 program - now, where is qmake..
« Reply #2 on: July 30, 2009, 05:58:40 AM »
Just install pkgutils. You also need kde4-macros installed and probably some of the kde4 devel libs such as kdelibs4-devel etc..

The format in the spec file is:

%build
%cmake_kde4
%make

%install
rm -rf %{buildroot}
%makeinstall_std -C build

or

%build
%cmake_kde4
%make

%install
rm -rf %{buildroot}
cd build
%{makeinstall_std}
cd -

Also all kde4 stuff is being put in rpm group:

Group:      Graphical desktop/KDE4

qt4 apps with cmake usually work with:

%build
%cmake_qt4
%make

%install
rm -rf %buildroot
%makeinstall_std -C build

or:

%build
%{qt4dir}/bin/qmake

« Last Edit: July 30, 2009, 06:04:16 AM by texstar »

Thanks to everyone who donates. You keep the servers running.

Online MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: Packaging my first KDE4 program - now, where is qmake..
« Reply #3 on: July 30, 2009, 07:03:01 AM »
-Perfect-

Looks promising and simpler at first sight,

thank you very much, I have all the information I need now :-)

cheers,
MBantz