[GEM-dev] building gem on windows using vc2010

IOhannes m zmölnig zmoelnig at iem.at
Fri Jul 15 10:02:48 CEST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/14/2011 09:37 PM, Menno van der Woude wrote:
> Hi all,
> 
> since I would like to build an altered version of pix_drum
> (http://www.jaimeoliver.pe/archives/731) I am trying to build Gem on
> Windows 7.

btw, the original version of [pix_drum] is included in Gem-SVN (but
there are not binaries yet)

> I am running Windows 7 ultimate x64, using MS Visual Studio 2010 C++
> Express to try and compile.

good luck.

> 
> So far I had been using Linux to develop pix_drum.
> I have succesfully built the object in Ubuntu 11.04 x64 (had to adjust
> some headers cause 11.04 does no longer come with V4L1 in the kernel)

this is fixed in Gem-trunk and the Gem/branch/0.92 (SVN), though it
hasn't made it into a release yet.

> In Linux I used ./configure and make to build Gem

which is the standard way to build Gem

>  (mostly cause I do
> not know how to do it using Codeblocks)

which i do neither.

> Is it normal for compilation on Windows to be really a lot more
> troublesome than in Linux?

yes.

> Or am I maybe just using the wrong ide/compiler for this?

well i'm still using vs2003 to compile Gem (once i do).
the setup to get it running on w32 process is so painful that i'm very
hesitant to change anything.

> 
> So far I have tried this:
> - downloaded sources: Gem, Pd, tiff, jpeg, ftgl, freetype

tiff/jpeg/ftgl/freetype should come in the GemLibs package (iirc)

> - changed some header filenames
> - installed quicktime sdk and windows sdk
> - built static libs (using both nmake and msvs2010c++)
> - converted win-vs2003 project from Gem source tar to vs2010c++
> - changed include and linker directories
> - removed from the project all files with DS in their name

i think it would have been enought to change the HAVE_DIRECTSHOW define
in Base/configWindows.h (or the project settings)

> (pix_DSvideo, DSgrabber, etc) cause they gave me errors I could not
> handle:
> 1>..\..\src\Pixes\DSgrabber.cpp(13): fatal error C1083: Cannot open
> include file: 'streams.h': No such file or directory

obviously you are missing some header files of the DirectX-SDK
(whereever that is included)

> 
> After removing them there remain a lot of warnings, which is fine,
> however I am stuck with this error:
> 1>LINK : fatal error LNK1104: cannot open file 'strmbasD.lib'
> 
> This all would appear to have something to do with the way DirectShow
> (and PlatformSDK?) is now embedded in the Windows SDK, however, I

you need to have "all of them" installed and i keep NOT tracking how
microsoft is changing their SDK packaging all over every year, so i
don't know how many GB of SDKs you need to download in 2011.


> cannot find details on this explaining me how to proceed...
> Any help is appreciated. Or if it's best I will return to using Ubuntu
> and install that on the system I wish to test...

this depends on what you want.
being a linux guy, i would say it's definitely "best" to use linux,
regardless of Gem or whatelse.
being a linux developer, i can only say that for me it is definitely way
more easy to setup a debian box from scratch than to get the w32
compilation running :-)

fgmadr
IOhannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk4f9CUACgkQkX2Xpv6ydvQ3kACgmILM6GePKogxN+uES2MeqXoW
tOoAoJzqbmpAEftOYIePJF9NV32z5tKw
=Q04K
-----END PGP SIGNATURE-----



More information about the GEM-dev mailing list