Can't build with CMake

758 views
Skip to first unread message

choche...@ucsy.edu.mm

unread,
Oct 8, 2017, 12:52:28 PM10/8/17
to COLMAP
I'm new to CMake and I want to try this COLMAP. In Building with CMake, I faced this error "Error in configuration process, project files may be invalid"
Here is my log.
The C compiler identification is MSVC 19.0.24215.1

The CXX compiler identification is MSVC 19.0.24215.1

Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe

Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works

Detecting C compiler ABI info

Detecting C compiler ABI info - done

Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe

Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works

Detecting CXX compiler ABI info

Detecting CXX compiler ABI info - done

Detecting CXX compile features

Detecting CXX compile features - done

CMake Error at base/CMakeLists.txt:1:
Parse error. Expected a newline, got identifier with text
"COLMAP_ADD_LIBRARY".

CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 3.9)

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 incomplete, errors occurred!

See also "D:/colmap-master/src/build/CMakeFiles/CMakeOutput.log".


May I know where made I mistake and where should be correct.

Johannes Schönberger

unread,
Oct 8, 2017, 12:58:47 PM10/8/17
to col...@googlegroups.com
Hi,

You are pointing CMake to the wrong directory. Instead of running the CMake command on the colmap/src folder, you should run in on the colmap/ root folder (parent folder of src/).

Best,
Johannes
> --
> You received this message because you are subscribed to the Google Groups "COLMAP" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to colmap+un...@googlegroups.com.
> To post to this group, send email to col...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/colmap/b5603d56-375a-413b-9940-8e6ff82beb97%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages