Hi! an error occured again when i make the project
Linking CXX executable stereo_movie /usr/local/bin/ld: /usr/local/lib/libglfw3.a(x11_window.c.o): undefined reference to symbol 'XConvertSelection' /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libX11.so: error adding symbols: DSO missing from command line collect2: ld returned 1 exit status make[2]: *** [sample/movie/stereo_movie] 错误 1 make[1]: *** [sample/movie/CMakeFiles/stereo_movie.dir/all] 错误 2 make: *** [all] 错误 2
Hi, sorry for reply late.
What kind of environment do you use? Ubuntu 12.04 / CUDA 6.0? I'll check.
@ykitta-fixstars Thanks for your attention!
I use Ubuntu 14.04/ CUDA 8.0
Sorry for replying late I tried building on Ubuntu 14.04 / CUDA 8.0. I built GLFW by myself and it worked. Try the following steps
git clone https://github.com/glfw/glfw.git
cd glfw
cmake -DBUILD_SHARED_LIBS=ON .
make install
Regards,
Long time no see, fixstars guys!.(Chikamura-san genki?)
I have same problem.
I tried re-build your advice. But, same error occurred.
/usr/bin/ld: /usr/local/lib/libglfw3.a(x11_window.c.o): undefined reference to symbol 'XConvertSelection' //usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status sample/movie/CMakeFiles/stereo_movie.dir/build.make:300: recipe for target 'sample/movie/stereo_movie' failed make[2]: *** [sample/movie/stereo_movie] Error 1 CMakeFiles/Makefile2:195: recipe for target 'sample/movie/CMakeFiles/stereo_movie.dir/all' failed make[1]: *** [sample/movie/CMakeFiles/stereo_movie.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2
Regars,
Hi, sorry for late reply.
What is your environment? I wrote Dockerfile and tried to build: https://gist.github.com/ykitta-fixstars/2453056e7cc8f0d87087cd66c36e647e
If you use Ubuntu 14.04 with CUDA 8.0, try build instructions in this Dockerfile.
I am very thank you!
Next day, I tried to re-build. No errors were occurred. (I don't know why!)
So, stereo_test worked fine.
But, stereo_movie did not work.
I prepared 9 pairs of stereo file, as below.
img_c0_000000001.pgm img_c0_000000002.pgm img_c0_000000003.pgm img_c0_000000004.pgm
img_c0_000000005.pgm img_c0_000000006.pgm img_c0_000000007.pgm img_c0_000000008.pgm
img_c0_000000009.pgm
img_c1_000000001.pgm img_c1_000000002.pgm img_c1_000000003.pgm img_c1_000000004.pgm
img_c1_000000005.pgm img_c1_000000006.pgm img_c1_000000007.pgm img_c1_000000008.pgm
img_c1_000000009.pgm
and I tried to "stereo_movie" as below.
$ ./stereo_movie img_c0_%09.pgm img_c1_%09.pgm fail to init SGM Demo
Does stereo_movie command need "img_c0_000000000.pgm" and "img_c1_000000000.pgm" files?
Regards,
Thank you for testing. I'm relieved to work sample application.
Does stereo_movie command need "img_c0_000000000.pgm" and "img_c1_000000000.pgm" files?
Yes. stereo_movie reads file named xxx_000000000.pgm.
And if you use "Ground Truth Stixel Dataset", notice that image size. (The input size of application must be even.)
Thanks for your advises!
I renamed all files as below.
img_c0_00.pgm img_c0_01.pgm img_c0_02.pgm img_c0_03.pgm
img_c0_04.pgm img_c0_05.pgm img_c0_06.pgm img_c0_07.pgm
img_c0_08.pgm
img_c1_00.pgm img_c1_01.pgm img_c1_02.pgm img_c1_03.pgm
img_c1_04.pgm img_c1_05.pgm img_c1_06.pgm img_c1_07.pgm
img_c1_08.pgm
and retried.
$ ./stereo_movie img_c0_%02.pgm img_c1_%02.pgm
fail to init SGM Demo
And if you use "Ground Truth Stixel Dataset", notice that image size. (The input size of application must be even.)
Yes, Yes, I already converted to even size.
$ file img_c0_00.pgm
img_c0_00.pgm: Netpbm image data, size = 1024 x 332, rawbits, greymap
Regards,.
Are you running over X forwarding? I have failed to run over X Forwarding and got the same error message (fail to init SGM Demo). I resolved it by using VirtualGL and VNC server.
Are you running over X forwarding?
Yes! I ran over X-Forwarding to my WindowsPC.
So, I try to run on Ubuntu PC.
It run well! (Why X Forwarding?)
Thank you !