LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-16-2002, 07:39 PM   #1
parapente
Member
 
Registered: Sep 2001
Location: Greece
Distribution: Gentoo
Posts: 39

Rep: Reputation: 15
Unhappy moc problems


At first I created a c++ project with Kdevelop. I typed in some code and later I decided I should use some of the qt functions. So I set them up but now some of the header files must be passed through moc. I cannot achieve this to be done automatically. Is there an option in Kdevelop to do this or should I edit configure.in and Makefile.am by hand? What alterations should I make? Please help me! I have the code almost ready and I cannot compile the project (the easy way that is....). I thank you in advance!
 
Old 01-17-2002, 03:20 PM   #2
parapente
Member
 
Registered: Sep 2001
Location: Greece
Distribution: Gentoo
Posts: 39

Original Poster
Rep: Reputation: 15
Cool OK Problem solved!

After a little bit of research on the internet I found the solution. You have to add METASOURCES = AUTO to Makefile.am on both the dir of the project and the dir of the source files (I don't know if changing the first one only suffices). You also have to declare the .h files that should go through moc as sources and add AC_PATH_QT and AC_PATH_QT_MOC_UIC in configure.in . Now everything compiles just fine!
 
  


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
qt moc jlp1976 Programming 1 03-26-2005 11:25 AM
Moc!! aposig Linux - Newbie 4 01-28-2005 07:21 AM
Compiling Error (MOC) Dijon Linux - Newbie 0 02-14-2004 10:32 AM
Moc!? What Is Moc mrmojo Linux - Newbie 1 11-07-2003 12:38 PM
.moc? micke.prag Programming 2 01-02-2002 11:55 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:43 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
Open Source Consulting | Domain Registration