Compile Qtox on OSX
Problems when compile qtox on mac
- first is the modification of the qtox.pro file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|
1.-ltoxcore can not found
- install the toxcore library
- and remember to add the library path
- install the toxcore library
2.can not find -lopus
- install the libogg first and then install the opus library
- “Project ERROR: Could not resolve SDK path for ‘macosx10.8′”.
cd /Users/Mark/Qt/5.3/clang_64/mkspecs/
- modify
!host_build:QMAKE_MAC_SDK = macosx10.9
- modify
4.“Undefined symbols for architecture x86_64”
- not solved
- one way on the Internet(did not solve)
- change
../Qt5.4.0/5.4.0-rc1/clang_64/mkspecs/macx-clang/qmake.conf
- from
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6
- into
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.9
- and remember to clean the project before rebuild
- from
- change
- one way on the Internet(did not solve)
- not solved
5.‘#include <>’ and ‘#include “”’
- ‘#include <>’
- find the header in particular path
- /usr/include
- for exmaple: /usr/include/stdio.h
- find the header in particular path
- ‘#include “”’
- find the header in absolute path
- ‘#include <>’