cmake报错No CMAKE_C_COMPILER could be found该怎么解决? 10C

cmake报错:
Selecting Windows SDK version 10.0.14393.0 to target Windows 10.0.17134.
The C compiler identification is MSVC 19.0.24215.1
The CXX compiler identification is MSVC 19.0.24215.1
CMake Error at CMakeLists.txt:7 (PROJECT):
No CMAKE_C_COMPILER could be found.

CMake Error at CMakeLists.txt:7 (PROJECT):
No CMAKE_CXX_COMPILER could be found.

Configuring incomplete, errors occurred!
See also "E:/software/02bullet/bullet3/CMakeFiles/CMakeOutput.log".

我用的是vs2015,但是cmake中选择vs2015的编译器就是会报错,用vs2013倒是能编译,但是用vs2015打开解决方案后,又提示里面的部分代码与vs版本不兼容之类的。

我想问的是有没有什么办法可以直接用vs2015的编译器直接编译成功的啊?本人cmake小白,望大佬求教。

Dva_1314
Dva_1314 回复Fireboyar: 不好意思哈,现在才看到消息,这是我当时解决了之后自己做的笔记,不知道对你有用不
大约一年之前 回复
Dva_1314
Dva_1314 回复Fireboyar: 重新用vs2013的编译器编译后,出现了编译器存在的路径,于是先是在C盘路径中将编译器删除了,并将vs2015卸载打算重新安装,但是在安装时发现vs2015的安装路径无法更改,查找原因发现是由于vs2015未卸载干净所致,因此重新将vs2015卸载清除完全。重新安装vs2015时,在自定义选项中,只选择了14393的sdk,安装路径也更改为纯英文的路径,然后再用vs2015编译器编译就成功了。
大约一年之前 回复
littleMatchBoy
Fireboyar 问题是我新加了vs2015 c++模块都装齐了,还是不行
大约一年之前 回复
littleMatchBoy
Fireboyar 楼主问题解决没有, 我也是遇到了同样的问题
大约一年之前 回复

2个回答

楼主参考下这篇博客,应该对你有帮助。

https://blog.csdn.net/zy2317878/article/details/78534782

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
cmake报错 No CMAKE_C_COMPILER could be found

![图片说明](https://img-ask.csdn.net/upload/201610/31/1477907424_864462.png) 这是为啥?一开始以为是cmakelists.txt的问题,试了多个开源库的都不行

cmake报错,不太懂哪里出问题了

cmake报错,不太懂哪里出问题了,是vs2017,麻烦各位帮忙 The C compiler identification is unknown The CXX compiler identification is unknown CMake Error at CMakeLists.txt:14 (project): No CMAKE_C_COMPILER could be found. CMake Error at CMakeLists.txt:14 (project): No CMAKE_CXX_COMPILER could be found. Configuring incomplete, errors occurred! See also "D:/VTK/VTK-8.1.0.rc1-bin/CMakeFiles/CMakeOutput.log". See also "D:/VTK/VTK-8.1.0.rc1-bin/CMakeFiles/CMakeError.log". ![图片说明](https://img-ask.csdn.net/upload/201712/03/1512311799_775646.png) ![图片说明](https://img-ask.csdn.net/upload/201712/03/1512311811_201148.png)

Cmake 配置 Opencv3.0 出现问题

试了多次,用Cmake 配置Opencv 出现如下提示: CMake Error at CMakeLists.txt:98 (project): No CMAKE_CXX_COMPILER could be found. vs 为64位的vs 15;opencv3.2 求大神指导,捣鼓了几个小时不知道怎么解决!!!!

Anaconda的Habitat安装问题

在用GitHub下载的离线包Habitat安装时,运行python setup.py install --with-cuda,出现No CMAKE_C_COMPILER could be found"以及“No CMAKE_CXX_COMPILER could be found"。 cmake我已经在anaconda里安装,用的是Windows系统,求大神赐教该怎么解决这个问题? ![图片说明](https://img-ask.csdn.net/upload/202003/18/1584543756_990986.png)

明明已经安装了Cmake,为什么安装Gromacs时报错说没有C语言编译器?

试过很多次都安装不上去。。。纯小白 也有说先安装fftw的,下下来解压完就傻了。。。![图片说明](https://img-ask.csdn.net/upload/201908/03/1564839775_677095.png)

用cmake编译glfw时遇到了问题

![图片说明](https://img-ask.csdn.net/upload/201711/03/1509684323_381821.png) 我用的是VS2017,操作系统是64位的,请问该如何解决?谢谢!

Cmake的编译caffe的cmd文件问题

![图片说明](https://img-ask.csdn.net/upload/201802/20/1519063011_820498.png) 如图,我在命令行中运行这个cmd时,会出现这个问题,同样我去直接运行Cmake.exe时,当我delete cache后,进行generate,更换为![图片说明](https://img-ask.csdn.net/upload/201802/20/1519063017_559979.png)时,也就是VS2015后,仍然会出现这个错误![图片说明](https://img-ask.csdn.net/upload/201802/20/1519063041_593659.png),不知道我的Cmake的问题到底出在了哪里?百度了一下说是,没有匹配正确的VS,可是我机器上VS15和VS17都有,无从下手,求指点!

vs2013集成vtk时使用cmake老是出现

The C compiler identification is MSVC 18.0.40629.0 The CXX compiler identification is MSVC 18.0.40629.0 CMake Error at CMakeLists.txt:28 (project): No CMAKE_C_COMPILER could be found. CMake Error at CMakeLists.txt:28 (project): No CMAKE_CXX_COMPILER could be found. Configuring incomplete, errors occurred! See also "D:/VTK/VTK-bin/CMakeFiles/CMakeOutput.log".

CentOS编译LLVM遇到的HOST GCC版本问题

操作系统原来自带的gcc版本是4.8.5,因为安装llvm要求是5.1以上版 本,所以后来正常安装了GCC8.3.0,CMAKE 3.12.1,然后下载llvm-project,按照如下链接指示安装: http://llvm.org/docs/CMake.html 发现执行到"cmake path/to/llvm/source/root"时报错。错误信息如下: [root@jzl-cloud-01 llvm]# cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=X86 /home/falcon/h265/llvm-project/llvm -- Could NOT find Z3: Found unsuitable version "0.0.0", but required is at least "4.7.1" (found Z3_LIBRARIES-NOTFOUND) CMake Error at cmake/modules/CheckCompilerVersion.cmake:38 (message): Host GCC version must be at least 5.1, your version is 4.8.5. Call Stack (most recent call first): cmake/modules/CheckCompilerVersion.cmake:48 (check_compiler_version) cmake/config-ix.cmake:13 (include) CMakeLists.txt:624 (include) -- Configuring incomplete, errors occurred! See also "/home/falcon/h265/llvm/CMakeFiles/CMakeOutput.log". [root@jzl-cloud-01 llvm]# cmake /home/falcon/h265/llvm-project/llvm -- Could NOT find Z3: Found unsuitable version "0.0.0", but required is at least "4.7.1" (found Z3_LIBRARIES-NOTFOUND) CMake Error at cmake/modules/CheckCompilerVersion.cmake:38 (message): Host GCC version must be at least 5.1, your version is 4.8.5. Call Stack (most recent call first): cmake/modules/CheckCompilerVersion.cmake:48 (check_compiler_version) cmake/config-ix.cmake:13 (include) CMakeLists.txt:624 (include) -- Configuring incomplete, errors occurred! See also "/home/falcon/h265/llvm/CMakeFiles/CMakeOutput.log". 请问上面提到的HOST GCC版本过低的问题该如何解决?

用cmake编译opencv3.0 时候出现的问题

CMake Error at CMakeLists.txt:88 (project): No CMAKE_C_COMPILER could be found. 这是什么问题啊! 求大神解决 我是win764位 刚下的opencv3.0 用cmake进行configure就出错 安装的是vs2010

python3.7使用pip安装dlib失败,已使用pip安装cmake和boost

Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting dlib Using cached https://pypi.tuna.tsinghua.edu.cn/packages/63/92/05c3b98636661cb80d190a5a777dd94effcc14c0f6893222e5ca81e74fbc/dlib-19.19.0.tar.gz (3.2 MB) Building wheels for collected packages: dlib Building wheel for dlib (setup.py) ... error ERROR: Command errored out with exit status 1: 以下是错误原因 command: 'd:\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ray\\AppData\\Local\\Temp\\pip-install-adkry0ue\\dlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ray\\AppData\\Local\\Temp\\pip-install-adkry0ue\\dlib\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Ray\AppData\Local\Temp\pip-wheel-s_easgnt' cwd: C:\Users\Ray\AppData\Local\Temp\pip-install-adkry0ue\dlib\ Complete output (149 lines): running bdist_wheel running build running build_py package init file 'dlib\__init__.py' not found (or not a regular file) running build_ext Building extension for Python 3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 00:42:30) [MSC v.1916 64 bit (AMD64)] Invoking CMake setup: 'cmake C:\Users\Ray\AppData\Local\Temp\pip-install-adkry0ue\dlib\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\Ray\AppData\Local\Temp\pip-install-adkry0ue\dlib\build\lib.win-amd64-3.7 -DPYTHON_EXECUTABLE=d:\python\python37\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\Ray\AppData\Local\Temp\pip-install-adkry0ue\dlib\build\lib.win-amd64-3.7 -A x64' -- Building for: Visual Studio 15 2017 -- The C compiler identification is MSVC 19.16.27034.0 -- The CXX compiler identification is MSVC 19.16.27034.0 -- Check for working C compiler: D:/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- Check for working C compiler: D:/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: D:/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- Check for working CXX compiler: D:/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PythonInterp: D:/Python/Python37/python.exe (found version "3.7.6") -- Found PythonLibs: D:/Python/Python37/libs/Python37.lib -- pybind11 v2.2.2 -- Using CMake version: 3.16.3 -- Compiling dlib version: 19.19.0 -- SSE4 instructions can be executed by the host processor. -- AVX instructions can be executed by the host processor. -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of void* -- Check size of void* - done -- Enabling AVX instructions -- Searching for BLAS and LAPACK -- Searching for BLAS and LAPACK -- Looking for pthread.h -- Looking for pthread.h - not found -- Found Threads: TRUE CUDA_TOOLKIT_ROOT_DIR not found or specified -- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "7.5") -- DID NOT FIND CUDA -- Disabling CUDA support for dlib. DLIB WILL NOT USE CUDA -- C++11 activated. -- Configuring done -- Generating done -- Build files have been written to: C:/Users/Ray/AppData/Local/Temp/pip-install-adkry0ue/dlib/build/temp.win-amd64-3.7/Release Invoking CMake build: 'cmake --build . --config Release -- /m' 用于 .NET Framework 的 Microsoft (R) 生成引擎版本 15.9.21+g9802d43bc3 版权所有(C) Microsoft Corporation。保留所有权利。 D:\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: 中间目录或输出目录无法驻留在临时目录 下,因为这可能会导致增量生成出现问题。 [C:\Users\Ray\AppData\Local\Temp\pip-install-adkry0ue\dlib\build\temp.win-amd64-3.7\Release\ZERO_CHECK.vcxproj] Checking Build System D:\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: 中间目录或输出目录无法驻留在临时目录 下,因为这可能会导致增量生成出现问题。 [C:\Users\Ray\AppData\Local\Temp\pip-install-adkry0ue\dlib\build\temp.win-amd64-3.7\Release\dlib_build\dlib.vcxproj] Building Custom Rule C:/Users/Ray/AppData/Local/Temp/pip-install-adkry0ue/dlib/dlib/CMakeLists.txt base64_kernel_1.cpp bigint_kernel_1.cpp bigint_kernel_2.cpp bit_stream_kernel_1.cpp entropy_decoder_kernel_1.cpp entropy_decoder_kernel_2.cpp entropy_encoder_kernel_1.cpp entropy_encoder_kernel_2.cpp md5_kernel_1.cpp tokenizer_kernel_1.cpp unicode.cpp image_dataset_metadata.cpp mnist.cpp global_function_search.cpp kalman_filter.cpp test_for_odr_violations.cpp auto.cpp sockets_kernel_1.cpp c:\users\ray\appdata\local\temp\pip-install-adkry0ue\dlib\dlib\sockets\../dlib_basic_cpp_build_tutorial.txt(1): fatal error C1189: #error: "Don't write #include <dlib/all/source.cpp> in your code." (编译源文件 C:\Users\Ray\AppData\Local\Temp\pip-install-adkry0ue\dlib\dlib\sockets\sockets_kernel_1.cpp) [C:\Users\Ray\AppData\Local\Temp\pip-install-adkry0ue\dlib\build\temp.win-amd64-3.7\Release\dlib_build\dlib.vcxproj] bsp.cpp dir_nav_kernel_1.cpp dir_nav_kernel_2.cpp dir_nav_extensions.cpp linker_kernel_1.cpp extra_logger_headers.cpp logger_kernel_1.cpp logger_config_file.cpp misc_api_kernel_1.cpp misc_api_kernel_2.cpp sockets_extensions.cpp sockets_kernel_2.cpp sockstreambuf.cpp sockstreambuf_unbuffered.cpp server_kernel.cpp server_iostream.cpp server_http.cpp multithreaded_object_extension.cpp threaded_object_extension.cpp threads_kernel_1.cpp threads_kernel_2.cpp threads_kernel_shared.cpp thread_pool_extension.cpp async.cpp timer.cpp stack_trace.cpp cpu_dlib.cpp tensor_tools.cpp fonts.cpp widgets.cpp drawable.cpp canvas_drawing.cpp style.cpp base_widgets.cpp gui_core_kernel_1.cpp gui_core_kernel_2.cpp png_loader.cpp save_png.cpp jpeg_loader.cpp save_jpeg.cpp Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\Ray\AppData\Local\Temp\pip-install-adkry0ue\dlib\setup.py", line 261, in <module> 'Topic :: Software Development', File "d:\python\python37\lib\site-packages\setuptools\__init__.py", line 145, in setup return distutils.core.setup(**attrs) File "d:\python\python37\lib\distutils\core.py", line 148, in setup dist.run_commands() File "d:\python\python37\lib\distutils\dist.py", line 966, in run_commands self.run_command(cmd) File "d:\python\python37\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "d:\python\python37\lib\site-packages\wheel\bdist_wheel.py", line 223, in run self.run_command('build') File "d:\python\python37\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "d:\python\python37\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "d:\python\python37\lib\distutils\command\build.py", line 135, in run self.run_command(cmd_name) File "d:\python\python37\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "d:\python\python37\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "C:\Users\Ray\AppData\Local\Temp\pip-install-adkry0ue\dlib\setup.py", line 135, in run self.build_extension(ext) File "C:\Users\Ray\AppData\Local\Temp\pip-install-adkry0ue\dlib\setup.py", line 175, in build_extension subprocess.check_call(cmake_build, cwd=build_folder) File "d:\python\python37\lib\subprocess.py", line 363, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '/m']' returned non-zero exit status 1. ---------------------------------------- ERROR: Failed building wheel for dlib Running setup.py clean for dlib Failed to build dlib Installing collected packages: dlib Running setup.py install for dlib ... error ERROR: Command errored out with exit status 1: command: 'd:\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ray\\AppData\\Local\\Temp\\pip-install-adkry0ue\\dlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ray\\AppData\\Local\\Temp\\pip-install-adkry0ue\\dlib\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Ray\AppData\Local\Temp\pip-record-70rug5ub\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\python\python37\Include\dlib' cwd: C:\Users\Ray\AppData\Local\Temp\pip-install-adkry0ue\dlib\ Complete output (151 lines): running install running build running build_py package init file 'dlib\__init__.py' not found (or not a regular file) running build_ext Building extension for Python 3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 00:42:30) [MSC v.1916 64 bit (AMD64)] Invoking CMake setup: 'cmake C:\Users\Ray\AppData\Local\Temp\pip-install-adkry0ue\dlib\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\Ray\AppData\Local\Temp\pip-install-adkry0ue\dlib\build\lib.win-amd64-3.7 -DPYTHON_EXECUTABLE=d:\python\python37\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\Ray\AppData\Local\Temp\pip-install-adkry0ue\dlib\build\lib.win-amd64-3.7 -A x64' -- Building for: Visual Studio 15 2017 -- The C compiler identification is MSVC 19.16.27034.0 -- The CXX compiler identification is MSVC 19.16.27034.0 -- Check for working C compiler: D:/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- Check for working C compiler: D:/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: D:/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- Check for working CXX compiler: D:/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PythonInterp: D:/Python/Python37/python.exe (found version "3.7.6") -- Found PythonLibs: D:/Python/Python37/libs/Python37.lib -- pybind11 v2.2.2 -- Using CMake version: 3.16.3 -- Compiling dlib version: 19.19.0 -- SSE4 instructions can be executed by the host processor. -- AVX instructions can be executed by the host processor. -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of void* -- Check size of void* - done -- Enabling AVX instructions -- Searching for BLAS and LAPACK -- Searching for BLAS and LAPACK -- Looking for pthread.h -- Looking for pthread.h - not found -- Found Threads: TRUE CUDA_TOOLKIT_ROOT_DIR not found or specified -- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "7.5") -- DID NOT FIND CUDA -- Disabling CUDA support for dlib. DLIB WILL NOT USE CUDA -- C++11 activated. -- Configuring done -- Generating done -- Build files have been written to: C:/Users/Ray/AppData/Local/Temp/pip-install-adkry0ue/dlib/build/temp.win-amd64-3.7/Release Invoking CMake build: 'cmake --build . --config Release -- /m' 用于 .NET Framework 的 Microsoft (R) 生成引擎版本 15.9.21+g9802d43bc3 版权所有(C) Microsoft Corporation。保留所有权利。 D:\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: 中间目录或输出目录无法驻留在临时目 录下,因为这可能会导致增量生成出现问题。 [C:\Users\Ray\AppData\Local\Temp\pip-install-adkry0ue\dlib\build\temp.win-amd64-3.7\Release\ZERO_CHECK.vcxproj] Checking Build System D:\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: 中间目录或输出目录无法驻留在临时目 录下,因为这可能会导致增量生成出现问题。 [C:\Users\Ray\AppData\Local\Temp\pip-install-adkry0ue\dlib\build\temp.win-amd64-3.7\Release\dlib_build\dlib.vcxproj] Building Custom Rule C:/Users/Ray/AppData/Local/Temp/pip-install-adkry0ue/dlib/dlib/CMakeLists.txt base64_kernel_1.cpp bigint_kernel_1.cpp bigint_kernel_2.cpp bit_stream_kernel_1.cpp entropy_decoder_kernel_1.cpp entropy_decoder_kernel_2.cpp entropy_encoder_kernel_1.cpp entropy_encoder_kernel_2.cpp md5_kernel_1.cpp tokenizer_kernel_1.cpp unicode.cpp image_dataset_metadata.cpp mnist.cpp global_function_search.cpp kalman_filter.cpp test_for_odr_violations.cpp auto.cpp sockets_kernel_1.cpp c:\users\ray\appdata\local\temp\pip-install-adkry0ue\dlib\dlib\sockets\../dlib_basic_cpp_build_tutorial.txt(1): fatal error C1189: #error: "Don't write #include <dlib/all/source.cpp> in your code." (编译源文件 C:\Users\Ray\AppData\Local\Temp\pip-install-adkry0ue\dlib\dlib\sockets\sockets_kernel_1.cpp) [C:\Users\Ray\AppData\Local\Temp\pip-install-adkry0ue\dlib\build\temp.win-amd64-3.7\Release\dlib_build\dlib.vcxproj] bsp.cpp dir_nav_kernel_1.cpp dir_nav_kernel_2.cpp dir_nav_extensions.cpp linker_kernel_1.cpp extra_logger_headers.cpp logger_kernel_1.cpp logger_config_file.cpp misc_api_kernel_1.cpp misc_api_kernel_2.cpp sockets_extensions.cpp sockets_kernel_2.cpp sockstreambuf.cpp sockstreambuf_unbuffered.cpp server_kernel.cpp server_iostream.cpp server_http.cpp multithreaded_object_extension.cpp threaded_object_extension.cpp threads_kernel_1.cpp threads_kernel_2.cpp threads_kernel_shared.cpp thread_pool_extension.cpp async.cpp timer.cpp stack_trace.cpp cpu_dlib.cpp tensor_tools.cpp fonts.cpp widgets.cpp drawable.cpp canvas_drawing.cpp style.cpp base_widgets.cpp gui_core_kernel_1.cpp gui_core_kernel_2.cpp png_loader.cpp save_png.cpp jpeg_loader.cpp save_jpeg.cpp Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\Ray\AppData\Local\Temp\pip-install-adkry0ue\dlib\setup.py", line 261, in <module> 'Topic :: Software Development', File "d:\python\python37\lib\site-packages\setuptools\__init__.py", line 145, in setup return distutils.core.setup(**attrs) File "d:\python\python37\lib\distutils\core.py", line 148, in setup dist.run_commands() File "d:\python\python37\lib\distutils\dist.py", line 966, in run_commands self.run_command(cmd) File "d:\python\python37\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "d:\python\python37\lib\site-packages\setuptools\command\install.py", line 61, in run return orig.install.run(self) File "d:\python\python37\lib\distutils\command\install.py", line 545, in run self.run_command('build') File "d:\python\python37\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "d:\python\python37\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "d:\python\python37\lib\distutils\command\build.py", line 135, in run self.run_command(cmd_name) File "d:\python\python37\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "d:\python\python37\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "C:\Users\Ray\AppData\Local\Temp\pip-install-adkry0ue\dlib\setup.py", line 135, in run self.build_extension(ext) File "C:\Users\Ray\AppData\Local\Temp\pip-install-adkry0ue\dlib\setup.py", line 175, in build_extension subprocess.check_call(cmake_build, cwd=build_folder) File "d:\python\python37\lib\subprocess.py", line 363, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '/m']' returned non-zero exit status 1. ---------------------------------------- ERROR: Command errored out with exit status 1: 'd:\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ray\\AppData\\Local\\Temp\\pip-install-adkry0ue\\dlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ray\\AppData\\Local\\Temp\\pip-install-adkry0ue\\dlib\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Ray\AppData\Local\Temp\pip-record-70rug5ub\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\python\python37\Include\dlib' Check the logs for full command output.

OBS STUDIO 编译失败 求解?

![图片说明](https://img-ask.csdn.net/upload/201807/08/1531061918_685111.png)我的环境: WIN7 64位, IDE: VS2015 CMAKE VERSION: cmake-3.12.0-rc2-win64-x64 OBS STUDIO SOURCE_URL: https://github.com/obsproject/obs-studio.git 相关配置: DepsPath:D:\OBS_STUDIO\dependencies2015\win32 QTDIR:D:/Qt/Qt5.8.0/5.8/msvc2015 Libavcoder_DIR: D:/OBS_STUDIO/dependencies2015/win32 **错误提示:** OBS_VERSION: 0.0.1 Found FFmpeg: D:/OBS_STUDIO/dependencies2015/win32/bin/avcodec.lib (found version "57.108.100") found components: avcodec avdevice avutil avformat Scripting: Luajit supported Scripting: Python 3 supported CMake Deprecation Warning at D:/OBS_STUDIO/cmake-3.12.0-rc2-win64-x64/cmake-3.12.0-rc2-win64-x64/share/cmake-3.12/Modules/UseSWIG.cmake:455 (message): SWIG_ADD_MODULE is deprecated. Use SWIG_ADD_LIBRARY instead. Call Stack (most recent call first): deps/obs-scripting/obspython/CMakeLists.txt:33 (SWIG_ADD_MODULE) CMake Deprecation Warning at D:/OBS_STUDIO/cmake-3.12.0-rc2-win64-x64/cmake-3.12.0-rc2-win64-x64/share/cmake-3.12/Modules/UseSWIG.cmake:677 (message): SWIG_LINK_LIBRARIES is deprecated. Use TARGET_LINK_LIBRARIES instead. Call Stack (most recent call first): deps/obs-scripting/obspython/CMakeLists.txt:34 (SWIG_LINK_LIBRARIES) **CMake Error at deps/obs-scripting/obspython/CMakeLists.txt:45 (set_target_properties): set_target_properties Can not find target to add properties to: _obspython Call Stack (most recent call first): deps/obs-scripting/obspython/CMakeLists.txt:76 (install_plugin_bin_swig) ** CMake Deprecation Warning at D:/OBS_STUDIO/cmake-3.12.0-rc2-win64-x64/cmake-3.12.0-rc2-win64-x64/share/cmake-3.12/Modules/UseSWIG.cmake:455 (message): SWIG_ADD_MODULE is deprecated. Use SWIG_ADD_LIBRARY instead. Call Stack (most recent call first): deps/obs-scripting/obslua/CMakeLists.txt:19 (SWIG_ADD_MODULE) CMake Deprecation Warning at D:/OBS_STUDIO/cmake-3.12.0-rc2-win64-x64/cmake-3.12.0-rc2-win64-x64/share/cmake-3.12/Modules/UseSWIG.cmake:677 (message): SWIG_LINK_LIBRARIES is deprecated. Use TARGET_LINK_LIBRARIES instead. Call Stack (most recent call first): deps/obs-scripting/obslua/CMakeLists.txt:20 (SWIG_LINK_LIBRARIES) Jansson >=2.5 not found, building bundled version C compiler: MSVC Found FFmpeg: D:/OBS_STUDIO/dependencies2015/win32/bin/avformat.lib (found version "57.84.100") found components: avformat avutil swscale swresample avcodec Using libavcodec for image loading in libobs Found FFmpeg: D:/OBS_STUDIO/dependencies2015/win32/bin/avcodec.lib (found version "57.108.100") found components: avcodec avutil avformat libdshowcapture submodule not found! Please fetch submodules. win-dshow plugin disabled. Could NOT find LibVLC_INCLUDES (missing: VLC_INCLUDE_DIR) LibVLC includes not found, VLC video plugin disabled enc-amf submodule not found! Please fetch submodules. enc-amf plugin disabled. RSSDK not found, Realsense camera plugin disabled obs-vst submodule not found! Please fetch/update submodules. obs-vst plugin disabled. Libfdk not found - obs-libfdk plugin disabled Found FFmpeg: D:/OBS_STUDIO/dependencies2015/win32/bin/avcodec.lib (found version "57.108.100") found components: avcodec avfilter avdevice avutil swscale avformat swresample Found FFmpeg: D:/OBS_STUDIO/dependencies2015/win32/bin/avcodec.lib (found version "57.108.100") found components: avcodec avutil avformat Configuring incomplete, errors occurred! See also "D:/OBS_STUDIO/ProCmake/buildOBS/CMakeFiles/CMakeOutput.log". See also "D:/OBS_STUDIO/ProCmake/buildOBS/CMakeFiles/CMakeError.log".

CMAKE 安裝 marsyas 問題

The C compiler identification is MSVC 16.0.40219.1 The CXX compiler identification is MSVC 16.0.40219.1 Check for working C compiler using: Visual Studio 10 2010 Check for working C compiler using: Visual Studio 10 2010 -- works Detecting C compiler ABI info Detecting C compiler ABI info - done Check for working CXX compiler using: Visual Studio 10 2010 Check for working CXX compiler using: Visual Studio 10 2010 -- works Detecting CXX compiler ABI info Detecting CXX compiler ABI info - done Detecting CXX compile features Detecting CXX compile features - done Check if the system is big endian Searching 16 bit integer Looking for sys/types.h Looking for sys/types.h - found Looking for stdint.h Looking for stdint.h - found Looking for stddef.h Looking for stddef.h - found Check size of unsigned short Check size of unsigned short - done Using unsigned short Check if the system is big endian - little endian CMake Error at CMakeLists.txt:48 (include): include could not find load file: marsyas-options CMake Error at CMakeLists.txt:51 (include): include could not find load file: marsyas-detect CMake Error at CMakeLists.txt:60 (include): include could not find load file: marsyas-includes CMake Error at CMakeLists.txt:63 (include): include could not find load file: marsyas-oslibs CMake Error at CMakeLists.txt:106 (include): include could not find load file: marsyas-package Configuring incomplete, errors occurred! See also "C:/Users/ALAN/Desktop/marsyas/build/CMakeFiles/CMakeOutput.log". See also "C:/Users/ALAN/Desktop/marsyas/build/CMakeFiles/CMakeError.log". 我是從http://marsology.blogspot.tw/2011/11/installing-marsyas-on-windows-7-using.html 下載檔案,但他說找不到那些檔案 , 是因為什麼問題,才會這樣?謝謝,希望可以幫忙解答

为什么ubuntu Qtcreator 工具链不能够设置,求大神们帮忙看看

![图片说明](https://img-ask.csdn.net/upload/201507/25/1437795262_828706.png)

ubuntu16.04安装opencv时,make不通过该怎么办?

cmake已经完成,情况如下: ``` cmake .. -- Detected version of GNU GCC: 54 (504) -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.8", minimum required is "1.2.3") -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8") -- Checking for module 'gstreamer-base-1.0' -- No package 'gstreamer-base-1.0' found -- Checking for module 'gstreamer-video-1.0' -- No package 'gstreamer-video-1.0' found -- Checking for module 'gstreamer-app-1.0' -- No package 'gstreamer-app-1.0' found -- Checking for module 'gstreamer-riff-1.0' -- No package 'gstreamer-riff-1.0' found -- Checking for module 'gstreamer-pbutils-1.0' -- No package 'gstreamer-pbutils-1.0' found -- Checking for module 'gstreamer-base-0.10' -- No package 'gstreamer-base-0.10' found -- Checking for module 'gstreamer-video-0.10' -- No package 'gstreamer-video-0.10' found -- Checking for module 'gstreamer-app-0.10' -- No package 'gstreamer-app-0.10' found -- Checking for module 'gstreamer-riff-0.10' -- No package 'gstreamer-riff-0.10' found -- Checking for module 'gstreamer-pbutils-0.10' -- No package 'gstreamer-pbutils-0.10' found -- Looking for linux/videodev.h -- Looking for linux/videodev.h - not found -- Looking for linux/videodev2.h -- Looking for linux/videodev2.h - found -- Looking for sys/videoio.h -- Looking for sys/videoio.h - not found -- Checking for module 'libavresample' -- No package 'libavresample' found -- Looking for libavformat/avformat.h -- Looking for libavformat/avformat.h - found -- Looking for ffmpeg/avformat.h -- Looking for ffmpeg/avformat.h - not found -- Checking for module 'libgphoto2' -- No package 'libgphoto2' found -- found IPP (ICV version): 9.0.1 [9.0.1] -- at: /home/quxutao/opencv-3.1.0/3rdparty/ippicv/unpack/ippicv_lnx -- CUDA detected: 7.5 -- CUDA NVCC target flags: -gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_20,code=sm_21;-gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_30,code=compute_30 -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR=<filepath> option to cmake -- Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "2.7" (found /home/quxutao/.virtualenvs/cv/bin/python) -- Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "2.6" (found /home/quxutao/.virtualenvs/cv/bin/python) -- Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "3.4" (found /home/quxutao/.virtualenvs/cv/bin/python) -- Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "3.2" (found /home/quxutao/.virtualenvs/cv/bin/python) -- Could NOT find JNI (missing: JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) -- Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN) -- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file -- Caffe: NO -- Protobuf: YES -- Glog: NO -- HDF5: YES -- Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags -- Tesseract: NO -- HDF5: YES -- Build libprotobuf from sources: -- The protocol buffer compiler not found -- Tesseract: NO -- -- General configuration for OpenCV 3.1.0 ===================================== -- Version control: unknown -- -- Platform: -- Host: Linux 4.15.0-47-generic x86_64 -- CMake: 3.5.1 -- CMake generator: Unix Makefiles -- CMake build tool: /usr/bin/make -- Configuration: RELEASE -- -- C/C++: -- Built as dynamic libs?: YES -- C++ Compiler: /usr/bin/c++ (ver 5.4.0) -- C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG -- C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG -- C Compiler: /usr/bin/cc -- C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG -- C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG -- Linker flags (Release): -- Linker flags (Debug): -- Precompiled headers: YES -- Extra dependencies: /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/x86_64-linux-gnu/libtiff.so /usr/lib/x86_64-linux-gnu/libjasper.so /usr/lib/x86_64-linux-gnu/libjpeg.so gtk-3 gdk-3 pangocairo-1.0 pango-1.0 atk-1.0 cairo-gobject cairo gdk_pixbuf-2.0 gio-2.0 gobject-2.0 gthread-2.0 glib-2.0 dc1394 v4l1 v4l2 avcodec-ffmpeg avformat-ffmpeg avutil-ffmpeg swscale-ffmpeg /usr/lib/x86_64-linux-gnu/libbz2.so /usr/lib/x86_64-linux-gnu/hdf5/openmpi/lib/libhdf5.so /usr/lib/x86_64-linux-gnu/libsz.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libdl.so /usr/lib/x86_64-linux-gnu/libm.so dl m pthread rt cudart nppc nppi npps cufft -L/usr/lib/x86_64-linux-gnu -- 3rdparty dependencies: libwebp IlmImf libprotobuf -- -- OpenCV modules: -- To be built: cudev core cudaarithm flann hdf imgproc ml reg surface_matching video cudabgsegm cudafilters cudaimgproc cudawarping dnn fuzzy imgcodecs photo shape videoio cudacodec highgui objdetect plot ts xobjdetect xphoto bgsegm bioinspired dpm face features2d line_descriptor saliency text calib3d ccalib cudafeatures2d cudalegacy cudaobjdetect cudaoptflow cudastereo datasets rgbd stereo structured_light superres tracking videostab xfeatures2d ximgproc aruco optflow stitching -- Disabled: world contrib_world -- Disabled by dependency: - -- Unavailable: java python2 python3 viz cvv matlab sfm -- -- GUI: -- QT: NO -- GTK+ 3.x: YES (ver 3.18.9) -- GThread : YES (ver 2.48.2) -- GtkGlExt: NO -- OpenGL support: NO -- VTK support: NO -- -- Media I/O: -- ZLib: /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.8) -- JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (ver ) -- WEBP: build (ver 0.3.1) -- PNG: /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.2.54) -- TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 - 4.0.6) -- JPEG 2000: /usr/lib/x86_64-linux-gnu/libjasper.so (ver 1.900.1) -- OpenEXR: build (ver 1.7.1) -- GDAL: NO -- -- Video I/O: -- DC1394 1.x: NO -- DC1394 2.x: YES (ver 2.2.4) -- FFMPEG: YES -- codec: YES (ver 56.60.100) -- format: YES (ver 56.40.101) -- util: YES (ver 54.31.100) -- swscale: YES (ver 3.1.101) -- resample: NO -- gentoo-style: YES -- GStreamer: NO -- OpenNI: NO -- OpenNI PrimeSensor Modules: NO -- OpenNI2: NO -- PvAPI: NO -- GigEVisionSDK: NO -- UniCap: NO -- UniCap ucil: NO -- V4L/V4L2: Using libv4l1 (ver 1.10.0) / libv4l2 (ver 1.10.0) -- XIMEA: NO -- Xine: NO -- gPhoto2: NO -- -- Parallel framework: pthreads -- -- Other third-party libraries: -- Use IPP: 9.0.1 [9.0.1] -- at: /home/quxutao/opencv-3.1.0/3rdparty/ippicv/unpack/ippicv_lnx -- Use IPP Async: NO -- Use VA: NO -- Use Intel VA-API/OpenCL: NO -- Use Eigen: NO -- Use Cuda: YES (ver 7.5) -- Use OpenCL: YES -- Use custom HAL: NO -- -- NVIDIA CUDA -- Use CUFFT: YES -- Use CUBLAS: NO -- USE NVCUVID: NO -- NVIDIA GPU arch: 20 21 30 35 -- NVIDIA PTX archs: 30 -- Use fast math: NO -- -- OpenCL: -- Version: dynamic -- Include path: /home/quxutao/opencv-3.1.0/3rdparty/include/opencl/1.2 -- Use AMDFFT: NO -- Use AMDBLAS: NO -- -- Python 2: -- Interpreter: NO -- -- Python 3: -- Interpreter: NO -- -- Python (for build): NO -- -- Java: -- ant: NO -- JNI: NO -- Java wrappers: NO -- Java tests: NO -- -- Matlab: Matlab not found or implicitly disabled -- -- Documentation: -- Doxygen: NO -- PlantUML: NO -- -- Tests and samples: -- Tests: YES -- Performance tests: YES -- C/C++ Examples: YES -- -- Install path: /usr/local -- -- cvconfig.h is in: /home/quxutao/opencv-3.1.0/build -- ----------------------------------------------------------------- -- -- Configuring done -- Generating done -- Build files have been written to: /home/quxutao/opencv-3.1.0/build ``` 但是make的时候,就报错: ``` make [ 4%] Built target libwebp [ 4%] Built target IlmImf [ 4%] Built target opencv_cudev [ 4%] Built target opencv_core_pch_dephelp [ 4%] Built target pch_Generate_opencv_core [ 4%] Building NVCC (Device) object modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o /usr/include/string.h: In function ‘void* __mempcpy_inline(void*, const void*, size_t)’: /usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope return (char *) memcpy (__dest, __src, __n) + __n; ^ CMake Error at cuda_compile_generated_gpu_mat.cu.o.cmake:266 (message): Error generating file /home/quxutao/opencv-3.1.0/build/modules/core/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_gpu_mat.cu.o modules/core/CMakeFiles/opencv_core.dir/build.make:399: recipe for target 'modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o' failed make[2]: *** [modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o] Error 1 CMakeFiles/Makefile2:2307: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2 ``` 弄了一下午了,没有找到相关的解决办法。我的cuda是7.5,其实不用GPU也可以的,我只是想用KAZE滤波。。。跪求大神帮忙。。。

编译PX4时出现下面错误怎么办error: non-constant condition for static assertion

在Ubuntu16.04版本下,编译PX4时,总是出现下面的情况,不知道是什么原因,有哪位大神帮忙解答吗? u@ubuntu:~/src/Firmware$ make px4_fmu-v2_default -- PX4 config file: /home/hanlu/src/Firmware/boards/px4/fmu-v2/default.cmake -- PX4 config: px4_fmu-v2_default -- PX4 platform: nuttx -- PX4 lockstep: disabled -- PX4 version: v1.9.0-216-gbef7a9b -- cmake build type: MinSizeRel -- The CXX compiler identification is GNU 4.9.3 -- The C compiler identification is GNU 4.9.3 -- The ASM compiler identification is GNU -- Found assembler: /opt/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc -- Check for working CXX compiler using: Ninja -- Check for working CXX compiler using: Ninja -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Check for working C compiler using: Ninja -- Check for working C compiler using: Ninja -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Found PythonInterp: /usr/bin/python (found version "2.7.12") -- Found PY_jinja2: /usr/local/lib/python2.7/dist-packages/Jinja2-2.7.3-py2.7.egg/jinja2 -- PX4 ECL: Very lightweight Estimation & Control Library v1.9.0-rc1-5-g54ac147 -- Building and including px4_io-v2_default -- ROMFS: px4fmu_common -- ROMFS: Adding rc.board_defaults -- ROMFS: Adding rc.board_sensors -- Configuring done -- Generating done -- Build files have been written to: /home/hanlu/src/Firmware/build/px4_fmu-v2_default [1/690] git submodule platforms/nuttx/NuttX/nuttx [4/690] git submodule platforms/nuttx/NuttX/apps [5/690] git submodule src/lib/ecl [10/690] git submodule src/drivers/gps/devices [16/690] git submodule mavlink/include/mavlink/v2.0 [24/690] Performing configure step for 'px4io_firmware' -- PX4 config file: /home/hanlu/src/Firmware/boards/px4/io-v2/default.cmake -- PX4 config: px4_io-v2_default -- PX4 platform: nuttx -- PX4 lockstep: disabled -- PX4 version: v1.9.0-216-gbef7a9b -- cmake build type: MinSizeRel -- The CXX compiler identification is GNU 4.9.3 -- The C compiler identification is GNU 4.9.3 -- The ASM compiler identification is GNU -- Found assembler: /opt/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc -- Check for working CXX compiler using: Ninja -- Check for working CXX compiler using: Ninja -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Check for working C compiler using: Ninja -- Check for working C compiler using: Ninja -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Found PythonInterp: /usr/bin/python (found version "2.7.12") -- Found PY_jinja2: /usr/local/lib/python2.7/dist-packages/Jinja2-2.7.3-py2.7.egg/jinja2 -- PX4 ECL: Very lightweight Estimation & Control Library v1.9.0-rc1-5-g54ac147 -- Configuring done -- Generating done -- Build files have been written to: /home/hanlu/src/Firmware/build/px4_fmu-v2_default/external/Build/px4io_firmware [25/690] Performing build step for 'px4io_firmware' [1/200] git submodule platforms/nuttx/NuttX/nuttx [5/200] git submodule platforms/nuttx/NuttX/apps [39/200] Building CXX object src/platforms/common/CMakeFiles/px4_platform.dir/module.cpp.obj FAILED: /opt/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-g++ -DCONFIG_ARCH_BOARD_PX4_IO_V2 -D__CUSTOM_FILE_IO__ -D__DF_NUTTX -D__PX4_NUTTX -D__STDC_FORMAT_MACROS -isystem ../../../../../platforms/nuttx/NuttX/include/cxx -isystem NuttX/nuttx/include/cxx -isystem NuttX/nuttx/include -I../../../../../boards/px4/io-v2/src -I. -Isrc -Isrc/lib -Isrc/modules -I../../../../../src -I../../../../../src/include -I../../../../../src/lib -I../../../../../src/lib/DriverFramework/framework/include -I../../../../../src/lib/matrix -I../../../../../src/modules -I../../../../../src/platforms -I../../../../../src/platforms/common -INuttX/nuttx/arch/arm/src/armv7-m -INuttX/nuttx/arch/arm/src/chip -INuttX/nuttx/arch/arm/src/common -INuttX/apps/include -Iexternal/Install/include -mcpu=cortex-m3 -mthumb -Os -DNDEBUG -g -fdata-sections -ffunction-sections -fomit-frame-pointer -fno-signed-zeros -fno-trapping-math -freciprocal-math -fno-math-errno -fno-strict-aliasing -fvisibility=hidden -include visibility.h -Wall -Wextra -Werror -Warray-bounds -Wcast-align -Wdisabled-optimization -Wdouble-promotion -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-implicit-fallthrough -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-unused-parameter -fdiagnostics-color=always -fno-builtin-printf -fno-strength-reduce -Wformat=1 -Wunused-but-set-variable -Wno-format-truncation -fcheck-new -fno-exceptions -fno-rtti -fno-threadsafe-statics -Wreorder -Wno-overloaded-virtual -D__STDC_VERSION__=199901L -nostdinc++ -std=gnu++11 -MMD -MT src/platforms/common/CMakeFiles/px4_platform.dir/module.cpp.obj -MF src/platforms/common/CMakeFiles/px4_platform.dir/module.cpp.obj.d -o src/platforms/common/CMakeFiles/px4_platform.dir/module.cpp.obj -c ../../../../../src/platforms/common/module.cpp In file included from ../../../../../src/platforms/px4_module.h:44:0, from ../../../../../src/platforms/common/module.cpp:43: ../../../../../src/platforms/px4_atomic.h: In instantiation of 'class px4::atomic<bool>': ../../../../../src/platforms/px4_module.h:421:42: required from here ../../../../../src/platforms/px4_atomic.h:72:2: error: non-constant condition for static assertion static_assert(__atomic_always_lock_free(sizeof(T), 0), "atomic is not lock-free for the given type T"); ^ compilation terminated due to -Wfatal-errors. [39/200] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/gps_inject_data.cpp.obj ninja: build stopped: subcommand failed. [108/690] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/rc_parameter_map.cpp.obj FAILED: cd /home/hanlu/src/Firmware/build/px4_fmu-v2_default/external/Build/px4io_firmware && /usr/bin/cmake --build . && /usr/bin/cmake -E touch /home/hanlu/src/Firmware/build/px4_fmu-v2_default/external/Stamp/px4io_firmware/px4io_firmware-build [108/690] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/rc_parameter_map.cpp.obj ninja: build stopped: subcommand failed. Makefile:193: recipe for target 'px4_fmu-v2_default' failed make: *** [px4_fmu-v2_default] Error 1

android 5.1设备中运行程序编译不通过,在8.1上又能运行,求大神解惑?

09-09 17:09:28.354 14227-14227/gbpe.baidulbs D/AccessibilityManager: setStateLocked: wasEnabled = false, mIsEnabled = false, wasTouchExplorationEnabled = false, mIsTouchExplorationEnabled = false, wasHighTextContrastEnabled = false, mIsHighTextContrastEnabled = false java.lang.Throwable: setStateLocked at android.view.accessibility.AccessibilityManager.setStateLocked(AccessibilityManager.java:553) at android.view.accessibility.AccessibilityManager.tryConnectToServiceLocked(AccessibilityManager.java:636) at android.view.accessibility.AccessibilityManager.<init>(AccessibilityManager.java:226) at android.view.accessibility.AccessibilityManager.getInstance(AccessibilityManager.java:206) at android.view.View.setFlags(View.java:9843) at android.view.ViewGroup.initViewGroup(ViewGroup.java:536) at android.view.ViewGroup.<init>(ViewGroup.java:525) at android.view.ViewGroup.<init>(ViewGroup.java:520) at android.view.ViewGroup.<init>(ViewGroup.java:516) at android.view.ViewGroup.<init>(ViewGroup.java:512) at android.widget.FrameLayout.<init>(FrameLayout.java:119) at com.android.internal.policy.impl.PhoneWindow$DecorView.<init>(PhoneWindow.java:2326) at com.android.internal.policy.impl.PhoneWindow.generateDecor(PhoneWindow.java:3463) at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:3849) at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:411) at android.app.Activity.setContentView(Activity.java:2175) at gbpe.baidulbs.ShareLocationActivity.onCreate(ShareLocationActivity.java:108) at android.app.Activity.performCreate(Activity.java:6100) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1112) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2481) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2614) at android.app.ActivityThread.access$800(ActivityThread.java:178) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1470) at android.os.Handler.dispatchMessage(Handler.java:111) at android.os.Looper.loop(Looper.java:194) at android.app.ActivityThread.main(ActivityThread.java:5643) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755) 09-09 17:09:28.357 254-254/? D/Surface: Surface::setBuffersDimensions(this=0x7f9e9f4e00,w=320,h=330)

大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了

大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

程序员请照顾好自己,周末病魔差点一套带走我。

程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。

ArrayList源码分析(入门篇)

ArrayList源码分析 前言: 写这篇博客的主要原因是,在我上一次参加千牵科技Java实习生面试时,有被面试官问到ArrayList为什么查找的速度较快,插入和删除的速度较慢?当时我回答得不好,很大的一部分原因是因为我没有阅读过ArrayList源码,虽然最后收到Offer了,但我拒绝了,打算寒假学得再深入些再广泛些,下学期开学后再去投递其他更好的公司。为了更加深入理解ArrayList,也为

我以为我学懂了数据结构,直到看了这个导图才发现,我错了

数据结构与算法思维导图

String s = new String(" a ") 到底产生几个对象?

老生常谈的一个梗,到2020了还在争论,你们一天天的,哎哎哎,我不是针对你一个,我是说在座的各位都是人才! 上图红色的这3个箭头,对于通过new产生一个字符串(”宜春”)时,会先去常量池中查找是否已经有了”宜春”对象,如果没有则在常量池中创建一个此字符串对象,然后堆中再创建一个常量池中此”宜春”对象的拷贝对象。 也就是说准确答案是产生了一个或两个对象,如果常量池中原来没有 ”宜春” ,就是两个。...

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

讲一个程序员如何副业月赚三万的真实故事

loonggg读完需要3分钟速读仅需 1 分钟大家好,我是你们的校长。我之前讲过,这年头,只要肯动脑,肯行动,程序员凭借自己的技术,赚钱的方式还是有很多种的。仅仅靠在公司出卖自己的劳动时...

上班一个月,后悔当初着急入职的选择了

最近有个老铁,告诉我说,上班一个月,后悔当初着急入职现在公司了。他之前在美图做手机研发,今年美图那边今年也有一波组织优化调整,他是其中一个,在协商离职后,当时捉急找工作上班,因为有房贷供着,不能没有收入来源。所以匆忙选了一家公司,实际上是一个大型外包公司,主要派遣给其他手机厂商做外包项目。**当时承诺待遇还不错,所以就立马入职去上班了。但是后面入职后,发现薪酬待遇这块并不是HR所说那样,那个HR自...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

玩转springboot启动banner定义所得

最近接手了一个springboot项目,不是不熟悉这个框架,启动时打印的信息吸引了我。 这不是我熟悉的常用springboot的打印信息啊,我打开自己的项目: 还真是的,不用默认的感觉也挺高大上的。一时兴起,就去研究了一下源代码,还正是有些收获,稍后我会总结一下。正常情况下做为一个老程序员,是不会对这种小儿科感兴趣的,不就是一个控制台打印嘛。哈哈! 于是出于最初的好奇,研究了项目的源代码。看到

带了6个月的徒弟当了面试官,而身为高级工程师的我天天修Bug......

即将毕业的应届毕业生一枚,现在只拿到了两家offer,但最近听到一些消息,其中一个offer,我这个组据说客户很少,很有可能整组被裁掉。 想问大家: 如果我刚入职这个组就被裁了怎么办呢? 大家都是什么时候知道自己要被裁了的? 面试软技能指导: BQ/Project/Resume 试听内容: 除了刷题,还有哪些技能是拿到offer不可或缺的要素 如何提升面试软实力:简历, 行为面试,沟通能...

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

男生更看重女生的身材脸蛋,还是思想?

往往,我们看不进去大段大段的逻辑。深刻的哲理,往往短而精悍,一阵见血。问:产品经理挺漂亮的,有点心动,但不知道合不合得来。男生更看重女生的身材脸蛋,还是...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发(16k)

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

终于懂了TCP和UDP协议区别

终于懂了TCP和UDP协议区别

你打算用Java 8一辈子都不打算升级到Java 14,真香

我们程序员应该抱着尝鲜、猎奇的心态,否则就容易固步自封,技术停滞不前。

无代码时代来临,程序员如何保住饭碗?

编程语言层出不穷,从最初的机器语言到如今2500种以上的高级语言,程序员们大呼“学到头秃”。程序员一边面临编程语言不断推陈出新,一边面临由于许多代码已存在,程序员编写新应用程序时存在重复“搬砖”的现象。 无代码/低代码编程应运而生。无代码/低代码是一种创建应用的方法,它可以让开发者使用最少的编码知识来快速开发应用程序。开发者通过图形界面中,可视化建模来组装和配置应用程序。这样一来,开发者直...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

《经典算法案例》01-08:如何使用质数设计扫雷(Minesweeper)游戏

我们都玩过Windows操作系统中的经典游戏扫雷(Minesweeper),如果把质数当作一颗雷,那么,表格中红色的数字哪些是雷(质数)?您能找出多少个呢?文中用列表的方式罗列了10000以内的自然数、质数(素数),6的倍数等,方便大家观察质数的分布规律及特性,以便对算法求解有指导意义。另外,判断质数是初学算法,理解算法重要性的一个非常好的案例。

《Oracle Java SE编程自学与面试指南》最佳学习路线图(2020最新版)

正确选择比瞎努力更重要!

Java岗开发3年,公司临时抽查算法,离职后这几题我记一辈子

前几天我们公司做了一件蠢事,非常非常愚蠢的事情。我原以为从学校出来之后,除了找工作有测试外,不会有任何与考试有关的事儿。 但是,天有不测风云,公司技术总监、人事总监两位大佬突然降临到我们事业线,叫上我老大,给我们组织了一场别开生面的“考试”。 那是一个风和日丽的下午,我翘着二郎腿,左手端着一杯卡布奇诺,右手抓着我的罗技鼠标,滚动着轮轴,穿梭在头条热点之间。 “淡黄的长裙~蓬松的头发...

立即提问
相关内容推荐