Giter Club home page Giter Club logo

Comments (4)

vchelaru avatar vchelaru commented on May 28, 2024

For future readers (and maybe for someone who wants to fix the docs) I had to install MonoGame 3.7.

However, once I did, I had another problem:

""C:\Program Files (x86)\MSBuild\MonoGame\v3.0\Tools\MGCB.exe" /@:"C:\Users\Owner\Downloads\Temp\spine-runtimes-3.7\spine-runtimes-3.7\spine-monogame\example\Content\Content.mgcb" /platform:DesktopGL /quiet /outputDir:"bin\DesktopGL\Content" /intermediateDir:"obj\DesktopGL\Content"" exited with code 1.	spine-monogame-example			

Additional info from the error window:

2>  System.DllNotFoundException: Unable to load DLL 'libmojoshader_64.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
2>     at TwoMGFX.MojoShader.NativeMethods.MOJOSHADER_parse(String profile, Byte[] tokenbuf, Int32 bufsize, IntPtr swiz, Int32 swizcount, IntPtr smap, Int32 smapcount, IntPtr m, IntPtr f, IntPtr d)
2>     at TwoMGFX.ShaderData.CreateGLSL(Byte[] byteCode, Boolean isVertexShader, List`1 cbuffers, Int32 sharedIndex, Dictionary`2 samplerStates, Boolean debug)
2>     at TwoMGFX.OpenGLShaderProfile.CreateShader(ShaderResult shaderResult, String shaderFunction, String shaderProfile, Boolean isVertexShader, EffectObject effect, String& errorsAndWarnings)
2>     at TwoMGFX.EffectObject.CreateShader(ShaderResult shaderResult, String shaderFunction, String shaderProfile, Boolean isVertexShader, String& errorsAndWarnings)
2>     at TwoMGFX.EffectObject.CompileEffect(ShaderResult shaderResult, String& errorsAndWarnings)
2>     at Microsoft.Xna.Framework.Content.Pipeline.Processors.EffectProcessor.Process(EffectContent input, ContentProcessorContext context)
2>     at Microsoft.Xna.Framework.Content.Pipeline.ContentProcessor`2.Microsoft.Xna.Framework.Content.Pipeline.IContentProcessor.Process(Object input, ContentProcessorContext context)
2>     at MonoGame.Framework.Content.Pipeline.Builder.PipelineManager.ProcessContent(PipelineBuildEvent pipelineEvent)

from spine-runtimes.

vchelaru avatar vchelaru commented on May 28, 2024

One more down - need to install: https://www.microsoft.com/en-us/download/details.aspx?id=40784

I installed the x64 version.

With all of this, I was able to set the example project as my startup and it worked.

For anyone else looking to work with monogame, these extra steps are needed. Of course, I strongly suggest that someone in the Spine team take the time to upgrade the samples to MonoGame 3.8.1 (newest as of the time of this writing).

from spine-runtimes.

HaraldCsaszar avatar HaraldCsaszar commented on May 28, 2024

@vchelaru Sorry to hear you've encountered problems, thanks for sharing your insights. Please note that you are using Spine 3.7 while the current versions are 4.1 and 4.2-beta. Why are you using this appoximately 5 year old version when starting a new project?

Please note that neither the 3.7, 3.8 or 4.0 runtimes will receive any updates any longer, let alone breaking changes to make them compatible with e.g. newer MonoGame versions. In general it is not recommended to combine old no longer updated runtimes with the latest tools like Visual Studio 2022, as you will likely run into issues.

from spine-runtimes.

vchelaru avatar vchelaru commented on May 28, 2024

Thank you for the reply. I realize nowthat I was using 3.7 because I followed a link from Stack Overflow. I tried the main branch and all worked great.

from spine-runtimes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.