-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
编译arm-linux时为何编译的却是x86 #674
Comments
参考 #28 |
@nihui get absolute path, but get_filename_component ABSOLUTE only refer with source dir, so find_file here :(get_filename_component(CMAKE_TOOLCHAIN_FILE_NAME ${CMAKE_TOOLCHAIN_FILE} NAME) if(NOT DEFINED CMAKE_INSTALL_PREFIX) cmake_minimum_required(VERSION 2.8.10) if(NOT CMAKE_BUILD_TYPE) set(COVERAGE OFF CACHE BOOL "Coverage") project(ncnn) option(NCNN_OPENMP "openmp support" ON) if(NCNN_OPENMP) if(WIN32)
endif() if(ANDROID) ############################################## add_subdirectory(examples)add_subdirectory(benchmark)add_subdirectory(src) add_definitions(-mfpu=neon)#ljy added. |
@nihui 我git clone最新的NCNN没有找到pi3.toolchain.cmake这个文件呢? |
我在一个arm平台下编译(全志,非android)
发现它编译的是src/layer/x86而不是src/layer/arm
但是我编译Android版本时却是正常的,不知道需要怎样修改才能编译出arm版本呢???
下面是编译打印:
[ 24%] Building CXX object src/CMakeFiles/ncnn.dir/layer/x86/convolution_x86.cpp.obj
In file included from /home/ncnn-master_20181128_cross/src/layer/x86/convolution_x86.cpp:19:0:
The text was updated successfully, but these errors were encountered: