delMar43 / javahidapi

Automatically exported from code.google.com/p/javahidapi
Other
0 stars 0 forks source link

Architecture x86_64 not supported on Mac OS X 10.7.3 #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. checked out the latest version from trunk
2. called "make -C mac"

What is the expected output? What do you see instead?
After executing make, I am getting the following error:
make -C mac
gcc  -I../hidapi -g -c -I.. -I../jni-impl 
-I/System/Library/Frameworks/JavaVM.framework/Headers  hid.c -o hid.o
g++  -I../hidapi -g -c -I.. -I../jni-impl 
-I/System/Library/Frameworks/JavaVM.framework/Headers  
../jni-impl/HIDManager.cpp -o HIDManager.o
g++  -I../hidapi -g -c -I.. -I../jni-impl 
-I/System/Library/Frameworks/JavaVM.framework/Headers  
../jni-impl/HIDDeviceInfo.cpp -o HIDDeviceInfo.o
g++  -I../hidapi -g -c -I.. -I../jni-impl 
-I/System/Library/Frameworks/JavaVM.framework/Headers  
../jni-impl/HIDDevice.cpp -o HIDDevice.o
g++  -I../hidapi -g -c -I.. -I../jni-impl 
-I/System/Library/Frameworks/JavaVM.framework/Headers  ../jni-impl/hid-java.cpp 
-o hid-java.o
g++  -g hid.o ../hidtest/hidtest.o HIDManager.o HIDDeviceInfo.o HIDDevice.o 
hid-java.o -framework IOKit -framework CoreFoundation -l iconv -o hidtest
ld: warning: ignoring file ../hidtest/hidtest.o, file was built for unsupported 
file format which is not the architecture being linked (x86_64)
Undefined symbols for architecture x86_64:
  "_main", referenced from:
      start in crt1.10.6.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [hidtest] Error 1

What version of the product are you using? On what operating system?
Trunk, on a i7 iMac with OS X 10.7.3 running.

Sorry to bother again...

Original issue reported on code.google.com by mirkoj...@gmail.com on 9 Feb 2012 at 1:41

GoogleCodeExporter commented 9 years ago
I just tried to do the same on my laptop (mabook air i5 Mac OS X 10.7.3) and 
there it worked like a charm. I guess, I have a library missing on my iMac. I 
would guess it is related to iconv. Not sure though, because I wasn't aware 
that I did anything special on my laptop. Any idea's suggestions? Thanks again 
for the support!!!

Original comment by mirkoj...@gmail.com on 9 Feb 2012 at 1:49

GoogleCodeExporter commented 9 years ago
Try "g++ --version" on both systems and compare output

Original comment by kroko...@gmail.com on 9 Feb 2012 at 5:11

GoogleCodeExporter commented 9 years ago

Original comment by kroko...@gmail.com on 9 Feb 2012 at 5:12

GoogleCodeExporter commented 9 years ago
I tried it on both machines... same output:
g++ --version
i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) 
(LLVM build 2336.1.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Original comment by mirkoj...@gmail.com on 9 Feb 2012 at 7:50

GoogleCodeExporter commented 9 years ago
ok, maybe it was too late yesterday, but now it works. I updated XCode to the 
latest version, maybe that solved it, but I don't know. So from my side, this 
could be closed.

Original comment by mirkoj...@gmail.com on 9 Feb 2012 at 5:26