-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running from node-alpine #299
Comments
For those interested to run this through a node alpine, I ended up manually building it within a node alpine docker container. I was using a Ubuntu 22.04 at the time, so the platform was amd64. I then copied the build out of it and started using that linux binary instead. Used the more up-to-date repo mentioned in #290 . Instructions:
The steps roughly follow the github actions of the godotengine fbx2gltf repo. We start by changing the Dockerfile above to include the following:
We then run the docker container and access it through its shell:
After, we clone the gotdotengine fbx2gltf repo, and follow along the build.yaml from that repo (combined with the original instructions in facebookincubator to install conan, etc.):
To install conan (based on facebookincubator original instructions but changed according to this issue):
Here's a summary of what's needed (based on godotengine/fbx2gltf github actions build.yaml):
This should create a folder /build with the binary FBX2glTF inside. You can then copy it that build folder out of the container as so:
Now you can replace the FBX2glTF binary with this one. As a side note, it only seems to work (through docker) on M1 macs when using |
I'm trying to execute the linux bin file from a node-alpine docker image, but still couldn't get it to work because of glibc and libstdc.
By default node-alpine doesn't have glibc (it uses musl instead), causing the following error:
Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory
What I'm trying now is to install glibc directly into the alpine image, but it's still throwing:
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
Here's what I'm trying to install:
The only way I got it to work thus far was using the non-alpine version, with
--platform=linux/amd64
, and without the apk add and glibc install . But it's way heavier than the alpine image.If i use the above docker config with --platform=linux/amd64 I get the following error instead:
/usr/lib/libstdc++.so.6: no version information available qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Although it seems the qemu part is because of amd64 running on mac m1 chip (docker/for-mac#5123), although everything works when using the non-alpine based image.
Maybe I should use another glibc version?
The text was updated successfully, but these errors were encountered: