Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 01-16-2002, 07:39 PM   #1
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 and 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
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 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 . Now everything compiles just fine!


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 > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:51 AM.

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