Recommended way to get SVG support (or install anything at all)
2shady4u opened this issue ยท 10 comments
Hello, thank you for this repo!
I was wondering how to add SVG load support inside of the VM, because I'm getting these errors at the moment:
I tried the following, but installing with apt-get doesn't seem to work:
image: barichello/godot-ci:3.2
stages:
- export
before_script:
- mkdir -v -p build/windows
windows:
stage: export
script:
- apt-get update -y
- apt-get install -y gwenview
- cd GodotProject
- godot -v --export-debug "Windows Desktop" ../build/windows/$EXPORT_NAME.exe
- test -e ../build/windows/$EXPORT_NAME.exe
artifacts:
name: $EXPORT_NAME-$CI_JOB_NAME
paths:
- build/windows
only:
- master
Any idea how I should do this?
I think you're missing apt-get upgrade
to install what you need, try with: apt-get update && apt-get upgrade && apt-get install -y --no-install-recoends gwenview
Hello @abarichello ! Thank you for your time!
Unfortunately, this doesn't work either ๐ข
(Also, if gwenview is not a good program for making these SVG import/load errors disappear please tell me)
Just to elaborate a bit: The problem becomes even more dire when using 3D models and other more "exotic" formats. For this year's Global Game Jam, I tried to use the godot-ci tools to automatically publish my game to itch.io.
This works great with our test repositories ๐
But when trying to use it with formats like *.fbx, *.mesh, *.ogg and *.wav as seen here:
So there should be some way to install the correct dependencies that support these files...
Unfortunately I can't get the apt-get to work.
I'm not sure how to help you, I think there's a problem with your project configuration.
Godot documentation does not mention any specific runtime dependencies to export projects with those file extensions you mentioned and I don't know how installing gwenview would help.
Hello, I made a small mock-up project that demonstrates the issue.
It seems that (in this case) the autoload editor_plugin "Test.tscn" has issues loading the icon.png
when building this project in Gitlab you get errors. This example is extremely as my actual problem (except for the fact that that project uses an .svg instead)
ci-warning-test.zip
When running/exporting Powershell:
I also tried to export the project using a headless implementation of Godot to see if that could be the problem, but it works perfectly (without errors) on my Ubuntu VM
This is likely solved by godotengine/godot#36083, which hasn't been merged yet. By the way, you don't need to install any system libraries to use SVG in Godot (it bundles nanosvg).
Sweet! Thanks @Calinou ! I'll test it out once that commit is merged and see if that fixes it ๐
BTW I didnt see .mesh or .fbx files in that list? Does that mean that does files will still spawn errors?
@2shady4u I only looked at image formats, not mesh formats. That said, I don't know why mesh importers would differ between a non-headless version and a headless version.
This should probably be closed given this isn't an issue with this CI script.