GNOME Bugzilla – Bug 583873
Build fixes for Windows
Last modified: 2009-09-11 08:50:07 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:
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.
Created attachment 135376 [details] [review] Add .pdb to CLEANFILES and .gitignore .pdb is the debug extension for csc.exe, like .mdb for Mono mcs
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.
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