HBadertscher / Matlab_BaslerCamDriver

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

Compilation Problem #23

Closed ponagehl2 closed 6 years ago

ponagehl2 commented 7 years ago

Hi,

I followed through the installation guide until the last compilation step. And it gave me the following error message: fatal error C1083: Cannot open include file: 'pylon/PylonIncludes.h': No such file or directory

It seems to be missing a header file. I am wondering how I can resolve this issue.

Thanks, Kevin

HBadertscher commented 7 years ago

Hi,

I assume you have installed Pylon? Have you used Pylon 4 or the newest Pylon 5?

Can you please run the following two commands in MATLAB, copy the resulting paths into the explorer and verify that both these folders exist and contain a couple of files or subfolders?

fullfile(getenv('PYLON_ROOT'),'include')
fullfile(getenv('PYLON_GENICAM_ROOT'),'library\CPP\include')
ponagehl2 commented 7 years ago

Hi,

I am using Pylon 5 since I am trying to connect to Basler ac3800 14um camera, which I believe is a newer model and can only be recognized using the newer version of Pylon.

The commands you provided above indicate that the Pylon root folder is for Pylon 4. Is there a way to modify this?

Appreciate the help, Kevin

HBadertscher commented 7 years ago

Okay, thanks for the feedback. So, you can change these paths to point to the right place from within MATLAB. The important thing is to find the correct places:

Setting an environment variable is then as simple as

setenv('PYLON_ROOT', 'C:\the\path\you\found')
setenv('PYLON_GENICAM_ROOT', 'C:\the\other\path')

You have to call these functions before running make.m (or simply copy them to the beginning of make.m.

I hope that this solves these errors. However, I fear that you might run into other problems as reported here, as I have developed this driver for Pylon 4 and haven't been able to port it to Pylon 5.