carbon problems

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
cyb3rpunk617
Posts: 5
Joined: Mon Feb 25, 2008 9:34 pm

carbon problems

Post by cyb3rpunk617 »

I just recently downloaded the Irrlicht 1.4 engine in MacOS format and compiled through Xcode. It went through fine and all of the examples run fine, but there is one more problem. Whenever I try to compile the tutorial files, I get this error:

cd /Users/jordanwalker/name
/Developer/usr/bin/gcc-4.0 -x c++-header -arch i386 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -mdynamic-no-pic -fmessage-length=0 -fvisibility=hidden -fvisibility-inlines-hidden -mmacosx-version-min=10.4 -gdwarf-2 -I/Users/jordanwalker/name/build/name.build/Release/hope.build/hope.hmap -F/Users/jordanwalker/name/build/Release -F/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks -I/Users/jordanwalker/name/build/Release/include -I/Users/jordanwalker/Desktop/irrlicht/include -I/Users/jordanwalker/name/build/name.build/Release/hope.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.4u.sdk -c /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h -o /Library/Caches/com.apple.Xcode.502/SharedPrecompiledHeaders/Carbon-fcjgdqseudgvjzcrcwadbdcvsymj/Carbon.h.gch
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:85: error: 'io_user_reference_t' was not declared in this scope
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:87: error: 'io_user_reference_t' does not name a type
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:92: error: 'OSAsyncReference64' does not name a type
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:103: error: 'io_user_reference_t' does not name a type
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/CarbonEventsCore.h:209: error: conflicting declaration 'typeCFStringRef'
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEDataModel.h:158: error: 'typeCFStringRef' has a previous declaration as '<anonymous enum> typeCFStringRef'
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/CarbonEventsCore.h:210: error: conflicting declaration 'typeCFMutableStringRef'
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEDataModel.h:159: error: 'typeCFMutableStringRef' has a previous declaration as '<anonymous enum> typeCFMutableStringRef'
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/CarbonEventsCore.h:211: error: conflicting declaration 'typeCFArrayRef'
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEDataModel.h:160: error: 'typeCFArrayRef' has a previous declaration as '<anonymous enum> typeCFArrayRef'
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/CarbonEventsCore.h:212: error: conflicting declaration 'typeCFMutableArrayRef'
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEDataModel.h:161: error: 'typeCFMutableArrayRef' has a previous declaration as '<anonymous enum> typeCFMutableArrayRef'
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/CarbonEventsCore.h:213: error: conflicting declaration 'typeCFDictionaryRef'
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEDataModel.h:162: error: 'typeCFDictionaryRef' has a previous declaration as '<anonymous enum> typeCFDictionaryRef'
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/CarbonEventsCore.h:214: error: conflicting declaration 'typeCFMutableDictionaryRef'
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEDataModel.h:163: error: 'typeCFMutableDictionaryRef' has a previous declaration as '<anonymous enum> typeCFMutableDictionaryRef'
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/CarbonEventsCore.h:215: error: conflicting declaration 'typeCFTypeRef'
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEDataModel.h:166: error: 'typeCFTypeRef' has a previous declaration as '<anonymous enum> typeCFTypeRef'
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:85: error: 'io_user_reference_t' was not declared in this scope
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:87: error: 'io_user_reference_t' does not name a type
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:92: error: 'OSAsyncReference64' does not name a type
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:103: error: 'io_user_reference_t' does not name a type
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/CarbonEventsCore.h:209: error: conflicting declaration 'typeCFStringRef'
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEDataModel.h:158: error: 'typeCFStringRef' has a previous declaration as '<anonymous enum> typeCFStringRef'
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/CarbonEventsCore.h:210: error: conflicting declaration 'typeCFMutableStringRef'
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEDataModel.h:159: error: 'typeCFMutableStringRef' has a previous declaration as '<anonymous enum> typeCFMutableStringRef'
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/CarbonEventsCore.h:211: error: conflicting declaration 'typeCFArrayRef'
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEDataModel.h:160: error: 'typeCFArrayRef' has a previous declaration as '<anonymous enum> typeCFArrayRef'
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/CarbonEventsCore.h:212: error: conflicting declaration 'typeCFMutableArrayRef'
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEDataModel.h:161: error: 'typeCFMutableArrayRef' has a previous declaration as '<anonymous enum> typeCFMutableArrayRef'
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/CarbonEventsCore.h:213: error: conflicting declaration 'typeCFDictionaryRef'
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEDataModel.h:162: error: 'typeCFDictionaryRef' has a previous declaration as '<anonymous enum> typeCFDictionaryRef'
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/CarbonEventsCore.h:214: error: conflicting declaration 'typeCFMutableDictionaryRef'
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEDataModel.h:163: error: 'typeCFMutableDictionaryRef' has a previous declaration as '<anonymous enum> typeCFMutableDictionaryRef'
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/CarbonEventsCore.h:215: error: conflicting declaration 'typeCFTypeRef'
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEDataModel.h:166: error: 'typeCFTypeRef' has a previous declaration as '<anonymous enum> typeCFTypeRef'

Its something to do with my local carbon header file, but I have no idea past that. This happens with all of the tutorials, regardless of which one. Any ideas?

-Jordan
Gianni
Posts: 48
Joined: Sat Mar 22, 2008 9:24 am

Post by Gianni »

if i understood correctly, you have not entered well the "include" and the file "lib." If you use Dev-c + + can tell you how to do that . :D
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

It seems that you use a 10.4 and a 10.5 SDK, maybe you can restrict your project to use only one. Also, the current SVN has some more fixes applied to the OSX version, maybe you want to use those.
cyb3rpunk617
Posts: 5
Joined: Mon Feb 25, 2008 9:34 pm

Post by cyb3rpunk617 »

Gianni, do you mind elaborating for me? I do not run Dev-C++, but I would appreciate anything you have. What do you mean by the "lib" file? I tried telling my compiler (Xcode) to search in the irrlicht "lib" file and nothing changed.
-Jordan
Post Reply