您好!
我按照说明逐步安装了 Sitara SDK。 并使用 setup.sh 运行环境设置、设置路径和 Cross_compile。 (Ubuntu 1604 64位)
但是、当我尝试使用 thread-ex.c 的示例代码(在该链接 processors.wiki.ti.com/.../Processor_Linux_SDK_GCC_Toolchain 中)时、我遇到错误:
$ arm-linux-gnueabihf-gcc '-Ipthread' thread-ex.c -o thread-ex
/tmp/ccWSh2CX.o:在函数'main'中:
thread-ex.c:(.text+0x56):未定义对'pthread_create'的引用
thread-ex.c:(.text+0x6c):未定义对'pthread_create'的引用
thread-ex.c:(.text+0x78):未定义对'pthread_join'的引用
thread-ex.c:(.text+0x84):未定义对'pthread_join'的引用
我发现 SDK_install_dir\linux\devkit\sysroot\x86_64 Arago-linux\下没有 Cross_compile 库文件夹(-vfp-neon -linux-gnueabi)。 我在安装 SDK 时是否错过了一些内容?