Successfully built ceres-solver on windows platform

1,210 views
Skip to first unread message

Arturo Flores

unread,
May 20, 2016, 7:29:53 PM5/20/16
to ceres-...@googlegroups.com
After a lot of trial and error, I was able to successfully build ceres-solver on windows.  The instructions found here: http://ceres-solver.org/building.html#windows are either out-dated or simply do not work.  I can provide the details and possibly contribute updated/better instructions for building ceres-solver on windows.  Let me know if this would be useful.

One of the major issues was linking to suitesparse.  The instructions suggest using the suitesparse-metis-for-windows project.  This project comes with pre-built blas and lapack libraries.  However the root CMakeLists.txt file tries to find these libraries and it ends up calling the FindLapack.cmake and FindBLAS.cmake files that ship with cmake.  I did not see an obvious way of telling it to look for lapack and blas in the suitesparse folder.  I also ended up replacing the FindSuiteSparse.cmake file that comes with ceres and used the one included in the suitesparse-metis-for-windows project.

All tests run and pass, though the tests take slightly longer on windows than on a linux virtual machine ( host was the same windows machine ).  Total test time under windows is around 150 seconds (multiple runs).  Total test time under linux is around 120 seconds (multiple runs).

Arturo

Sameer Agarwal

unread,
May 20, 2016, 7:32:18 PM5/20/16
to ceres-...@googlegroups.com

Arturo,
Any and a help to update the instructions is welcome. The best would be if you submitted a change list that we can review.
Sameer


--
You received this message because you are subscribed to the Google Groups "Ceres Solver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceres-solver...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/CACYAzN61N%3DcY2gqS-Ykmrs2mDuyq_wyJQSMk9boqVFP0YNLkCg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Arturo Flores

unread,
May 20, 2016, 7:43:03 PM5/20/16
to ceres-...@googlegroups.com
What would be the best way to submit the change list?

Sameer Agarwal

unread,
May 20, 2016, 7:54:13 PM5/20/16
to ceres-...@googlegroups.com
Please edit

docs/source/building.rst

and submit for review by following

http://ceres-solver.org/contributing.html

Sameer

Arturo Flores

unread,
May 21, 2016, 11:01:48 PM5/21/16
to ceres-...@googlegroups.com
What's the procedure for building the documentation on windows?

I installed python 2.7.11 and sphinx via pip .  On the command line, I went to the scripts folder and tried running:

python make_docs.py .. ../docs/html

I get error:

Running Sphinx v1.4.1

Exception occurred:
  File "conf.py", line 103, in <module>
ImportError: No module named sphinx_rtd_theme
The full traceback has been saved in c:\users\aflores\appdata\local\temp\sphinx-
err-75syx_.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message c
an be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphin
x/issues>. Thanks!

Does anyone know if it is possible to build the docs on windows?

Sameer Agarwal

unread,
May 22, 2016, 1:38:43 AM5/22/16
to ceres-...@googlegroups.com
Arturo,
We use the "Read the docs" Theme for Sphinx.


You likely have to install it before trying to build the docs.
Sameer




Keir Mierle

unread,
May 28, 2016, 1:38:08 AM5/28/16
to ceres-...@googlegroups.com
Hi Arturo,

Thank you for volunteering to help with the Windows documentation! None of the core Ceres devs uses Ceres with Windows, and so those instructions tend to get out of date. If you could also add a section on getting Sphinx compiled and working (on Windows) that would be amazing too. I'm sorry it took you so long, but by adding the docs you can help save other people time.

Thanks,
Keir

Reply all
Reply to author
Forward
0 new messages