LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-29-2004, 11:38 PM   #1
zombyLINUX
LQ Newbie
 
Registered: Mar 2004
Distribution: SuSE 9.0 KDE 3.1
Posts: 26

Rep: Reputation: 15
Qt3 configurint for multithreading...


I am trying to write some multithreadable Qt programs. I have qt3 installed on my laptop, and I am alraedy able to do normal Qt programs. However, I thought that if you want to use QThread and stuff like that you have to reconfigure it, or maybe im wrong.

I read somewhere that you can reconfigure qt by doing make clean in the qt directory then do configure -thread. However, there is no makefile in my qt3 directory, and I am confused.

How do I configure Qt to do my multithreading stuff??

Please give any info you feel is useful...
 
Old 03-30-2004, 12:45 AM   #2
zombyLINUX
LQ Newbie
 
Registered: Mar 2004
Distribution: SuSE 9.0 KDE 3.1
Posts: 26

Original Poster
Rep: Reputation: 15
I try to do

class UpdateThread : QThread {
<class implmentation>
};

and i get a parse error befor the { on teh first line, and a parse error befor the last }.

If I take QThread out, and replace it with AnalogClock (another class in the file), then it compiles fine with no errors.

Any ideas? I think it has something to do with thread configuration...
 
Old 03-30-2004, 01:02 AM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Whether your Qt is thread-enabled or not is
reasonably easily determined ...

ls -l `locate libqt-mt`

If it's a real .so file, not a symlink to a
normal libqt, you're fine.


Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Multithreading dlublink Linux - Software 1 10-25-2005 01:23 PM
Slow multithreading with 2.6.13 andy753421 Linux - Software 8 09-16-2005 05:29 PM
Multithreading jayashrik Programming 1 07-20-2005 05:13 AM
java: multithreading ashirazi Programming 5 06-23-2005 10:50 AM
Configurint a wireless usb device cucolin@ Linux - Wireless Networking 0 07-09-2004 01:12 AM


All times are GMT -5. The time now is 06:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration