HBadertscher / Matlab_BaslerCamDriver

A universal MATLAB driver for Basler cameras
MIT License
21 stars 5 forks source link

Problem with make in Matlab 2017b on Mac #29

Open harshakasi opened 6 years ago

harshakasi commented 6 years ago

Hoi Mr Badertscher,

Thank you for providing a way to access Basler cameras through Matlab.

I downloaded the entire package on my Matlab 2017b and tried to compile it using the "make" command. I get an error as follows:

>> make
=> Creating Libraries
Building with 'Xcode Clang++'.
Error using mex
In file included from /Users/harshakasi/Documents/MATLAB/Add-Ons/Collections/Basler
camera
driver/code/HBadertscher-Matlab_BaslerCamDriver-419332a/basler_helper/basler_set_get.cpp:5:
./basler_set_get.h:8:10: fatal error: 'pylon/PylonIncludes.h' file not found
#include <pylon/PylonIncludes.h>
         ^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Error in make (line 56)
            mex(flags{:},libraries{k,3},ipaths,lpaths,libraries{k,2})   % build

Please inform me as to how can I go about rectifying this and getting the whole package successfully compiled and use the APIs as I would like them.

Best, HK

GaborST commented 6 years ago

Hi, There is a tutorial, but unfortunately, only for windows: https://github.com/Lansbergen/BaslerCamDriver_Installation_Tutorial_Windows_7/blob/master/Tutorial_Basler_Windows7_Matlab.md It seems you need to add a system variable (or equivalent) 'PYLON_ROOT' and 'PYLON_GENICAM_ROOT' with the path of the pylon directory. It is done automatically during installation, at least on windows...