Using Basler Pylon SDK on MAC with Qt

Pi report abuse

I am trying to work on a Basler Camera (Pylon SDK) on mac using Qt. It seems as if, I have been able to successfully set up the pylon framework and have access to the necessary header files. I build it with some warnings. But When I even just create a Camera Object, it just crashes with the following error.

libc++abi.dylib: terminating with uncaught exception of type GenICam_3_0_Basler_pylon_v5_0::RuntimeException

 

|

I am trying to work on a Basler Camera (Pylon SDK) on mac using Qt. It seems as if, I have been able to successfully set up the pylon framework and have access to the necessary header files. I build it with some warnings. But When I even just create a Camera Object, it just crashes with the following error.

libc++abi.dylib: terminating with uncaught exception of type GenICam_3_0_Basler_pylon_v5_0::RuntimeException

Here is my Pro File :

INCLUDEPATH += "/Library/Frameworks/pylon.framework/Headers/"
DEPENDPATH += "/Library/Frameworks/pylon.framework/Headers/"


INCLUDEPATH += "/Library/Frameworks/pylon.framework/Headers/GenICam"
DEPENDPATH += "/Library/Frameworks/pylon.framework/Headers/GenICam"

INCLUDEPATH += "/Library/Frameworks/"
DEPENDPATH += "/Library/Frameworks/"


INCLUDEPATH += "/Library/Frameworks/pylon.framework"
LIBS += -F"/Library/Frameworks/" -framework pylon

When I run on a parallel thread, it doesnt work either. The Code where it crashes is :

CInstantCamera camera( CTlFactory::GetInstance().CreateFirstDevice());

Would you know what the problem is?

Thanks for your time.

Regards

|

Comments
qwertyRer report abuse
Anyone help me with translate? Ger to eng
GalenEi report abuse
Best essay writing service ESSAYERUDITE.COM

Answers

bjoernrennfanz report abuse

Hello, 

can try to put an try ... catch block in your code like the Grab sample like:

try

{

      [Your Code]

}

catch (const GenericException &e)

{

        // Error handling.

        cerr << "An exception occurred." << endl

        << e.GetDescription() << endl;

        exitCode = 1;

 }

Than please post the Message with the Description of the problem from the try...catch block...

Best regards

Pi report abuse

For the following code:

<Code> try  {     CInstantCamera camera( CTlFactory::GetInstance().CreateFirstDevice());     cout << "Using device " << camera.GetDeviceInfo().GetModelName() << endl;     }     catch (const GenericException &e)         {             // Error handling.             cerr << "An exception occurred." << endl             << e.GetDescription() << endl;             //exitCode = 1;         } </Code> This is the response : An exception occurred. No device is available or no device contains the provided device info properties. Camera able to run on pylon viewer without any issue

Pixel report abuse

What is the interface type of your camera?

Pi report abuse

It is Dart USB

Add Answer

Need support?

Just drop us an email to ... Show more