-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is that possible to remove GLib #281
Comments
follow you, I need to cross compile lcm c++ lib, and glib make me a huge amount of trouble. |
It looks like glib is used for a few items:
Addressing this issue is no small task:
Another issue is that a lot of As far as I can tell, LCM doesn't need to use glib for its core pub/sub functionality. There may be additional changes required. Here's the list of files I modified before I stopped, to give you some idea of how tangled glib is with the system:
|
Would porting to C++11 (or newer) and just marking everything extern c be an option? Gets you threads and regex. With a bit of googling I didn't find anything claiming to be the way to do cross platform threading in C. Even C11 threads are an optional feature. (Would dropping glib make building for windows simpler / wouldn't need mingw?) |
@DaveJarvis GLib is also used for maps ( @judfs I think it's possible, it's more a question of if the benefit is worth the potential risk of rewriting core functionality. Additionally, one of the original selling points was that LCM did not have any strong requirement on compiler version, so you could (probably) get it to compile with archaic compilers*, i.e., C89 on weird architectures. I'm not sure if that's still a desired feature; that would be a question for the current maintainers. (* Assuming you could get GLib to compile.) |
For anyone else coming into this thread, D-Bus may be a viable alternative. |
Hi !
I'd like to ask is that possible to remove the dependency of glib. Thanks !
The text was updated successfully, but these errors were encountered: