What steps will reproduce the problem?
1. Download libmv-0.1-dev.tar.bz2 from the website.
2. unzip and mkdir build
3. run cmake (successful) then make
What is the expected output? What do you see instead?
I would expect the build to be successful, but I see the following error log:
------------------
[ 7%] Building CXX object
libmv/base/CMakeFiles/scoped_ptr_test.dir/scoped_ptr_test.o
In file included from
/home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/src/third_party/ei
gen/Eigen/Core:96:0,
from /home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/src/third_party/eigen/Eigen/Array:4,
from /home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/src/./libmv/numeric/numeric.h:28,
from /home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/src/./testing/testing.h:24,
from /home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/src/libmv/base/scoped_ptr_test.cc:22:
/home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/src/third_party/ei
gen/Eigen/src/Core/util/Memory.h:280:13: error: ‘ptrdiff_t’ does not name a
type
/home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/src/libmv/base/sco
ped_ptr_test.cc:33:1: warning:
‘libmv::{anonymous}::ScopedPtr_NullDoesNothing_Test::test_info_’ defined
but not used [-Wunused-variable]
/home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/src/libmv/base/sco
ped_ptr_test.cc:38:1: warning:
‘libmv::{anonymous}::ScopedPtr_FreesWhenOutOfScope_Test::test_info_’
defined but not used [-Wunused-variable]
/home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/src/libmv/base/sco
ped_ptr_test.cc:47:1: warning:
‘libmv::{anonymous}::ScopedPtr_Operators_Test::test_info_’ defined but not
used [-Wunused-variable]
/home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/src/libmv/base/sco
ped_ptr_test.cc:54:1: warning:
‘libmv::{anonymous}::ScopedPtr_Reset_Test::test_info_’ defined but not used
[-Wunused-variable]
/home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/src/libmv/base/sco
ped_ptr_test.cc:62:1: warning:
‘libmv::{anonymous}::ScopedPtr_ReleaseAndGet_Test::test_info_’ defined but
not used [-Wunused-variable]
make[3]: *** [libmv/base/CMakeFiles/scoped_ptr_test.dir/scoped_ptr_test.o]
Error 1
make[3]: Leaving directory
`/home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/bin-dbg'
make[2]: *** [libmv/base/CMakeFiles/scoped_ptr_test.dir/all] Error 2
make[2]: Leaving directory
`/home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/bin-dbg'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/bin-dbg'
make: *** [debug] Error 2
then I edited the Memory.h file with #include <stddef.h>, and error vanishes,
but reoccurs in other files, WHICH ALSO INCLUDES SYSTEM FILES, like below:
--------------------
[ 7%] Building CXX object
libmv/base/CMakeFiles/scoped_ptr_test.dir/scoped_ptr_test.o
In file included from
/home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/src/third_party/gt
est/include/gtest/internal/gtest-type-util.h:51:0,
from /home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/src/third_party/gtest/include/gtest/internal/gtest-internal.h:57,
from /home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/src/./third_party/gtest/include/gtest/gtest.h:65,
from /home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/src/./testing/testing.h:25,
from /home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/src/libmv/base/scoped_ptr_test.cc:22:
/usr/include/c++/4.6/cxxabi.h:366:5: error: ‘ptrdiff_t’ does not name a type
/usr/include/c++/4.6/cxxabi.h:442:23: error: ‘ptrdiff_t’ has not been
declared
/usr/include/c++/4.6/cxxabi.h:454:18: error: ‘ptrdiff_t’ has not been
declared
/usr/include/c++/4.6/cxxabi.h:464:26: error: ‘ptrdiff_t’ has not been
declared
/usr/include/c++/4.6/cxxabi.h:490:18: error: ‘ptrdiff_t’ has not been
declared
/usr/include/c++/4.6/cxxabi.h:496:26: error: ‘ptrdiff_t’ has not been
declared
/usr/include/c++/4.6/cxxabi.h:535:18: error: ‘ptrdiff_t’ has not been
declared
/usr/include/c++/4.6/cxxabi.h:541:26: error: ‘ptrdiff_t’ has not been
declared
/usr/include/c++/4.6/cxxabi.h:561:4: error: ‘ptrdiff_t’ has not been
declared
In file included from
/home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/src/third_party/gt
est/include/gtest/gtest-param-test.h:157:0,
from /home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/src/./third_party/gtest/include/gtest/gtest.h:69,
from /home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/src/./testing/testing.h:25,
from /home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/src/libmv/base/scoped_ptr_test.cc:22:
/home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/src/third_party/gt
est/include/gtest/internal/gtest-param-util.h:122:11: error: ‘ptrdiff_t’
does not name a type
/home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/src/libmv/base/sco
ped_ptr_test.cc:33:1: warning:
‘libmv::{anonymous}::ScopedPtr_NullDoesNothing_Test::test_info_’ defined
but not used [-Wunused-variable]
/home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/src/libmv/base/sco
ped_ptr_test.cc:38:1: warning:
‘libmv::{anonymous}::ScopedPtr_FreesWhenOutOfScope_Test::test_info_’
defined but not used [-Wunused-variable]
/home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/src/libmv/base/sco
ped_ptr_test.cc:47:1: warning:
‘libmv::{anonymous}::ScopedPtr_Operators_Test::test_info_’ defined but not
used [-Wunused-variable]
/home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/src/libmv/base/sco
ped_ptr_test.cc:54:1: warning:
‘libmv::{anonymous}::ScopedPtr_Reset_Test::test_info_’ defined but not used
[-Wunused-variable]
/home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/src/libmv/base/sco
ped_ptr_test.cc:62:1: warning:
‘libmv::{anonymous}::ScopedPtr_ReleaseAndGet_Test::test_info_’ defined but
not used [-Wunused-variable]
make[3]: *** [libmv/base/CMakeFiles/scoped_ptr_test.dir/scoped_ptr_test.o]
Error 1
make[3]: Leaving directory
`/home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/bin-dbg'
make[2]: *** [libmv/base/CMakeFiles/scoped_ptr_test.dir/all] Error 2
make[2]: Leaving directory
`/home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/bin-dbg'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/deepakd/Development/thirdparty/libmv/libmv-0.1.1104-dev/bin-dbg'
make: *** [debug] Error 2
What version of the product are you using? On what operating system?
libmv-0.1-dev.tar.bz2 on Arch linux
libmv-0.1-dev.tar.bz2 on Ubuntu
Please provide any additional information below.
Original issue reported on code.google.com by deepakdn...@gmail.com on 13 Dec 2011 at 7:51
Original issue reported on code.google.com by
deepakdn...@gmail.com
on 13 Dec 2011 at 7:51