Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake fails for me #1

Open
bfrk opened this issue Apr 9, 2018 · 3 comments
Open

cmake fails for me #1

bfrk opened this issue Apr 9, 2018 · 3 comments

Comments

@bfrk
Copy link

bfrk commented Apr 9, 2018

This is what cmake gives me, I don't know much about cmake so perhaps this is a trivial problem?

franksen@tiber: ...src/imgui_DM/build > EPICS_BASE=$HOME/src/epics-base/git cmake ../.
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- 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
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found SFML 2.1.0 in /usr/include
-- Found OpenGL: /usr/lib/i386-linux-gnu/libGL.so  
-- Found EPICSHostArch: linux-x86;linux-686  
-- 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
-- Target big endian=0
-- Best guess at EPICS OS class and target
-- EPICS_HOST_CLASS=Linux
-- EPICS_HOST_CLASSES=Linux;posix;default
-- EPICS_HOST_COMPILER=gcc
-- EPICS_HOST_ARCHS=linux-x86;linux-686
-- Found EPICSTargetArch: linux-686;linux-x86  
-- EPICS_TARGET_CLASS=Linux
-- EPICS_TARGET_CLASSES=Linux;posix;default
-- EPICS_TARGET_COMPILER=gcc
-- EPICS_TARGET_ARCHS=linux-686;linux-x86
-- Find EPICS Base
-- Using EPICS_BASE_DIR=/home/franksen/src/epics-base/git
-- Could NOT find EPICS (missing:  database) (found version "7.0.1.2")
-- EPICS_FOUND=FALSE
-- EPICS_BASE_DIR=/home/franksen/src/epics-base/git
-- EPICS_INCLUDE_DIRS=/home/franksen/src/epics-base/git/include;/home/franksen/src/epics-base/git/include/os/Linux;/home/franksen/src/epics-base/git/include/compiler/gcc
-- EPICS_TARGET_ARCH=linux-x86
-- EPICS_LIBRARIES=/home/franksen/src/epics-base/git/lib/linux-x86/libca.so;/home/franksen/src/epics-base/git/lib/linux-x86/libpvAccess.so;/home/franksen/src/epics-base/git/lib/linux-x86/libpvData.so;/home/franksen/src/epics-base/git/lib/linux-x86/libpvaClient.so;/home/franksen/src/epics-base/git/lib/linux-x86/libpvDatabase.so;/home/franksen/src/epics-base/git/lib/linux-x86/libpvAccessCA.so;/home/franksen/src/epics-base/git/lib/linux-x86/libnt.so;/home/franksen/src/epics-base/git/lib/linux-x86/libCom.so;/home/franksen/src/epics-base/git/lib/linux-x86/libdbRecStd.so;/home/franksen/src/epics-base/git/lib/linux-x86/libdbCore.so
-- EPICS_Com_LIBRARY=/home/franksen/src/epics-base/git/lib/linux-x86/libCom.so
-- EPICS_ca_LIBRARY=/home/franksen/src/epics-base/git/lib/linux-x86/libca.so
-- EPICS_IOC_LIBRARIES=/home/franksen/src/epics-base/git/lib/linux-x86/libdbRecStd.so;/home/franksen/src/epics-base/git/lib/linux-x86/libdbCore.so;/home/franksen/src/epics-base/git/lib/linux-x86/libca.so;/home/franksen/src/epics-base/git/lib/linux-x86/libCom.so
-- EPICSBase_VERSION=7.0.1.2
-- EPICSBase_VERSION_STRING=EPICS 7.0.1.2-DEV
-- EPICS_DEFINITIONS=UNIX;linux
CMake Error at CMakeLists.txt:77 (find_package):
  By not providing "FindROOT.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "ROOT", but
  CMake did not find one.

  Could not find a package configuration file provided by "ROOT" with any of
  the following names:

    ROOTConfig.cmake
    root-config.cmake

  Add the installation prefix of "ROOT" to CMAKE_PREFIX_PATH or set
  "ROOT_DIR" to a directory containing one of the above files.  If "ROOT"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
See also "/home/franksen/src/imgui_DM/build/CMakeFiles/CMakeOutput.log".
See also "/home/franksen/src/imgui_DM/build/CMakeFiles/CMakeError.log".
@whit2333
Copy link
Owner

whit2333 commented Apr 9, 2018

I was playing around with ROOT but I just removed it. Does it work now?

@bfrk
Copy link
Author

bfrk commented Apr 10, 2018

The ROOT related error is gone but I still have difficulties. It now says

CMake Error at src/epics/CMakeLists.txt:32 (target_compile_features):
  target_compile_features specified unknown feature "cxx_std_17" for target
  "epics".

I guess my system is too old and the compiler does not yet support C++17. Are you sure you need it? (Dear Imgui says it doesn't even need C++11.)

@bfrk
Copy link
Author

bfrk commented Apr 12, 2018

I have removed cxx_std_17 in src/epics/CMakeLists.txt and src/gui/CMakeLists.txt and now cmake completes successfully. Now when I do make I get

[ 17%] Building CXX object src/3rd_party/CMakeFiles/ImGui.dir/imgui/imgui_impl_glfw_gl3.cpp.o
/home/franksen/src/imgui_DM/src/3rd_party/imgui/imgui_impl_glfw_gl3.cpp:19:24: fatal error: GLFW/glfw3.h: No such file or directory
 #include <GLFW/glfw3.h>

It seems that glfw3, too, is not supported in my distribution: libglfw2 and libglfw-dev are the only packages offered. I'll try on another machine now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants