Giter Club home page Giter Club logo

Comments (3)

HBadertscher avatar HBadertscher commented on July 17, 2024

Hi Andrè

This does indeed look strange. Can you try the following things to check where the error comes from:

  1. 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.

  2. Check all include paths. Open the make.m file, and run all code up to line 46, i.e. until lpaths = [...];. Then print the values ipaths and lpaths 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.

Oinkyspoinky avatar Oinkyspoinky commented on July 17, 2024

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.

Oinkyspoinky avatar Oinkyspoinky commented on July 17, 2024

Hey,

I tried your recommended steps:

  1. -> 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'.

  2. 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.

All the best,
André
make_file_line1to41
make_file_line41to80

from matlab_baslercamdriver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.