The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > MacCar > CarFrontEnd

Reply
 
Thread Tools Display Modes
Old 08-22-2007, 08:28 PM   #1
Low Bitrate
mustanglou's CarPC Specs
 
Join Date: Mar 2007
Posts: 70
My Photos: (2)
Compiling from source question...

Hi,

This might just be a general question about developing for OSX or perhaps it's specific to carfrontend...

I downloaded the source via svn. I was able to build CarFrontEndAPI without issue and then CarFrontEnd. But, when I tried to build/run CarFrontEnd I got the following error:

Quote:
[Session started at 2007-08-22 21:10:04 -0400.]
dyld: Library not loaded: /Users/Andrew/Library/Frameworks/CarFrontEndAPI.framework/Versions/A/CarFrontEndAPI
Referenced from: /Users/Andrew/mac-carfrontend/CarFrontEnd/build/Release/CarFrontEnd.app/Contents/MacOS/CarFrontEnd
Reason: image not found

CarFrontEnd has exited due to signal 5 (SIGTRAP).
[Session started at 2007-08-22 21:11:45 -0400.]
dyld: Library not loaded: /Users/Andrew/Library/Frameworks/CarFrontEndAPI.framework/Versions/A/CarFrontEndAPI
Referenced from: /Users/Andrew/mac-carfrontend/CarFrontEnd/build/Release/CarFrontEnd.app/Contents/MacOS/CarFrontEnd
Reason: image not found

CarFrontEnd has exited due to signal 5 (SIGTRAP).
[Session started at 2007-08-22 21:26:25 -0400.]
dyld: Library not loaded: /Users/Andrew/Library/Frameworks/CarFrontEndAPI.framework/Versions/A/CarFrontEndAPI
Referenced from: /Users/Andrew/mac-carfrontend/CarFrontEnd/build/Release/CarFrontEnd.app/Contents/MacOS/CarFrontEnd
Reason: image not found

I ASSUMED that I simply needed to copy CarFrontEndAPI.framework that I just built from the release folder to username/library/ but that didn't work (I get the same error). I'm missing an obvious step but I can't figure it out. Any help would be appreciated. Thanks

-Andrew
mustanglou is offline   Reply With Quote
Sponsored Links
Old 08-22-2007, 10:25 PM   #2
CarFrontEnd Creator
iamgnat's CarPC Specs
 
iamgnat's Avatar
 
Join Date: Jul 2004
Location: NoVA
Vehicle: 04 Ford Escape
Posts: 846
My Photos: (0)
I haven't seen that before

A quick Google search seems to suggest there are permissions issues on your disk (Disk Utility, fix permissions and might as well check the disk too) or the library (or one that it uses) is corrupted.

The former is an easy thing to do. The later would probably be localized with the CarFrontEndAPI framework (since you'd have many more issues if Cocoa, Foundation, or AppKit were broken ). I would suggest deleting the copy you made, then do a Clean All on both projects and try again.

Another test would be to Clean All both projects, install CFE using the installer, then change the CarFrontEnd project to use the installed CarFrontEndAPI (/Library/Frameworks) version and see if it will build and run then.

If you still have issues, take a look at the HOWTO thread for building plugins and see if any of the info about build issues might apply to your config.

Hope one of those ideas helps.

-dave
__________________
My pathetic worklog.
CarFrontEnd (now it's own sub-forum!!!!)
iamgnat is offline   Reply With Quote
Old 08-23-2007, 03:11 PM   #3
Low Bitrate
mustanglou's CarPC Specs
 
Join Date: Mar 2007
Posts: 70
My Photos: (2)
I went through the test described in the Plugin Howto where I created cfe_test.m. When I tried to compile, I got the following error:
Quote:
cfe_test.m:3:42: error: CarFrontEndAPI/CarFrontEndAPI.h: No such file or directory

So, I tried to installed the binary package and then re-ran the test. This time, cfe_test.m compiled without error. Next, I tried to build and run CarFrontEnd and it worked! My guess is that I was unable to get Xcode to use the CarFrontEndAPI that I just built -- for some reason it will only use the installed version. I'll probably have to find a better solution if I'm ever going to change CarFrontEndAPI but for now, this should be ok.

-Andrew
mustanglou is offline   Reply With Quote
Old 08-23-2007, 04:05 PM   #4
CarFrontEnd Creator
iamgnat's CarPC Specs
 
iamgnat's Avatar
 
Join Date: Jul 2004
Location: NoVA
Vehicle: 04 Ford Escape
Posts: 846
My Photos: (0)
Quote: Originally Posted by mustanglou View Post
Next, I tried to build and run CarFrontEnd and it worked! My guess is that I was unable to get Xcode to use the CarFrontEndAPI that I just built -- for some reason it will only use the installed version.

Sounds like something weird is happening with your CarFrontEndAPI compile. Did a Clean All on both projects (before installing CFE from the installer) have any effect?

When you tried the cfe_test.m test, was your copy of the framework still in your Framework search path (e.g. /System/Library/Frameworks, /Library/Frameworks, or ~/Library/Frameworks)?

When you build CarFrontEndAPI, do you get any warnings? (I know CFE itself has a couple)

-dave
__________________
My pathetic worklog.
CarFrontEnd (now it's own sub-forum!!!!)
iamgnat is offline   Reply With Quote
Old 08-23-2007, 04:35 PM   #5
Low Bitrate
mustanglou's CarPC Specs
 
Join Date: Mar 2007
Posts: 70
My Photos: (2)
Quote: Originally Posted by iamgnat View Post
Sounds like something weird is happening with your CarFrontEndAPI compile. Did a Clean All on both projects (before installing CFE from the installer) have any effect?

No

Quote: Originally Posted by iamgnat View Post
When you tried the cfe_test.m test, was your copy of the framework still in your Framework search path (e.g. /System/Library/Frameworks, /Library/Frameworks, or ~/Library/Frameworks)?

The first time I compiled it, I had the framework I built in ~/Library/Frameworks. That didn't work but when I read your response above, for kicks I deleted CarFrontEndAPI from /library/Frameworks (the one used by the installer), re-verified that I couldn't build CarFrontEnd given the version of CarFrontEndAPI that I built and then moved it to ~/library/frameworks, then moved that same CarFrontEndAPI to /library/frameworks and then the build worked! Weird... I admit I'm fairly new to Apple programming -- I just thought ~/library/frameworks was a fair place for the api.

Quote: Originally Posted by iamgnat View Post
When you build CarFrontEndAPI, do you get any warnings? (I know CFE itself has a couple)

-dave

None...

So, to summarize, I can build CarFrontEnd using the version of CarFrontEndAPI built locally. It's a little odd that it only works when the api is in /library/frameworks and not ~/library/frameworks but, what can you do? Thanks for your help Dave

-Andrew
mustanglou is offline   Reply With Quote
Old 11-10-2007, 04:21 PM   #6
Low Bitrate
mustanglou's CarPC Specs
 
Join Date: Mar 2007
Posts: 70
My Photos: (2)
Okay, I'm trying to compile 1.0.7 and I get the following errors:

Code:
Building target “CarFrontEnd” of project “CarFrontEnd” with configuration “Release” — (2 errors, 4 warnings) cd /Users/Andrew/mac-carfrontend/CarFrontEnd /usr/bin/gcc-4.0 -x objective-c -arch ppc -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -Wreturn-type -Wunused-variable -fmessage-length=0 -mtune=G5 -fvisibility=hidden -mmacosx-version-min=10.4 -gdwarf-2 -I/Users/Andrew/mac-carfrontend/CarFrontEnd/build/CarFrontEnd.build/Release/CarFrontEnd.build/CarFrontEnd.hmap -mdynamic-no-pic -F/Users/Andrew/mac-carfrontend/CarFrontEnd/build/Release -F/Users/Andrew/mac-carfrontend/CarFrontEnd/../Frameworks/CarFrontEndAPI/build/Release -F/Users/Andrew/mac-carfrontend/CarFrontEnd/../Frameworks/CarFrontEndAPI/build/Release -F/Users/Andrew/mac-carfrontend/CarFrontEnd/../Frameworks/CarFrontEndAPI/build/Release -I/Users/Andrew/mac-carfrontend/CarFrontEnd/build/Release/include -I/Users/Andrew/mac-carfrontend/CarFrontEnd/build/CarFrontEnd.build/Release/CarFrontEnd.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.4u.sdk -include /Library/Caches/com.apple.Xcode.502/SharedPrecompiledHeaders/CarFrontEnd_Prefix-epxauweotbuddmfzhfkmmxmyabyx/CarFrontEnd_Prefix.pch -c /Users/Andrew/mac-carfrontend/CarFrontEnd/MainViewController.m -o /Users/Andrew/mac-carfrontend/CarFrontEnd/build/CarFrontEnd.build/Release/CarFrontEnd.build/Objects-normal/ppc/MainViewController.o In file included from /Users/Andrew/mac-carfrontend/CarFrontEnd/MainViewController.m:20: /Users/Andrew/mac-carfrontend/CarFrontEnd/PluginManager.h:30: error: cannot find protocol declaration for 'PluginKeyBindings' In file included from /Users/Andrew/mac-carfrontend/CarFrontEnd/MainViewController.m:20: /Users/Andrew/mac-carfrontend/CarFrontEnd/PluginManager.h:30: error: cannot find protocol declaration for 'PluginKeyBindings' cd /Users/Andrew/mac-carfrontend/CarFrontEnd /usr/bin/gcc-4.0 -x objective-c -arch ppc -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -Wreturn-type -Wunused-variable -fmessage-length=0 -mtune=G5 -fvisibility=hidden -mmacosx-version-min=10.4 -gdwarf-2 -I/Users/Andrew/mac-carfrontend/CarFrontEnd/build/CarFrontEnd.build/Release/CarFrontEnd.build/CarFrontEnd.hmap -mdynamic-no-pic -F/Users/Andrew/mac-carfrontend/CarFrontEnd/build/Release -F/Users/Andrew/mac-carfrontend/CarFrontEnd/../Frameworks/CarFrontEndAPI/build/Release -F/Users/Andrew/mac-carfrontend/CarFrontEnd/../Frameworks/CarFrontEndAPI/build/Release -F/Users/Andrew/mac-carfrontend/CarFrontEnd/../Frameworks/CarFrontEndAPI/build/Release -I/Users/Andrew/mac-carfrontend/CarFrontEnd/build/Release/include -I/Users/Andrew/mac-carfrontend/CarFrontEnd/build/CarFrontEnd.build/Release/CarFrontEnd.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.4u.sdk -include /Library/Caches/com.apple.Xcode.502/SharedPrecompiledHeaders/CarFrontEnd_Prefix-epxauweotbuddmfzhfkmmxmyabyx/CarFrontEnd_Prefix.pch -c /Users/Andrew/mac-carfrontend/CarFrontEnd/PluginManager.m -o /Users/Andrew/mac-carfrontend/CarFrontEnd/build/CarFrontEnd.build/Release/CarFrontEnd.build/Objects-normal/ppc/PluginManager.o In file included from /Users/Andrew/mac-carfrontend/CarFrontEnd/PluginManager.m:19: /Users/Andrew/mac-carfrontend/CarFrontEnd/PluginManager.h:30: error: cannot find protocol declaration for 'PluginKeyBindings' /Users/Andrew/mac-carfrontend/CarFrontEnd/PluginManager.m: In function '-[PluginManager initalize]': /Users/Andrew/mac-carfrontend/CarFrontEnd/PluginManager.m:126: warning: 'PluginManager' may not respond to '-addKeyBinding:selector:key:options:' /Users/Andrew/mac-carfrontend/CarFrontEnd/PluginManager.m:126: warning: (Messages without a matching method signature /Users/Andrew/mac-carfrontend/CarFrontEnd/PluginManager.m:126: warning: will be assumed to return 'id' and accept /Users/Andrew/mac-carfrontend/CarFrontEnd/PluginManager.m:126: warning: '...' as arguments.) /Users/Andrew/mac-carfrontend/CarFrontEnd/PluginManager.m:128: warning: 'PluginManager' may not respond to '-addKeyBinding:selector:key:options:' /Users/Andrew/mac-carfrontend/CarFrontEnd/PluginManager.m:130: warning: 'PluginManager' may not respond to '-addKeyBinding:selector:key:options:' /Users/Andrew/mac-carfrontend/CarFrontEnd/PluginManager.m: In function '-[PluginManager loadPluginsFromPath:]': /Users/Andrew/mac-carfrontend/CarFrontEnd/PluginManager.m:288: warning: 'PluginManager' may not respond to '-addKeyBinding:selector:key:options:' In file included from /Users/Andrew/mac-carfrontend/CarFrontEnd/PluginManager.m:19: /Users/Andrew/mac-carfrontend/CarFrontEnd/PluginManager.h:30: error: cannot find protocol declaration for 'PluginKeyBindings' /Users/Andrew/mac-carfrontend/CarFrontEnd/PluginManager.m:126: warning: 'PluginManager' may not respond to '-addKeyBinding:selector:key:options:' /Users/Andrew/mac-carfrontend/CarFrontEnd/PluginManager.m:126: warning: (Messages without a matching method signature /Users/Andrew/mac-carfrontend/CarFrontEnd/PluginManager.m:128: warning: 'PluginManager' may not respond to '-addKeyBinding:selector:key:options:' /Users/Andrew/mac-carfrontend/CarFrontEnd/PluginManager.m:130: warning: 'PluginManager' may not respond to '-addKeyBinding:selector:key:options:' /Users/Andrew/mac-carfrontend/CarFrontEnd/PluginManager.m:288: warning: 'PluginManager' may not respond to '-addKeyBinding:selector:key:options:' Build failed (2 errors, 4 warnings)

What do you think?
mustanglou is offline   Reply With Quote
Old 11-10-2007, 05:50 PM   #7
CarFrontEnd Creator
iamgnat's CarPC Specs
 
iamgnat's Avatar
 
Join Date: Jul 2004
Location: NoVA
Vehicle: 04 Ford Escape
Posts: 846
My Photos: (0)
Quote: Originally Posted by mustanglou View Post
Okay, I'm trying to compile 1.0.7 and I get the following errors:
...
What do you think?

Actually you are trying to compile 1.0a8

If you want to work with 1.0a7, you need to check it out from svn using:
Code:
svn checkout http://mac-carfrontend.googlecode.com/svn/tags/CarFrontEnd_v1_r0_b7

If you want to work with 1.0a8 which is currently a work in progress, you'll need to recompile & install the associated CarFrontEndAPI.framework. All the errors and warnings you are getting are because you aren't compiling against the newest version of CarFrontEndAPI/PluginManager.h which has the new Key Binding method definitions.

All the code should compile and run fine, i'm just having trouble building the installer since I don't have Leopard anymore

-dave
__________________
My pathetic worklog.
CarFrontEnd (now it's own sub-forum!!!!)
iamgnat is offline   Reply With Quote
Old 11-10-2007, 06:18 PM   #8
Low Bitrate
mustanglou's CarPC Specs
 
Join Date: Mar 2007
Posts: 70
My Photos: (2)
Heh Thanks Dave
mustanglou is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Needed: BETA Testers for Google Earth Plugin guino RR Plugins 407 07-04-2008 11:32 AM
Error GPS (MapPoint) rob_69er Road Runner 1 04-28-2007 11:06 AM
Xm Wtf? BLK MAJK Road Runner 8 04-17-2007 08:45 PM
RR Won't Load!! Lewis187 Road Runner 5 07-13-2006 09:23 AM
I'm a newbie with this month's dumbest question! Tekmazter Newbie 9 03-27-2005 11:26 PM


All times are GMT -5. The time now is 08:18 AM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics