Open bakercp opened 8 years ago
Hmm, it seems that this version of Visual Studio is seriously crippled. I can take a look.
I routinely test with Visual Studio 2015 Professional. To test the "community" version I did the following.
Install Visual Studio Community 2015 on a system which does have any VS 2015 installations. Select C++ as a language during installation.
Install cmake version 3.1.1
Run
cmake -G "Visual Studio 14" -A x64 -D GEOGRAPHICLIB_LIB_TYPE=BOTH \
u:/temp/GeographicLib-1.46
cmake --build . --config Release
cmake --build . --config Release --target RUN_TESTS
This all runs through without errors.
@bakercp I think the ball is in your court now, specifically, to figure out how what you're doing differs from what I did. (It's probably a good idea to verify that the cmake configure + build + test works for you too.)
Thanks! I imagine it must be preprocessor settings or my project file settings. Will look into it. Thanks!
there is an issue in OF 0.9.8 concerning an isnan define in ofMatrix4x4. the VS compilation issue can be solved like this:
before including ofxGeographiclib:
#ifdef isnan // bug: #defined in ofMatrix4x4, rather use std::isnan()...
#undef isnan
#endif
#include "ofxGeographicLib.h"
i ran in this issue multiple times and wonder whether above issue is related
Using a slightly patched (by @cffk) version of GeographicLib 1.46, I am attempting to compile the library directly in VS 2015 Community. Since I'm not using the share/static libs, I'm not adding any preprocessor defines (e.g.
GEOGRAPHICLIB_SHARED_LIB=0)
since I'm not using precompiled libs.This compiles fine on OSX, Ubuntu (the library source is included directly in the project), but fails with the following errors in VS2015Community.