Ashwinning / libmv

Automatically exported from code.google.com/p/libmv
MIT License
0 stars 0 forks source link

Image_Test cmake error #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. svn checkout ....
2. cmake -G "Unix Makefiles"
3. make

What do you see instead?

Linking CXX executable image_test
/usr/bin/ld: cannot open output file image_test: >> Is a directory <<

The problem line is ./src/libmv/image/CMakeLists.txt:
IMAGE_TEST(image)

Original issue reported on code.google.com by bomb...@gmail.com on 30 Jun 2009 at 6:20

GoogleCodeExporter commented 9 years ago
Same problem "Is a directory" with ./src/libmv/correspondence/CMakeLists.txt
IMAGE_TEST(klt ... )

Original comment by bomb...@gmail.com on 30 Jun 2009 at 6:22

GoogleCodeExporter commented 9 years ago
Don't build in the source directory.

We already provide a makefile that takes care of this; you should be able to 
simple
run 'make' in the toplevel source directory. (which invkes cmake, and then 
make).

Though this is a subject of debate, I consider it bad practice to build inside 
the
source tree.

Original comment by mie...@gmail.com on 1 Jul 2009 at 5:27

GoogleCodeExporter commented 9 years ago
The default 'make' creates a directory bin-dbg (next to src) with the 
executables
inside. 'make release' makes a directory bin-opt, with optimized binaries.

Original comment by mie...@gmail.com on 1 Jul 2009 at 5:30

GoogleCodeExporter commented 9 years ago
I updated the README with an explicit warning about building inside the source 
tree.

Original comment by mie...@gmail.com on 1 Jul 2009 at 5:46