Closed thomas2108 closed 5 years ago
Did you download the zip, file and tried to build from that? I think that might cause the issue, since there is no .git folder, hm... I should make a version file :-), and read from this if there is no ".git" folder
Yes, I downloaded the Zip. Can i do something?
Fork the repository instead, and build it, then it works. Meaning, clone it in git
Done, have several issues:
AngleFunctions.hpp + MakeCoordinateSystem.hpp: M_PI undefined inserted
#define _USE_MATH_DEFINES
#ifndef M_PI
# define M_PI 3.14159265358979323846
#endif
before
#include <cmath>
in xpfpa.h replaced
# elif HAVE__CONTROLFP_S
with
# elif defined(HAVE__CONTROLFP_S)
ApproxMVBB 32Bit Debug now builds, others still error….continue later
Can you make a PR when you manage to compile it with VS 17, thx!
I managed to build ApproxMVBB with VS17. VS2017 contains native CMAKE support and builds the lib directly now. Have .dll file and .lib file. But I'm not able to build example/approxMVBB . Linker is missing the library. I'm no CMAKE expert, don't know what to do. Can you assist ?
Working on a solution for VS 15/17. I dont have 17, but should work as well
Please try the branch: msvc-compatibility
It seems to compile under VS 15 so far.
cmake -G "Visual Studio 14 2015 Win64" -DApproxMVBB_XML_SUPPORT=OFF -DApproxMVBB_KDTREE_SUPPORT=OFF <pathToCode>
Try the current master branch if it builds in VS 17
I have problems using cmake to build a solution file. First I get the following error,
ApproxMVBB library version could not be determined!
And can't get around that.
Second, the Find PugiXML_DIR is rather odd. Rather than wanting the base location or the location of the lib file, it wants the location of the _source_dir/CMakeFiles/Export/lib/cmakepugixml/ and for the compiled library to be in the Export/lib directory.
Third, why are we having to give the location of git.exe. Seems rather odd dependency.
Ok, git is used for determining the version, I try to remove this need. When you installed PugiXML with cmake, the ApproxMVBB should find it, we do not provide script for finding pugixml since by default it is found correctly with the default finding procedure in cmake since pugixml also supports this.
I update the docs so far, and pugixml is now by default disabled (ApproxMVBB_XML_SUPPORT="OFF"
) on the master branch.
As a remedy for now, clone the repo with git
. Dont use the zip file...
I am cloning with git.
On Thu, Sep 20, 2018 at 8:29 AM Gabriel Nützi notifications@github.com wrote:
As a remedy for now, clone the repo with git. Dont use the zip file...
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gabyx/ApproxMVBB/issues/28#issuecomment-423071759, or mute the thread https://github.com/notifications/unsubscribe-auth/ATKVNGoJseQ8SrfKLiqSTce4iPSYlGaQks5uc0PlgaJpZM4Wnb0d .
I updated, Git should now no more be needed, as long as you delete the .git folder: then the version is read from the version file VERSION
.
Same in CMAKE 3.12.2 for Windows and Visual Studio 2017 (15.8.3)
Please help![error](https://user-images.githubusercontent.com/6136259/45496882-b544a980-b776-11e8-9268-5006d32977f8.png)