eokeeffe / ptamm-plus

Refactored code for ptamm
Other
12 stars 4 forks source link

make error #1

Open lz199144 opened 9 years ago

lz199144 commented 9 years ago

''' In file included from /home/lz/ptamm-plus/apps/calibration/camera_calibrator.cc:7:0: /home/lz/ptamm-plus/apps/calibration/camera_calibrator.h:23:3: error: ‘i3d’ does not name a type i3d::VideoCaptureDispatchi3d::CameraFamily::PGR_FIREFLY_MV* mVideoSource; ^ /home/lz/ptamm-plus/apps/calibration/camera_calibrator.cc:11:17: error: ‘i3d’ is not a namespace-name using namespace i3d; ^ /home/lz/ptamm-plus/apps/calibration/camera_calibrator.cc:11:20: error: expected namespace-name before ‘;’ token using namespace i3d; ^ /home/lz/ptamm-plus/apps/calibration/cameracalibrator.cc: In function ‘int main(int, char*)’: /home/lz/ptamm-plus/apps/calibration/camera_calibrator.cc:23:3: error: ‘VideoCaptureDispatch’ was not declared in this scope VideoCaptureDispatchCameraFamily::PGR_FIREFLY_MV videodispatch; ^ /home/lz/ptamm-plus/apps/calibration/camera_calibrator.cc:23:24: error: ‘CameraFamily’ has not been declared VideoCaptureDispatchCameraFamily::PGR_FIREFLY_MV videodispatch; ^ /home/lz/ptamm-plus/apps/calibration/camera_calibrator.cc:23:54: error: ‘videodispatch’ was not declared in this scope VideoCaptureDispatchCameraFamily::PGR_FIREFLY_MV videodispatch; ^ /home/lz/ptamm-plus/apps/calibration/camera_calibrator.cc:43:7: error: ‘class ptam::CameraCalibrator’ has no member named ‘mVideoSource’ c.mVideoSource = &videodispatch; ^ /home/lz/ptamm-plus/apps/calibration/camera_calibrator.cc: In member function ‘void ptam::CameraCalibrator::Run()’: /home/lz/ptamm-plus/apps/calibration/camera_calibrator.cc:97:17: error: ‘mVideoSource’ was not declared in this scope rgbframe = mVideoSource->grabFrame(); ^ make[2]: ** [apps/calibration/CMakeFiles/calibrator.dir/camera_calibrator.cc.o] Error 1 make[1]: * [apps/calibration/CMakeFiles/calibrator.dir/all] Error 2 make: * [all] Error 2

''' What's wrong?

eokeeffe commented 9 years ago

You need to have the firefly camera header file for that to compile On 17 Aug 2015 8:09 am, "jasonlz" notifications@github.com wrote:

''' In file included from /home/lz/ptamm-plus/apps/calibration/camera_calibrator.cc:7:0: /home/lz/ptamm-plus/apps/calibration/camera_calibrator.h:23:3: error: ‘i3d’ does not name a type i3d::VideoCaptureDispatchi3d::CameraFamily::PGR_FIREFLY_MV* mVideoSource; ^ /home/lz/ptamm-plus/apps/calibration/camera_calibrator.cc:11:17: error: ‘i3d’ is not a namespace-name using namespace i3d; ^ /home/lz/ptamm-plus/apps/calibration/camera_calibrator.cc:11:20: error: expected namespace-name before ‘;’ token using namespace i3d; ^ /home/lz/ptamm-plus/apps/calibration/camera_calibrator.cc: In function ‘int main(int, char*

_)’: /home/lz/ptamm-plus/apps/calibration/camera_calibrator.cc:23:3: error: ‘VideoCaptureDispatch’ was not declared in this scope VideoCaptureDispatchCameraFamily::PGR_FIREFLY_MV videodispatch; ^ /home/lz/ptamm-plus/apps/calibration/camera_calibrator.cc:23:24: error: ‘CameraFamily’ has not been declared VideoCaptureDispatchCameraFamily::PGR_FIREFLY_MV videodispatch; ^ /home/lz/ptamm-plus/apps/calibration/camera_calibrator.cc:23:54: error: ‘videodispatch’ was not declared in this scope VideoCaptureDispatchCameraFamily::PGR_FIREFLY_MV videodispatch; ^ /home/lz/ptamm-plus/apps/calibration/camera_calibrator.cc:43:7: error: ‘class ptam::CameraCalibrator’ has no member named ‘mVideoSource’ c.mVideoSource = &videodispatch; ^ /home/lz/ptamm-plus/apps/calibration/camera_calibrator.cc: In member function ‘void ptam::CameraCalibrator::Run()’: /home/lz/ptamm-plus/apps/calibration/camera_calibrator.cc:97:17: error: ‘mVideoSource’ was not declared in this scope rgbframe = mVideoSource->grabFrame(); ^ make[2]: ** [apps/calibration/CMakeFiles/calibrator.dir/camera_calibrator.cc.o] Error 1 make[1]: * [apps/calibration/CMakeFiles/calibrator.dir/all] Error 2 make: * [all] Error 2

''' What's wrong?

— Reply to this email directly or view it on GitHub https://github.com/eokeeffe/ptamm-plus/issues/1.

lz199144 commented 9 years ago

Thank you. So where can find the file?

eokeeffe commented 9 years ago

You can download the sdk at http://www.ptgrey.com/flycapture-sdk

Or you can just turn off compilation for that package in the cmakelists.txt file On 17 Aug 2015 9:58 am, "jasonlz" notifications@github.com wrote:

Thank you. So where can find the file?

— Reply to this email directly or view it on GitHub https://github.com/eokeeffe/ptamm-plus/issues/1#issuecomment-131736175.

lz199144 commented 9 years ago

I found the ICG3D library in CMakeList and namespace i3d in the source code, does these are included in flycapture-sdk?? I can't find any information about these things.