Cmake error target dependinfo cmake file not found clion

Issue Summary When trying to build with OpenCL on Mac Pro, I got the following CMake errors: Target DependInfo.cmake file not found and Directory Information file not found for target openpose_lib,...

Issue Summary

When trying to build with OpenCL on Mac Pro, I got the following CMake errors:
Target DependInfo.cmake file not found and Directory Information file not found for target openpose_lib, openpose_unity and openpose. It looks like it is trying to find the makefile or dir info for the unity and 3D camera flags which I didn’t turn on at all.

Executed Command (if any)

Errors (if any)

-bash: nproc: command not found -- Building with OpenCL. -- Boost version: 1.68.0 -- Found the following Boost libraries: -- system -- Found gflags (include: /usr/local/include, library: /usr/local/lib/libgflags.dylib) -- Found glog (include: /usr/local/include, library: /usr/local/lib/libglog.dylib) -- Caffe will be downloaded from source now. NOTE: This process might take several minutes depending on your internet connection. -- Caffe has already been downloaded. Already on 'opencl' Your branch is up to date with 'origin/opencl'. -- Caffe will be built from source now. -- Download the models. -- Downloading BODY_25 model... -- Model already exists. -- Not downloading body (COCO) model -- Not downloading body (MPI) model -- Downloading face model... -- Model already exists. -- Downloading hand model... -- Model already exists. -- Models Downloaded. -- Configuring done -- Generating done -- Build files have been written to: /Users/zuic/GIT/openpose/build Scanning dependencies of target openpose_lib CMake Error: Target DependInfo.cmake file not found Scanning dependencies of target openpose_unity CMake Error: Directory Information file not found make[2]: *** No rule to make target ../src/openpose/unity/unityBinding.cpp’, needed by src/openpose/unity/CMakeFiles/openpose_unity.dir/unityBinding.cpp.o'. Stop. make[1]: *** [src/openpose/unity/CMakeFiles/openpose_unity.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 12%] Performing build step for 'openpose_lib' make[3]: *** No targets specified and no makefile found. Stop. make[2]: *** [caffe/src/openpose_lib-stamp/openpose_lib-build] Error 2 make[1]: *** [CMakeFiles/openpose_lib.dir/all] Error 2 CMake Error: Target DependInfo.cmake file not found Scanning dependencies of target openpose CMake Error: Directory Information file not found make[2]: *** No rule to make target ../src/openpose/3d/cameraParameterReader.cpp’, needed by src/openpose/CMakeFiles/openpose.dir/3d/cameraParameterReader.cpp.o'. Stop. make[1]: *** [src/openpose/CMakeFiles/openpose.dir/all] Error 2 make: *** [all] Error 2

Type of Issue

  • Compilation/installation error
  • Execution error

Your System Configuration

  1. Whole console output : https://pastebin.com/im9V6qLE

  2. OpenPose version: Latest GitHub code

  3. General configuration:

    • Installation mode: CMake
    • Operating system : Mac OSX 10.14.2
    • Release or Debug mode: release
    • Compiler:
      Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1 Apple LLVM version 10.0.0 (clang-1000.11.45.5) Target: x86_64-apple-darwin18.2.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
  4. Non-default settings: No

  5. 3rd-party software:

    • Caffe version: Default from OpenPose
    • CMake version : 3.13.4
    • OpenCV version: 4.0.1 (installed with openpose setup)
  6. If GPU mode issue:

    • GPU model : AMD FirePro D700 6144 MB

Я использовал CLion для написания некоторых исходных файлов на С++ (конкретный код не важен, когда речь идет об этом вопросе). Однако в одном проекте может быть только одна функция main(), хотя эти функции main() находятся в разных исходных файлах. Итак, в CMakeLists.txt:

cmake_minimum_required(VERSION 3.20)
project(_CODE__20220116_CppTyro)

set(CMAKE_CXX_STANDARD 17)

add_executable(_CODE__20220116_CppTyro main.cpp 0001HelloWorld.cpp 0002Square.cpp)

add_executable(0001HelloWorld 0001HelloWorld.cpp)
add_executable(0002Square 0002Square.cpp)

Я написал их для запуска двух или более функций main() в одном проекте C++. Но произошла ошибка:

====================[ Build | 0001HelloWorld | Debug ]==========================
"D:CLion 2021.2bincmakewinbincmake.exe" --build (Here is the path of source file)
CMake Error: Target DependInfo.cmake file not found
[ 50%] Building CXX object CMakeFiles/0001HelloWorld.dir/0001HelloWorld.cpp.obj
G__~1.EXE: error: (Here is the path of source file): No such file or directory
G__~1.EXE: fatal error: no input files
compilation terminated.
mingw32-make.exe[3]: *** [CMakeFiles001HelloWorld.dirbuild.make:71: 
CMakeFiles/0001HelloWorld.dir/0001HelloWorld.cpp.obj] Error 1
mingw32-make.exe[2]: *** [CMakeFilesMakefile2:112: CMakeFiles/0001HelloWorld.dir/all] Error 2
mingw32-make.exe[1]: *** [CMakeFilesMakefile2:119: CMakeFiles/0001HelloWorld.dir/rule] Error 2
mingw32-make.exe: *** [Makefile:136: 0001HelloWorld] Error 2

Я не знаю, почему возникла эта ошибка и как с ней бороться.

1 ответ

С помощью kiner_shah я нашел решение.

То есть никогда не допускайте, чтобы ваше имя проекта и путь включали «[» или «]», особенно в первой букве.

В своем вопросе я не указал конкретный путь к исходному файлу, потому что подумал, что это не важно. Однако я обнаружил, что каждый раз, когда я создавал этот проект, создавалась новая папка, имя которой было похоже на путь к проекту. Например:

Путь к проекту

D:[CODE]Language_Learning[CODE]Cpp_Learning

И он создаст папку с именем (обратите внимание, что косой черты нет)

[CODE]Language_Learning[CODE]Cpp_Learning

На диске D, и CLion найдет соответствующий файл в этой папке! Поскольку это была новая папка, не было файла, связанного с этим проектом, и произошла ошибка. Но если путь к проекту

D:Language_LearningCpp_Learning

Ошибки не произошло. Причина, по которой это произошло, не ясна (может быть, просто баг), но этот вопрос решаемый.


0

Shizumu
21 Янв 2022 в 15:47

Скачал Clion, установил MinGW, пытался настроить, но так и не смог. Clion говорит, что Cmake выдаёт ошибку
— The C compiler identification is GNU 8.1.0
— The CXX compiler identification is GNU 8.1.0
— Check for working C compiler: C:/Program Files (x86)/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/gcc.exe
— Check for working C compiler: C:/Program Files (x86)/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/gcc.exe — broken
CMake Error at C:/Program Files/JetBrains/CLion 2019.1.4/bin/cmake/win/share/cmake-3.14/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler

«C:/Program Files (x86)/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/gcc.exe»

is not able to compile a simple test program.

It fails with the following output:

Change Dir: C:/Users/ЗЫЗник/AppData/Local/Temp/cmake_check_environment1/_build226185938064549912/CMakeFiles/CMakeTmp

Run Build Command(s):C:/PROGRA~2/MINGW-~1/I686-8~1.0-P/mingw32/bin/mingw32-make.exe cmTC_9b312/fast
C:/PROGRA~2/MINGW-~1/I686-8~1.0-P/mingw32/bin/mingw32-make.exe -f CMakeFilescmTC_9b312.dirbuild.make CMakeFiles/cmTC_9b312.dir/build
mingw32-make.exe[1]: Entering directory ‘C:/Users/╟█╟эшъ/AppData/Local/Temp/cmake_check_environment1/_build226185938064549912/CMakeFiles/CMakeTmp’
Building C object CMakeFiles/cmTC_9b312.dir/testCCompiler.c.obj
C:PROGRA~2MINGW-~1I686-8~1.0-Pmingw32bingcc.exe -o CMakeFilescmTC_9b312.dirtestCCompiler.c.obj -c C:Usersв•ЁР§в•ЁР»в•ЁР§в•Ёв•њв•Ёв••в•Ёв•‘AppData LocalTempcmake_check_environment1_build2261859 38064549912CMakeFilesCMakeTmptestCCompiler.c
gcc.exe: error: C:Usersв•ЁР§в•ЁР»в•ЁР§в•Ёв•њв•Ёв••в•Ёв•‘AppData LocalTempcmake_check_environment1_build2261859 38064549912CMakeFilesCMakeTmptestCCompiler.c: No such file or directory
gcc.exe: fatal error: no input files
compilation terminated.
mingw32-make.exe[1]: *** [CMakeFilescmTC_9b312.dirbuild.make:65: CMakeFiles/cmTC_9b312.dir/testCCompiler.c.obj] Error 1
mingw32-make.exe[1]: Leaving directory ‘C:/Users/╟█╟эшъ/AppData/Local/Temp/cmake_check_environment1/_build226185938064549912/CMakeFiles/CMakeTmp’
mingw32-make.exe: *** [Makefile:120: cmTC_9b312/fast] Error 2

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:1 (project)

— Configuring incomplete, errors occurred!
See also «C:/Users/ЗЫЗник/AppData/Local/Temp/cmake_check_environment1/_build226185938064549912/CMakeFiles/CMakeOutput.log».
See also «C:/Users/ЗЫЗник/AppData/Local/Temp/cmake_check_environment1/_build226185938064549912/CMakeFiles/CMakeError.log».

Error code: 1

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь

Topic: [SOLVED][C++] Compiling SFML under Windows 7 with MinGW throws errors  (Read 6906 times)

0 Members and 1 Guest are viewing this topic.

I’m currently trying to compile SFML on a school computer but now I’m stuck at some weird errors. I have done exatctly as you’re supposed to do, use CMake, select MinGW Makefiles and go to the «Build Directory» and run  «mingw32-make» to compile SFML. However when running «mingw32-make» it gives a bunch of errors and stops:

C:UsersAdministratörDesktopCompiledSFML>mingw32-make
CMake Error: Target DependInfo.cmake file not found
Scanning dependencies of target sfml-system
CMake Error: Directory Information file not found
Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Clock.cpp.obj
G__~1.EXE: error: @CMakeFiles/sfml-system.dir/includes_CXX.rsp: No such file or
directory
G__~1.EXE: error: C:UsersAdministrat¸rDesktopLaurentGomila-SFML-86897a8src
SFMLSystemClock.cpp: No such file or directory
G__~1.EXE: fatal error: no input files
compilation terminated.
srcSFMLSystemCMakeFilessfml-system.dirbuild.make:57: recipe for target 'src
/SFML/System/CMakeFiles/sfml-system.dir/Clock.cpp.obj' failed
mingw32-make[2]: *** [src/SFML/System/CMakeFiles/sfml-system.dir/Clock.cpp.obj]
Error 1
CMakeFilesMakefile2:107: recipe for target 'src/SFML/System/CMakeFiles/sfml-sys
tem.dir/all' failed
mingw32-make[1]: *** [src/SFML/System/CMakeFiles/sfml-system.dir/all] Error 2
Makefile:115: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

C:UsersAdministratörDesktopCompiledSFML>


Any idea what may be causing this to happen?

« Last Edit: April 19, 2013, 10:50:14 am by Symphonym »


Logged


Are you sure that the CMake configuration step succeeded? Have you tried to restart from scratch?


Logged

Laurent Gomila — SFML developer


Are you sure that the CMake configuration step succeeded? Have you tried to restart from scratch?

Yes, I’m pretty sure the CMake succeeded, and yes I have tried redoing it all again (I’ll do it once more and show my results below).

Using the CMake-gui and pressing «configure» after selecing MinGW makefiles on the popup window:

The C compiler identification is GNU 4.7.2
The CXX compiler identification is GNU 4.7.2
Check for working C compiler: C:/Program Files/MinGW/bin/gcc.exe
Check for working C compiler: C:/Program Files/MinGW/bin/gcc.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler: C:/Program Files/MinGW/bin/g++.exe
Check for working CXX compiler: C:/Program Files/MinGW/bin/g++.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
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
Found OpenGL: opengl32 
Found Freetype: C:/Users/Administratör/Desktop/LaurentGomila-SFML-86897a8/extlibs/libs-mingw/x86/libfreetype.a (found version "2.4.4")
Found GLEW: C:/Users/Administratör/Desktop/LaurentGomila-SFML-86897a8/extlibs/libs-mingw/x86/libglew.a 
Found JPEG: C:/Users/Administratör/Desktop/LaurentGomila-SFML-86897a8/extlibs/libs-mingw/x86/libjpeg.a 
Found OpenAL: C:/Users/Administratör/Desktop/LaurentGomila-SFML-86897a8/extlibs/libs-mingw/x86/libopenal32.a 
Found SNDFILE: C:/Users/Administratör/Desktop/LaurentGomila-SFML-86897a8/extlibs/libs-mingw/x86/libsndfile.a 
Configuring done

Pressing «configure» again and then «generate»

Configuring done
Generating done

Going to the directory where I wanted to «build the binaries» and running «mingw32-make»:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Med ensamrätt.

C:UsersAdministratör>cd Desktop

C:UsersAdministratörDesktop>cd CompiledSFML

C:UsersAdministratörDesktopCompiledSFML>mingw32-make
CMake Error: Target DependInfo.cmake file not found
Scanning dependencies of target sfml-system
CMake Error: Directory Information file not found
Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Clock.cpp.obj
G__~1.EXE: error: @CMakeFiles/sfml-system.dir/includes_CXX.rsp: No such file or
directory
G__~1.EXE: error: C:UsersAdministrat¸rDesktopLaurentGomila-SFML-86897a8src
SFMLSystemClock.cpp: No such file or directory
G__~1.EXE: fatal error: no input files
compilation terminated.
srcSFMLSystemCMakeFilessfml-system.dirbuild.make:57: recipe for target 'src
/SFML/System/CMakeFiles/sfml-system.dir/Clock.cpp.obj' failed
mingw32-make[2]: *** [src/SFML/System/CMakeFiles/sfml-system.dir/Clock.cpp.obj]
Error 1
CMakeFilesMakefile2:107: recipe for target 'src/SFML/System/CMakeFiles/sfml-sys
tem.dir/all' failed
mingw32-make[1]: *** [src/SFML/System/CMakeFiles/sfml-system.dir/all] Error 2
Makefile:115: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

C:UsersAdministratörDesktopCompiledSFML>


And there it is again :/


Logged


Have you tried reinstalling CMake again? I’ve seen a few broken CMake setups in the past… ;)


Logged


Try to generate your build files in a path which doesn’t contain special characters (like ‘ö’).


Logged

Laurent Gomila — SFML developer


Try to generate your build files in a path which doesn’t contain special characters (like ‘ö’).

Indeed, I just looked over the error and noticed the lack of «ö»‘s in the path. I’m pretty sure this is the error, I just tried redownloading the SFML source and CMake as exploit3r suggested, but I’ll try changing the path now which should hopefully fix it, I’ll make an edit to this post if it works.

EDIT: SUCCESS!

« Last Edit: April 19, 2013, 10:49:55 am by Symphonym »


Logged


PlatformIO Community

Loading

Понравилась статья? Поделить с друзьями:
  • Cmake error cmake c compiler not set after enablelanguage
  • Cmake error cannot open file for write
  • Cmake error cannot determine link language for target
  • Cmake error at cmakelists txt 2 project
  • Cmake error 127