Coder Social home page Coder Social logo

Comments (7)

tcommandeur avatar tcommandeur commented on July 20, 2024 1

Hi Barent,

The Boost library is used for geometrical functions like intersects and distance. There are several ways to solve this;

  1. Add the NuGet package with the pre-build binaries; https://www.nuget.org/packages/boost-vc140
  2. Download the pre-build binaries manually and set the path in the project → C++ → General → Additional Include Directories; https://sourceforge.net/projects/boost/files/boost-binaries/1.62.0/boost_1_62_0-msvc-14.0-64.exe/download

If the path for the libraries is resolved correctly the build error will disappear.

from 3dfier.

hugoledoux avatar hugoledoux commented on July 20, 2024

why are you using CMake actually? There is a Visual Studio project file included.

I know it doesn't solve the Boost, but could simplify your life.

from 3dfier.

GreenUtil avatar GreenUtil commented on July 20, 2024

Well thanks, I overlooked the vs_build folder.....
But when I load the 3dfier.sln I am getting an error, because

ProjectReference Include="....\yaml-cpp\vs_build\yaml-cpp.vcxproj"

can't be found....

I am going to try now the above mentioned solution for Boost with NuGet.
Here at 3DGeoSolutions we already had some more problems with CMAKE and Visual Studio. Going back from VisualStudio version 2015 to 2013 has solved these problems in any case.....

from 3dfier.

tcommandeur avatar tcommandeur commented on July 20, 2024

Thank you for the remark, I will see to it the yaml-cpp vs-project file will also be published in the vs_build folder of this project. Also we will work on a Readme for compiling under Windows using Visual Studio.

from 3dfier.

GreenUtil avatar GreenUtil commented on July 20, 2024

The Nuget route gives this error in Visual Studio 2015 :

PM> Install-Package boost-vc140
Attempting to gather dependency information for package 'boost-vc140.1.62.0' with respect to project 'ALL_BUILD', targeting 'native,Version=v0.0'
Attempting to resolve dependencies for package 'boost-vc140.1.62.0' with DependencyBehavior 'Lowest'
Install-Package : Unable to find a version of 'boost_coroutine-vc140' that is compatible with 'boost-vc140 1.62.0 constraint: boost_coroutine-vc140 (= 1.62.0)'.
At line:1 char:1

from 3dfier.

GreenUtil avatar GreenUtil commented on July 20, 2024

The next is working fine in Visual Studio 2015, however the error Error LNK1104 cannot open file 'boost_thread-vc140-mt-1_62.lib still remains.....

PM> Install-Package boost_thread-vc140
Attempting to gather dependency information for package 'boost_thread-vc140.1.62.0' with respect to project 'ALL_BUILD', targeting 'native,Version=v0.0'
Attempting to resolve dependencies for package 'boost_thread-vc140.1.62.0' with DependencyBehavior 'Lowest'
Resolving actions to install package 'boost_thread-vc140.1.62.0'
Resolved actions to install package 'boost_thread-vc140.1.62.0'
GET https://api.nuget.org/packages/boost.1.62.0.nupkg
OK https://api.nuget.org/packages/boost.1.62.0.nupkg 29ms
Installing boost 1.62.0.
Adding package 'boost.1.62.0' to folder 'D:\Data\Barent\GloBLD\3dfier\3dfier-master\3dfier-master\build\packages'
Added package 'boost.1.62.0' to folder 'D:\Data\Barent\GloBLD\3dfier\3dfier-master\3dfier-master\build\packages'
Added package 'boost.1.62.0' to 'packages.config'
Successfully installed 'boost 1.62.0' to ALL_BUILD
GET https://api.nuget.org/packages/boost_thread-vc140.1.62.0.nupkg
OK https://api.nuget.org/packages/boost_thread-vc140.1.62.0.nupkg 245ms
Installing boost_thread-vc140 1.62.0.
Adding package 'boost_thread-vc140.1.62.0' to folder 'D:\Data\Barent\GloBLD\3dfier\3dfier-master\3dfier-master\build\packages'
Added package 'boost_thread-vc140.1.62.0' to folder 'D:\Data\Barent\GloBLD\3dfier\3dfier-master\3dfier-master\build\packages'
Added package 'boost_thread-vc140.1.62.0' to 'packages.config'
Successfully installed 'boost_thread-vc140 1.62.0' to ALL_BUILD

from 3dfier.

GreenUtil avatar GreenUtil commented on July 20, 2024

I fixed the problem by adding the library to the Linker Additional Library Directories.
Next step is building 3dfier as a 32-bit application. (building as 64-bit gives many, many errors)
Now some other problems arise in Visual Studio Community 2015 :

Error C3861 '_BitScanForward64': identifier not found 3dfier D:\Program Files\CGAL49\include\CGAL\Mpzf.h 202

Error C3861 '_BitScanReverse64': identifier not found 3dfier D:\Program Files\CGAL49\include\CGAL\Mpzf.h 214

from 3dfier.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.