Open divbyzero opened 7 years ago
I tried the patch: https://github.com/edrosten/libcvd/pull/8/files And now videodisplay is works after add the key for x11:
./configure_osx --without-ffmpeg --x-libraries=/usr/X11/lib --x-includes=/usr/X11/include
Options: inline_asm videodisplay shared_ptr toon lapack glob memalign
otool -L /usr/local/lib/libcvd.a Archive : /usr/local/lib/libcvd.a /usr/local/lib/libcvd.a(diskbuffer2.o): /usr/local/lib/libcvd.a(deinterlacebuffer.o): /usr/local/lib/libcvd.a(exceptions.o): /usr/local/lib/libcvd.a(image_io.o): /usr/local/lib/libcvd.a(bayer.o): /usr/local/lib/libcvd.a(morphology.o): /usr/local/lib/libcvd.a(colourspace_convert.o): /usr/local/lib/libcvd.a(draw.o): /usr/local/lib/libcvd.a(yuv422.o): /usr/local/lib/libcvd.a(yuv420.o): /usr/local/lib/libcvd.a(pnm_grok.o): /usr/local/lib/libcvd.a(bmp.o): /usr/local/lib/libcvd.a(bmp_read.o): /usr/local/lib/libcvd.a(bmp_write.o): /usr/local/lib/libcvd.a(cvdimage.o): /usr/local/lib/libcvd.a(fits.o): /usr/local/lib/libcvd.a(fitswrite.o): /usr/local/lib/libcvd.a(save_postscript.o): /usr/local/lib/libcvd.a(text_write.o): /usr/local/lib/libcvd.a(text.o): /usr/local/lib/libcvd.a(fast_corner.o): /usr/local/lib/libcvd.a(convolution.o): /usr/local/lib/libcvd.a(nonmax_suppression.o): /usr/local/lib/libcvd.a(timeddiskbuffer.o): /usr/local/lib/libcvd.a(videosource.o): /usr/local/lib/libcvd.a(connected_components.o): /usr/local/lib/libcvd.a(cvd_timer.o): /usr/local/lib/libcvd.a(thread.o): /usr/local/lib/libcvd.a(half_sample.o): /usr/local/lib/libcvd.a(convert_rgb_to_y.o): /usr/local/lib/libcvd.a(convolve_gaussian.o): /usr/local/lib/libcvd.a(gradient.o): /usr/local/lib/libcvd.a(median_3x3.o): /usr/local/lib/libcvd.a(utility_float.o): /usr/local/lib/libcvd.a(utility_byte_differences.o): /usr/local/lib/libcvd.a(utility_double_int.o): /usr/local/lib/libcvd.a(two_thirds_sample.o): /usr/local/lib/libcvd.a(fast_7_detect.o): /usr/local/lib/libcvd.a(fast_7_score.o): /usr/local/lib/libcvd.a(slower_corner_7.o): /usr/local/lib/libcvd.a(fast_8_detect.o): /usr/local/lib/libcvd.a(fast_8_score.o): /usr/local/lib/libcvd.a(slower_corner_8.o): /usr/local/lib/libcvd.a(fast_9_detect.o): /usr/local/lib/libcvd.a(fast_9_score.o): /usr/local/lib/libcvd.a(fast_corner_9_nonmax.o): /usr/local/lib/libcvd.a(fast_10_detect.o): /usr/local/lib/libcvd.a(fast_10_score.o): /usr/local/lib/libcvd.a(fast_11_detect.o): /usr/local/lib/libcvd.a(fast_11_score.o): /usr/local/lib/libcvd.a(slower_corner_11.o): /usr/local/lib/libcvd.a(fast_12_detect.o): /usr/local/lib/libcvd.a(fast_12_score.o): /usr/local/lib/libcvd.a(faster_corner_9.o): /usr/local/lib/libcvd.a(faster_corner_10.o): /usr/local/lib/libcvd.a(faster_corner_12.o): /usr/local/lib/libcvd.a(videosource_nodvbuffer.o): /usr/local/lib/libcvd.a(videosource_nov4lbuffer.o): /usr/local/lib/libcvd.a(videosource_noqtbuffer.o): /usr/local/lib/libcvd.a(posix_memalign.o): /usr/local/lib/libcvd.a(videodisplay.o): /usr/local/lib/libcvd.a(glwindow.o): /usr/local/lib/libcvd.a(gltext.o): /usr/local/lib/libcvd.a(videosource_novideofilebuffer.o): /usr/local/lib/libcvd.a(globlist.o): /usr/local/lib/libcvd.a(tensor_voting.o): /usr/local/lib/libcvd.a(brezenham.o): /usr/local/lib/libcvd.a(draw_toon.o): /usr/local/lib/libcvd.a(quartic.o): /usr/local/lib/libcvd.a(threepointpose.o):
But now problem with i386 with XQuartz.
Undefined symbols for architecture i386: "_XCloseDisplay", referenced from: CVD::GLWindow::init(CVD::ImageRef const&, int, std::1::basic_string<char, std::__1::char_traits
, std:: 1::allocator> const&, std::1::basic_string<char, std::__1::char_traits , std:: 1::allocator> const&) in libcvd.a(glwindow.o) CVD::GLWindow::~GLWindow() in libcvd.a(glwindow.o) "_XCreateColormap", referenced from: CVD::GLWindow::init(CVD::ImageRef const&, int, std::1::basic_string<char, std::__1::char_traits , std:: 1::allocator> const&, std::1::basic_string<char, std::__1::char_traits , std:: 1::allocator> const&) in libcvd.a(glwindow.o) ...
After that I tried make build with x86_64 (GVars3, libcvd, opencv) using xcode. And all is ok now expect one thing: http://imgur.com/kU1LbvA Menu is mirrored.
I also patched "progs/video_play_source.cc"
--- a/progs/video_play_source.cc
+++ b/progs/video_play_source.cc
@@ -297,7 +297,16 @@ template<class C> void play(string s, string fmt, unsigned int decimate)
rec_number++;
- glTexImage2D(*frame, 0, GL_TEXTURE_RECTANGLE_NV);
+#ifdef GL_TEXTURE_RECTANGLE_ARB
+ glTexImage2D(*frame, 0, GL_TEXTURE_RECTANGLE_ARB);
+#else
+#ifdef GL_TEXTURE_RECTANGLE_NV
+ glTexImage2D(*frame, 0, GL_TEXTURE_RECTANGLE_NV);
+#else
+ glTexImage2D(*frame, 0, GL_TEXTURE_RECTANGLE_EXT);
+#endif
+#endif
Is it correct? Or maybe this is a problem with mirrored menu?
Hello. I want to compile project on MacOS 10.11 with arch i386 and have several problem with linking.
System information (version)
libcvd configuration
I'm using ./configure_osx
libcvd attributes
./configure_osx --without-ffmpeg --without-v4l1buffer --without-dc1394v1 --without-dc1394v2
libcvd config log
otool - L /usr/local/lib/libcvd.a
Not found glwindow.o
PTAM Log
I'm compiling PTAM with keys:
Linking problem:
But libcvd, gvars - builded for i386.
> lipo -info /usr/local/lib/libcvd.a input file /usr/local/lib/libcvd.a is not a fat file Non-fat file: /usr/local/lib/libcvd.a is architecture: i386
> lipo -info /usr/local/lib/libGVars3-0.6.dylib Non-fat file: /usr/local/lib/libGVars3-0.6.dylib is architecture: i386
How can I fix it? Thx