[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compiling gnocky (was Re: "undefined reference to `g_thread_init'")
From: |
Daniele Forsi |
Subject: |
Compiling gnocky (was Re: "undefined reference to `g_thread_init'") |
Date: |
Wed, 6 Jun 2007 12:18:04 +0200 |
User-agent: |
KMail/1.9.4 |
Marcel Swietza wrote:
> When I tried to compile gnocky 3 on Kubuntu Feisty with make install;
did you run autogen.sh *before* make install?
if you did, then do it again and carefully check its output
if you didn't, then read INSTALL and do it
> it says:
>
> "undefined reference to `g_thread_init'"
I'm sure it says a lot more before that
the useful error message is usually the first
On my system gnocky 0.0.3 compiles fine, but to connect to the phone I needed
to apply the following patch:
--- src/monitor.c~ 2007-06-03 16:19:06.000000000 +0200
+++ src/monitor.c 2007-06-03 16:20:16.000000000 +0200
@@ -644,15 +644,17 @@
if (!phonebook_mutex)
gnocky_monitor_init();
- if (gn_cfg_read_default() < 0) {
+ error = gn_cfg_read_default();
+ if (error != GN_ERR_NONE) {
gnocky_show_error_from_thread(_("Cannot read configuration
file! Please check ~/.gnokiirc"));
- return GN_ERR_UNKNOWN;
+ return error;
}
- if (!gn_cfg_phone_load("", &statemachine)) {
+ error = gn_cfg_phone_load("", &statemachine);
+ if (error != GN_ERR_NONE) {
gnocky_statusbar_set_text(_("Cannot load phone!"));
sleep(2);
- return GN_ERR_UNKNOWN;
+ return error;
}
gnocky_statusbar_set_text(_("Connecting..."));
However after this patch the only thing that works with my phones is the
identify box.
--
Daniele
- Compiling gnocky (was Re: "undefined reference to `g_thread_init'"),
Daniele Forsi <=