Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-07-2003, 08:59 AM   #1
LQ Newbie
Registered: Nov 2003
Distribution: Mandrake 9.1
Posts: 26

Rep: Reputation: 15
Cool Moc!? What Is Moc

Hi, i'm trying to install OSS MIXER 1.1 to solve the problem of no sound with my ac'97 AD1985, but when i try to make oss mixer, it looks for a command callede moc, i don't know where to find it, i've looked for it in rmp archive but nothing to do, her it is the Makefile:

####### Makefile for ossmixer 1.1 KDE Version

INCDIR = $(QTDIR)/include -I$(KDEDIR)/include
CFLAGS = -O2 -Wall
LFLAGS = -L$(QTDIR)/lib -lqt -lg++ -L$(KDEDIR)/lib -lkdeui -lkdecore -lXext
CC = gcc
MOC = moc

####### Files

SOURCES = main.cpp ossmixer.cpp
OBJECTS = main.o ossmixer.o
SRCMETA = ossmixer.moc
TARGET = ../bin/x86linux/ossmixer
TARGET2 = ../bin/x86linux/mixerconfig

####### Implicit rules


$(CC) -c $(CFLAGS) -I$(INCDIR) $<

####### Build rules

all: $(TARGET) $(TARGET2)


$(TARGET2): mixerconfig.cpp mixerconfig.o
$(CC) mixerconfig.o -o $(TARGET2)

@makedepend -I$(INCDIR) $(SOURCES) 2> /dev/null

-rm -f *.o *.bak *~ *% #*
-rm -f $(SRCMETA) $(TARGET) $(TARGET2)

@echo Copying files
@cp $(TARGET) $(KDEDIR)/bin
@rm -rf $(KDEDIR)/share/doc/HTML/en/ossmixer
@rm -rf $(KDEDIR)/share/doc/HTML/de/ossmixer
@mkdir $(KDEDIR)/share/doc/HTML/en/ossmixer
@mkdir $(KDEDIR)/share/doc/HTML/de/ossmixer
@cp ../doc/en/* $(KDEDIR)/share/doc/HTML/en/ossmixer
@cp ../doc/de/* $(KDEDIR)/share/doc/HTML/de/ossmixer

@echo Installing OSS Mixer in KDE panel
@cp ../config/ossmixer.kdelnk $(KDEDIR)/share/applnk/Multimedia
@cp ../config/ossmixer.xpm $(KDEDIR)/share/icons
@cp ../config/ossmixermini.xpm $(KDEDIR)/share/icons/mini

@echo Removing files
@rm -f $(KDEDIR)/bin/ossmixer
@rm -rf $(KDEDIR)/share/doc/HTML/en/ossmixer
@rm -rf $(KDEDIR)/share/doc/HTML/de/ossmixer

@echo Uninstalling from KDE panel
@rm -rf $(KDEDIR)/share/applnk/Multimedia/ossmixer.kdelnk
@rm -rf $(KDEDIR)/share/icons/ossmixer.xpm
@rm -rf $(KDEDIR)/share/icons/mini/ossmixermini.xpm

####### Meta objects

ossmixer.moc: ossmixer.h
$(MOC) ossmixer.h -o ossmixer.moc

# DO NOT DELETE THIS LINE -- make depend depends on it.

PS I use Mandrake 9.1

Tnx for replies
Old 11-07-2003, 01:38 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
moc = meta-object-compiler

QT tool that enables usage of the
signal/slot concept in your classes.

Should live in </your/qt/dir/bin> and
probably be symlinked to /usr/bin/moc



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 12:25 PM
Moc!! aposig Linux - Newbie 4 01-28-2005 08:21 AM
Compiling Error (MOC) Dijon Linux - Newbie 0 02-14-2004 11:32 AM
moc problems parapente Programming 1 01-17-2002 04:20 PM
.moc? micke.prag Programming 2 01-02-2002 12:55 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration