Linking to iaxclient and ldns :

Pavel M
2012-05-20
2013-04-25
  • Pavel M
    Pavel M
    2012-05-20

    Hi,
    When compiling the kiax from source codes under Ubuntu, I get next errors:

    ../kiax2core/static-libs-linux/libiaxclient.a(video.o): In function `iaxc_is_camera_working':
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:1778: undefined reference to `vidcap_src_list_update'
    ../kiax2core/static-libs-linux/libiaxclient.a(video.o): In function `iaxc_YUV420_to_RGB32':
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:1767: undefined reference to `vidcap_i420_to_rgb32'
    ../kiax2core/static-libs-linux/libiaxclient.a(video.o): In function `video_destroy':
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:1736: undefined reference to `vidcap_src_release'
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:1738: undefined reference to `vidcap_destroy'
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:1733: undefined reference to `vidcap_src_capture_stop'
    ../kiax2core/static-libs-linux/libiaxclient.a(video.o): In function `ensure_acquired':
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:967: undefined reference to `vidcap_src_acquire'
    ../kiax2core/static-libs-linux/libiaxclient.a(video.o): In function `prepare_for_capture':
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:838: undefined reference to `vidcap_format_bind'
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:902: undefined reference to `vidcap_i420_to_rgb32'
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:934: undefined reference to `vidcap_fourcc_string_get'
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:917: undefined reference to `vidcap_yuy2_to_i420'
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:918: undefined reference to `vidcap_yuy2_to_rgb32'
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:885: undefined reference to `vidcap_rgb32_to_i420'
    ../kiax2core/static-libs-linux/libiaxclient.a(video.o): In function `iaxc_video_device_set':
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:1545: undefined reference to `vidcap_src_capture_stop'
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:1550: undefined reference to `vidcap_src_release'
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:1573: undefined reference to `vidcap_src_capture_start'
    ../kiax2core/static-libs-linux/libiaxclient.a(video.o): In function `iaxc_set_video_prefs':
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:1058: undefined reference to `vidcap_src_capture_start'
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:1021: undefined reference to `vidcap_src_capture_stop'
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:1026: undefined reference to `vidcap_src_release'
    ../kiax2core/static-libs-linux/libiaxclient.a(video.o): In function `iaxc_video_devices_get':

    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:1384: undefined reference to `vidcap_src_list_update'
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:1413: undefined reference to `vidcap_src_list_get'
    ../kiax2core/static-libs-linux/libiaxclient.a(video.o): In function `video_recv_video':
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:1352: undefined reference to `vidcap_i420_to_rgb32'
    ../kiax2core/static-libs-linux/libiaxclient.a(video.o): In function `video_initialize':
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:1602: undefined reference to `vidcap_initialize'
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:1608: undefined reference to `vidcap_sapi_acquire'
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:1614: undefined reference to `vidcap_sapi_info_get'
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:1624: undefined reference to `vidcap_src_list_update'
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:1651: undefined reference to `vidcap_src_list_get'
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:1682: undefined reference to `vidcap_srcs_notify'
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:1709: undefined reference to `vidcap_sapi_release'
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/IAXclientLatest/iaxclient/trunk/lib/video.c:1712: undefined reference to `vidcap_destroy'
    ../kiax2core/static-libs-linux/libldns.a(keys.o): In function `ldns_key_EVP_load_gost_id':
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/ldns-1.6.12/./keys.c:130: undefined reference to `EVP_PKEY_asn1_find_str'
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/ldns-1.6.12/./keys.c:165: undefined reference to `EVP_PKEY_asn1_get0_info'
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/ldns-1.6.12/./keys.c:154: undefined reference to `EVP_PKEY_asn1_find_str'
    ../kiax2core/static-libs-linux/libldns.a(keys.o): In function `ldns_gen_gost_key':
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/ldns-1.6.12/./keys.c:784: undefined reference to `EVP_PKEY_CTX_new_id'
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/ldns-1.6.12/./keys.c:789: undefined reference to `EVP_PKEY_CTX_ctrl_str'
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/ldns-1.6.12/./keys.c:795: undefined reference to `EVP_PKEY_keygen_init'
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/ldns-1.6.12/./keys.c:799: undefined reference to `EVP_PKEY_keygen'
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/ldns-1.6.12/./keys.c:804: undefined reference to `EVP_PKEY_CTX_free'
    /home/paul01/Desktop/freelancer_projects/TrafficSignal/ldns-1.6.12/./keys.c:801: undefined reference to `EVP_PKEY_CTX_free'

    Why such ?
    I use static linking, all the 3rd party libraries were previously compiled and succ. installed and .a files putted to static-libs-linux directory
    Does anybody know what is the problem ?

    Thanks in advance.