我有一个视频模块,我正在用arm-eabi-gcc交叉编译。我使用下面的命令来编译$ arm-eabi-gcc -O2 -DMODULE -D__KERNEL__ -W -Wall -isystem /lib/modules/uname -r/build/include panel-xxxxxxx.c。
我得到了以下错误
In file included from /lib/modules/3.13.0-32-generic/build/include/linux/types.h:5:0,
from /lib/modules/3.13.0-32-generic/bu
我的问题是,当我运行$ cmake /path/to/source/时,生成的文件和目录被分割为我要调用的目录和/path/to/source/include。
以下是我的CMake项目:
档案结构:
root:
|-CMakeLists.txt
|-src
| |-CMakeLists.txt
| |-"source files"
|-include # This is where part of the generated files are ending up.
| |-CMakeLists.txt
| |-"include files"
这里是我
我试图用xcode在我的中编译conv-net库。我甚至将标志设置为libstdc++,但仍然没有正确链接。
我仍然得到了架构x86_64的未定义符号。任何帮助都很感激。
sh-3.2# ./compile.sh
Building conv-net library
-- The C compiler identification is AppleClang 6.0.0.6000056
-- The CXX compiler identification is AppleClang 6.0.0.6000056
-- Check for working C compiler: /usr/bin/c