Menu
  • HOME
  • TAGS

Using nm(1) to list symbols from object file built for arm64 on OS X

ios,osx,arm64,nm,otool

The system nm doesn't read arm64. You need to use the nm that came with your arm64 SDK (i.e. the iphoneos SDK in Xcode). This is the same path as where you ran clang. $ xcrun -sdk iphoneos clang -arch arm64 main.c $ xcrun -sdk iphoneos nm a.out 0000000100000000 T...

C std library don't appear to be linked in object file

c,osx,unix,objdump,otool

Dynamic libraries are linked to the final executable, not to the object files, so you should run (e.g.) otool -L com_ex1 This should show something like com_ex1: /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0) because on OS X, the math library is part of libSystem: $ ls -l /usr/lib/libm.dylib lrwxr-xr-x...

QMYSQL driver not loaded, tried all hints

c++,mysql,osx,qt,otool

Fixed the issue, wasn't aware its possible to use otool and install_name_tool for dylibs too. Simply did it with install_name_tool -change libqsqlmysql_debug.dylib /Users/foob/Qt/5.3/Src/qtbase/plugins/sqldrivers/libqsqlmysql_debug.dylib Qt/5.3/clang_64/plugins/sqldrivers/libqsqlmysql_debug.dylib Now it works. Does anyone knows why the libs aren't found in the first place? I checked the Makefile produced by qmake and it seems fine....