#18 MS Windows support

closed-out-of-date
None
7
2012-01-30
2007-05-30
Vladimir Avdonin
No

The archive contains patch against svn and new files to use the library on ms windows.

The patch changes configure in to add msw configuration. It also change function prototypes to add declarations required to build windows dll. These changes do not affect build process, as tested on linux.

In addition the Makfile.am's are slightly modified to allow building outside the source tree, which allows building for different platforms in separate directories from the same set of source files.

The msw directory should be places alongside othes platform directories in dc1394 folder.

See README-MSW in archive for build instructions.

Discussion

  • Logged In: YES
    user_id=225948
    Originator: YES

    This version allows using the library with MS development tools. The library itself still has to be built with gnu tools.

    Changes involve removing #include's from public headers - many of these included headers are gnu/unix specific and are not available with ms tools. Also added new function dc1394_free in order to release memory block returned by dc1394_find_cameras in a portable code (memory management functions from MS are incompatible with those from gnu libraries).
    File Added: msw.patch.zip

     
  • MSW support - patch and new files

     
    Attachments
  • Logged In: YES
    user_id=130585
    Originator: NO

    Wow! I missed this patch completely...

    This sounds great, but I can't test it (no ms machine) so I will contact the list for betatesters... Stay tuned.

     
    • priority: 5 --> 7
     
  • Samuel Vinson
    Samuel Vinson
    2007-07-25

    Logged In: YES
    user_id=701090
    Originator: NO

    I test this patch with winddk 3790.1830 on windows xp sp2. I use guppy f033c and library works.
    But I have a problem when I quit my program (grab_color_gray). This doesn't respond. When I kill it (with ctrl+C), program stays in task manager. I must call explicitly dc1394_reset_bus to be able to re-run program.

    Do you have an idea to correct this problem ?

     
  • Logged In: YES
    user_id=225948
    Originator: YES

    Both grab_color_image and grab_gray_image work for me on windows xp sp2, winddk 2600.1106, fire-i camera, see outputs below.

    $ ./grab_color_image

    working with the first camera on the bus

    wrote: image.ppm (921600 image bytes)

    vladimir@small /d/Prog/Firewire/libdc1394/build-d/examples

    $ ./grab_gray_image

    working with the first camera on the bus

    ------ Features report ------

    OP - one push capable

    RC - readout capable

    O/OC - on/off capable

    AC - auto capable

    MC - manual capable

    ABS - absolute capable

    -----------------------------

    Brightness:

    RC AC MC

    AUTO min: 128 max 383

    current value is: 304

    Exposure:

    RC AC MC

    AUTO min: 0 max 511

    current value is: 511

    Sharpness:

    RC MC

    MANUAL min: 0 max 255

    current value is: 80

    White Balance:

    RC AC MC

    AUTO min: 0 max 255

    B/U value: 95 R/V value: 87

    Hue:

    NOT AVAILABLE

    Saturation:

    RC MC

    MANUAL min: 0 max 255

    current value is: 90

    Gamma:

    RC MC

    MANUAL min: 0 max 1

    current value is: 1

    Shutter:

    RC MC

    MANUAL min: 0 max 7

    current value is: 6

    Gain:

    RC MC

    MANUAL min: 0 max 255

    current value is: 87

    Iris:

    NOT AVAILABLE

    Focus:

    NOT AVAILABLE

    Temperature:

    NOT AVAILABLE

    Trigger:

    NOT AVAILABLE

    Trigger Delay:

    NOT AVAILABLE

    White Shading:

    NOT AVAILABLE

    Frame Rate:

    NOT AVAILABLE

    Zoom:

    NOT AVAILABLE

    Pan:

    NOT AVAILABLE

    Tilt:

    NOT AVAILABLE

    Optical Filter:

    NOT AVAILABLE

    Capture Size:

    NOT AVAILABLE

    Capture Quality:

    NOT AVAILABLE

    wrote: image.pgm

    Setting capture

    start transmission

    wait transmission

    capture

    stop transmission

     
  • Samuel Vinson
    Samuel Vinson
    2007-07-26

    Logged In: YES
    user_id=701090
    Originator: NO

    Thanks for your answer.
    Is the stop of the transmission instantaneous? or is it necessary to wait several seconds or minutes? Because if I wait several minutes or screensaver, stop of the transmission works finally.

    Do you think that the version of the DDK can be important? Could you send your compiled driver 1394? and not compiled to compare the sources?
    Do you use the version libdc1394 rc 7?

    Samuel

     
  • Logged In: YES
    user_id=130585
    Originator: NO

    If possible, please continue this discussion on the libdc mailing list. you will get many more eyeballs looking at the issue there...

     
  • Logged In: YES
    user_id=225948
    Originator: YES

    This version of patch is updated to svn head. Also get read off DC1384_DLL_SYMBOL prefix.
    File Added: msw.patch.zip

     
  •  
    Attachments
    • status: open --> pending
     
    • status: pending --> closed
     
    • assigned_to: nobody --> ddouxchamps
    • status: closed --> closed-out-of-date
     
  • New version of windows support is available in the git repo (windows branch)