MX & MEPIS Community Forum

Linux operating systems based on Debian Stable
View unanswered posts | View unsolved topics | View active topics |



Reply to topic  [ 10 posts ] 
Any tips regarding Qt? 
Author Message
Forum Regular
Forum Regular
User avatar

Joined: Thu Aug 17, 2006 7:56 am
Posts: 874
Location: Scotland
Has thanked: 87 times
Have thanks: 45 times
Post # 253139
Post Any tips regarding Qt?
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?


Thu Dec 02, 2010 5:16 pm
Profile
Online
Forum Veteran
Forum Veteran
User avatar

Joined: Wed Jul 19, 2006 6:13 am
Posts: 10882
Location: Geneva NY
Has thanked: 3287 times
Have thanks: 2097 times
Post # 253141
Post 
Quote:
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: 32 bit, 3.14-0.bpo.1-686-pae. MX-14.2, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB DDR3, / and /home on Kingston SSD 120 GB, data on WesternDigital 1TB, Dell SP2309W monitor.


Thu Dec 02, 2010 5:22 pm
Profile
Forum Veteran
Forum Veteran
User avatar

Joined: Wed Jul 12, 2006 1:42 am
Posts: 4786
Has thanked: 547 times
Have thanks: 723 times
Post # 253144
Post 
I wonder if anybody can port that to the latest QT version available for MEPIS 11.


Thu Dec 02, 2010 6:39 pm
Profile
Forum Guide
Forum Guide
User avatar

Joined: Thu Jul 13, 2006 2:02 pm
Posts: 1294
Location: Manchester,NH
Has thanked: 64 times
Have thanks: 17 times
Post # 253145
Post Hey, I was once a C++ hacker (tho I prefer Java)...
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


Thu Dec 02, 2010 6:41 pm
Profile WWW
Forum Guide
Forum Guide
User avatar

Joined: Sun Mar 25, 2007 5:49 pm
Posts: 2664
Location: Doncaster UK
Has thanked: 110 times
Have thanks: 738 times
Post # 253153
Post 
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.

_________________
*Never be afraid to try something new. Remember that a lone amateur built the Ark. A large group of professionals built the Titanic(Windoze)*

Kubuntu KDE 4.11.00 / KDE 4.11.60 / Debian Wheezy KDE 4.10.4 / Plasma Active 3 Tablet


Thu Dec 02, 2010 8:07 pm
Profile
Forum Veteran
Forum Veteran
User avatar

Joined: Fri Dec 15, 2006 8:07 pm
Posts: 8888
Location: Skullcrusher Mountain, Santee, CA USA
Has thanked: 635 times
Have thanks: 2048 times
Post # 253172
Post 
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.


Thu Dec 02, 2010 10:20 pm
Profile
Forum Regular
Forum Regular
User avatar

Joined: Thu Aug 17, 2006 7:56 am
Posts: 874
Location: Scotland
Has thanked: 87 times
Have thanks: 45 times
Post # 253224
Post 
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


Fri Dec 03, 2010 4:12 pm
Profile
Forum Veteran
Forum Veteran
User avatar

Joined: Wed Jul 12, 2006 1:42 am
Posts: 4786
Has thanked: 547 times
Have thanks: 723 times
Post # 253227
Post 
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.


Fri Dec 03, 2010 4:58 pm
Profile
Forum Guide
Forum Guide
User avatar

Joined: Thu Jul 13, 2006 2:02 pm
Posts: 1294
Location: Manchester,NH
Has thanked: 64 times
Have thanks: 17 times
Post # 253228
Post It feels like 'gold' to me...
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


Fri Dec 03, 2010 5:01 pm
Profile WWW
Forum Regular
Forum Regular
User avatar

Joined: Thu Aug 17, 2006 7:56 am
Posts: 874
Location: Scotland
Has thanked: 87 times
Have thanks: 45 times
Post # 253235
Post 
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.


Fri Dec 03, 2010 6:14 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 10 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.