After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 583873 - Build fixes for Windows
Build fixes for Windows
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-sharp
git master
Other All
: Normal normal
: 0.9.x
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-05-26 10:45 UTC by Maarten Bosmans
Modified: 2009-09-11 08:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix some DllImport issues (3.59 KB, patch)
2009-05-26 10:50 UTC, Maarten Bosmans
committed Details | Review
Add .pdb to CLEANFILES and .gitignore (1.43 KB, patch)
2009-05-26 10:52 UTC, Maarten Bosmans
committed Details | Review
Final build fixes for Windows (3.34 KB, patch)
2009-05-26 10:59 UTC, Maarten Bosmans
committed Details | Review

Description Maarten Bosmans 2009-05-26 10:45:11 UTC
Please describe the problem:
Gstreamer-sharp currently does not build correctly on Windows.

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Maarten Bosmans 2009-05-26 10:50:42 UTC
Created attachment 135375 [details] [review]
Fix some DllImport issues

Change libgobject-2.0.dll -> libgobject-2.0-0.dll

This the last DllImport fix needed to be applied.
The output of
  grep -oh 'DllImport.*(.*)' -r gstreamer-sharp | sort | uniq -c
now looks sane, i.e. no more near duplicates of dll names.
Comment 2 Maarten Bosmans 2009-05-26 10:52:06 UTC
Created attachment 135376 [details] [review]
Add .pdb to CLEANFILES and .gitignore

.pdb is the debug extension for csc.exe, like .mdb for Mono mcs
Comment 3 Maarten Bosmans 2009-05-26 10:59:11 UTC
Created attachment 135377 [details] [review]
Final build fixes for Windows

This is the final patch, with these three patches gstreamer-sharp builds perfectly on Windows using MSys/mingw and either .Net csc.exe or Mono gmcs.

The -option style arguments are understood by both compilers.

samples/gtk-video-player can't be build using MS csc.exe, because -pkg: is a Mono extension. The sample uses a X11 P/Invoke anyway, so disabling it on Windows is a good idea. The patch uses an Automake conditional to disable the sample program when not using mono.

The patch also uses the same conditional to convert path/file.cs to path\file.cs, because the former is not understood by csc.exe. This is much like it is already done in Makefile.am for generated/*.cs.
Comment 4 Sebastian Dröge (slomo) 2009-05-26 13:37:03 UTC
commit febcfd772c169484d606e57e83815ea2179866fe
Author: Maarten Bosmans <mkbosmans@gmail.com>
Date:   Tue May 26 15:35:00 2009 +0200

    Fix build on Windows
    
     - use -option instead of /option
     - use path\file.cs for csc.exe and path/file.cs for mcs
     - don't build samples/gtk-video-player when using csc.exe

commit 35198f1773de85e1e19a955752bd1b95d70913db
Author: Maarten Bosmans <mkbosmans@gmail.com>
Date:   Tue May 26 15:34:31 2009 +0200

    Add .pdb to cleanfiles and gitignore

commit 4110118d7b92c04144c68ff9137a5cd374554405
Author: Maarten Bosmans <mkbosmans@gmail.com>
Date:   Tue May 26 15:34:02 2009 +0200

    Some more DllImport fixes