Precompiled binaries for linux

1,281 views
Skip to first unread message

davn...@gmail.com

unread,
Sep 21, 2016, 1:52:52 PM9/21/16
to COLMAP
Hello,
I would love to use your library for research purposes. Are you please planning to release precompiled binaries for 64 bit linux? It would help so much.
Thanks a lot!
David

Johannes Schönberger

unread,
Sep 22, 2016, 8:06:16 AM9/22/16
to col...@googlegroups.com
Hi,

Compilation under Linux should be really easy. Please, refer to https://colmap.github.io/install.html#linux and let me know if you have any problems with those instructions!

Cheers,
Johannes
> --
> You received this message because you are subscribed to the Google Groups "COLMAP" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to colmap+un...@googlegroups.com.
> To post to this group, send email to col...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/colmap/850a6e18-6e83-4850-9967-c746908d7ded%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

David Novotný

unread,
Sep 23, 2016, 8:31:03 PM9/23/16
to col...@googlegroups.com
Hi Johannes,

thank you very much for the reply. After a day of compiling dependencies from scratch I managed to build the library and now I am playing with it.
First thing that doesn't work is the feature_extractor.

If I choose to use the GPU, I get the following error:
QXcbConnection: Could not connect to display 
*** Aborted at 1474676956 (unix time) try "date -d @1474676956" if you are using GNU date ***
PC: @     0x7ff7e57cf5f7 __GI_raise
*** SIGABRT (@0x5de00012a78) received by PID 76408 (TID 0x7ff7eacf1840) from PID 76408; stack trace: ***
    @     0x7ff7e57cf670 (unknown)
    @     0x7ff7e57cf5f7 __GI_raise
    @     0x7ff7e57d0ce8 __GI_abort
    @     0x7ff7e887b75e (unknown)
    @     0x7ff7eabe27ee (unknown)
    @     0x7ff7eabe5c7d (unknown)
    @     0x7ff7ead6551b (unknown)
    @     0x7ff7e71422fb (unknown)
    @     0x7ff7e714ef00 (unknown)
    @     0x7ff7e714f96d (unknown)
    @     0x7ff7e8a488b8 (unknown)
    @     0x7ff7e715024c (unknown)
    @     0x7ff7e82f9269 (unknown)
    @           0x4e52bf main
    @     0x7ff7e57bbb15 __libc_start_main
    @           0x4ea979 (unknown)
./test.sh: line 13: 76408 Aborted                 (core dumped) ~/src/colmap/build/bin/feature_extractor --General.database_path $PTH/database.db --General.image_path $IMS --use_gpu 1

If I turn off the GPU everything runs fine.

Best,
David

On 22 September 2016 at 14:06, Johannes Schönberger <js...@demuc.de> wrote:
Hi,

Compilation under Linux should be really easy. Please, refer to https://colmap.github.io/install.html#linux and let me know if you have any problems with those instructions!

Cheers,
Johannes

> On Sep 21, 2016, at 7:52 PM, davn...@gmail.com wrote:
>
> Hello,
> I would love to use your library for research purposes. Are you please planning to release precompiled binaries for 64 bit linux? It would help so much.
> Thanks a lot!
> David
>
> --
> You received this message because you are subscribed to the Google Groups "COLMAP" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to colmap+unsubscribe@googlegroups.com.

> To post to this group, send email to col...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/colmap/850a6e18-6e83-4850-9967-c746908d7ded%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "COLMAP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/colmap/pxohw5SOAWs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to colmap+unsubscribe@googlegroups.com.

To post to this group, send email to col...@googlegroups.com.

Johannes Schönberger

unread,
Sep 24, 2016, 12:47:57 PM9/24/16
to col...@googlegroups.com
Do you have a GPU in the system? If yes, which GPU and what driver version?

Thanks,
Johannes
> > To unsubscribe from this group and stop receiving emails from it, send an email to colmap+un...@googlegroups.com.
> > To post to this group, send email to col...@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/colmap/850a6e18-6e83-4850-9967-c746908d7ded%40googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to a topic in the Google Groups "COLMAP" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/colmap/pxohw5SOAWs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to colmap+un...@googlegroups.com.
> To post to this group, send email to col...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/colmap/BA9A0D87-078D-4BC1-A471-ADD4F3D6BEC5%40demuc.de.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups "COLMAP" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to colmap+un...@googlegroups.com.
> To post to this group, send email to col...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/colmap/CAPM8C9JTb5BMk8jorazF-prffG%2B%3D0rrpaaK28BTG5hR-AR6%3D3A%40mail.gmail.com.

David Novotný

unread,
Oct 14, 2016, 8:52:42 AM10/14/16
to col...@googlegroups.com
Hi Johannes,

thanks a lot for your help with colmap issues.

I managed to compile everything and I am currently happily executing colmap in large-scale problems on videos.

I have however encountered a problem that I am not sure how to solve:
I am currently reconstructing videos of cars which are all taken by the same camera (primesense carmine - basically the same as kinnect).
I thus fixed the camera intrinsic parameters inside the feature_extractor function to the parameters of kinect.
However, the code always crashes at the end of the bundle adjustment phase with the following error:

==============================================================================
Global bundle adjustment
==============================================================================
F1014 12:55:56.505967 81561 bundle_adjustment.cc:278] Check failed: solver_options.IsValid(&error) Can't use SPARSE_SCHUR as sparse_linear_algebra_library_type is NO_SPARSE.
*** Check failure stack trace: ***
    @     0x7fa65cd42e6d  (unknown)
    @     0x7fa65cd44ced  (unknown)
    @     0x7fa65cd42a5c  (unknown)
    @     0x7fa65cd4563e  (unknown)
    @           0x63760e  colmap::BundleAdjuster::Solve()
    @           0x4f11ec  colmap::IncrementalMapper::AdjustGlobalBundle()
    @           0x4e83b1  colmap::(anonymous namespace)::AdjustGlobalBundle()
    @           0x4e8768  colmap::(anonymous namespace)::IterativeGlobalRefinement()
    @           0x4eaa64  colmap::IncrementalMapperController::Reconstruct()
    @           0x4ebc62  colmap::IncrementalMapperController::Run()
    @           0x580fbc  colmap::Thread::RunFunc()
    @     0x7fa6585db220  (unknown)
    @     0x7fa65b3c4dc5  start_thread
    @     0x7fa657d42ced  __clone
./reconstructAllObScans.sh: line 7: 81560 Aborted                 (core dumped) ~/src/colmap/build/bin/mapper --General.database_path $PTH/database.db --General.image_path $IMS --export_path $RES --MapperOptions.num_threads 1




The code looks as follows:
  ~/src/colmap/build/bin/feature_extractor \
      --General.database_path $PTH/database.db \
      --General.image_path $IMS \
      --ExtractionOptions.reader_camera_model SIMPLE_PINHOLE \
      --ExtractionOptions.reader_single_camera 1 \
      --ExtractionOptions.reader_camera_params 525,319.5,239.5 \
      --use_gpu 0 
  ~/src/colmap/build/bin/sequential_matcher \
      --General.database_path $PTH/database.db \
      --SequentialMatchOptions.overlap 100 \
      --SequentialMatchOptions.loop_detection 1 \
      --SequentialMatchOptions.loop_detection_period 10 \
      --SequentialMatchOptions.loop_detection_num_images 100 \
      --SequentialMatchOptions.vocab_tree_path $VOCAB \
      --MatchOptions.num_threads 1
  ~/src/colmap/build/bin/mapper \
      --General.database_path $PTH/database.db \
      --General.image_path $IMS \
    --export_path $RES \
    --MapperOptions.num_threads 1

Different camera settings dont cause the crash.

Can I please ask you whether you could help me with resolving this issue?

Best wishes,
David

> > To unsubscribe from this group and stop receiving emails from it, send an email to colmap+unsubscribe@googlegroups.com.

> > To post to this group, send email to col...@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/colmap/850a6e18-6e83-4850-9967-c746908d7ded%40googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to a topic in the Google Groups "COLMAP" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/colmap/pxohw5SOAWs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to colmap+unsubscribe@googlegroups.com.

> To post to this group, send email to col...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/colmap/BA9A0D87-078D-4BC1-A471-ADD4F3D6BEC5%40demuc.de.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups "COLMAP" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to colmap+unsubscribe@googlegroups.com.

> To post to this group, send email to col...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "COLMAP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/colmap/pxohw5SOAWs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to colmap+unsubscribe@googlegroups.com.

To post to this group, send email to col...@googlegroups.com.

David Novotný

unread,
Oct 14, 2016, 2:52:37 PM10/14/16
to col...@googlegroups.com
Hi,

sorry for disturbing with the previous message. It seems that for bundle adjustment with unifocal setup, ceres has to be compiled with the sparse matrix support so it's solved now ..

Best,
David


Johannes Schönberger

unread,
Oct 15, 2016, 3:26:23 AM10/15/16
to col...@googlegroups.com
Thanks David for your feedback. I will look into why this doesn't work for the single focal length case. 

Cheers,
Johannes
To unsubscribe from this group and stop receiving emails from it, send an email to colmap+un...@googlegroups.com.

To post to this group, send email to col...@googlegroups.com.

morpheus...@gmail.com

unread,
Jun 22, 2017, 9:30:36 AM6/22/17
to COLMAP
Hi,

I have been trying to install COLMAP on Ubuntu 16.04.2 LTS. I have all the dependencies installed without any problem. But when I try to compile COLMAP, I get the following error:

[ 81%] Linking CXX executable vocab_tree_retriever                                                                    
/usr/bin/ld: /usr/local/lib/libboost_regex.a(icu.o): undefined reference to symbol '_ZN6icu_558Collator14createInstanc
eERKNS_6LocaleER10UErrorCode'                                                                                         
//usr/lib/x86_64-linux-gnu/libicui18n.so.55: error adding symbols: DSO missing from command line                      
collect2: error: ld returned 1 exit status                                                                            
src/exe/CMakeFiles/vocab_tree_retriever.dir/build.make:168: recipe for target 'src/exe/vocab_tree_retriever' failed   
make[2]: *** [src/exe/vocab_tree_retriever] Error 1                                                                   
CMakeFiles/Makefile2:440: recipe for target 'src/exe/CMakeFiles/vocab_tree_retriever.dir/all' failed                  
make[1]: *** [src/exe/CMakeFiles/vocab_tree_retriever.dir/all] Error 2                                                
Makefile:127: recipe for target 'all' failed                                                                          
make: *** [all] Error 2 

I have tried looking for similar issues on the internet, but haven't found any solutions yet. From the looks of it, the error originates from Boost libraries, specifically libicu55. But I already have that installed (installed boost version is 1.58).

Could you please point me on how to solve this problem and get COLMAP compiled on Linux? Thank you.

Johannes Schönberger

unread,
Jun 24, 2017, 12:07:10 PM6/24/17
to COLMAP, morpheus...@gmail.com
There seems to be some problem with how you installed boost. Did you resolve the issue in the meantime?

jianan...@gmail.com

unread,
Jul 3, 2017, 9:37:20 PM7/3/17
to COLMAP, davn...@gmail.com
Hello, David:

I was trying to compile COLMAP on windows and I encountered this problem too. 
 
you said, "ceres has to be compiled with the sparse matrix support".  could you please make it clear which sparse matrix support (the eigen sparse , the suite sparse or anything else ) you enabled ?

Best.
Jn.

在 2016年10月15日星期六 UTC+8上午2:52:37,David Novotný写道:
> > To unsubscribe from this group and stop receiving emails from it, send an email to colmap+un...@googlegroups.com.

> > To post to this group, send email to col...@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/colmap/850a6e18-6e83-4850-9967-c746908d7ded%40googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to a topic in the Google Groups "COLMAP" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/colmap/pxohw5SOAWs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to colmap+un...@googlegroups.com.

> To post to this group, send email to col...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/colmap/BA9A0D87-078D-4BC1-A471-ADD4F3D6BEC5%40demuc.de.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups "COLMAP" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to colmap+un...@googlegroups.com.

> To post to this group, send email to col...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "COLMAP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/colmap/pxohw5SOAWs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to colmap+un...@googlegroups.com.

To post to this group, send email to col...@googlegroups.com.

David Novotný

unread,
Jul 4, 2017, 3:32:23 AM7/4/17
to jianan...@gmail.com, COLMAP
Hi Jn,

I am not 100% sure what is the cmake variable for the sparse support as I did the compilation ~ 6 months ago. I was inspecting my Ceres cmakecache.txt file and it seems it might be EIGENSPARSE:BOOL=ON .

The CMakeCache.txt file is in the attachment in case you want to inspect it.

Best
David
CMakeCache.txt

Johannes Schönberger

unread,
Jul 4, 2017, 3:39:59 AM7/4/17
to col...@googlegroups.com
If you want SuiteSparse support under Windows, I recommend to use https://github.com/jlblancoc/suitesparse-metis-for-windows
> To view this discussion on the web visit https://groups.google.com/d/msgid/colmap/CAPM8C9Lkct4qtsR4jY7YHk5L0yOTOmRtdqNtqOHjZYkhhDQ54Q%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
> <CMakeCache.txt>

jianan...@gmail.com

unread,
Jul 5, 2017, 10:19:41 AM7/5/17
to COLMAP, jianan...@gmail.com, davn...@gmail.com
Hi, David,

Thanks for your reply.
I have successfully compile with suitsparse and eigensparse and it works now.
Thanks again.

Best
Jn

在 2017年7月4日星期二 UTC+8下午3:32:23,David Novotný写道:

jianan...@gmail.com

unread,
Jul 5, 2017, 10:22:14 AM7/5/17
to COLMAP
Thanks. I just used this. And COLMAP works now.

在 2017年7月4日星期二 UTC+8下午3:39:59,Johannes Schönberger写道:

morpheus...@gmail.com

unread,
Aug 3, 2017, 3:08:05 PM8/3/17
to COLMAP, morpheus...@gmail.com
I did not manage to fix it on my local machine. I was using a Fedora system. But I had access to another Ubuntu machine, where it was setup properly and it worked.

Johannes Schönberger

unread,
Aug 4, 2017, 2:41:21 AM8/4/17
to col...@googlegroups.com
Can you comment on which Fedora version? I would like to reproduce and fix this issue?
> To view this discussion on the web visit https://groups.google.com/d/msgid/colmap/81553a94-6b3d-4c4d-93d2-d994e0a4f27e%40googlegroups.com.

morpheus...@gmail.com

unread,
Aug 4, 2017, 8:31:54 AM8/4/17
to COLMAP
The Fedora version I was using was Fedora 25 Robotic spin, with the latest updates. I am not near my Linux machine, but will post back the detailed versions when I get back to it.

morpheus...@gmail.com

unread,
Aug 8, 2017, 9:32:25 AM8/8/17
to COLMAP, morpheus...@gmail.com
Update: I just checked my boost version installed on Fedora, it is version 1.60. Please let me know if you need any specific information for the system. All my other libraries are generally up-to-date from the official Fedora repositories.
Reply all
Reply to author
Forward
0 new messages