-
Notifications
You must be signed in to change notification settings - Fork 24
Can not compile #4
Copy link
Copy link
Closed
Description
I followed the instructions from the readme:
mkdir build
cd build
cmake ../src/
make
However I'm getting the following errors from cmake:
~/p/b/build› cmake ../src/
-- 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
CMake Warning at core/CMakeLists.txt:40 (message):
missing optional libraries OpenMP;CUDA for target bcdcore
CMake Warning at io/CMakeLists.txt:40 (message):
missing optional libraries OpenMP;CUDA for target bcdio
-- skipping building of bcd_gui executable
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.5)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
CMake Error at core/CMakeLists.txt:93 (ADD_LIBRARY):
Cannot find source file:
/core/Chronometer.h
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
CMake Error at io/CMakeLists.txt:66 (ADD_LIBRARY):
Cannot find source file:
/io/ImageIO.h
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
CMake Error: Cannot determine link language for target "bcdcore".
CMake Error: CMake can not determine linker language for target: bcdcore
CMake Error: Cannot determine link language for target "bcdio".
CMake Error: CMake can not determine linker language for target: bcdio
CMake Warning (dev) at cli/CMakeLists.txt:19 (ADD_EXECUTABLE):
Policy CMP0003 should be set before this line. Add code such as
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
as early as possible but after the most recent call to
cmake_minimum_required or cmake_policy(VERSION). This warning appears
because target "bcd-cli" links to some libraries for which the linker must
search:
OpenMP, eigen, OpenExr, Json
and other libraries with known full path:
/home/simon/programs/bcd/build/core/libbcdcore.a
/home/simon/programs/bcd/build/io/libbcdio.a
CMake is adding directories in the second list to the linker search path in
case they are needed to find libraries from the first list (for backwards
compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to enable
or disable this behavior explicitly. Run "cmake --help-policy CMP0003" for
more information.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /home/simon/programs/bcd/build
And after this, the following error from make:
~/p/b/build [1]› make
Scanning dependencies of target bcdcore
make[2]: *** No rule to make target `core/CMakeFiles/bcdcore.dir/build'. Stop.
make[1]: *** [core/CMakeFiles/bcdcore.dir/all] Error 2
make: *** [all] Error 2
I am using Ubuntu 14.04.
Is this an error on my part?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels