| 1 |
Installation instructions for the Windows platform |
| 2 |
--------------------------------------------------- |
| 3 |
(Note: this could go in the main INSTALL file) |
| 4 |
|
| 5 |
The instructions are rather long; they detail what I had to go through |
| 6 |
install libdc1394. It's not very difficult though. If you have |
| 7 |
problems or comments about these instructions, please contact the |
| 8 |
mailing list [email protected]. The mailing list is |
| 9 |
private, but you can send messages even if you are not a member; you |
| 10 |
will just have to wait for moderation on your first message. |
| 11 |
|
| 12 |
|
| 13 |
0. Unplug all 1394 cameras on your system. |
| 14 |
|
| 15 |
Windows tries to be smart but more often than not it isn't. Don't give |
| 16 |
it something to chew on ;) |
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
1. Install MinGW and Msys |
| 21 |
|
| 22 |
Use the project's installer to install both MinGW and Msys |
| 23 |
http://sourceforge.net/projects/mingw/files/Installer/mingw-get/ |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
2. CMU driver installation |
| 28 |
|
| 29 |
This windows version of libdc1394 uses the CMU 1394 driver at its |
| 30 |
core. For this reason you should first download and install this |
| 31 |
driver. |
| 32 |
|
| 33 |
** Attention: if you have a Point Grey driver installed on your |
| 34 |
computer (FlyCapture,...), you should first remove it |
| 35 |
thouroughly. Verify after its removal that the camera is not |
| 36 |
recognized as a Point Grey camera anymore, but as an "Imaging |
| 37 |
Device" (in the device manager). Any attempt to use the CMU driver |
| 38 |
and/or libdc1394 will fail if Windows is still complaining about |
| 39 |
the missing "pgrcam.sys" file, among others. Verify that no file in |
| 40 |
windows/inf/ refers to pgrcam.sys and check the following |
| 41 |
directories for PGR files: /Windows/System32/drivers, |
| 42 |
/Windows/System32/DRVSTORE and /Windows/System32/ReinstallBackups. |
| 43 |
Editing the registry may be necessary too (augh!). |
| 44 |
|
| 45 |
Get the CMU driver at http://www.cs.cmu.edu/~iwan/1394/ |
| 46 |
We recommend you use the installer "1394camera646-unsigned.exe", as |
| 47 |
this is the version on which this library is based. |
| 48 |
|
| 49 |
After the installer has run, you may need to tell Windows to use the |
| 50 |
CMU driver. Plug a camera, verify that the CMU demo app sees it and |
| 51 |
that you can get a live feed. If not, go to the hardware manager and |
| 52 |
check the driver status of your camera. If drivers are not attached to |
| 53 |
it, you must use the "have disk" option and point Windows to the |
| 54 |
location of the INF file, normally c:\Program Files\CMU\1394Camera |
| 55 |
\Driver. Don't let Windows look for drivers on its own. After you have |
| 56 |
confirmed that the drivers used by the camera are the CMU drivers, |
| 57 |
re-test using the CMU demo app. |
| 58 |
|
| 59 |
Note 1: in the CMU demo app, you need to reset the camera before you |
| 60 |
can control it. |
| 61 |
Note 2: the CMU app sometimes fails to start a Format_7 stream. I |
| 62 |
recommend that you start by selecting a standard video mode |
| 63 |
(e.g. 640x480 MONO) |
| 64 |
Note 3: on 64bit systems, the CMU driver is installed in c:\Program |
| 65 |
Files (x86)\CMU\1394Camera\Driver (note the extra "(x86)") |
| 66 |
|
| 67 |
Once the CMU stuff is working fine, run the Msys shell and copy the |
| 68 |
library files and headers to your mingw system: |
| 69 |
|
| 70 |
cp /Program\ Files/CMU/1394Camera/lib/1394camera.lib /mingw/lib/lib1394camera.a |
| 71 |
cp /Program\ Files/CMU/1394Camera/include/1394camapi.h /mingw/include/ |
| 72 |
cp /Program\ Files/CMU/1394Camera/include/1394common.h /mingw/include/ |
| 73 |
|
| 74 |
Tip 1: Use slashes ("/") when working in Msys, not backslashes ("\") |
| 75 |
Tip 2: Installation should be done in the /mingw directory, NOT the |
| 76 |
msys directory. |
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
3. SDL installation (optional) |
| 81 |
|
| 82 |
A new example program is being used to test the windows platform: |
| 83 |
dc1394_iso. This program requires SDL, so if you want to compile it |
| 84 |
you should install SDL first. |
| 85 |
|
| 86 |
Get SDL at http://www.libsdl.org/release/SDL-1.2.14.tar.gz |
| 87 |
Don't use 1.2.15, the files are buggy (this may have been fixed |
| 88 |
recently). Put the tarball in your Msys home, usually something like |
| 89 |
c:/mingw/msys/1.0/home/<username>/ |
| 90 |
|
| 91 |
tar -xvzf SDL-1.2.14.tar.gz |
| 92 |
cd SDL-1.2.14 |
| 93 |
./configure --prefix=/mingw/ |
| 94 |
make |
| 95 |
make install |
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
4. libdc1394 (at last!) |
| 100 |
|
| 101 |
If you reed this, you already have the tarball or GIT snapshot. Put it |
| 102 |
alongside the SDL library in your Msys home directory (see above), and |
| 103 |
again: |
| 104 |
|
| 105 |
tar -xvzf libdc1394.tar.gz |
| 106 |
cd libdc1394 |
| 107 |
./configure --prefix=/mingw/ |
| 108 |
make |
| 109 |
make install |
| 110 |
|
| 111 |
To test the library, run dc1394_iso.exe. If your camera does not |
| 112 |
support the modes hardcoded in that example, you may need to adjust |
| 113 |
some #define statements in dc1394_iso.c |
| 114 |
|
| 115 |
Note: when using Msys, stderr is not dumped on the terminal but in a |
| 116 |
file. If you run the example from the directory of its location, the |
| 117 |
output file should be ./.libs/stderr.txt |
| 118 |
|
| 119 |
If you get a nice live video, congratulations! If not, please contact |
| 120 |
the mailing list ([email protected]). |
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
Damien & Satofumi |
| 125 |
|