Guys,
Any help aprecaite it. I am running into problems trying to compile for Mac os X 1.5 in a PPC computer. When I run ant on the folder I get the following.
Thanks
**********
Following Foomer suggest I remove the line
<arg line="-current_version ${version.mac}" />
from the build.xml and compile fine. I hope this does not cause problems in the future.
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Guys,
Any help aprecaite it. I am running into problems trying to compile for Mac os X 1.5 in a PPC computer. When I run ant on the folder I get the following.
Thanks
**********
Buildfile: build.xml
clean:
mac:
[exec] Using built-in specs.
[exec] Target: powerpc-apple-darwin9
[exec] Configured with: /var/tmp/gcc/gcc-5465~16/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --program-prefix= --host=powerpc-apple-darwin9 --target=powerpc-apple-darwin9
[exec] Thread model: posix
[exec] gcc version 4.0.1 (Apple Inc. build 5465)
[exec] /usr/libexec/gcc/powerpc-apple-darwin9/4.0.1/cc1plus -quiet -v -I /System/Library/Frameworks/JavaVM.framework/Headers/ -D__DYNAMIC__ LibusbJava.cpp -fPIC -quiet -dumpbase LibusbJava.cpp -mmacosx-version-min=10.5.6 -auxbase LibusbJava -version -D__private_extern__=extern -o /var/folders/m0/m0xIN0wlEbiqkcPKWCC6bk+++TQ/-Tmp-//ccK5gS0Y.s
[exec] ignoring nonexistent directory "/usr/lib/gcc/powerpc-apple-darwin9/4.0.1/../../../../powerpc-apple-darwin9/include"
[exec] #include "..." search starts here:
[exec] #include <...> search starts here:
[exec] /System/Library/Frameworks/JavaVM.framework/Headers/
[exec] /usr/include/c++/4.0.0
[exec] /usr/include/c++/4.0.0/powerpc-apple-darwin9
[exec] /usr/include/c++/4.0.0/backward
[exec] /usr/local/include
[exec] /usr/lib/gcc/powerpc-apple-darwin9/4.0.1/include
[exec] /usr/include
[exec] /System/Library/Frameworks (framework directory)
[exec] /Library/Frameworks (framework directory)
[exec] End of search list.
[exec] GNU C++ version 4.0.1 (Apple Inc. build 5465) (powerpc-apple-darwin9)
[exec] compiled by GNU C version 4.0.1 (Apple Inc. build 5465).
[exec] GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
[exec] Compiler executable checksum: 36491f4b9d92f76e64da06581e9bf662
[exec] /usr/libexec/gcc/powerpc-apple-darwin9/4.0.1/as -arch ppc -o /var/folders/m0/m0xIN0wlEbiqkcPKWCC6bk+++TQ/-Tmp-//ccLL8Mlu.o /var/folders/m0/m0xIN0wlEbiqkcPKWCC6bk+++TQ/-Tmp-//ccK5gS0Y.s
[exec] /usr/libexec/gcc/powerpc-apple-darwin9/4.0.1/collect2 -dynamic -dylib -dylib_current_version ${version.mac} -arch ppc -macosx_version_min 10.5.6 -weak_reference_mismatches non-weak -o libusbJava.jnilib -ldylib1.10.5.o -L/usr/lib/powerpc-apple-darwin9/4.0.1 -L/usr/lib/gcc/powerpc-apple-darwin9/4.0.1 -L/usr/lib/gcc/powerpc-apple-darwin9/4.0.1 -L/usr/lib/gcc/powerpc-apple-darwin9/4.0.1/../../../powerpc-apple-darwin9/4.0.1 -L/usr/lib/gcc/powerpc-apple-darwin9/4.0.1/../../.. /var/folders/m0/m0xIN0wlEbiqkcPKWCC6bk+++TQ/-Tmp-//ccLL8Mlu.o -lstdc++ /usr/local/lib/libusb.dylib /usr/local/lib/libusbpp.dylib -lgcc_s.10.5 -lgcc -lSystemStubs -lSystem
[exec] ld: malformed version number: ${version.mac}
[exec] collect2: ld returned 1 exit status
[exec] Result: 1
BUILD SUCCESSFUL
Total time: 1 second
Hi
if I recall I removed
-current_version ${version.mac}
from the command.
I basically cut and pasted the command to terminal, removed -current_version ${version.mac}
and recompiled.
Cant get the c based usb test tool to compile/link for some reason, so cant test usb against my device
hope you have better luck.
Following Foomer suggest I remove the line
<arg line="-current_version ${version.mac}" />
from the build.xml and compile fine. I hope this does not cause problems in the future.
Thanks