This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Can't compile LightCrafter SDK nor run the given executable

Other Parts Discussed in Thread: TIDA-00361

Hello,

I have a Lcr3000 and I'm trying to build the software as well as run the given executable.

My first problem is compiling the SDK, I followed the documentation and installed Qt, Flycapture, built opencv (all according to dlpu042.pdf), but when I try to build the SDK it fails at 74%

[ 73%] Built target DLP_SDK
[ 74%] Building CXX object CMakeFiles/returncode_example.dir/examples/returncodes_example.cpp.obj
[ 76%] Linking CXX executable bin\returncode_example.exe
C:/FlyCapture2/bin64/FlyCapture2.dll: file not recognized: File format not recognized
collect2.exe: error: ld returned 1 exit status
CMakeFiles\returncode_example.dir\build.make:108: recipe for target 'bin/returncode_example.exe' failed
mingw32-make[2]: *** [bin/returncode_example.exe] Error 1
CMakeFiles\Makefile2:104: recipe for target 'CMakeFiles/returncode_example.dir/all' failed
mingw32-make[1]: *** [CMakeFiles/returncode_example.dir/all] Error 2
Makefile:82: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

I guess this means that only the examples are left to build, but I'm not sure and I don't think I should be messing with the makefile without proper guidance.

Still .... I simply assumed that the SDK was already built and kept on going and tried to compile the application, but after compiling it gave me the same linking error I got when building the SDK. Any ideas what could be wrong? I tried uninstalling the FlyCapture SDK for 64 bits and installed the 32 bits one. I simply tried to recompile the SDK and it failed at the same point with the same error (Maybe I should rebuild everything in 32 bits?)

=================================================================================================================================================================

ALSO

When I try to run the executable, it gives an error 0xC0150002, which after a little bit of googling, I found out it was due to not having vc++ 2005 on my computer. So I installed vc++ 2005, 2008, 2010 and 2015 (redistributable) on my computer and it didn't work. I really have no idea as hot to procceed with this error.

  • Hi Pablo,

    Sorry that you're having trouble. A couple questions if you don't mind:

    * Do you need to use the SDK? Are you planning on modifying the code?
    * Which executable are you referring to which throws the error?

    If you don't need to compile the code and would prefer to use a binary, I would download the software from TIDA-00361. That should get you going with machine vision and be easier.

    -Paul
  • I'm trying to execute "LCr3000_3D_Scanner_Application_v2", which has an executable file called DLP_LightCrafter_3D_Scan_Application.exe

    This is supposed to work. I've seen it working on a windows 10 machine, but right now I'm trying to run it on a windows 7 machine and it just does not work. It throws the 0xC0150002 error. Which, after googling for a little bit, I learned that it's a problem that says that vc++ 2005 is not installed on this PC, so I downloaded and installed vc++ 2005, 2008, 2010 and 2015 redistributed on this PC and it still throws the same error.

    Also, I want to modify the application. I'd really like to see it working out of the box before I compile it, but it seems that the compilation methos would be quicker.

  • Hi Pablo,

    Can you attach a picture of the 0xC0150002 error? Before we get into diagnosing the compiling issue, I'd really like to see the executable run. Can you try uninstalling and reinstalling all the components for TIDA-00361 and see if the error persists?

    -Paul
  • I just fixed it and I really don't know how. I reinstalled every single vc++ I had, I recompiled opencv, I reinstalled FlyCapture2 dlls, and I did some other things that somehow got it running. It seems to be a quite unusual error, and when I tried to replicate on my windws 8.1 machine it worked perfectly out of the box. The thing is that the program wouldn't even execute, it simply died and unfortunatgely I don't have a sreenshot of th error, but I found one online. photobucket.com/.../

    I'm now in the process of recompiling the SDK and the application. I don't know if the error will repeat itself or if it will compile without any problems. If any error occurs you can be certain I'll come here again. Just give me a couple of hours, or maybe until monday
  • Hello Paul, and sorry to bother you again.

    I am able to compile the source code as it comes from TI, but I want todo a slight modification to the sources, I want to control some of the camera's properties by software. I saw that Qt comes with a version of dshow.h and I thought that probably using it would be ok, but apparently this is not working, it fails to find some definitions in dshow.h.

    I fixed those initial problem by manually adding "include intiguid.h" to Qt's source code and it fixed all but one of my problems.

    I am still unable to access "IID_IAMCameraControl" (undefined reference). I see a slight reference to it in strmif.h that also comes with Qt and is included by dshow.h. I am now in the process of installing Windows SDK and figure out a way to add it to the makefile (will this work? I'll probably removing the link to Qt's headers and point directly to the SDK). Do you have any other suggestions?
  • Hi Pablo,

    I think that ultimately your solution is going to be found in the FlyCapture SDK. Did you look through that code for the IID_IAMCameraControl reference?

    We have not done much modification to this code beyond writing the original application, so unfortunately I don't have any definitive advice for you.

    -Paul