Error required internal cmake variable not set cmake may not be built correctly

Windows 10, CMake 3.7.0, CUDA v8.0 CMake immediately fails to find anything. My CMake file looks as so: cmake_minimum_required(VERSION 3.0) find_package(CUDA REQUIRED) #... #(other stuff here) As

Windows 10, CMake 3.7.0, CUDA v8.0

CMake immediately fails to find anything. My CMake file looks as so:

cmake_minimum_required(VERSION 3.0)
find_package(CUDA REQUIRED)
#...
#(other stuff here)

As output, I get:

CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error at C:/Program Files/CMake/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
  Could NOT find CUDA (missing: CUDA_CUDART_LIBRARY) (found version "8.0")
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  C:/Program Files/CMake/share/cmake-3.7/Modules/FindCUDA.cmake:1013 (find_package_handle_standard_args)
  CMakeLists.txt:2 (find_package)

Why is this happening? Is there an environment variable I have to set? I saw in some Ubuntu projects, the variable CUDA_TOOKIT_ROOT_DIR had to be set. However, I set it to what I believe should be the proper location (C:Program FilesNVIDIA GPU Computing ToolkitCUDAv8.0) and this didn’t seem to do anything. What do I need to set?

Hello,my configuration like this:
ubuntu————18.04
gcc——————7.3.0
fuerte—————72b0ccd 0c2304c
cmake————-3.14.3

cmake .. -DCMAKE_BUILD_TYPE=Debug -DFUERTE_TESTS=ON -DFUERTE_EXAMPLES=ON -DVELOCYPACK_SOURCE_DIR=../..//velocypack/

gives error:
— The CXX compiler identification is GNU 7.3.0
— Check for working CXX compiler: /usr/lib/ccache/c++
— Check for working CXX compiler: /usr/lib/ccache/c++ — works
— Detecting CXX compiler ABI info
— Detecting CXX compiler ABI info — done
— Detecting CXX compile features
— Detecting CXX compile features — done
— Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version «1.1.0g»)
— Looking for C++ include pthread.h
— Looking for C++ include pthread.h — found
— Looking for pthread_create
— Looking for pthread_create — not found
— Looking for pthread_create in pthreads
— Looking for pthread_create in pthreads — not found
— Looking for pthread_create in pthread
— Looking for pthread_create in pthread — found
— Found Threads: TRUE
— Boost version: 1.68.0
— Found the following Boost libraries:
— system
— thread
— chrono
— date_time
— atomic
— The C compiler identification is GNU 7.3.0
— Check for working C compiler: /usr/bin/cc
— Check for working C compiler: /usr/bin/cc — works
— Detecting C compiler ABI info
— Detecting C compiler ABI info — done
— Detecting C compile features
— Detecting C compile features — done
— Build mode: Debug
— Install base directory: /usr/local
CMake Warning (dev) at /home/../velocypack/CMakeLists.txt:24 (set):
implicitly converting ‘path’ to ‘STRING’ type.
This warning is for project developers. Use -Wno-dev to suppress it.

— Hardware support for SSE4.2 on this machine: true
— Compiler type GNU: /usr/lib/ccache/c++
— Building with SSE 4.2 optimizations enabled: ON
— Building with hash type: xxhash
— Building bench performance test suite: OFF
— Building support programs and tools: ON
— Building examples: OFF
— Building test suite: OFF
— Building large tests: OFF
— Building assembler test suite: OFF
— Compiler type UNKNOWN: /usr/lib/ccache/c++
— Enabling Fuerte checked mode: -DFUERTE_CHECKED_MODE
— Found PythonInterp: /usr/bin/python (found version «3.6.7»)
— Configuring done
CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_C_COMPILE_OBJECT
— Generating done

How to fix this bug?

vpindarico

Posts: 2
Joined: Sat Sep 08, 2012 9:59 pm

cmake errors on Ubuntu 12.04 64 bit

Dear all,

I am trying to build CloudCompare (downloaded today via svn co) on Ubuntu 12.04 64 bit.

I am following the instructions found in the wiki: http://www.cloudcompare.org/doc/wiki/in … tion_CMake

So I run cmake-gui, set the source and binary code paths, click on the Configure button, and I get the following errors:

CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
Warning: QT_QMAKE_EXECUTABLE reported QT_INSTALL_LIBS as /usr/lib/x86_64-linux-gnu
Warning: But QtCore couldn’t be found. Qt must NOT be installed correctly, or it wasn’t found for cross compiling.
CMake Error at /usr/share/cmake-2.8/Modules/FindQt4.cmake:594 (MESSAGE):
Could NOT find QtCore. Check
/opt/CloudCompare/bin/CMakeFiles/CMakeError.log for more details.
Call Stack (most recent call first):
CMakeLists.txt:7 (find_package)

libQtCore.so.4.8.1 _is_ in /usr/lib/x86_64-linux-gnu (where cmake says it is looking) together with all its needed links: libQtCore.so.4.8, libQtCore.so.4, libQtCore.so

Any hint will be appreciated.

Thank you in advance

daniel

Site Admin
Posts: 6685
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: cmake errors on Ubuntu 12.04 64 bit

Post

by daniel » Mon Sep 10, 2012 9:36 am

Hi,

it looks just like this bug from the (ubuntu only?) version of CMake. See the answer to this post: http://stackoverflow.com/questions/5712 … make-build.

But if you make the ‘Where is the source code’ field points to the ‘trunk’ folder, the CMakeLists file here has already the ‘project’ almost at the top (so it should be ok…). You can try to place it at the very first line?

Best

Daniel, CloudCompare admin

vpindarico

Posts: 2
Joined: Sat Sep 08, 2012 9:59 pm

Re: cmake errors on Ubuntu 12.04 64 bit

Post

by vpindarico » Tue Sep 11, 2012 10:58 pm

Hi Daniel,

I confirm that the trunk/CMakeLists.txt contains a ‘project’ statement at line 3 while trunk/CC/CMakeLists.txt does not, and making the source code field point to trunk is sufficient to bypass the CMake bug.

After that I went on with Configure, activated some plugins including RANSAC, then Generate, then

$ cd CloudCompare/bin (the directory specified in the ‘Where to build the binaries’ field)
$ make all

here I had to add
using namespace std;
after the #includes in trunk/qCC/plugins/qRANSAC_SD/RANSAC_SD_orig/solve.cpp to have it compiled; then

$ sudo make install
$ sudo ldconfig

and it works (just tried ccViewer on a XYZ file for now).

Thank you for your help and appreciation for your work!

Daniele (yes same name :))

daniel

Site Admin
Posts: 6685
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: cmake errors on Ubuntu 12.04 64 bit

Post

by daniel » Wed Sep 12, 2012 7:28 am

Thanks for the feedback! I’ll patch the trunk consequently.

In fact I didn’t had the time to test qRansacSD on Linux (Schnabel’s library is only provided for windows/MSVC). I wonder if it really works even after a successful compilation.

And a few remarks (to make things clearer if someone read this post afterwards):

  • «trunk/CC» is the path to CCLib (the algorithm library only). To compile the main project one must make CMake point to the «trunk» folder only.
  • the plugins are not accessible with ccViewer

Best

Daniel, CloudCompare admin

hema20 wrote: ↑

Tue Mar 24, 2020 10:25 am


Thank you for your input. I think the error was caused by installing the newest IDF (4.2) with an older version (3.2.2) of the toolchain. I deleted all the files and started from scratch again. I want to mention that it is necessary to create the ~/esp folder first when using the standard toolchain, because otherwise all the commands from the documentation don’t work. The xtensa-files are then installed in this directory: /Users/<username>/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin.

Unfortunately it is still not working in CLion, even though I have installed Git 2.26 and set the path to the git executable (/usr/bin/git) I get this message:

— Could NOT find Git (missing: GIT_EXECUTABLE)
CMake Warning at /Users/<username>/esp/esp-idf/tools/cmake/git_submodules.cmake:4 (message):
Git executable was not found. Git submodule checks will not be executed.
If you have any build issues at all, start by adding git executable to the
PATH and rerun cmake to not see this warning again.

In addition there are some issues with the CMAKE_MAKE_PROGRAM and IDF variables:

CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_MAKE_PROGRAM
— Generating done
CMake Warning:
Manually-specified variables were not used by the project:
IDF

I couldn’t solve these errors, but just in case anyone has the same problem, using the ESP32 Plugin in CLion with the following steps works:

1) Preferences->Build, Execution, Deployment->ESP32 config:

ESP32 Espressif SDK path: path to esp-idf folder (/Users/<username>/esp/esp-idf)
cross compile path: path to xtensa bin folder (/Users/<username>/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin)
Default seriell port: esp32 connected to serial port (check path in terminal with ls /dev/cu.*)

2) Preferences->Build, Execution, Deployment->Toolchain:

Should be detected automatically by CLion, if not use Bundled CMake, let it detect the make file and set the path to C Compiler, C++ Compiler and Debugger:

C Compiler: /Users/<username>.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-cc
C++ Compiler: /Users/<username>/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-c++
Debugger: /Users/<username>/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gdb

3) Preferences->Build, Execution, Deployment->CMake:

CMake options: -DCMAKE_TOOLCHAIN_FILE=CrossCompiler.cmake
Environment: PYTHON=/Users/<username>/.espressif/python_env/idf4.2_py3.7_env/bin/python3;PATH=/Users/<username>/esp/esp-idf/tools:/Users/<username>/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin:/usr/bin:/sbin:/bin:/opt/bin

4) Preferences->Build, Execution, Deployment->Python Interpreter:

Select Python from the Espressif installation folder: /Users/<username>/.espressif/python_env/idf4.2_py3.7_env/bin/python3

5) Edit .zshrc

This makes it faster to flash ESP32, so you only have to run the terminal with «idf.py flash» inside CLion:

export IDF_PATH=~/esp/esp-idf
. $HOME/esp/esp-idf/export.sh

Понравилась статья? Поделить с друзьями:
  • Error report ora 00904 недопустимый идентификатор 00904 00000 s invalid identifier
  • Error report killing floor 2 что делать
  • Error report dll скачать
  • Error report dll sony vegas
  • Error report call of duty 4 modern warfare