Mac OSX Leopard

I have switched over to Leopard, and I am having trouble linking my application under Leopard, is there a front panel for Leopard?
Christopher

Can you provide any details? What is incompatible? What errors are you seeing?

Building target “fpga_app” of project “fpga_app” with configuration “Debug” — (9 errors, 4 warnings)
Checking Dependencies
Warning: Multiple build commands for output file /Users/crb/Projects/fpga_app/build/Debug/fpga_app.app/Contents/Resources/first-xem3001v2.bit
Warning: Multiple build commands for output file /Users/crb/Projects/fpga_app/build/Debug/fpga_app.app/Contents/Resources/first-xem3001v2.bit
cd /Users/crb/Projects/fpga_app
/Developer/usr/bin/gcc-4.0 -x objective-c -arch i386 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -fmessage-length=0 -mfix-and-continue -mmacosx-version-min=10.4 -gdwarf-2 -I/Users/crb/Projects/fpga_app/build/fpga_app.build/Debug/fpga_app.build/fpga_app.hmap -F/Users/crb/Projects/fpga_app/build/Debug -F/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks -F/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks -I/Users/crb/Projects/fpga_app/build/Debug/include -I/Users/crb/Projects/fpga_app/build/fpga_app.build/Debug/fpga_app.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.4u.sdk -c /Users/crb/Projects/fpga_app/main.m -o /Users/crb/Projects/fpga_app/build/fpga_app.build/Debug/fpga_app.build/Objects-normal/i386/main.o
In file included from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:51,
from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/DiskArbitration.framework/Headers/DADisk.h:28,
from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:62,
from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Components.h:32,
from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:85,
from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20,
from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21,
from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:20,
from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8,
from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:107,
from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
from /Users/crb/Projects/fpga_app/main.m:9:
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:85: error: ‘io_user_reference_t’ undeclared here (not in a function)
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:87: error: syntax error before ‘OSAsyncReference64’
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:87: warning: data definition has no type or storage class
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:92: error: syntax error before ‘OSAsyncReference64’
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:92: warning: no semicolon at end of struct or union
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:99: error: syntax error before ‘}’ token
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:103: error: syntax error before ‘io_user_reference_t’
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:103: warning: no semicolon at end of struct or union
from /Users/crb/Projects/fpga_app/main.m:9:
from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:107,
from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8,
from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:20,
from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21,
from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20,
from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:85,
from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Components.h:32,
from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:62,
from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/DiskArbitration.framework/Headers/DADisk.h:28,
In file included from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:51,
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:85: error: ‘io_user_reference_t’ undeclared here (not in a function)
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:87: error: syntax error before ‘OSAsyncReference64’
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:87: warning: data definition has no type or storage class
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:92: error: syntax error before ‘OSAsyncReference64’
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:92: warning: no semicolon at end of struct or union
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:99: error: syntax error before ‘}’ token
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:103: error: syntax error before ‘io_user_reference_t’
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:103: warning: no semicolon at end of struct or union
cd /Users/crb/Projects/fpga_app
/Developer/usr/bin/gcc-4.0 -x objective-c++ -arch i386 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility-inlines-hidden -mfix-and-continue -mmacosx-version-min=10.4 -gdwarf-2 -I/Users/crb/Projects/fpga_app/build/fpga_app.build/Debug/fpga_app.build/fpga_app.hmap -F/Users/crb/Projects/fpga_app/build/Debug -F/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks -F/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks -I/Users/crb/Projects/fpga_app/build/Debug/include -I/Users/crb/Projects/fpga_app/build/fpga_app.build/Debug/fpga_app.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.4u.sdk -DMACOSX -c /Users/crb/Projects/fpga_app/controller.m -o /Users/crb/Projects/fpga_app/build/fpga_app.build/Debug/fpga_app.build/Objects-normal/i386/controller.o
/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.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
Build failed (9 errors, 4 warnings)

crbowman–

We have Leopard on a Mac development system here and build and run the samples just fine. What errors do you see when you build our samples?

In file included from /Users/crb/Projects/leopard_fpga/controller.h:11,
/Users/crb/Projects/leopard_fpga/okFrontPanelDLL.h:123: error: syntax error before ‘void’
/Users/crb/Projects/leopard_fpga/okFrontPanelDLL.h:123: warning: data definition has no type or storage class
/Users/crb/Projects/leopard_fpga/okFrontPanelDLL.h:128: error: syntax error before ‘okPLL22393_HANDLE’
/Users/crb/Projects/leopard_fpga/okFrontPanelDLL.h:128: warning: data definition has no type or storage class
/Users/crb/Projects/leopard_fpga/okFrontPanelDLL.h:129: error: syntax error before ‘void’

Does seem to like the okDLLEXPORT before the function definitions

Perhaps I am missing a switch or something.

controller.h is not a file from one of our samples. Can you tell me what the output is if you compile one of our samples?

Yes, controller.h is not your code it mine, I figure out most of the problems, I am working on getting your sample DESTester and my app to load the dydld. Am I suppose to copy it somewhere to get it working?

When I run DESTester it produces the following:

---- Opal Kelly ---- FPGA-DES Application v1.0 ----
dlopen(libokFrontPanel.dylib, 2): image not found
FrontPanel DLL could not be loaded.

And it’s not load in my app either despite having added it to the linked framworks folder in XCode

Ok it appears the DESTester now loads the dll, but I still can’t seem to get XCode to do so.
Christopher

So here is what’s happening:

if you do an otool as shown below you will see that the libokFrontPanel.dylib is expecting itself to be in /var/tmp//ccZfxqiq.out If it isn’t Xcode gives you a message such as:

dyld: Library not loaded: /var/tmp//ccZfxqiq.out
Referenced from: /Users/crb/Projects/fpga/build/Release/fpga.app/Contents/MacOS/fpga
Reason: image not found

if you do symlink link then the app launches as normal. This wasn’t a problem for me before as I was using the statically linked library. I don’t understand why the command line version works but sym linking isn’t really a good solution as it would mean that that app can’t be simply given to someone else without requiring them to install the dll in that particular location.

[aluminum:Samples/DES/Cxx] crb% otool -L libokFrontPanel.dylib
libokFrontPanel.dylib:
/var/tmp//ccZfxqiq.out (compatibility version 0.0.0, current version 0.0.0)
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 128.0.0)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.3)