LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-07-2003, 07:59 AM   #1
mrmojo
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

.SUFFIXES: .cpp

.cpp.o:
$(CC) -c $(CFLAGS) -I$(INCDIR) $<

####### Build rules

all: $(TARGET) $(TARGET2)

$(TARGET): $(SRCMETA) $(SOURCES) $(OBJECTS)
$(CC) $(OBJECTS) -o $(TARGET) $(LFLAGS)

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

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

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

install:
@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

uninstall:
@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, 12:38 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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

Cheers,
Tink
 
  


Reply



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 problems parapente Programming 1 01-17-2002 03:20 PM
.moc? micke.prag Programming 2 01-02-2002 11:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:36 PM.

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