Add DC1394 support on Windows (Patch #1967)
Description
With very few modifications on what is done for Linux, it is possible to add dc1394 firewire support on Windows.
That's what the attached patch is doing.
Note: It has been succcessfully tested on Windows XP SP3 32 bits using mingw32 and a Marlin F-146B camera (from Allied Vision Technologies).
opencv_version -b :
General configuration for OpenCV 2.4.0 =====================================
Platform:
Host: Windows 5.1 x86
CMake: 2.8.5
CMake generator: MinGW Makefiles
CMake build tool: C:/MinGW32/bin/mingw32-make.exe
Configuration: ReleaseC/C++:
Built as dynamic libs?: NO
C++ Compiler: C:/MinGW32/bin/mingw32-g++.exe (ver 4.6.2)
C++ flags (Release): -fPIC -mstackrealign -Wall -march=i686 -fomit-frame-pointer -msse -msse2 -mfpmath=sse -ffunction-sections -O2 -DNDEBUG -DNDEBUG
C++ flags (Debug): -fPIC -mstackrealign -Wall -march=i686 -fomit-frame-pointer -msse -msse2 -mfpmath=sse -ffunction-sections -g -O0 -DDEBUG -D_DEBUG -ggdb3
C Compiler: C:/MinGW32/bin/mingw32-gcc.exe
C flags (Release): -fPIC -mstackrealign -Wall -march=i686 -fomit-frame-pointer -msse -msse2 -mfpmath=sse -ffunction-sections -O2 -DNDEBUG -DNDEBUG
C flags (Debug): -fPIC -mstackrealign -Wall -march=i686 -fomit-frame-pointer -msse -msse2 -mfpmath=sse -ffunction-sections -g -O0 -DDEBUG -D_DEBUG -ggdb3
Linker flags (Release):
Linker flags (Debug):OpenCV modules:
To be built: calib3d contrib core features2d flann gpu highgui imgproc legacy ml nonfree objdetect photo stitching ts video videostab
Disabled: world
Disabled by dependency: -
Unavailable: androidcamera java pythonGUI:
QT 4.x: NO
Win32 UI: YES
OpenGL support: NOMedia I/O:
ZLib: build (ver 1.2.6)
JPEG: build (ver 62)
PNG: build (ver 1.5.9)
TIFF: build (ver 42)
JPEG 2000: build (ver 1.900.1)
OpenEXR: NOVideo I/O:
DC1394 1.x: NO
DC1394 2.x: YES (ver 2.2.0)
FFMPEG: YES (prebuilt binaries)
codec: YES (ver 53.61.100)
format: YES (ver 53.32.100)
util: YES (ver 51.35.100)
swscale: YES (ver 2.1.100)
gentoo-style: YES
OpenNI: NO
OpenNI PrimeSensor Modules: NO
PvAPI: NO
DirectShow: YES
XIMEA: NOOther third-party libraries:
Use IPP: NO
Use TBB: NO
Use Cuda: NO
Use Eigen: NO
Use Clp: NOPython:
Interpreter: NODocumentation:
Build Documentation: NO
Sphinx: NO
PdfLaTeX compiler: NOTests and samples:
Tests: YES
Performance tests: YES
Examples: YESInstall path: D:/CAMISOLE/workspace_camisole/libraries/opencv/opencv_build/install
cvconfig.h is in: D:/CAMISOLE/workspace_camisole/libraries/opencv/opencv_build
-----------------------------------------------------------------
Associated revisions
Merge pull request #1967 from ilya-lavrenov:tapi_blendLinear
History
Updated by Andrey Kamaev almost 13 years ago
- Target version set to 2.4.2
- Category changed from highgui-images to build/install
- Assignee changed from Alexander Reshetnikov to Andrey Kamaev
Updated by Himanshu Madhu almost 13 years ago
Thanks for the patch.
But i am having difficulty in installing libdc1394(ver2.2.0) on windows using mingw-msys (as suggested by dc1394 readme file). Can you help me how to install libdc1394 on windows?
Thanks
-himanshu
Updated by Philippe FOUBERT almost 13 years ago
I used the same same version of libdc1394 as you without any particular problem.
To be able to compile libdc1394, you first have to compile cmu1394. Did you did it?
You can find hereafter the scripts i wrote to build the 2 libraries.
Regards,
Philippe.
- File install_dc1394.sh added
- File install_cmu1394.sh added
Updated by Himanshu Madhu almost 13 years ago
Philippe,
I think i must have not compiled CMU1394. Will run it again. Thanks for the files you uploaded.
I will run it and let you know whether it worked.
Thanks and regards
Himanshu
Updated by Himanshu Madhu over 12 years ago
Philippe,
I downloaded '1394camera646-unsigned.exe' and when i run the build script you attached, it fails as it's not able to find the 'PROD' folder or the makefile. Can you please guide me on this?
Thanks and regards
Himanshu
Updated by Philippe FOUBERT over 12 years ago
Hi Himanshu,
Sorry, I should have been more carefull in my post. You don't really need to use this 'install_cmu1394.sh' script which is using a quite complicated makefile with many dependencies (it is a makefile - locatred in the 'PROD' folder - that I am using in several of my current projects). Adapting this makefile to your needs is not necessary and would be time consumming.
The only thing you have to do is to compile this CMU1394 library with the compiler you are using for OpenCV
Since this library is providing C++ classes, it is necessary to avoid mangling problems (at least, since i am using MinGW and not MSCV, it was necessary for me).
Philippe.
Updated by Himanshu Madhu over 12 years ago
Philippe,
I installed the CMU library on my Windows machine (C:\Program Files\CMU\1394Camera). This path has the include folder and the lib folder which has the library file: 1394camera.lib, but the CmakeLists patch looks for "libcmu1394.a". This mismatch creates the CMAKE build not to include CMU lib.
Also, i have problems installing libdc1394 on my machine. It doesn't match the CMakelists patch.
Thanks and regards,
Himanshu
Updated by Andrey Kamaev over 12 years ago
- Target version deleted (
2.4.2)
Updated by Andrey Kamaev over 12 years ago
- Assignee deleted (
Andrey Kamaev)
Updated by Vladislav Vinogradov over 11 years ago
Pull request based on this patch was merged into 2.4 branch.
So I think we can close the ticket. If there are some problems with this patch, we can create new tickets.
- Status changed from Open to Done
- Pull request set to https://github.com/Itseez/opencv/pull/929
- Affected version set to branch '2.4'
- Target version set to 2.4.6