Giter Site home page Giter Site logo

Comments (2)

natsoragge avatar natsoragge commented on May 27, 2024 1

Thanks for the answer! I was able to get rid of the errors by using the '-s ERROR_ON_UNDEFINED_SYMBOLS=0' argument. For those who might have the same problem:

  • Go to ProjectSettings folder and open ProjectSettings.asset
  • Search for webGLEmscriptenArgs
  • Add the argument in front of it, like webGLEmscriptenArgs: -s ERROR_ON_UNDEFINED_SYMBOLS=0

That solved the issue for me.
Creating the ghost WebGL plugin would probably also work, but in my case this solution fitted better.

from mapssdk-unity.

kircher1 avatar kircher1 commented on May 27, 2024

I can offer a quick workaround, which will stub out those functions in the WebGL build so that the build will not fail.

  • First locate this MicrosoftGeospatialDecompressionStubs.cpp file in the package:
    image
  • Copy that file into your project, under a folder like 'WebGL'.
  • After you copy the file, restrict it's platform to WebGL:
    image

Now the WebGL build should work.

Note however, there will be unnecessary compilation and size overhead in the build output due to the maps code. Also, this does not make the map functional in webgl, so if the map code is being called it could lead to errors.

A better approach to ensure the map code is not compiling into the WebGL build output could be to put the map-related objects into a separate scene, and then exclude that scene for the WebGL build... At least, that's one idea. There may be better ways to go about that, but the gist is to make sure that the maps code is not being referenced by a scene when building WebGL.

from mapssdk-unity.

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.