Results 1 to 8 of 8

Thread: Compiling from source question...

  1. #1
    Low Bitrate
    Join Date
    Mar 2007
    Posts
    70

    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:

    [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

  2. #2
    CarFrontEnd Creator iamgnat's Avatar
    Join Date
    Jul 2004
    Location
    NoVA
    Posts
    867
    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!!!!)

  3. #3
    Low Bitrate
    Join Date
    Mar 2007
    Posts
    70
    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:
    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

  4. #4
    CarFrontEnd Creator iamgnat's Avatar
    Join Date
    Jul 2004
    Location
    NoVA
    Posts
    867
    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!!!!)

  5. #5
    Low Bitrate
    Join Date
    Mar 2007
    Posts
    70
    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

  6. #6
    Low Bitrate
    Join Date
    Mar 2007
    Posts
    70
    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?

  7. #7
    CarFrontEnd Creator iamgnat's Avatar
    Join Date
    Jul 2004
    Location
    NoVA
    Posts
    867
    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!!!!)

  8. #8
    Low Bitrate
    Join Date
    Mar 2007
    Posts
    70
    Heh Thanks Dave

Similar Threads

  1. Needed: BETA Testers for Google Earth Plugin
    By guino in forum RR Released Plugins
    Replies: 531
    Last Post: 08-24-2012, 04:25 PM
  2. Error GPS (MapPoint)
    By rob_69er in forum Road Runner
    Replies: 1
    Last Post: 04-28-2007, 12:06 PM
  3. Xm Wtf?
    By BLK MAJK in forum Road Runner
    Replies: 8
    Last Post: 04-17-2007, 09:45 PM
  4. RR Won't Load!!
    By Lewis187 in forum Road Runner
    Replies: 5
    Last Post: 07-13-2006, 10:23 AM
  5. Replies: 9
    Last Post: 03-28-2005, 12:26 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •