How to use lapack in C++ on Macbook air - c++

I have installed lapack,blas and fftw package on my Mac using Macport.
Where can I find these libraries? What do I need to specify to link these libraries in a C++ program? Thanks.

Related

How do I setup a CMake project with both Allegro and MSVC?

Lately I've been experimenting with the Allegro game library, but I'm having some trouble setting it up in the following scenario:
I would like to create a cross-platform project (for at least Linux and Windows binaries, preferably also OS X) using CMake that utilizes the Allegro game library, but is able to build using MSVC instead of MinGW for the Windows Binaries.
I tried linking statically to the MinGW standard libraries, but the supplied Allegro binaries for MinGW are still dynamically linked, so I'd rather just use the proper Windows compiler.
Does anyone know if it is possible to extract the binaries from the Nuget package or if there's a more proper way to use MSVC and Allegro while still maintaining a cross-platform source code?
I'd prefer not having to build Allegro from source, but if I have to, any links to guides would be helpful.

Does Anaconda have any libraries for PCL for C++ for using in windows?

I am currently looking for best method to install pcl libraries in my windows system. I dont know if anaconda offers any pcl libraries for c++?
PCL offers prebuilt binaries for windows (AllInOne installer) at releases. Latest binaries: 1.10.1
Since your question stated "best method to install pcl libraries in my windows system", I think it's worth mentioning this non-anaconda option.
The conda-forge PCL package does offer C++ support for PCL v1.9.1, but be mindful that it does not build all PCL components. The build script used to create the package can be found here if you'd like to know more about what is or is not enabled.

How to know which library is creating a dependency to a shared library

I have the next problem, I'm developing a cuda application for the jetson TX2 board. All the development it's done in a ubuntu machine and then I run the program remotely in the jetson.
I'm using CUDA 10.0 and the PCL library 1.9.1 that was built from sources in the jetson with CUDA and QT5 features. I also compiled from sources in the jetson the VTK library and boost 1.65. Everything compiles fine but every time I try to run my program in the jetson I get the next error:
error while loading shared libraries: libcufft.so.9.0
Because I'm using CUDA 10 I don't have this library and in code I don't any reference to cufft so I guess that a library I'm using is creating this dependency. What I want to know is if there is some way to know what part of the code or what library could be creating this dependency in order to remove the error.
I have tried the command LDD but this command tell me that the program needs the cufft.so.9.0 library but not tell me which part of the code could be creating this dependency.
Next I summarize all the libraries I'm using:
PCL 1.9.1
VTK 8.0
Eigen
Libflann 1.9
Patate library
I'm also using Nvidia nsight eclipse.
Thank you!

Building levmar on Mac Yosemite

Hi I want to build levmar (Levenberg Marquardt) C++ library on Mac. It comes with a makefile (http://users.ics.forth.gr/~lourakis/levmar/index.html) but I have some questions about how to use it on Mac (Yosemite)
(1) The gcc I have currently installed on Mac is in fact clang. I can confirm this if I run gcc -v on the terminal. Should I install proper gcc before building levmar?
(2) Levmar recommends using LAPACK (Linear Algebra Library). Again, I have been reading on another stack overflow post (Trying to build the LEVMAR math library on a mac using the Accelerate Framework) that they were using Mac OS Accelerate framework that comes with LAPACK. Does anyone know how do I get that on yosemite? Or should I be building LAPACK standalone on mac first?
Thank you
I used the Makefile from Trying to build the LEVMAR math library on a mac using the Accelerate Framework posted by Janos and it works for levmar-2.6 using clang and Accelerate framework.

C++ Development CodeBlock Ubuntu with Boost Library

I majorly work in Java but I have to switch to C++ for development for one project.
I done my research and find that in order to do portable code in C++, I need to use Boost or QT libraries etc. Therefore, now I download CodeBlock IDE in Ubuntu but afraid how to start building project. I search alot in the web to how to use Boost with CodeBlock but each time I only find it working/configure with Windows. http://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef
Can please guide me regarding how to configure Boost library with CodeBlock in Ubuntu so that I can write Portable code.
Please also let me know if I am wrong in direction to write portable code which must be support in both Linux and Windows environment.
Have a look at http://www.boost.org/doc/libs/1_52_0/more/getting_started/unix-variants.html
If you dont't need the latest version of boost you should install boost on ubuntu using
apt-get install libboost*