Linking problems with KEXT
Linking problems with KEXT
- Subject: Linking problems with KEXT
- From: Kevin Dorne <email@hidden>
- Date: Wed, 8 Feb 2006 15:50:47 -0800
I'm working on an audio device driver that streams over the network using RTP. As the idea of implementing an RTP stack doesn't much appeal to me, I've looked to GNU ccRTP for handling that side of things.
Unfortunately, I can't seem to link in the ccRTP library when building the KEXT. My test build (a hello-world standalone app) works just fine, but it seems that the SDKROOT setting causes problems. Unfortunately, this is necessary to get the KEXT to build on its own. I have added the static libraries (libccgnu2.a, libccrtp1.a) to my project.
I can include the build settings and output for the test app, but I thought the output below might be enough for someone with sharper eyes than mine...
Here are build settings I have:
ARCHS = (ppc, i386);
GCC_VERSION_i386 = 4.0;
GCC_VERSION_ppc = 4.0;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
LIBRARY_SEARCH_PATHS = /usr/local/lib;
MACOSX_DEPLOYMENT_TARGET = "";
MACOSX_DEPLOYMENT_TARGET_i386 = 10.4;
MACOSX_DEPLOYMENT_TARGET_ppc = 10.4;
MODULE_NAME = net.tentacle.sweetpea.RTPAudioDriver;
MODULE_VERSION = 1.0.0d1;
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
SDKROOT_i386 = /Developer/SDKs/MacOSX10.4u.sdk;
SDKROOT_ppc = /Developer/SDKs/MacOSX10.4.0.sdk;
USER_HEADER_SEARCH_PATHS = "/usr/local/include /usr/local/include/cc++2"
When I build the project, I see the following (snipped):
CompileC build/RTPAudioDriver.build/Release/RTPAudioDriver.build/Objects-normal/
ppc/RTPAudioEngine.o /Users/sweetpea/dev/RTPAudioDriver/RTPAudioEngine.cpp normal ppc c++ com.apple.compilers.gcc.4_0
cd /Users/sweetpea/dev/RTPAudioDriver
/usr/bin/gcc-4.0 -x c++ -arch ppc -pipe -Wno-trigraphs -fasm-blocks -Os -Wreturn-type -Wunused-variable -fmessage-length=0 -fapple-kext -mtune=G5 -Wno-invalid-offsetof -mmacosx-version-min=10.4 -I/Users/sweetpea/dev/RTPAudioDriver/build/RTPAudioDriver.build/Release/RTPAudioDriver.build/RTPAudioDriver.hmap -F/Users/sweetpea/dev/RTPAudioDriver/build/Release -I/usr/local/include -I/usr/local/include/cc++2 -I/Users/sweetpea/dev/RTPAudioDriver/build/Release/include -I/Developer/SDKs/MacOSX10.4.0.sdk/System/Library/Frameworks/Kernel.framework/Headers -I/System/Library/Frameworks/Kernel.framework/Headers/bsd -I/System/Library/Frameworks/Kernel.framework/PrivateHeaders -I/Users/sweetpea/dev/RTPAudioDriver/build/RTPAudioDriver.build/Release/RTPAudioDriver.build/DerivedSources -fno-common -nostdinc -fno-builtin -finline -fno-keep-inline-functions -force_cpusubtype_ALL -fno-exceptions -msoft-float -static -mlong-branch -fno-rtti -fcheck-new -DKERNEL -DKERNEL_PRIVATE -DDRIVER_PRIVATE -DAPPLE -DNeXT -isysroot /Developer/SDKs/MacOSX10.4.0.sdk -c /Users/sweetpea/dev/RTPAudioDriver/RTPAudioEngine.cpp -o /Users/sweetpea/dev/RTPAudioDriver/build/RTPAudioDriver.build/Release/RTPAudioDriver.build/Objects-normal/ppc/RTPAudioEngine.o
In file included from /usr/local/include/ccrtp/base.h:42,
from /usr/local/include/ccrtp/rtppkt.h:41,
from /usr/local/include/ccrtp/queuebase.h:48,
from /usr/local/include/ccrtp/iqueue.h:47,
from /usr/local/include/ccrtp/ioqueue.h:47,
from /usr/local/include/ccrtp/cqueue.h:47,
from /usr/local/include/ccrtp/rtp.h:52,
from /Users/sweetpea/dev/RTPAudioDriver/RTPAudioEngine.cpp:6:
/usr/local/include/cc++2/cc++/config.h:105:20: error: unistd.h: No such file or directory
/usr/local/include/cc++2/cc++/config.h:729:18: error: poll.h: No such file or directory
/usr/local/include/cc++2/cc++/config.h:774:23: error: arpa/inet.h: No such file or directory
/usr/local/include/cc++2/cc++/config.h:775:19: error: netdb.h: No such file or directory
/usr/local/include/cc++2/cc++/config.h:926:19: error: fcntl.h: No such file or directory
/usr/local/include/cc++2/cc++/config.h:997:20: error: signal.h: No such file or directory
/usr/local/include/cc++2/cc++/config.h:1009:21: error: strings.h: No such file or directory
/usr/local/include/cc++2/cc++/config.h:1014:20: error: alloca.h: No such file or directory
/usr/local/include/cc++2/cc++/config.h:1065:28: error: bits/atomicity.h: No such file or directory
/usr/local/include/cc++2/cc++/config.h:1076:21: error: pthread.h: No such file or directory
/usr/local/include/cc++2/cc++/config.h:1083:23: error: semaphore.h: No such file or directory
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden