Giter VIP home page Giter VIP logo

Comments (16)

joelburget avatar joelburget commented on July 18, 2024

Sounds like it could be a permissions issue. If you installed with make install then slimlock should run as root and will be able to access the file. If not, it will run as you and might not be able to open that image.

If you find out that's not the problem there's another test that would be good to run. The library that opens the image is "imlib2". Try compiling the first example ("A Simple Example") on the imlib2 page http://docs.enlightenment.org/api/imlib2/html/ to see if it is able to open the image file.

Let me know what you find out,
Joel

from slimlock.

donSchoe avatar donSchoe commented on July 18, 2024

i did make install as root, this shouldn't be any problem.

i can't compile the simple imlib2-example, maybe my imlib2 is not working correctly? it says:
imlib2_convert.c:5:3: error Imlib_Image undeclared ...

from slimlock.

joelburget avatar joelburget commented on July 18, 2024

Oh, sorry about that, looks like the example is missing some includes. Try adding this to the top of the file:

#include <Imlib2.h>
#include <string.h>

from slimlock.

donSchoe avatar donSchoe commented on July 18, 2024

hi, thanks for your support, my c-knowledge is not the best :P
the code is working now. and loading images is not:

image = imlib_load_image(argv[1]); // this seems to fail
if (image) // == false

not sure why. but at this point it seems to be no problem with slimlock at all. if you have any idea what could be wrong with my setup, any hints are welcome :)

cheers
don

edit: sry wrong button

from slimlock.

sudoprime avatar sudoprime commented on July 18, 2024

Hi guys, I was having actually the same exact issue as donShoe, I am also on a gentoo box. It turns out that all you need to do is add png to your use flags and then re-emerge imlib2. Hopefully this will help someone out there!

from slimlock.

donSchoe avatar donSchoe commented on July 18, 2024

@bryanbickford thanks, reemerging with useflag "png" solved the problem.

edit: closed, as this issue is imlib2-related and slimlock is working fine.

from slimlock.

joelburget avatar joelburget commented on July 18, 2024

@bryanbickford is there a way to make that work automatically? I don't know anything about Gentoo, btw.

from slimlock.

donSchoe avatar donSchoe commented on July 18, 2024

use flags are making gentoo pretty powerful concerning the fine-tuning of installed software. there is no automated way, afaik. you might want to add a line to your readme, like:

Requirements and Building
Gentoo users: make sure the use flags "png" and "jpg" are enabled for imlib2.

thanks for bringing up slimlock btw, it's exactly what i was looking for all the time :)

from slimlock.

sudoprime avatar sudoprime commented on July 18, 2024

@joelburget if someone create's an ebuild for slimlock and pushes it upstream to gentoo's portage, then it would be included in gentoo's package manager and anyone could just type "emerge slimlock" and it would compile from source, linking all the dependencies.

The beauty of doing an ebuild is that you can add a required use flag dependency for imlib2, then if you go to install it, it will prompt you to add the png dependency for imlib2, and it will re-install imlib2 with png support.

I am still fairly new to gentoo so i don't know all the ins and outs of ebuilds, but i am 100% sure that you can make one just like i described.

There are a few ebuild's for slimlock already out there i believe, it should be a matter of adding one or two lines to the .ebuild file.

If I get a little bit of time coming up I will look into it.

from slimlock.

joelburget avatar joelburget commented on July 18, 2024

There's this if you haven't seen it https://bugs.gentoo.org/show_bug.cgi?id=366405

from slimlock.

sudoprime avatar sudoprime commented on July 18, 2024

perfect, just have them add "media-libs/imlib2[png]" to the dependancies section of the ebuild.
right now they are missing the [png] section.

from slimlock.

joelburget avatar joelburget commented on July 18, 2024

@bryanbickford do you happen to have an account on gentoo.org? If you don't mind could you upload a new ebuild? I don't want to mess it up.

from slimlock.

donSchoe avatar donSchoe commented on July 18, 2024

i created an ebuild for slimlock-0.11 adding the use flags to the dependencies.
https://bugs.gentoo.org/show_bug.cgi?id=366405#c15

i added "png" and "jpeg" as panel.cpp seems to use jpgs as a fallback if no png can be found.

from slimlock.

joelburget avatar joelburget commented on July 18, 2024

@donSchoe thanks :)

from slimlock.

donSchoe avatar donSchoe commented on July 18, 2024

@joelburget hey, the ebuild got accepted and slimlock is now available in portage for gentoo. http://packages.gentoo.org/package/x11-misc/slimlock :)

from slimlock.

joelburget avatar joelburget commented on July 18, 2024

That's awesome! Glad to see it will be easy for Gentoo users to install.

from slimlock.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.