Cannot build under Ubuntu #1522
Replies: 6 comments 28 replies
-
|
The class MemoryTextureBuilder is available since GTK 4.16. So you probably need an environment which provides this dependency to be able to run the code. I think there are flatpak and snap packages available. |
Beta Was this translation helpful? Give feedback.
-
|
I tried a slightly different approach in my Xubuntu 24.04. and compiled Pinta with these packages. (Pinta and libraries/packages were built in a virtual machine with sbuild.) #!/bin/sh
#export GTK_THEME=Adwaita
#export GTK_THEME=Greybird-dark
DIR=`dirname "$0"`
#export DOTNET_ROOT=$DIR/lib/dotnet
export XDG_DATA_DIRS="$DIR/share:$XDG_DATA_DIRS"
#export GSETTINGS_SCHEMA_DIR="$DIR/share/glib-2.0/schemas:$GSETTINGS_SCHEMA_DIR"
export LD_LIBRARY_PATH="$DIR/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH"
#export PATH="$DIR/bin:$PATH"
exec $DIR/lib/dotnet/dotnet $DIR/lib/pinta/Pinta.dll "$@"P.S. I don't like Snap and Flatpak. |
Beta Was this translation helpful? Give feedback.
-
|
From a very high-level point of view: Couldn't we just run the build and some desktop in a docker container using VS Code remote extension? Of course, for testing one would need to access the desktop via RDP or similar. But could this give a more robust and standardized build process for developers? (Probably encouraging more people to contribute...) |
Beta Was this translation helpful? Give feedback.
-
|
Good news 🙂 I was able to attach from VS Code in the host to a Fedora container with a desktop. Now I can develop on the host (of course everything is actually running in the container) and when I start debugging, Pinta pops up in the remote desktop. I will now need some time to create a solution that automatically does all the stuff when launching VS Code. @JGCarroll Do you believe it makes sense to integrate this kind of solution into the Pinta repository? Or will it be better if I create a dedicated repository and add Pinta as a submodule? The latter might be more flexible when it comes to running on different desktops and migrating as soon as webtop drops new images...
|
Beta Was this translation helpful? Give feedback.
-
|
@JGCarroll @cameronwhite Will I just create a branch on my repo and then send a pull request or how do things work for Pinta? |
Beta Was this translation helpful? Give feedback.
-
|
I had the same ubuntu error, but I switched to "openSUSE-Tumbleweed" distro in WSL and it all worked fine. So if you can use another distro then that is an option. But of course wouldn't it be nice if it worked in any distro including ubuntu. |
Beta Was this translation helpful? Give feedback.




Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I followed the build instructions. I am unsure about the version constraint on gtk and libadwaita. Both of them are only available as older versions in the repository and also the GTK website is not very helpful. I receive the following error:
Could anybody please assist?
Thanks
Jan
Beta Was this translation helpful? Give feedback.
All reactions