Questions tagged [glibmm]

glibmm is the official C++ interface for the popular cross-platform library Glib. It provides non-UI API that is not available in standard C++ and makes it possible for gtkmm to wrap GObject-based APIs.

Documentation: https://developer.gnome.org/glibmm/stable/

34 questions
4
votes
1 answer

glibmm-2.4 install not detected on OS X

I am building an application from source, Ardour specifically. During the build config process it exits with the following error: Checking for 'glibmm-2.4' >= 2.32.0 ['/opt/local/bin/pkg-config', 'glibmm-2.4 >= 2.32.0', '--cflags', '--libs',…
abhobe
  • 71
  • 6
3
votes
0 answers

Can't tell cmake to use vcpkg for library link

I'm using a Cmake for a cross-platform project that use glibmm. Under Linux, the project build successfully without any problem (and works fine when executed). But with Windows 10, Visual Studio 2019 (pro), I can't find how to build the project. I…
3
votes
0 answers

Exception while creating a socket

I am using glibmm v2.42 on linux. I want to create a client / server using native linux socket. When trying to create a socket, an exception is always thrown with code 15 (not supported). On the code below I looped over socket family enum, type enum…
FrenchDude
  • 31
  • 2
2
votes
1 answer

DBUS code crashes when placed inside daemon process, but runs fine in an independent standalone main() function without daemon code

I have ran the following code in Ubuntu. DBUS code crashes when placed inside daemon while process, but runs fine in an independent standalone main() function without daemon broiler plate code structure. Note: I will later re-factor the code in…
enthusiasticgeek
  • 2,640
  • 46
  • 53
2
votes
1 answer

Where is glibmmconfig.h in Ubuntu 12.04

I have sudo apt-get install glibmm* and it shows I have installed all the libraries about it. But when I link it with libxml++-2.6, it shows no glibmmconfig.h. I have searched Google, somebody says it is in /usr/lib/glibmm-2.4/include, but the path…
mining
  • 3,557
  • 5
  • 39
  • 66
1
vote
1 answer

Exception in glib DateTime

I want to understand an error that occurs in a program. This program uses the GLib class DateTime. I want to understand what is happening there. Therefore I want to build a sample program that uses the same function calls. #include #include…
harper
  • 13,345
  • 8
  • 56
  • 105
1
vote
1 answer

Glib::Regex returns junk, but equivalent C functions work fine

I'm trying to use the Glib::Regex, but it keeps returning junk. Here is a simplified version of the code: void testGetPos(std::string fileName){ auto regEx = Glib::Regex::create( "^sprite_[0-9]+__x(-?[0-9]+)_y(-?[0-9]+)\\.tif$", …
1
vote
0 answers

Integrate the Glib main loop into the libev event loop (C++)

I am trying to integrate the Glib main loop into the libev event loop. Actually, I am using their C++ wrappers: glibmm [1] and ev++ [2]. The main idea was taken from the EV::Glib Perl module [3]. However, my implementation sometimes hangs when I try…
Oleksandr Kozlov
  • 697
  • 6
  • 11
1
vote
0 answers

Check if Glib::RefPtr class is empty or not

I was wondering if there is a method such as variantDict.empty() or variantDict.size(). I looked it up from this website and couldn't find anything.…
1
vote
1 answer

Using Google Test for a program that uses Glib event loop

I am writing a program to be run as a background service in Linux. I am writing it in C++ and using glibmm for event loop. The only user interface the program will have is a D-Bus service. I'd like to write some tests for it using Google Test. What…
TheAG
  • 287
  • 1
  • 4
  • 10
1
vote
1 answer

Why Glib::VariantBase::store method ruins the start of given buffer

The fun of working with Glib::VariantBase might be priceless. But brings up many obstacles with itself as well. I am having hard time to understand why the very basic Glib::VariantBase::store method is changing the start of my buffer. Please assume…
1
vote
1 answer

Error compiling gtkmm2.4 sample code on solaris10

While trying to compile gtkmm sample code on my Solaris10 machine, I am getting some compile time error in glibmm/variant.h header. System Configuration is as below: > uname -a > SunOS selix570bx 5.10 Generic_150401-04 i86pc i386 i86pc Compiler…
mSatyam
  • 531
  • 7
  • 25
1
vote
1 answer

Menu items always disabled in gtkmm3

I'm trying to create a program using gtkmm3 and the Application::set_menubar method. I can create the menu, but when I run the program, all of the items in the menus are greyed out. I have scoured both the glibmm and glib libraries looking for ways…
1
vote
1 answer

glibmm 2.4 invalid byte sequence in conversion input

Trying to use Glibmm-2.4 to output Chinese returns "Invalid byte sequence in conversion input". #include #include #include int main() { Glib::ustring myUstring = "中"; try { …
1
vote
0 answers

What happens when an object is destroyed while a glibmm thread created from it is still running?

Consider the following scenario: There is a class A, which upon construction (lets call object as objA) runs a member function run() as a glibmm thread. objA.run() is doing some intensive processing & may even be blocked on some system call waiting…
Akilan
  • 269
  • 1
  • 2
  • 9
1
2 3