I used CMake to configure c++ environment, it works at root version 6.22, for 6.24, the errors occurred (the errors from CMake):
ROOT_MultiProc_LIBRARY-NOTFOUND
ROOT_genmap_CMD-NOTFOUND
ROOT_rootbrowse_CMD-NOTFOUND
ROOT_rootcp_CMD-NOTFOUND
ROOT_rootdraw_CMD-NOTFOUND
ROOT_rootls_CMD-NOTFOUND
ROOT_rootmkdir_CMD-NOTFOUND
ROOT_rootmv_CMD-NOTFOUND
ROOT_rootrm_CMD-NOTFOUND
is there another environment variable except “path”
Please read tips for efficient and successful posting and posting code
ROOT Version: 6.24
Platform: windows 10
Compiler: VS2019
First, see:
And here is a very simple example of CMakeLists.txt
:
# Check if cmake has the required version
CMAKE_MINIMUM_REQUIRED(VERSION 3.16.4 FATAL_ERROR)
set(PROJECT_NAME MyApp)
project(${PROJECT_NAME})
find_package(ROOT REQUIRED)
set(CMAKE_CXX_FLAGS "${ROOT_CXX_FLAGS}")
include(${ROOT_USE_FILE})
include_directories(${ROOT_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR})
link_directories(${ROOT_LIBRARY_DIR})
add_executable(${PROJECT_NAME} MySourceFile.cxx )
target_link_libraries(${PROJECT_NAME} ${ROOT_LIBRARIES})
the content of my CMakeLists.txt is same as list up, it can work on ubuntu20.04, but not windows 10.
Well, I work on Windows and have several similar CMakeLists.txt
. Did you call thisroot.bat
before cmake
?
yes, i executed thisroot.bat file before CMake.
Oh, but wait, those are not real errors, you can still configure and generate you application, right?
thanks, my application works well!
with best regards!
system
Closed
8
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.