meetecho / janus-gateway

Janus WebRTC Server
https://janus.conf.meetecho.com
GNU General Public License v3.0
8.23k stars 2.48k forks source link

Cannot make Janus Gateway #534

Closed lucaschen closed 8 years ago

lucaschen commented 8 years ago

I wrote ./configure --disable-websockets --disable-data-channels --disable-rabbitmq, which worked fine for me, but then when I went to make, it gave me the following errors:

janus-ice.o: In function `janus_ice_cb_component_state_changed':
/home/tuotrcom/janus/janus-gateway/ice.c:1335: undefined reference to `g_thread_try_new'
janus-ice.o: In function `janus_ice_init':
/home/tuotrcom/janus/janus-gateway/ice.c:641: undefined reference to `g_thread_try_new'
janus-ice.o: In function `janus_ice_webrtc_free':
/home/tuotrcom/janus/janus-gateway/ice.c:1088: undefined reference to `g_type_check_instance_is_fundamentally_a'
janus-ice.o: In function `janus_ice_thread':
/home/tuotrcom/janus/janus-gateway/ice.c:2060: undefined reference to `g_thread_unref'
janus-ice.o: In function `janus_ice_setup_local':
/home/tuotrcom/janus/janus-gateway/ice.c:2421: undefined reference to `g_thread_try_new'
janus-ice.o: In function `janus_ice_send_thread':
/home/tuotrcom/janus/janus-gateway/ice.c:2972: undefined reference to `g_async_queue_timeout_pop'
/home/tuotrcom/janus/janus-gateway/ice.c:3436: undefined reference to `g_thread_unref'
janus-janus.o: In function `main':
/home/tuotrcom/janus/janus-gateway/janus.c:3801: undefined reference to `g_thread_try_new'
janus-log.o: In function `janus_log_destroy':
/home/tuotrcom/janus/janus-gateway/log.c:234: undefined reference to `g_mutex_lock'
/home/tuotrcom/janus/janus-gateway/log.c:236: undefined reference to `g_cond_signal'
/home/tuotrcom/janus/janus-gateway/log.c:237: undefined reference to `g_mutex_unlock'
janus-log.o: In function `janus_log_init':
/home/tuotrcom/janus/janus-gateway/log.c:193: undefined reference to `g_mutex_init'
/home/tuotrcom/janus/janus-gateway/log.c:194: undefined reference to `g_cond_init'
/home/tuotrcom/janus/janus-gateway/log.c:228: undefined reference to `g_thread_new'
janus-log.o: In function `janus_log_thread':
/home/tuotrcom/janus/janus-gateway/log.c:98: undefined reference to `g_mutex_lock'
/home/tuotrcom/janus/janus-gateway/log.c:104: undefined reference to `g_mutex_unlock'
/home/tuotrcom/janus/janus-gateway/log.c:113: undefined reference to `g_mutex_lock'
/home/tuotrcom/janus/janus-gateway/log.c:126: undefined reference to `g_mutex_unlock'
/home/tuotrcom/janus/janus-gateway/log.c:100: undefined reference to `g_cond_wait'
/home/tuotrcom/janus/janus-gateway/log.c:104: undefined reference to `g_mutex_unlock'
/home/tuotrcom/janus/janus-gateway/log.c:147: undefined reference to `g_mutex_clear'
/home/tuotrcom/janus/janus-gateway/log.c:148: undefined reference to `g_cond_clear'
janus-log.o: In function `janus_log_getbuf':
/home/tuotrcom/janus/janus-gateway/log.c:77: undefined reference to `g_mutex_lock'
/home/tuotrcom/janus/janus-gateway/log.c:85: undefined reference to `g_mutex_unlock'
janus-log.o: In function `janus_vprintf':
/home/tuotrcom/janus/janus-gateway/log.c:177: undefined reference to `g_mutex_lock'
/home/tuotrcom/janus/janus-gateway/log.c:184: undefined reference to `g_cond_signal'
/home/tuotrcom/janus/janus-gateway/log.c:185: undefined reference to `g_mutex_unlock'
janus-log.o: In function `janus_log_getbuf':
/home/tuotrcom/janus/janus-gateway/log.c:85: undefined reference to `g_mutex_unlock'
collect2: ld returned 1 exit status
make[2]: *** [janus] Error 1
saghul commented 8 years ago

Looks like the depepndency check for glib might have failed. Do you have it installed?

lucaschen commented 8 years ago

Yes, it's installed, but perhaps something went wrong with /usr/local/lib/ and /usr/lib/? Any way you can give me a command for installing glib and making it work with Janus?

lucaschen commented 8 years ago
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/lib/gio/modules

I think my glib is installed under there. How would I link Janus to that directory, so it knows that glib is there?

lminiero commented 8 years ago

The configure script relies on pkg-config to know where Glib is. Closing as not an issue, please post this question on the meetecho-janus group if you need more feedback.