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

Building libsaxsdocument with XML fails on Windows #11

Open
chrisemblhh opened this issue Feb 23, 2016 · 2 comments
Open

Building libsaxsdocument with XML fails on Windows #11

chrisemblhh opened this issue Feb 23, 2016 · 2 comments
Labels

Comments

@chrisemblhh
Copy link
Contributor

(Proximate cause: upgraded CMake has better search heuristics, so it finds the libxml2 library and tries to build with canSAS-XML enabled, whereas previously libxml2 was not found and canSAS was disabled.)

Trying to build saxsview gives linker errors saying something like: undefined reference to '__imp_recv'

@chrisemblhh
Copy link
Contributor Author

@chrisemblhh
Copy link
Contributor Author

Manually changing the value of LIBXML_LIBRARIES in the CMake GUI from "C:/[PATH]/libxml2.a" to "C:/[PATH]/libxml2.lib" fixes the linker error but will add a runtime dependency on libxml2.dll

chrisemblhh added a commit to chrisemblhh/saxsview that referenced this issue Feb 24, 2016
chrisemblhh added a commit that referenced this issue Feb 24, 2016
Disable XML on MinGW (workaround for issue #11)

Linking to libxml2 fails on MinGW and none of the fixes I could find on the internet worked.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant