glib Questions

1

Solved

I am trying to use GStreamer as a video backend for a softphone we are developing in house. Our softphone is not GLib based, has its own event loops. Is it possible to set up a gst pipeline and put...
Treharne asked 31/10, 2012 at 12:57

1

Solved

Is there a way to change the log level in glib so e.g. in a release version of an application the debug messages of g_debug won't be logged to the stdout? Do I really need to implement my own log h...
Montez asked 7/2, 2011 at 20:23

1

Solved

I have a DBus server which exposes a method that requires a huge time to complete (about 3 minutes). The client performs a synchronous call to this method. The problem is, after exactly 25 secs th...
Eldreeda asked 28/6, 2012 at 12:53

3

Solved

I am using glib, it has a lot of functions that return strings that should be freed myself.Can I, pass these functions to other functions? Example: function1 returns a string that must be freed f...
Nunnery asked 18/8, 2009 at 21:16

5

Solved

How can I get the temporary directory path in Ubuntu?
Loom asked 25/1, 2011 at 5:59

1

Solved

GTK allows you to set a timeout with g_timeout_add. Just like g_signal_connect, the g_timeout_add function returns an id representing the timeout. So, is there a way to cancel a timeout using the i...
Theron asked 14/8, 2012 at 15:4

1

I'm trying to run simple unit tests for some C code I'm writing using GLib. I'm trying to do something like: #include <math.h> #include <stdio.h> #include <glib.h> static void ...
Gemina asked 13/8, 2012 at 9:24

1

Solved

I'm trying to add a timeout source specific to a particular GThread. In the main thread, I can create a GMainContext (g_main_context_new) and add a timeout (g_timeout_add). However, when I try to d...
Tiffanitiffanie asked 1/7, 2012 at 23:3

2

Solved

I am trying to install atk-2.4.0 and I get the error: 'pkg-config --modversion glib-2.0' returned 2.32.3, but GLIB (2.26.1) *** was found! I also tried updating PKG_CONFIG_PATH to include the p...
Marnie asked 27/6, 2012 at 14:10

4

Solved

I'm working on my gEDA fork and want to get rid of the existing simple tile-based system1 in favour of a real spatial index2. An algorithm that efficiently finds points is not enough: I need to fi...
Partheniaparthenocarpy asked 27/6, 2012 at 13:23

6

Solved

I am comfortable with C. but need to learn GObject and Glib for gstreamer. All i found on net is Gobject reference manual. Its good but looking for tutorial for Gobject/Glib as the main focus...
Cochleate asked 1/2, 2009 at 9:43

2

Solved

I successfully compiled the following program simple.cc: #include <gtkmm.h> int main (int argc, char *argv[]) { Glib::RefPtr<Gtk::Application> app = Gtk::Application::create(argc, ...
Worked asked 25/5, 2012 at 15:0

1

I'm in the process of writing a small/medium sized GUI application with PyGObject (the new introspection based bindings for Gtk). I started out with a reasonable test suite based on nose that was a...
Maudiemaudlin asked 11/6, 2012 at 8:8

1

Solved

Glib::RefPtr allows dereferencing via '->' but not via '*'. Why is this? I can of course do: class Foo {}; Glib::RefPtr<Foo> fooPtr; fooPtr.operator->(); The docs specifically m...
Davidson asked 10/5, 2012 at 20:56

2

Solved

With what function should I fetch a file from the web using GLib/GIO libs? If my file is from: gchar *path = "http://xxx.yyyServer/sharing/temp.txt" What should I do to download it? For the lo...
Insole asked 16/5, 2012 at 16:22

1

Solved

I know this question might sound strange because GLib is a portability library, but how portable is it? To name one example: Does GLib (including GObject) run on microcontrollers or does it depend ...
Yours asked 30/4, 2012 at 14:1

1

Solved

Trying to compile a library in Ubuntu with CMake and one of the file includes glib.h. The package is installed and glib.h is in /usr/include/glib-2.0/glib.h. I added the following but compiler sti...
Pristine asked 30/4, 2012 at 12:37

1

Solved

I am trying cabal install glib-0.12.3 under my Ubuntu 11.10 using cabal-install 0.10.2. However, it shows the following error messages: setup: The program gtk2hsC2hs version >=0.13.5 is require...
Lechner asked 17/4, 2012 at 19:20

1

Solved

I'm trying to write some C code which is portable only so far as the user has gcc, and has glib installed. From all my research, I've found that with gcc, a wchar_t is always defined as 4 bytes, ...
Nonaggression asked 24/3, 2012 at 9:24

1

Does anyone have any idea of the relative performance of GLib's GAsyncQueue vs. POSIX message_queue for inter-thread communication? I will have many small messages (both one way and request-respons...
Hug asked 10/2, 2012 at 12:6

1

Solved

In my normal dev environment (ubuntu), I don't have any issues linking against GLib-2.0, however when I attempt to build on fresh install of Debian Squeeze, I run into errors linking GLib. configu...
Vacuity asked 23/1, 2012 at 21:52

1

Solved

I have multiple threads adding, modifying and looking up data in GHashTable. Is it threadsafe, or do I need to implement threadsafety myself?
Dorolice asked 12/1, 2012 at 15:42

2

Solved

I'm working with both libfuse and the glib event interface and I've run into an issue where I need to run multiple main loops concurrently (glib's g_main_loop_run and fuse_loop_mt). I've already a...
Seasonseasonable asked 16/12, 2011 at 3:37

2

Solved

Somewhere in a mass of code that I did not write (but I am trying to debug), an assertion fails in the GLib library: (process:31987): GLib-CRITICAL **: g_hash_table_lookup: assertion `hash_table !...
Dewdrop asked 26/4, 2011 at 4:21

1

Solved

I am using Eclipse CDT to develop a C software. I would like to use glib, but it always reports "Unresolved inclusion: ". I have installed glib on my ubuntu: carl@Carl:~$ dpkg -l | grep libglib ii...
Iolaiolande asked 21/10, 2011 at 8:35

© 2022 - 2024 — McMap. All rights reserved.