Comments (12)
It's noted in the documentation that Gio requires some external libraries, but I considered that it's not strictly related to this project to mention all the Gio required dependencies. That's why I mentioned that for the external dependencies check out the Gio installation section.
from caire.
I was was wondering why x11 sources are needed. Is it possible to make Caire work without Gio? And have maybe a project that wraps Caire with Gui tools?
I wanted to use Caire and compare it with Sharp or libvips. Sharp as well as Caire resize images smarter than just libvips.
By the way @esimov great work!
from caire.
I'm not planning to separate the GUI part from the CLI application.
from caire.
@kivi and @esimov were you able to run it on ubuntu. I keep getting this error
common: ERROR: failed to add default include path /usr/share/X11/xkb
xkbcommon: ERROR: failed to add default include path /usr/share/X11/xkb
Wondering if you ran into same. Thanks
from caire.
@kartikwar I did not try it anymore. I have no use case to use it with GUI. My skills of Golang are still not so well, otherwise I would have tried process images "Caire", but without it's GUI.
from caire.
@kartikwar You might want to check out
caire/.github/workflows/build.yml
Line 41 in 1cd0863
When I tried, there were some missing libs. I remember that I installed a few, but as said I did not dig in deeper.
from caire.
@kartikwar You might want to check out
caire/.github/workflows/build.yml
Line 41 in 1cd0863
When I tried, there were some missing libs. I remember that I installed a few, but as said I did not dig in deeper.
Yes I already tried this. But I was still getting the same error. I also tried adding '/usr/share/X11/xkb' to my path, still getting the same issue :-(
from caire.
Last time when I installed Caire as a snap I owned a PC with Linux installed and it worked, that's why I managed to put it on snapcrapt. Unfortunately I'm not anymore into the possession of a native Linux based system. I'm running Ubuntu under WSL2 and having a MacOS based laptop, but as you might know, Snap is not working flawlessly on these environments. I've tried to install snap on both systems, but they are not working as you might expect to work on a Linux based system. I would really like to help, but until I'm not installing a Linux VM, with much regret I'm not able to help, but if you manage to solve the problem, I would be really grateful for your contribution.
from caire.
Thanks for your replies @esimov and @kivi. I will try to find somethin
g online. I don't think snap has good support for go or other libraries. Also for more context I am on ubuntu 20.04
Attaching the screenshot of full error here.
from caire.
I finally got this to work on Ubuntu (18.04+). Anyone looking for instructions might find this useful:
1.) install Go, set your GOPATH, and make sure $GOPATH/bin is on your PATH.
2.) install the GIOUI Libraries. Follow the instructions at https://gioui.org/doc/install/linux
3.) Try running the command go run gioui.org/example/hello@latest. If this fails, please follow the thread. Adding export LC_ALL=en_US.UTF-8
to my .bashrc
worked for me.
4.) Assuming command 3 works, run go run github.com/esimov/caire/cmd/caire@latest -in input.jpeg -out output.jpeg. Please note that running directly with the command caire -in input.jpg -out output.jpg did not work for me. It gives the same error related to xkbcommon.
from caire.
Wait, where did you tried to install the gio required dependencies? The snapcraft.yaml
should provide all the required dependencies.
from caire.
For me, it was not working for some reason. So had to install them separately. Not sure. The users can feel free to skip them
from caire.
Related Issues (20)
- Seams left over on preview debug mode HOT 1
- error while loading shared libraries: libEGL.so.1 (installed caire using snap) HOT 8
- Image enlargement does not produce good quality output HOT 1
- Enlarging an image with face detect panics HOT 10
- https://github.com/muesli/smartcrop HOT 2
- g.ctx.Px undefined (type layout.Context has no field or method Px) HOT 3
- Is a tutorial available HOT 2
- Text detection HOT 2
- Preserve Jpeg color profile HOT 6
- Unable to run on ubuntu HOT 2
- Face flag doesnt seem to work HOT 9
- Resize not working properly when both height and width are passed in percentages HOT 2
- Algorithm doesnt consider mask properly HOT 16
- Algorithm takes forever to run for this image HOT 1
- Feat: GUI mode debugging option HOT 1
- A CI/CD Observability Solution Suggestion
- vendor/gioui.org/internal/vk/vulkan.go:15:10: fatal error: vulkan/vulkan.h: No such file or directory
- enlarging the image crash HOT 2
- CAIRE ⇢ process aborted by the user... ✘
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caire.