Can not Install the Glib Perl Module on OS X (El Capitan)

I want to install perl Gtk2, and for this I need first to have Glib installed. I tried sudo cpanm Glib, but I get an error when compiling (I also tried downloading the .tar.gz source etc., with the same effect). I also tried with an older version of

Get the device path from pyudev with python

Using pydev with python-2.7, I wish obtain the device path of connected devices. Now I use this code: from pyudev.glib import GUDevMonitorObserver as MonitorObserver def device_event(observer, action, device): print 'event {0} on device {1}'.format(a

Json-Glib Invalid jumps on object insertions

I'am working with a C language Json Library, the Json-Glib. The problem is that the library keeps Segfaulting on me and i can't figure out why. I read all the documentation, and understood that, a Root node can hold some primitive values, but more im

Porting from Glib to Qt

I am porting an application from Glib to Qt. I do have a lot of API specific to Gtk, but it's difficult to find the equivalent variants in Qt. I am looking for the alternative of these: g_path_get_basename g_path_get_dirname strdup Any idea?There rea

Add fds in the mainloop GLIB

I need to attach file descriptors to the GLIB mainloop. My issue is that the list of file descriptors is not fixed during execution. According to GLIB documentation, I can: create a GIOChannel for each FD using g_io_channel_unix_new and attach it to

Can not install summary gem on OSX, missing glib.h

I'm trying to install this gem, summarize, by running: gem install summarise I get the error: ERROR: Failed to build gem native extension. ... In file included from article.c:25: ./libots.h:24:10: fatal error: 'glib.h' file not found But when i try a

glib.h can not be found

I have a problem when compiling my C program This problem appears when i move frum ubunto 11 to ubunto 13. When i compile with this makefile: gcc -D_GNU_SOURCE -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/x86_64- linux-gnu/glib-2.0/

GLib-GObject-Warning when creating gobject

I am trying to create a flume-thrift client in c (c_glib) but have trouble creating the gobject that shall be sent to the server. I get the following error at the line in main.c: `GLib-GObject-WARNING **: IA__g_object_new_valist: object class `Thrift

GIOChannel sometimes he sometimes reads not

Here is piece of my code. I will explain the problem right after. GIOStatus ret; GError *err = NULL; gchar *msg; gsize *len; ret = g_io_channel_read_chars (koncentrator, &msg, 13, &len, err); printf ("Read %u bytes: %hx\n", len, msg); My

C ++ Pass a long chain to the constructor or setter

I have a class with a Glib::ustring member (if you're not familar with it, assume it's std::string) which is expected to contain a long string, i.e. at lest one paragraph, maybe a few more. Maybe even more than 10 paragraphs. The string is planned to

GLib compilation error (ffi.h), but libffi is installed

After a succesful configure, make exits with snipped gclosure.c:29:17: fatal error: ffi.h: No such file or directory compilation terminated. I have libffi installed, and locate ffi.h gives: /home/luca/gcc4.6/gcc-4.6.0/libffi/include/ffi.h.in /usr/inc

GMainContext has ref_count & gt; 0 after unref

I am not getting ref_count to decrease properly for my GMainContext. The example program here is a small version of a large program (which uses threads, hence the need to create a context and push it on the thread). GMainLoop *loop; GMainContext *ctx

Void ** Confusion for reminders

I am working with a open source mapping tool and it has the ability to use g_io_add_watch to watch file descriptors. I am trying to watch the stdin file descriptor and I have successfully be able to have the callback be called when the stdin recieves

the installation of QT4.7.4 for embedded Linux. Multiple errors

I'm an absolute beginner with Linux and developing for embedded Linux. I'm trying to install QT for embedded Linux onto my Fedora 15 laptop to target an i.Mx233. Firstly, within the qt-everywhere-opensource-src-4.7.4 folder, I enter the command: ./co

GLib API to convert hexadecimal string to ASCII string?

I cannot believe there is no API to do this in GLib, for now I have only found people doing their own conversion, like here and here (function named "decode"). I would really like to find a way to do this in a simple GLib call, but if there is n

DBus Glib, sends a signal with a nested structure

I'm developing an application on c++ language on linux. I want to send a signal as this: <signal name="EmitSignal"> <arg type="(u(i)uussssu)" name="t_struct_of_signal" direction="out" /> </signal>

install gtk and glib

hi every one kindly tell me how to install glib and gtk i am using ubuntu 10.04. i did;nt find any commands kindly tell me the procedure to install itSimply type: sudo apt-get install libgtk2.0-dev glib is a dependency so it will be installed too. Al

Please help find the source with examples by glib

I've looked for a lot of sites but didn't find any examples by glib. I've seen only discription types and functions... Perhaps do you know a good source? PS. Thanks for your answers! =)Here's a tutorial, a little old but still applicable: http://www.

What should Glib :: init () be to use Glib :: wrap?

So I'm trying to make use of a GtkSourceView in C++ using GtkSourceViewmm, whose documentation and level of support give me the impression that it hasn't been very carefully looked at in a long time. But I'm always an optimist :) I'm trying to add a

Error installing dependencies for PyGTK on Mac OS 10.6.3

I tried to install the following dependencies for PyGTK 2.16.0 (the Python GIMP Tool Kit) on Mac OS 10.6.3: glib 2.25.5 gettext-0.18 libiconv-1.13.1 When I tried to install glib, I got the following error message: gconvert.c:55:2: error: #error GNU l

Does the use of large libraries inherently make code slower?

I have a psychological tic which makes me reluctant to use large libraries (like GLib or Boost) in lower-level languages like C and C++. In my mind, I think: Well, this library has thousands of man hours put into it, and it's been created by people w

Why use GLib functions?

While programming in C and GTK+, why is it "better" to use g_strdup_printf, g_free, g_strcmp0 etc... and fellow GLib functions?In general, GLib's purpose is a utility and portability library. Those in itself are reasons to consider using it. The

How to compile & amp; use GLib with MinGW

I want to use the Gnome GLib in a Windows environment using the free MinGW compiler to develop in C. The problem is, I have absolutely no idea how to compile this library. Would any of you please explain what tools are needed to accomplish this and w

Absolute path to the executable startup directory

I am trying to figure out how to grab the start directory for my program. I am using C and have access to GLib. On the Linux side it is easy, g_get_current_directory as soon as the program is launched, and store this value for later use. I tried usin