Any tips regarding Qt?

Forum for discussion and implementation of features relating directly to development of MEPIS releases.
Message
Author
User avatar
wireman
Forum Regular
Forum Regular
Posts: 874
Age: 66
Joined: Thu Aug 17, 2006 7:56 am

Any tips regarding Qt?

#1 Postby wireman » Thu Dec 02, 2010 5:16 pm

I'm curious about looking at the installation routine for Mepis and I downloaded the source code. It's a real confusing mix of C++ and XML files, but I installed the Qt Creator IDE pointed it at the source and it looks much clearer now. :happy:

However, does anyone have any experience of Qt and have some pointers on how I can fiddle with the code?

User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 14921
Joined: Wed Jul 19, 2006 6:13 am

#2 Postby Jerry3904 » Thu Dec 02, 2010 5:22 pm

how I can fiddle with the code
If you have a code, you probably shouldn't fiddle with it

:playviolin:

because the music would be awful. Take two aspirins and go to bed instead.

:rofl:

[Obviously I have nothing helpful to offer...]
Production: 4.2.0-0.bpo.1-amd64, MX-15 RC1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, Kingston SSD 120 GB and WesternDigital 1TB
Testing: AAO 722: 3.16-0-4-686-pae. MX-15, AMD C-60 APU, 4 GB

User avatar
Adrian
Forum Veteran
Forum Veteran
Posts: 6103
Age: 41
Joined: Wed Jul 12, 2006 1:42 am

#3 Postby Adrian » Thu Dec 02, 2010 6:39 pm

I wonder if anybody can port that to the latest QT version available for MEPIS 11.

User avatar
cookdav
Forum Guide
Forum Guide
Posts: 1294
Age: 72
Joined: Thu Jul 13, 2006 2:02 pm

Hey, I was once a C++ hacker (tho I prefer Java)...

#4 Postby cookdav » Thu Dec 02, 2010 6:41 pm

wireman wrote:I'm curious about looking at the installation routine for Mepis and I downloaded the source code. It's a real confusing mix of C++ and XML files, but I installed the Qt Creator IDE pointed it at the source and it looks much clearer now. :happy:

However, does anyone have any experience of Qt and have some pointers on how I can fiddle with the code?


I'm with Jerry. ;)

Can you clarify a bit, by what you mean by 'fiddle with the code'?

Without that, all I could answer would be: Try using a text-editor
on the code itself, and then re-compile when you have it changed
like you want it. Then, fire it up and enjoy your changes. :pokerface:

EDIT: Now that I recall further...I also once hacked on some KDE-4 code,
a year or two ago. (A plasmoid, for wifi.) I learned some of
the details of how to compile/build etc, by googling 'kde4 development', and found some
forum or an email-list (my memory fades...). You'd do better (probably) by asking in
some forums other than these, if you want a richer/more-knowledgable response.

EDIT#2: Or, maybe send a PM directly to Marcos, as I think Jerry mentioned that Marcos
did some/most of the heavy-lifting on the previous changes.

My 2-cents...

[Like the chinaman said: "Even the longest journey begins with a single step."]
Lenovo-core-i7-laptop: Mepis-12 / Win-7 / Aptosid
Lenovo-laptop(wife's): Win-7 / M11
"Every day you look in the mirror now, you are looking at an endangered species." - Rob Watson

User avatar
Danum
Forum Guide
Forum Guide
Posts: 2687
Joined: Sun Mar 25, 2007 5:49 pm

#5 Postby Danum » Thu Dec 02, 2010 8:07 pm

Adrian wrote:I wonder if anybody can port that to the latest QT version available for MEPIS 11.


I would think qt-sdk should be installed, version 2 is in both testing and unstable.
Desktop.
Zalman Z11 Plus ATX PC Tower, AMD FX 8350 Black Edition Vishera, 8 Core 4.4 GHz, Kingston HyperX FURY Red 16GB, Nvidia GT740 Graphics, Pioneer BDR-209EBK Writer, 2 x Seagate 1TB SSHD SATA Hybrid Hard Drives. ASUS VS278Q 27 inch HD Monitor

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 10947
Age: 57
Joined: Fri Dec 15, 2006 8:07 pm

#6 Postby Stevo » Thu Dec 02, 2010 10:20 pm

Are you familiar with the standard build procedure for QT applications? In general, for QT 4, instead of ./configure, you'd run "qmake-qt4", which generates a makefile from settings in a .pro file. So then you would run "make" to compile the source code into a binary, which usually can be run just by clicking it, or installed by running "make install" as root.

However, since this is a Debian-based repo, it's much preferable to build deb packages from source, since the packaging system can keep track of what files go where, and avoid conflicts.

There's also the QT doc packages available in Synaptic which have plenty of walk-throughs and programming examples.
The optimist proclaims that we live in the best of all possible worlds, and the pessimist fears this is true.

James Branch Cabell

User avatar
wireman
Forum Regular
Forum Regular
Posts: 874
Age: 66
Joined: Thu Aug 17, 2006 7:56 am

#7 Postby wireman » Fri Dec 03, 2010 4:12 pm

Stevo wrote:Are you familiar with the standard build procedure for QT applications? In general, for QT 4, instead of ./configure, you'd run "qmake-qt4", which generates a makefile from settings in a .pro file. So then you would run "make" to compile the source code into a binary, which usually can be run just by clicking it, or installed by running "make install" as root.


No. I'm not at all familiar with Qt, hence my interest. I can program in Perl, Java and C.

Just to clarify. I downloaded the mepis-install code (minstall_8.4.97.tar.gz) and have imported into a qt creator project. It already has a Makefile and .pro file so I probably can just run 'make' on it.

Edit:
After installing qt4-qmake, qt4-doc, qt4-dev-tools, libqt4-dev and g++ (plus dependencies), I could indeed just run 'make'. I now have a working version of the installer that I can 'fiddle' with :happy: BTW this is in M11

User avatar
Adrian
Forum Veteran
Forum Veteran
Posts: 6103
Age: 41
Joined: Wed Jul 12, 2006 1:42 am

#8 Postby Adrian » Fri Dec 03, 2010 4:58 pm

I wonder if we shouldn't set up a github repo for the code and play with it over there. Then if some people submit patches Warren should be able to pull them from there.

User avatar
cookdav
Forum Guide
Forum Guide
Posts: 1294
Age: 72
Joined: Thu Jul 13, 2006 2:02 pm

It feels like 'gold' to me...

#9 Postby cookdav » Fri Dec 03, 2010 5:01 pm

wireman wrote:No. I'm not at all familiar with Qt, hence my interest. I can program in Perl, Java and C.

[...]

BTW this is in M11


I'm not surprised at all.

M11A3 is 'alpha-quality'. :rofl:

To para-phrase Nike: 'Just use it.'
[I frequently forget what version I'm using. It's just "MEPIS".] :cool:
Lenovo-core-i7-laptop: Mepis-12 / Win-7 / Aptosid
Lenovo-laptop(wife's): Win-7 / M11
"Every day you look in the mirror now, you are looking at an endangered species." - Rob Watson

User avatar
wireman
Forum Regular
Forum Regular
Posts: 874
Age: 66
Joined: Thu Aug 17, 2006 7:56 am

#10 Postby wireman » Fri Dec 03, 2010 6:14 pm

Adrian wrote:I wonder if we shouldn't set up a github repo for the code and play with it over there. Then if some people submit patches Warren should be able to pull them from there.


Yeah that could be a good idea.


Return to “Dev Team”

Who is online

Users browsing this forum: No registered users and 1 guest