Code Monkey home page Code Monkey logo

qoi-pixbuf-loader's Introduction

qoi-pixbuf-loader

qoi-pixbuf-loader is a gdk-pixbuf loader for the QOI image format.

It allows GTK applications to load/save and generate thumbnails for images in the QOI image format.

Getting Started

Before you can compile and install it, be sure to have a compiler and the gdk-pixbuf library installed.

$ make
$ make test
$ sudo make install

If you get errors while running make test, try and run sudo make install-mime-type, which should resolve the issues.

However, if the errors persist even after that, then obviously do not attempt to run sudo make install as it will surely not work anyway.

Contribute

  • Fork the project.
  • Make your feature addition or bug fix.
  • Do not bump the version number.
  • Create a pull request. Bonus points for topic branches.

License

Copyright (c) 2021-2022, Mihail Szabolcs

qoi-pixbuf-loader is provided as-is under the MIT license. For more information see LICENSE.

qoi-pixbuf-loader's People

Contributors

icebreaker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

qoi-pixbuf-loader's Issues

build qoi-pixbuf-loader-test Error

hi and thanks for this project ๐Ÿ‘

I've been trying to compile the source on kubuntu 20.04 but got a few errors.

gdk-pixbuf can be found in those directories:

/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0
/usr/include/gdk-pixbuf-2.0

here's the compilation log

$> make
cc -Wall -Wextra -Werror -O2 -Isrc  -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 src/qoi-pixbuf-loader-test.c -o build/qoi-pixbuf-loader-test
/usr/bin/ld: /tmp/ccLw9lNx.o: in function `test_gdk_pixbuf_save_func':
qoi-pixbuf-loader-test.c:(.text+0x41): undefined reference to `gdk_pixbuf_error_quark'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x57): undefined reference to `g_set_error_literal'
/usr/bin/ld: /tmp/ccLw9lNx.o: in function `test_gdk_pixbuf_get_file_info':
qoi-pixbuf-loader-test.c:(.text+0x8b): undefined reference to `g_print'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x99): undefined reference to `gdk_pixbuf_get_file_info'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0xa6): undefined reference to `gdk_pixbuf_format_is_writable'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0xd1): undefined reference to `g_print'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0xed): undefined reference to `g_print'
/usr/bin/ld: /tmp/ccLw9lNx.o: in function `test_gdk_pixbuf_new_from_file_save':
qoi-pixbuf-loader-test.c:(.text+0x187): undefined reference to `g_print'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x192): undefined reference to `gdk_pixbuf_new_from_file'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x1a6): undefined reference to `gdk_pixbuf_get_has_alpha'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x1c7): undefined reference to `gdk_pixbuf_get_n_channels'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x1d3): undefined reference to `gdk_pixbuf_get_bits_per_sample'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x1df): undefined reference to `gdk_pixbuf_get_height'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x1eb): undefined reference to `gdk_pixbuf_get_width'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x216): undefined reference to `g_print'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x224): undefined reference to `g_print'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x23e): undefined reference to `gdk_pixbuf_save'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x268): undefined reference to `g_print'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x272): undefined reference to `g_error_free'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x284): undefined reference to `g_object_unref'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x292): undefined reference to `g_print'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x2cb): undefined reference to `g_print'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x2d5): undefined reference to `g_error_free'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x2ed): undefined reference to `g_print'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x310): undefined reference to `g_print'
/usr/bin/ld: /tmp/ccLw9lNx.o: in function `test_gdk_pixbuf_new_from_file_at_size_save_to_callback':
qoi-pixbuf-loader-test.c:(.text+0x3a7): undefined reference to `g_print'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x3ba): undefined reference to `gdk_pixbuf_new_from_file_at_size'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x3ce): undefined reference to `gdk_pixbuf_get_has_alpha'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x3ef): undefined reference to `gdk_pixbuf_get_n_channels'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x3fb): undefined reference to `gdk_pixbuf_get_bits_per_sample'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x407): undefined reference to `gdk_pixbuf_get_height'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x413): undefined reference to `gdk_pixbuf_get_width'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x43e): undefined reference to `g_print'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x44c): undefined reference to `g_print'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x48a): undefined reference to `gdk_pixbuf_save_to_callback'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x4b1): undefined reference to `g_print'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x4bb): undefined reference to `g_error_free'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x4d4): undefined reference to `g_object_unref'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x4ea): undefined reference to `g_print'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x523): undefined reference to `g_print'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x52d): undefined reference to `g_error_free'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x550): undefined reference to `g_print'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x570): undefined reference to `g_print'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text+0x58d): undefined reference to `g_print'
/usr/bin/ld: /tmp/ccLw9lNx.o: in function `main':
qoi-pixbuf-loader-test.c:(.text.startup+0x28): undefined reference to `g_print'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text.startup+0x2d): undefined reference to `gdk_pixbuf_get_formats'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text.startup+0x41): undefined reference to `g_slist_length'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text.startup+0x70): undefined reference to `g_slist_nth_data'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text.startup+0x7b): undefined reference to `gdk_pixbuf_format_get_name'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text.startup+0x86): undefined reference to `g_ascii_strcasecmp'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text.startup+0x97): undefined reference to `gdk_pixbuf_format_get_name'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text.startup+0xa6): undefined reference to `g_ascii_strcasecmp'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text.startup+0xb8): undefined reference to `g_print'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text.startup+0xc0): undefined reference to `g_slist_free'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text.startup+0xda): undefined reference to `gdk_pixbuf_format_is_writable'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text.startup+0xe6): undefined reference to `g_slist_free'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text.startup+0xf4): undefined reference to `g_print'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text.startup+0x139): undefined reference to `g_print'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text.startup+0x14a): undefined reference to `g_print'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text.startup+0x152): undefined reference to `g_slist_free'
/usr/bin/ld: qoi-pixbuf-loader-test.c:(.text.startup+0x173): undefined reference to `g_print'
collect2: error: ld returned 1 exit status
make: *** [Makefile:36: build/qoi-pixbuf-loader-test] Error 1

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.