Comments (3)
Hi Andrè
This does indeed look strange. Can you try the following things to check where the error comes from:
-
Make sure that the MEX-compiler is set up correctly. Within MATLAB, type
edit([matlabroot '/extern/examples/mex/mexcpp.cpp']);
This will open a C++ example by MATLAB. Copy the content of this file to a new file, located in any folder you can write to, e.g. Desktop, your Documents folder,... Name the file e.g.test_mex.cpp
. Now, navigate to that folder in MATLAB, and call the following command
>> mex test_mex.cpp
This should give the following output:Building with 'Microsoft Windows SDK 7.1 (C++)'. MEX completed successfully.
If this happens, then your compiler is set up correctly. You can verify that the compiled function works by calling
>> mex_test(1, 2)
which print some data, and not throw any errors. -
Check all include paths. Open the
make.m
file, and run all code up to line 46, i.e. untillpaths = [...];
. Then print the valuesipaths
andlpaths
to the MATLAB console and check that all paths in there exist on your disk and "look" correct. I would expect the paths to look something like this:ipaths = ' -I"C:\program\Basler\pylon 4\include" -I"C:\program\Basler\pylon 4\genicam\library\CPP\Lib\win64_x64" -I"C:\boost_1_55_0" ' lpaths = ' -L"C:\program\Basler\pylon 4\lib64" -L"C:\program\Basler\pylon 4\genicam\library\CPP\Lib\win64_x64" -L"C:\boost_1_55_0\lib64-msvc-10.0" '
The paths can be a bit different - the important part is that all these paths exist and contain the relevant files.
Please let me know how this works out and if you find e.g. strange/bad paths in 2).
Best,
Hannes
from matlab_baslercamdriver.
Hi Hannes,
wow thank you very much for that fast answer.
I will check this out on Monday next week, because unfortunatelly today i'm busy to some other tasks.
I will let you know what happends to your suggested steps. I'm very interested in getting this driver package running :).
All the best,
André
from matlab_baslercamdriver.
Hey,
I tried your recommended steps:
-
-> I created the C++ example as explained and compiled it with the Microsoft Windows SDK 7.1 C++
compiler via MATLAB command:
mex -setup c++ to set the compiler and
mex test_mex.cpp
-> It gave me the following output which told me that the MEX-compiler is set correctly:
Building with 'Microsoft Windows SDK 7.1 (C++)'.
MEX completed successfully.
-> As soon i verified it with:
mex_test(1, 2)
i received the message:
Undefined function or variable 'mex_test'. -
The included paths in the variables "ipaths" and "lpaths" are existing and looking correct to me:
ipaths =
'-I"C:\Program Files\Basler\pylon 4\pylon\include" -I"C:\Program Files\Basler\pylon 4\genicam\library\CPP\include" -I"C:\boost_1_55_0"'
lpaths =
'-L"C:\Program Files\Basler\pylon 4\pylon\lib\x64" "C:\Program Files\Basler\pylon 4\genicam\library\CPP\Lib\win64_x64" "C:\boost_1_55_0\lib64-msvc-10.0"'
I tried both steps with MATLAB running in "normal" mode and as an administrator. I attached a screenshot of the make.m file i'm using and trying with ... maybe i made a mistake in this file during the whole testing.
from matlab_baslercamdriver.
Related Issues (20)
- Trigger HOT 4
- Mex won't find header files that are called via #include <header.h> even though they are in include path HOT 1
- Trying and failing to install Boost HOT 11
- Problem when connecting multiple cameras HOT 2
- Cannot build, mex fails with no information HOT 1
- Build error of make.m HOT 4
- Another make build issue HOT 7
- trigger mode HOT 4
- Compilation problem HOT 2
- Compilation Problem HOT 3
- Compilation problem: Boost libraries not found HOT 2
- Compilation error HOT 2
- d ..
- Pylon5 and triggered acquisition HOT 1
- Problem with baslerSetParameter() for Boolean types HOT 2
- Problem with make in Matlab 2017b on Mac HOT 1
- Pylon 4 x64 HOT 1
- run make.m got : error Unknown shared library support
- Error using baslerGetData HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matlab_baslercamdriver.