I'm trying to use the boost's multi-precision math library. I'm using visual studio 2017 CE with the latest version and compiler setting to latest draft standard. I have the newest version of boost installed and working 1.66. However, one of boost headers includes gmp.h. So I went to GNU's GMP site and downloaded the library, and extracted it to a folder where I want the library to reside.
I was reading through their documentation on how to install the library, but it is completely lacking in any directions for installing on windows. The only thing it does mention under windows is mingw in which I'm not using. I'm using visual c++.
Is there any way to resolve this in order to use boost's multiprecision headers?
I've been reading up a little bit about the MPFR library; if I install that instead of GMP will that take care of the needed files to successfully compile, link and build the boost's mp library?
Related
We are currently using CUDA on windows which requires MS C++ Build tools installed. With every new version of the CUDA toolkit it happens that newer versions of Visual Studio are not supported. That's why we are using the MS build tools seperately so that the VS version doesn't matter.
Since its hard to guide our developers to install the right CUDA and MSVC version we have packaged it into NUGET packages so that the toolkit (especially NVCC) is in a defined version and location. Additionally we wanted to do this with MSVC but we couldn't find a good solution since the installer obviously does modifications on several places that we don't know.
Is there any good way to get the MSVC tools portable so that we can simply drop it into a folder and put the right pathes?
NVCC doesn't support GCC, otherwise I would have gone with this.
I'm trying to compile a mex file using MATLAB 2014a. It returns an error No compiler found and I try mex -setup but it cannot find any compiler while I have installed `Visual Studio 2017'.
I'm using Win10 and I don't know how to fix this!
You are using a version of MATLAB that isn't supported on your OS (it is supported up to Windows 8.1), and a version of MSVC that didn't exist when it was released (it only recognizes MSVC versions 2008-2013).
However, it is supposed to have lcc-win32 bundled with it, which is a simple C compiler, and should be found by mex -setup.
If you want to compile C++ MEX-files, you will need to find MSVC 2013 or upgrade your version of MATLAB (highly recommended at this point).
Have you check whether your system is compatible or supported each other?
You may refer here https://www.mathworks.com/support/compilers.html
Ever since I started using boost on Windows with Visual Studio 2010 I just downloaded the binary package available on BoostPro as recommended by the boost documentation. I'm currently at Boost 1.51 and would like to upgrade to Boost 1.55. Now since BoostPro is no longer offering these packages, is there a substitute method to install the binary package or do I now need to build boost myself?
I see at http://www.boost.org/doc/libs/1_55_0/more/getting_started/windows.html the statement:
The most reliable way to get a copy of Boost is to download
boost_1_55_0.7z or boost_1_55_0.zip and unpack it to install a
complete Boost distribution
Will this be equivalent to the Boost Pro binaries I used to download or will this still require building stuff?
Then I also found http://sourceforge.net/projects/boost/files/boost-binaries/. Overall I'm confused. Basically I'd like a simple installation like BoostPro used to offer if that is still available.
You can use the binaries from http://sourceforge.net/projects/boost/files/boost-binaries/. They will work OK provided you pick up proper configuration of your compiler. Note that MSVC 2013 has some issues with some of Boost versions.
These binaries are not guaranteed to work because your compiler or STL can be customized in various ways. That is why Boost recommends to compile the package locally.
I downloaded and installed Boost. It works but multiprecision part of library (especially float128.h) needs some external libs depends on libquadmath from gcc. I downloaded MinGW, installed and it still doesn't work. How to make it work?
I am using visual studio 2010.
Before starting my project, I installed cuda SDK 4.2.
After that, I installed opencv 2.4.2. In my project, I'm using only opencv and it works correctly. However, when I try to run my program on another computer it tells me that cuda dll (like cudart32_42_9.dll, npp32_42_9.dll and nvcuda.dll) are needed. I don't use at all cuda and do no reference in my project property to cuda. I would like to know how to remove those dependency. I don't understand why visual studio add dll I don't use.
The pre-built OpenCV 2.2 onwards, comes with 2 versions of the binaries (dlls).
The dlls in the \build\gpu directory are the superset and are built with CUDA support. Therefore, to use them you require the CUDA Runtime dlls (cudart, npp etc). These binaries are required if you want to use the GPU functionality of OpenCV. These may also be used to check if you have a GPU present in your system or not.
The other version of dlls which are present in the x86 or x64 folder in the build directory of OpenCV, are built without CUDA support (although a gpu dll is also present in that directory). You don't need cuda dlls to use these binaries.
Both of these versions are built with Intel Thread Building Blocks support, and so require tbb_debug.dll and tbb.dll for Debug and Release configurations respectively. So if you use the CPU functions of OpenCV, they will be TBB Accelerated.