Xcode is installed, I have also compiled e.g. libusb with it. The Command Line Tools are also installed.
Code: Select all
Xcode 4.6.3
Command Line Tools: Xcode 4.6.3 (4H1503) - /Applications/Xcode.app
When I start PB via sudo, I get an error message that the library crt1.10.6.o was not found.
Code: Select all
PB 5.62 x64/ 5.43 / 5.31 …
sudo /Applications/PureBasic562.app/Contents/MacOS/PureBasic
PureBasic - Linker error
ld: library not found for -lcrt1.10.6.o
collect2: ld returned 1 exit status
The search in the terminal produces the following result:
Code: Select all
find / -name crt1.10.6.o
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/usr/lib/crt1.10.6.o
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/lib/crt1.10.6.o
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/lib/crt1.10.6.o
I edited the /etc/paths file and added the paths to Xcode, they were not there:
Code: Select all
set
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/usr/X11/bin
I can call g++ or gcc in the terminal:
Code: Select all
g++ -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
I have searched the internet and forum for a long time, but have not found a solution.
Does anyone know a trick?
Peter