Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows and Documentation #232

Open
MikePelton opened this issue Jan 10, 2019 · 3 comments
Open

Windows and Documentation #232

MikePelton opened this issue Jan 10, 2019 · 3 comments

Comments

@MikePelton
Copy link

So the very good news is, on Windows at least, we can now build Theia (0.7 for now) with VCPKG. The next challenge is that the Theia doc doesn't get built. It's in the repo as a bunch of RST files, so in a Python world you'd build those with Sphinx and DocUtils. If Python isn't part of your world, you wind up needing to install boatloads of stuff just to get the doc built, which is nuts. Can I ask someone who's at home in Python land to build the doc as HTML and puts that in this repo too please? Thanks in advance, Mike

@MikePelton
Copy link
Author

This has become an Ubuntu noob question now... Abandoning the Windows implementation and now building under 18.04. Have ticked the BUILD_DOC and BUILD_DOCUMENTATION flags in CMake GUI, but where does the generated html documentation get put?

@MikePelton
Copy link
Author

Looping back on the Windows question, running 0.7 under Windows I saw a number of run-time errors that had all the hallmarks of DLL's being built with different run-time C libraries, which is hard to do in Linux but easy enough under Windows. In build_reconstruction, Any call into OpenImageIO for instance would crash, as the constructor for image_buffer that takes a const std::string reference passes the data() pointer directly off the reference into local storage, but at that point the pointer's meaningless - the memory spaces are different. Passing the .c_str() off the std::string into image_buffer goes through a different constructor and presumably passes by value, so that survives the journey over the fence into the DLL. Similarly in extract_features vl_malloc is called before the vl_state has been set up - this would seem to be relying on the order of instantiation of statics which is always the kiss of death to portability. I wouldn't for a second diminish Chris's phenomenal effort in getting all this together - Windows was never on the agenda and the VCPKG guys (in this instance) have some fixing to do, but unless you're patient and/or well funded I'd give the Windows builds a wide berth. As always, I'd be delighted to be proved wrong.

@sweeneychris
Copy link
Owner

sweeneychris commented Jan 23, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants