Closed GoogleCodeExporter closed 9 years ago
Can you post your CMakeList variable OpenCV_DIR?
Original comment by dattan...@gmail.com
on 9 Jan 2011 at 10:06
Original comment by dattan...@gmail.com
on 9 Jan 2011 at 10:06
It appears that the code in
https://code.ros.org/svn/opencv/tags/latest_tested_snapshot as of today does
not have the modules folder. This suggests that the latest snapshot might not
be updated to the new OpenCV 2.2 version.
I have tested compiling this project source against the OpenCV SVN source and
it compiles correctly without any compilation error.
Ali, can you try using the OpenCV SVN? Or perhaps OpenCV 2.2?
Original comment by dattan...@gmail.com
on 9 Jan 2011 at 10:43
Original comment by dattan...@gmail.com
on 9 Jan 2011 at 10:43
Thanks for the quick comment.
I am not sure what you mean by OpenCV SVN. I obtain both the trunk version and
the latest_tested versions using svn.
OpenCV 2.2 trunk simply does not configure on my machine using cmake. I tried
on another machines and got the same error. I am using Ubuntu 10.10. So I gave
up on using the trunk vesion for the moment.
Is it possible to read the highgui.hpp on the latest version (trunk or
latest_tested) you have and compare it to the function call in the project
cv::namedWindow. Do you think the difference in the number of arguments is why
my compilation crashes.
http://stackoverflow.com/questions/4609069/opencv-2-2-windows-xp-mingw-build-cra
shes-on-namedwindow-imshow
Original comment by karim.jo...@gmail.com
on 9 Jan 2011 at 11:11
By OpenCV SVN I mean the trunk version. I believe that the latest revision in
OpenCV causes a CMake problem. Try revision 4407 until they fix it.
Original comment by dattan...@gmail.com
on 9 Jan 2011 at 11:14
Thanks, I will try in a couple of hours.
By the way, I had to manually specify the paths to boost, gflag, gtests
libraries and include folders in the CMakeList. Cmake could not locate these
libraries automatically as it reads.
Original comment by karim.jo...@gmail.com
on 9 Jan 2011 at 11:24
Under my Ubuntu 10.10, it works automatically. How did you install these
libraries?
Original comment by dattan...@gmail.com
on 10 Jan 2011 at 12:33
I got OpenCV revision 4407
$svn checkout -r 4407 https://code.ros.org/svn/opencv/trunk
I got boost using apt-get. I compiled boost libraries using ./bjam and copied
the "serialization" and "graph" libraries to /usr/lib
I copied the gtest include directory to /usr/local/include and CMake could not
see it. So I copied each *.hpp file to this directory. Eventually it worked.
Can you tell me how you installed these libraries?
I compiled and it went passed the previous error but still crashed. I think it
cannot find gtest header files.
Original comment by karim.jo...@gmail.com
on 10 Jan 2011 at 1:54
sudo apt-get install libboost-dev libgtest-dev
For gflags, I download the source, then ./configure;make;sudo make install
Original comment by dattan...@gmail.com
on 10 Jan 2011 at 2:01
I did not know you can get libgtest using apt-get. I downloaded the source and
compiled it using CMake then copied. How did you get the binaries of boost? did
you build it using bjam?
Original comment by karim.jo...@gmail.com
on 10 Jan 2011 at 2:26
It compiled with me. I suggest you add the following: OpenCV version you used
for development. Mention how to get libgtest and how to compile the binaries of
boost. Otherwise, it is fine now. I will post other issues.
Original comment by karim.jo...@gmail.com
on 10 Jan 2011 at 2:48
Compilation Error:
Linking CXX executable RunAllTests
CMakeFiles/RunAllTests.dir/tests/test_blob_detector.cpp.o: In function
`testing::Message::GetString() const':
test_blob_detector.cpp:(.text._ZNK7testing7Message9GetStringEv[testing::Message:
:GetString() const]+0x19): undefined reference to
`testing::internal::StrStreamToString(std::basic_stringstream<char,
std::char_traits<char>, std::allocator<char> >*)'
collect2: ld returned 1 exit status
make[2]: *** [RunAllTests] Error 1
make[1]: *** [CMakeFiles/RunAllTests.dir/all] Error 2
make: *** [all] Error 2
Related OpenCV CMake:
Extracting svn version, please wait...
SVNVERSION: svn:4413
Detected version of GNU GCC: 44 (404)
checking for module 'gstreamer-app-0.10'
package 'gstreamer-app-0.10' not found
checking for module 'gstreamer-video-0.10'
package 'gstreamer-video-0.10' not found
IPP detected:
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
Parsing 'cvconfig.h.cmake'
General configuration for opencv 2.2.0 =====================================
Built as dynamic libs?: ON
Compiler:
C++ flags (Release): -Wall -pthread -march=i686 -ffunction-sections -O3 -DNDEBUG -fomit-frame-pointer -O3 -ffast-math -msse -msse2 -mfpmath=387 -DNDEBUG
C++ flags (Debug): -Wall -pthread -march=i686 -ffunction-sections -g -O0 -ggdb3 -DDEBUG -D_DEBUG
Linker flags (Release):
Linker flags (Debug):
GUI:
GTK+ 2.x: 1
GThread: 1
Image I/O:
JPEG: TRUE
PNG: TRUE
TIFF: TRUE
JPEG 2000: TRUE
OpenEXR: NO
Video I/O:
DC1394 1.x:
DC1394 2.x: 1
FFMPEG: 1
codec: 1
format: 1
util: 1
swscale: 1
gentoo-style: 1
GStreamer: 0
UniCap: FALSE
PvAPI:
V4L/V4L2: Using libv4l
Xine: FALSE
Interfaces:
Python: ON
Python interpreter: /usr/bin/python2.6
Python numpy: NO (Python interface will not cover OpenCV 2.x API)
Use IPP: NO
Use TBB: NO
Use Cuda: No
Use Eigen2: NO
Documentation:
Build PDF NO
Doxygen HTMLs NO
Install path: /usr/local
cvconfig.h is in: /home/leaders/Documents/builds/opencv-svn
-----------------------------------------------------------------
Configuring done
Original comment by karim.jo...@gmail.com
on 11 Jan 2011 at 5:42
The compilation error is related to your installation of gtest. Please check
that gtest is installed correctly by running the examples which can be
downloaded from google-test website
Original comment by dattan...@gmail.com
on 11 Jan 2011 at 5:46
Original issue reported on code.google.com by
karim.jo...@gmail.com
on 9 Jan 2011 at 9:02