Open Holiflot opened 1 month ago
If you want to compile osgearth on WASM, at present you have to checkout a modified version (based on 2.10.1) at https://gitee.com/xarray/osgearth-wasm
Place the osgearth-wasm folder besides osgverse and OpenSceneGraph. and Setup.sh will automatically find and compile them in a sequence.
The video could be viewed at: https://www.bilibili.com/video/BV14b41197DL?p=12&vd_source=50f19e3b2f9e3022c448a050d10c34e4
Hi again. I've been trying for a while, but I installed using the 3rd option, but I couldn't install osgear. In the 3rd option, opencenegarph is a self-build review, but as far as I understand, I need to build osgearth-wasm myself beforehand. Because of this, I got a particularly good error when installing the gdal library. To install Gdal, I compiled all the libraries with emscipten. I got a pthread error in Sqlite3. I cannot edit because I cannot run cmake gui on Windows. Could you share with me the terminal commands in WSL that I use when installing the libraries?
I use this to compile all the dependencies for osgeath-wasm. https://github.com/bugra9/gdal3.js
It works fine for me on WSL.
Thanks for every response. I install every library in gdal3.js yesterday then I get this error : wasm-ld: error: /home/agena/gdal3.js/build/native/usr/lib/libgdal.a(ogr_xerces.cpp.o): undefined symbol: xercesc_4_0::XMLPlatformUtils::fgMemoryManager. ogr_xerces.cpp file want to xerces_4 lib I guess. How can I handle it ?
When did this error happen? When you were building dependencies like gdal, or when you were building the EarthWASM examples in osgverse?
I preferred compiling libraries with the scripts provided by gdal3.js and didn't see that error. If this happened in the osgverse building process, I would guess that you were using a precompiled version which requires xerces (but not included in my cmake script). I will check this later.
I want to compile the .earth file using osgverse. I couldn't manage to set it up as the fourth option seems to be new in the setup.sh file. Could you assist me with this? I saw that you gave a seminar on this topic online. It seems like you did a live setup there. If there's a link to that live session recording that I could access, it would be easier for me.