Re: How to include Frameworks without using Project Builder?
Re: How to include Frameworks without using Project Builder?
- Subject: Re: How to include Frameworks without using Project Builder?
- From: Stan Shebs <email@hidden>
- Date: Sat, 13 Apr 2002 06:43:45 -0700
You need a -framework CoreAudio at link time; -F only affects
search paths. -framework can be thought of as the framework
analogue to -l, while -F is the analog to -I.
Also, /System/Library/Frameworks is already searched for by
default, so you don't need a -F for it.
Stan
Wesley Miaw wrote:
>
>
Hi,
>
>
I'm porting Open Mash (http://www.openmash.org/) vat to Mac OS X using
>
XFree86 and command-line gcc (Apple's version). I've run into a problem
>
where I can't seem to access the CoreAudio/AudioHardware.h header to
>
define some symbols when linking.
>
>
I'm using the '-Xlinker "-F/System/Library/Frameworks"' argument to
>
/usr/bin/cc to pass the -F/System/Library/Frameworks argument to
>
/usr/bin/ld. This works, because if I use a non-existent directory after
>
-F, it complains about the directory not existing. So I know it's
>
pulling in that directory to find the frameworks.
>
>
I thought /usr/bin/cc should already be looking in there by default for
>
Frameworks, based on the description of -F on Apple's gcc options page,
>
but I put this in just to make sure. Apparently this isn't the problem.
>
>
Anyway, I'm linking code together that needs the functions defined in
>
CoreAudio/AudioHardware.h but encountering the following error:
>
>
/usr/bin/ld: Undefined symbols:
>
_AudioDeviceAddIOProc
>
_AudioDeviceGetProperty
>
_AudioDeviceGetPropertyInfo
>
_AudioDeviceRemoveIOProc
>
_AudioDeviceStart
>
_AudioDeviceStop
>
_AudioHardwareGetProperty
>
_AudioHardwareGetPropertyInfo
>
>
My build line is:
>
>
c++ -g -DMB_DEBUG -DMTRACE -DHAVE_STL -DUSE_SHM -DSIGRET=void
>
-DNLAYER=8 -DED_YBITS=4 -DAUDIO_FRAMESIZE=160 -DHAVE_LIBSRM
>
-DHAVE_SRMV2_API_H -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A7
>
-DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3
>
-DHAVE_TCL_H -I/n/bmrca/users/wesley/openmash/mash-code/srm/srmv2
>
-I/n/bmrca/users/wesley/openmash/mash-code/tclcl
>
-I/n/bmrca/users/wesley/openmash/mash-code/otcl
>
-I/n/bmrca/users/wesley/openmash/mash-code/tk8.3/generic
>
-I/n/bmrca/users/wesley/openmash/mash-code/tcl8.3/generic
>
-I/usr/X11R6/include -I/include -I./gen -I./audio -I./misc -I./codec
>
-I./render -I./rtp -I./net -I./srm -I./codec/p64 -I./codec/jpeg
>
-I./mplug/sdk -I. -I./codec/h263 -I./vd/tracker -I./vd/common
>
-I/n/bmrca/users/wesley/openmash/mash-code/mash/../gsm/inc -Wall
>
-Wl,-m -Xlinker "-F/System/Library/Frameworks" -o bin/mash mash-main.o
>
tkStripchart.o mb/tkCanvPS.o video/video-x11.o mplug/otcl-mplug.o
>
render/color-dither.o render/color-ed.o render/color-gray.o
>
render/color-hi.o render/color-mono.o render/color-pseudo.o
>
render/color-quant.o render/color-true.o render/color.o
>
render/renderer-window.o render/vw.o misc/misctk.o misc/sitebox.o
>
misc/tkwidget.o misc/drawboard.o misc/vu.o mb/mb-ps.o mb/tkPS.o
>
mb/mb-sndr.o mb/mb-canv.o mb/mb-tk-items.o mbv2/mbv2-tkcanv.o
>
mbv2/mbv2-sndr.o atobj/atobj-sm.o atobj/atobj-rcvr.o atobj/atobj-rreq.o
>
ps/ps-win.o mash-tkinit.o gen/otcl-mplug.o random.o rtp/inet.o
>
rtp/md5c.o audio/adpcm.o audio/lpc.o audio/tonetab.o audio/vat-gsm.o
>
compat/tkcompat.o tgmb/gateway/palm-bmp/2bit_munger.o
>
tgmb/gateway/palm-bmp/gif2grey.o tgmb/gateway/palm-bmp/propdit.o
>
tgmb/gateway/palm-bmp/hipass.o tgmb/gateway/palm-bmp/izoom.o
>
tgmb/gateway/palm-bmp/ditpic.o vd/tracker/tracker.o
>
vd/tracker/t_decoder-h261.o vd/tracker/t_p64/t_p64.o
>
vd/audio/transducer-gauge.o vd/audio/transducer-log.o
>
vd/audio/controller-erik.o vd/audio/transducer-spoof.o vd/audio/rtp-qm.o
>
vd/audio/rtp-qm-indexer.o vd/common/vd-utils.o misc/cpuinfo.o
>
audio/audio-macosx.o video/video-test.o mbv2/mbv2-session.o
>
mbv2/mbv2-src.o mbv2/mbv2-page.o mbv2/mbv2-cmd.o mbv2/mbv2-item.o
>
tgw/BidderHouse.o tgw/Redirector.o tgw/pipe_rend.o dc/rtp-switcher.o
>
dc/packet-splitter.o audio/audio.o audio/controller.o audio/decoder-
>
lpc.o audio/decoder.o audio/encoder-adpcm.o audio/decoder-adpcm.o
>
audio/encoder-gsm.o audio/decoder-gsm.o audio/encoder-lpc.o
>
audio/encoder.o audio/ss.o codec/decoder.o codec/decoder-cellb.o
>
codec/decoder-h261.o codec/decoder-h261v1.o codec/decoder-jpeg.o
>
codec/decoder-nv.o codec/decoder-pvh.o codec/encoder-cellb.o
>
codec/encoder-h261.o codec/encoder-jpeg.o codec/encoder-nv.o
>
codec/encoder-pvh.o codec/framer-jpeg.o codec/module.o
>
codec/compositor.o codec/dct.o codec/postdct.o codec/p64/p64.o
>
codec/p64/p64dump.o codec/jpeg/jpeg.o video/video-device.o
>
render/color-hist.o render/renderer.o render/rgb-converter.o
>
render/renderer-null.o misc/misc.o misc/observe.o misc/random.o
>
misc/transform.o misc/mtrace.o misc/ztrace.o misc/transducer-master.o
>
archive/archive-file.o archive/archive-stream.o archive/lts.o
>
archive/rtp-session-play.o archive/rtp-play.o archive/rtp-record.o
>
archive/transmogrify.o rtsp/server_mgr.o net/crypt-dull.o net/crypt.o
>
rtp/media-timer.o net/net-ip.o net/net.o net/udpchan.o rtp/session-rtp.o
>
rtp/source.o rtp/session-rtcp.o net/pktbuf.o net/transmitter.o
>
rtp/pktbuf-rtp.o rtp/transmitter-rtp.o srm/appmgr-srm.o srm/pktbuf-srm.o
>
srm/session-srm.o srm/source-srm.o srm/transmitter-srm.o ps/ps.o
>
ps/ps-file.o rtp/session-scuba.o net/tcpchan.o net/coordbus.o
>
net/pkttbl.o misc/replicator.o codec/transcoder.o
>
codec/video/transcoder-jpeg.o codec/video/transcoder-h261.o
>
codec/crdef.o rtp/session-rtpgw.o codec/audio/transcoder-pcm.o
>
codec/audio/transcoder-adpcm.o net/announce-listen.o net/reflector.o
>
mash-tclinit.o archive/mb-record.o archive/mb-play.o mb/mb-basemgr.o
>
mb/mb-appmgr.o mb/mb-basecmd.o mb/mb-cmdexec.o mb/mb-basecanv.o
>
mb/mb-basepage.o mb/mb-apppage.o mb/mb-basercvr.o mb/mb-apprcvr.o
>
mb/mb-items.o mb/mb-baserreq.o mb/mb-string.o mb/mb-file.o mb/error.o
>
tgmb/gateway/tgmb-canv.o tgmb/gateway/tgmb-canvcmd.o
>
tgmb/gateway/tgmb-chunk.o tgmb/gateway/tgmb-conn.o
>
tgmb/gateway/tgmb-sndr.o tgmb/gateway/tgmb-mgr.o gen/tk_prolog.o
>
gen/version.o gen/huffcode.o gen/pvh-huff.o gen/cm0.o gen/cm1.o
>
gen/tabmulaw.o gen/tabmix.o gen/tabsmix.o gen/tabmulawx.o
>
codec/cellb_tables.o \
>
/n/bmrca/users/wesley/openmash/mash-
>
code/mash/../gsm/lib/libgsm.a
>
-L/n/bmrca/users/wesley/openmash/mash-code/tk8.3/unix -ltk8.3
>
-L/usr/X11R6/lib -lXext -lX11 -L/n/bmrca/users/wesley/openmash/mash-
>
code/tclcl -ltclcl -L/n/bmrca/users/wesley/openmash/mash-code/otcl
>
-lotcl -L/n/bmrca/users/wesley/openmash/mash-code/tcl8.3/unix -ltcl8.3
>
-L../srm/bin -lsrm -lm
>
>
Any ideas?
>
>
TIA,
>
Wes
>
_______________________________________________
>
unix-porting mailing list | email@hidden
>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/unix-porting
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.