reinterpretcat / utymap

Highly customizable library for procedural world generation based on real map data
Apache License 2.0
958 stars 151 forks source link

Unable to run the demo #125

Closed YoucefSklab closed 5 years ago

YoucefSklab commented 5 years ago

Hi, I am highly interested in your project and would like to see how it works. However, when I follow your steps to run the demo, I got this error:

[Error] Fatal:Cannot setup object graph.. Exception: System.InvalidOperationException: Unable to resolve type 'UtyMap.Unity.Data.IMapDataStore', name '' ---> System.DllNotFoundException: UtyMap.Shared at (wrapper managed-to-native) Assets.Scripts.Core.Interop.MapDataLibrary:connect (string,Assets.Scripts.Core.Interop.MapDataLibrary/OnError) at Assets.Scripts.Core.Interop.MapDataLibrary.Configure (System.String indexPath) [0x0007e] in /Users/sklab/Documents/Job Tools/utymap/unity/demo/Assets/Scripts/Core/Interop/MapDataLibrary.Common.cs:52 at UtyMap.Unity.Data.MapDataStore.Configure (IConfigSection configSection) [0x00017] in /Users/sklab/Documents/Job Tools/utymap/unity/demo/Assets/Scripts/library/UtyMap.Unity/Data/MapDataStore.cs:166 at UtyDepend.Lifetime.SingletonLifetimeManager.GetInstance (System.String name) [0x00000] in :0 at UtyDepend.Lifetime.SingletonLifetimeManager.GetInstance () [0x00000] in :0 at UtyDepend.Container.Resolve (System.Type type, System.String name) [0x00000] in :0 --- End of inner exception stack trace --- at UtyDepend.Container.Resolve (System.Type type, System.String name) [0x00000] in :0 at UtyDepend.Container.Resolve (System.Type type) [0x00000] in :0 at UtyDepend.Container.Resolve[IMapDataStore] () [0x00000] in :0 at UtyMap.Unity.CompositionRoot.GetService[IMapDataStore] () [0x00007] in /Users/sklab/Documents/Job Tools/utymap/unity/demo/Assets/Scripts/library/UtyMap.Unity/CompositionRoot.cs:85 at Assets.Scripts.Core.InitTask.BuildCompositionRoot (System.Action2 action, ITrace trace) [0x0004a] in /Users/sklab/Documents/Job Tools/utymap/unity/demo/Assets/Scripts/Core/InitTask.cs:74 at Assets.Scripts.Core.InitTask.Run (System.Action2 action) [0x00048] in /Users/sklab/Documents/Job Tools/utymap/unity/demo/Assets/Scripts/Core/InitTask.cs:41 UnityEngine.Debug:LogError(Object) Assets.Scripts.Core.Plugins.UnityLogTrace:OnWriteRecord(TraceLevel, String, String, Exception) (at Assets/Scripts/Core/Plugins/UnityLogTrace.cs:13) UtyMap.Unity.Infrastructure.Diagnostic.DefaultTrace:WriteRecord(TraceLevel, String, String, Exception) (at Assets/Scripts/library/UtyMap.Unity/Infrastructure/Diagnostic/DefaultTrace.cs:105) UtyMap.Unity.Infrastructure.Diagnostic.DefaultTrace:Error(String, Exception, String) (at Assets/Scripts/library/UtyMap.Unity/Infrastructure/Diagnostic/DefaultTrace.cs:85) Assets.Scripts.Core.InitTask:Run(Action`2) (at Assets/Scripts/Core/InitTask.cs:47) Assets.Scripts.Scenes.Elevation.ElevationBehavior:Start() (at Assets/Scripts/Scenes/Elevation/ElevationBehavior.cs:24)

Could you please help me with this issue?

reinterpretcat commented 5 years ago

Hi,

From stack trace it looks like there is a problem with native library: 64 bit)

System.DllNotFoundException: UtyMap.Shared

You need to check whether library is copied to plugins folder and/or it has correct architecture (e.g. 32/

YoucefSklab commented 5 years ago

Hi, I am using a Mac (64 bit) machine. It seems that I have to build the UtyMap.Shared library manually. could you please tell me how to do it? I want to use it in a unity editor.

reinterpretcat commented 5 years ago

You can find instructions here: https://github.com/reinterpretcat/utymap/blob/master/docs/build.md#build-on-mac