[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: building XNA games with MonoGame?



On 30/08/12 02:56, Paul Wise wrote:
Hi all,

[Please CC me on reply, I'm not subscribed]

I'm trying to build these two games on Debian sid:

GearToyGear: http://www.asahi-net.or.jp/~cs8k-cyu/xna/gtg/index_e.html
Mazer Mayhem: http://www.asahi-net.or.jp/~cs8k-cyu/xna/mm/index_e.html

Here is the source code:

http://abagames.sakura.ne.jp/xna/gtg/GearToyGear0_1.zip
http://abagames.sakura.ne.jp/xna/mm/Mm0_14.zip

Unfortunately the sln file cannot be opened in MonoDevelop and both
`xbuild` and `mdtool build` fail with various errors. I'm wondering if
these issues are because MonoGame doesn't implement enough XNA APIs or
some other reason that I'm missing?

Here are the errors:

pabs@chianamo ~/tmp/GearToyGear $ mdtool build
MonoDevelop Build Tool
Loading solution: /home/pabs/tmp/GearToyGear/GearToyGear.sln
    Loading solution: /home/pabs/tmp/GearToyGear/GearToyGear.sln
       Loading projects ..
          WARNING: Could not load project '/home/pabs/tmp/GearToyGear/GearToyGear/GearToyGear.csproj' with unknown item type
          '{6D335F3A-9D43-41b4-9D22-F6F17C4BE596};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}'
          WARNING: Could not load project '/home/pabs/tmp/GearToyGear/GearToyGear/Xbox 360 Copy of GearToyGear.csproj' with unknown item
          type '{6D335F3A-9D43-41b4-9D22-F6F17C4BE596};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}'

pabs@chianamo ~/tmp/GearToyGear $ xbuild
XBuild Engine Version 2.10.8.1
Mono, Version 2.10.8.1
Copyright (C) Marek Sieradzki 2005-2008, Novell 2008-2011.

Build started 8/29/2012 8:17:54 PM.
__________________________________________________
/home/pabs/tmp/GearToyGear/GearToyGear/GearToyGear.csproj:  warning : Could not find project file /usr/lib/mono/xbuild/Microsoft/XNA Game Studio/Microsoft.Xna.GameStudio.targets, to import. Ignoring.
/home/pabs/tmp/GearToyGear/GearToyGear/Xbox 360 Copy of GearToyGear.csproj:  warning : Could not find project file /usr/lib/mono/xbuild/Microsoft/XNA Game Studio/Microsoft.Xna.GameStudio.targets, to import. Ignoring.
/home/pabs/tmp/GearToyGear/GearToyGear.sln:  warning : Failed to find project 5ab70286-8e6f-4b74-93dd-8da34a10f53a
Project "/home/pabs/tmp/GearToyGear/GearToyGear.sln" (default target(s)):
	Target ValidateSolutionConfiguration:
		Building solution configuration "Debug|Mixed Platforms".
	Target Build:
		Project "/home/pabs/tmp/GearToyGear/GearToyGear/GearToyGear.csproj" (default target(s)):
			Target _ValidateEssentialProperties:
/home/pabs/tmp/GearToyGear/GearToyGear/GearToyGear.csproj:  warning : Could not find project file /usr/lib/mono/xbuild/Microsoft/XNA Game Studio/Microsoft.Xna.GameStudio.targets, to import. Ignoring.
			Target PrepareForBuild:
				Configuration: Debug Platform: x86
			Target ResolveAssemblyReferences:
/usr/lib/mono/3.5/Microsoft.Common.targets:  warning : Reference 'Microsoft.Xna.Framework, Version=3.1.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d' not resolved
				For searchpath {CandidateAssemblyFiles}
				Warning: {CandidateAssemblyFiles} not supported currently
				For searchpath {HintPathFromItem}
				HintPath attribute not found
				For searchpath {TargetFrameworkDirectory}
				Considered target framework dir /usr/lib/mono/3.5, assembly named 'Microsoft.Xna.Framework' not found.
				Considered target framework dir /usr/lib/mono/2.0, assembly named 'Microsoft.Xna.Framework' not found.
				Considered target framework dir /usr/lib/mono/2.0, assembly named 'Microsoft.Xna.Framework' not found.
				For searchpath {PkgConfig}
				Considered Microsoft.Xna.Framework, Version=3.1.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d, but could not find in any pkg-config files.
				For searchpath {GAC}
				Considered Microsoft.Xna.Framework, Version=3.1.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d, but could not find in the GAC.
				For searchpath {RawFileName}
				Considered '/home/pabs/tmp/GearToyGear/GearToyGear/Microsoft.Xna.Framework, Version=3.1.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d' as a file, but the file does not exist
				For searchpath bin/x86/Debug/
				Considered '/home/pabs/tmp/GearToyGear/GearToyGear/bin/x86/Debug/Microsoft.Xna.Framework' as a file, but the file does not exist
				Considered '/home/pabs/tmp/GearToyGear/GearToyGear/bin/x86/Debug/Microsoft.Xna.Framework.exe' as a file, but the file does not exist
				Considered '/home/pabs/tmp/GearToyGear/GearToyGear/bin/x86/Debug/Microsoft.Xna.Framework.dll' as a file, but the file does not exist
/usr/lib/mono/3.5/Microsoft.Common.targets:  warning : Reference 'Microsoft.Xna.Framework.Game, Version=3.1.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d' not resolved
				For searchpath {CandidateAssemblyFiles}
				Warning: {CandidateAssemblyFiles} not supported currently
				For searchpath {HintPathFromItem}
				HintPath attribute not found
				For searchpath {TargetFrameworkDirectory}
				Considered target framework dir /usr/lib/mono/3.5, assembly named 'Microsoft.Xna.Framework.Game' not found.
				Considered target framework dir /usr/lib/mono/2.0, assembly named 'Microsoft.Xna.Framework.Game' not found.
				Considered target framework dir /usr/lib/mono/2.0, assembly named 'Microsoft.Xna.Framework.Game' not found.
				For searchpath {PkgConfig}
				Considered Microsoft.Xna.Framework.Game, Version=3.1.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d, but could not find in any pkg-config files.
				For searchpath {GAC}
				Considered Microsoft.Xna.Framework.Game, Version=3.1.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d, but could not find in the GAC.
				For searchpath {RawFileName}
				Considered '/home/pabs/tmp/GearToyGear/GearToyGear/Microsoft.Xna.Framework.Game, Version=3.1.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d' as a file, but the file does not exist
				For searchpath bin/x86/Debug/
				Considered '/home/pabs/tmp/GearToyGear/GearToyGear/bin/x86/Debug/Microsoft.Xna.Framework.Game' as a file, but the file does not exist
				Considered '/home/pabs/tmp/GearToyGear/GearToyGear/bin/x86/Debug/Microsoft.Xna.Framework.Game.exe' as a file, but the file does not exist
				Considered '/home/pabs/tmp/GearToyGear/GearToyGear/bin/x86/Debug/Microsoft.Xna.Framework.Game.dll' as a file, but the file does not exist
			Target GenerateSatelliteAssemblies:
			No input files were specified for target GenerateSatelliteAssemblies, skipping.
			Target CoreCompile:
				Tool /usr/bin/gmcs execution started with arguments: /noconfig /debug:full /debug+ /optimize- /out:obj/x86/Debug/GearToyGear.exe GearToyGear/ActorPools.cs GearToyGear/Boot.cs GearToyGear/Bullet.cs GearToyGear/Enemy.cs GearToyGear/EnemyMotion.cs GearToyGear/Field.cs GearToyGear/Frame.cs GearToyGear/GameState.cs GearToyGear/HomingLaser.cs GearToyGear/Laser.cs GearToyGear/MiddleEnemy.cs GearToyGear/Particle.cs GearToyGear/Pillar.cs GearToyGear/Plate.cs GearToyGear/Player.cs GearToyGear/PlayerHomingLaser.cs GearToyGear/Shape.cs GearToyGear/Shot.cs GearToyGear/Stage.cs GearToyGear/Title.cs GearToyGear/Turret.cs Properties/AssemblyInfo.cs Util/Actor.cs Util/Frame.cs Util/Letter.cs Util/MainLoop.cs Util/MathUtil.cs Util/Pad.cs Util/Record.cs Util/Replay.cs Util/SectionStopwatch.cs Util/Shape.cs Util/Sound.cs Util/WritableVertexBuffer.cs /target:winexe /unsafe+ /define:"DEBUG;TRACE;WINDOWS" /nostdlib /platform:x86 /reference:/usr/lib/mono/2.0/mscorlib.dll /reference:/usr/lib/mono/2.0/System.dll /reference:/usr/lib/mono/2.0/System.Xml.dll /reference:/usr/lib/mono/2.0/System.Core.dll /reference:/usr/lib/mono/2.0/System.Xml.Linq.dll /warn:4
GearToyGear/Bullet.cs(8,17): error CS0234: The type or namespace name `Xna' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?
GearToyGear/Bullet.cs(9,17): error CS0234: The type or namespace name `Xna' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?
GearToyGear/Enemy.cs(8,17): error CS0234: The type or namespace name `Xna' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?
GearToyGear/Enemy.cs(9,17): error CS0234: The type or namespace name `Xna' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?
....

Packaged MG targets too old an XNA ver for these games. Next stable release is when Win8 ships. Also, forcing a .NET 4.0 build is needed



Reply to: