FW: GetIndMenuItemWithCommandID / SetItemCmd on 64-bit? Cocoa?
FW: GetIndMenuItemWithCommandID / SetItemCmd on 64-bit? Cocoa?
- Subject: FW: GetIndMenuItemWithCommandID / SetItemCmd on 64-bit? Cocoa?
- From: "Richardson, Irina" <email@hidden>
- Date: Wed, 23 Sep 2009 09:09:11 -0500
- Thread-topic: GetIndMenuItemWithCommandID / SetItemCmd on 64-bit? Cocoa?
We are having some old native library code written using Carbon and we
need to port on 64-bit...
Anybody out there has a an easy solution for doing the same thing in
Cocoa ?
[...]
error = GetIndMenuItemWithCommandID( NULL,
kHICommandHide, 1, &applicationMenu, &outIndex);
SetItemCmd(applicationMenu, kHICommandHide,0);
[...]
This compiles fine for i386 and ppc architectures but fails to link for
x86_64 and ppc64 (compiling on a Mac 10.5 64-bit capable)
build:
[echo] Step 1 of 2: X-Code build
[exec] === BUILDING NATIVE TARGET aaaMacOSX OF PROJECT aaaMacOSX
WITH THE DEFAULT CONFIGURATION (Release) ===
[exec]
[exec] Checking Dependencies...
[exec]
[exec] Ld
/Users/user/macdev/aaa/macosx/build/aaaMacOSX.build/Release/aaaMacOSX.bu
ild/Objects-normal/ppc64/libaaaMacOSX.jnilib normal ppc64
[exec] cd /Users/user/macdev/aaa/macosx
[exec] setenv MACOSX_DEPLOYMENT_TARGET 10.5
[exec] /Developer/usr/bin/gcc-4.0 -arch ppc64 -dynamiclib
-isysroot /Developer/SDKs/MacOSX10.5.sdk
-L/Users/user/macdev/aaa/macosx/build/Release
-F/Users/user/macdev/aaa/macosx/build/Release -filelist
/Users/user/macdev/aaa/macosx/build/aaaMacOSX.build/Release/aaaMacOSX.bu
ild/Objects-normal/ppc64/aaaMacOSX.LinkFileList -install_name
/usr/local/lib/libaaaMacOSX.jnilib -mmacosx-version-min=10.5 -framework
Carbon -framework JavaVM -framework CoreFoundation -framework IOKit
-framework System -framework Cocoa -Wl,-single_module
-compatibility_version 1 -current_version 1 -o
/Users/user/macdev/aaa/macosx/build/aaaMacOSX.build/Release/aaaMacOSX.bu
ild/Objects-normal/ppc64/libaaaMacOSX.jnilib
[exec] ** BUILD FAILED **
[exec]
[exec] The following build commands failed:
[exec] aaaMacOSX:
[exec] Ld
/Users/user/macdev/aaa/macosx/build/aaaMacOSX.build/Release/aaaMacOSX.bu
ild/Objects-normal/ppc64/libaaaMacOSX.jnilib normal ppc64
[exec] Ld
/Users/user/macdev/aaa/macosx/build/aaaMacOSX.build/Release/aaaMacOSX.bu
ild/Objects-normal/x86_64/libaaaMacOSX.jnilib normal x86_64
[exec] (2 failures)
[exec]
[exec] Undefined symbols:
[exec] "_SetItemCmd", referenced from:
[exec] _Java_com_comp_aaa_MacOSXLibrary_SystemUIMode in
com_comp_aaa_MacOSXLibrary.o
[exec] _Java_com_comp_aaa_MacOSXLibrary_SystemUIMode in
com_comp_aaa_MacOSXLibrary.o
[exec] _Java_com_comp_aaa_MacOSXLibrary_SystemUIMode in
com_comp_aaa_MacOSXLibrary.o
[exec] _Java_com_comp_aaa_MacOSXLibrary_SystemUIMode in
com_comp_aaa_MacOSXLibrary.o
[exec] "_GetIndMenuItemWithCommandID", referenced from:
[exec] _Java_com_comp_aaa_MacOSXLibrary_SystemUIMode in
com_comp_aaa_MacOSXLibrary.o
[exec] _Java_com_comp_aaa_MacOSXLibrary_SystemUIMode in
com_comp_aaa_MacOSXLibrary.o
[exec] _Java_com_comp_aaa_MacOSXLibrary_SystemUIMode in
com_comp_aaa_MacOSXLibrary.o
[exec] _Java_com_comp_aaa_MacOSXLibrary_SystemUIMode in
com_comp_aaa_MacOSXLibrary.o
[exec] ld: symbol(s) not found
[exec] collect2: ld returned 1 exit status
Thank you,
Irina
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden