Problems with CMAKE and OpenCL

asked 2017-09-22 09:00:10 -0600

Rofreli gravatar image

updated 2017-09-22 09:22:41 -0600

After generate a project the Visual Studio 14 does not find opencl_kernels..

I looked in cmakeerror.log and i found some erros with the fseeko funcion, and all opencl_*.cpp.rules are emptys.

Can anyone help me?

Thx

Build output check failed: Regex: 'unknown .*option' Output line: 'cl : Command line warning D9002: ignoring unknown option '-fsigned-char' [C:\opencv\install\CMakeFiles\CMakeTmp\cmTC_9f2ab.vcxproj] ' Compilation failed: source file: 'C:/opencv/install/CMakeFiles/CMakeTmp/src.cxx' check option: ' -fsigned-char' ===== BUILD LOG ===== Change Dir: C:/opencv/install/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_9f2ab.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0" Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.

Build started 22/09/2017 10:53:20.

Project "C:\opencv\install\CMakeFiles\CMakeTmp\cmTC_9f2ab.vcxproj" on node 1 (default targets).

PrepareForBuild:

Creating directory "cmTC_9f2ab.dir\Debug\".

Creating directory "C:\opencv\install\CMakeFiles\CMakeTmp\Debug\".

Creating directory "cmTC_9f2ab.dir\Debug\cmTC_9f2ab.tlog\".

InitializeBuildStatus:

Creating "cmTC_9f2ab.dir\Debug\cmTC_9f2ab.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHa /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_9f2ab.dir\Debug\" /Fd"cmTC_9f2ab.dir\Debug\vc140.pdb" /Gd /TP /errorReport:queue -fsigned-char C:\opencv\install\CMakeFiles\CMakeTmp\src.cxx

Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64

Copyright (C) Microsoft Corporation. All rights reserved.

cl /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHa /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_9f2ab.dir\Debug\" /Fd"cmTC_9f2ab.dir\Debug\vc140.pdb" /Gd /TP /errorReport:queue -fsigned-char C:\opencv\install\CMakeFiles\CMakeTmp\src.cxx

cl : Command line warning D9002: ignoring unknown option '-fsigned-char' [C:\opencv\install\CMakeFiles\CMakeTmp\cmTC_9f2ab.vcxproj]

src.cxx

Link:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\opencv\install\CMakeFiles\CMakeTmp\Debug\cmTC_9f2ab.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:/opencv/install/CMakeFiles/CMakeTmp/Debug/cmTC_9f2ab.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/opencv/install/CMakeFiles/CMakeTmp/Debug/cmTC_9f2ab.lib" /MACHINE:X64 /machine:x64 cmTC_9f2ab.dir\Debug\src.obj

cmTC_9f2ab.vcxproj -> C:\opencv\install\CMakeFiles\CMakeTmp\Debug\cmTC_9f2ab.exe

FinalizeBuildStatus:

Deleting file "cmTC_9f2ab.dir\Debug\cmTC_9f2ab.tlog\unsuccessfulbuild".

Touching "cmTC_9f2ab.dir\Debug\cmTC_9f2ab.tlog\cmTC_9f2ab.lastbuildstate".

Done Building Project "C:\opencv\install\CMakeFiles\CMakeTmp\cmTC_9f2ab.vcxproj" (default targets).

Build succeeded.

"C:\opencv\install\CMakeFiles\CMakeTmp\cmTC_9f2ab.vcxproj" (default target) (1) ->

(ClCompile target) ->

cl : Command line warning D9002: ignoring unknown option '-fsigned-char' [C:\opencv\install\CMakeFiles\CMakeTmp\cmTC_9f2ab.vcxproj ... (more)

edit retag flag offensive close merge delete

Comments

You can have error in cmakeoutput.log. CMake test availabilty of function on your computer. Can you check if your opencv solution is built?

LBerger gravatar imageLBerger ( 2017-09-22 09:36:28 -0600 )edit

When I try build my solution I got errors in visual studio- No such file or directory opencl_kernels*.cpp

Rofreli gravatar imageRofreli ( 2017-09-22 09:41:16 -0600 )edit

clean your solution

LBerger gravatar imageLBerger ( 2017-09-22 10:06:47 -0600 )edit

I did, still the same error.

I open .vcxproj and ger the custom build for opencl files and execute manually in command prompt and I got this files after that. I think my VS has some problems with custom builds.

Rofreli gravatar imageRofreli ( 2017-09-22 10:23:08 -0600 )edit

what is exactly error message in VS?

LBerger gravatar imageLBerger ( 2017-09-22 10:58:31 -0600 )edit