Skip to content
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

undefined reference to `RTMP_ConnectStream' #15

Closed
lycboy opened this issue Sep 23, 2015 · 1 comment
Closed

undefined reference to `RTMP_ConnectStream' #15

lycboy opened this issue Sep 23, 2015 · 1 comment

Comments

@lycboy
Copy link

lycboy commented Sep 23, 2015

QConf 1.1.0
Ubuntu 14.04 LTS 64bit
cmake version 2.8.12.2
GNU Make 3.81
autoconf (GNU Autoconf) 2.69
gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4

$ cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/local/qconf
(passed)

$ make

Linking CXX executable qconf_agent
../../agent/../deps/curl/_install/lib/libcurl.a(libcurl_la-curl_rtmp.o): In function `rtmp_disconnect':
curl_rtmp.c:(.text+0x2c): undefined reference to `RTMP_Close'
curl_rtmp.c:(.text+0x34): undefined reference to `RTMP_Free'
../../agent/../deps/curl/_install/lib/libcurl.a(libcurl_la-curl_rtmp.o): In function `rtmp_connect':
curl_rtmp.c:(.text+0xc4): undefined reference to `RTMP_Connect1'
../../agent/../deps/curl/_install/lib/libcurl.a(libcurl_la-curl_rtmp.o): In function `rtmp_send':
curl_rtmp.c:(.text+0x152): undefined reference to `RTMP_Write'
../../agent/../deps/curl/_install/lib/libcurl.a(libcurl_la-curl_rtmp.o): In function `rtmp_recv':
curl_rtmp.c:(.text+0x19b): undefined reference to `RTMP_Read'
../../agent/../deps/curl/_install/lib/libcurl.a(libcurl_la-curl_rtmp.o): In function `rtmp_setup':
curl_rtmp.c:(.text+0x20a): undefined reference to `RTMP_Alloc'
curl_rtmp.c:(.text+0x21f): undefined reference to `RTMP_Init'
curl_rtmp.c:(.text+0x22c): undefined reference to `RTMP_SetBufferMS'
curl_rtmp.c:(.text+0x23f): undefined reference to `RTMP_SetupURL'
curl_rtmp.c:(.text+0x264): undefined reference to `RTMP_Free'
../../agent/../deps/curl/_install/lib/libcurl.a(libcurl_la-curl_rtmp.o): In function `rtmp_do':
curl_rtmp.c:(.text+0x296): undefined reference to `RTMP_ConnectStream'
collect2: error: ld returned 1 exit status
make[2]: *** [agent/qconf_agent] Error 1
make[1]: *** [agent/CMakeFiles/qconf_agent.dir/all] Error 2
make: *** [all] Error 2

If I change agent/CMakeLists.txt line 65-66 to

target_link_libraries(qconf_agent
    ${PROJECT_SOURCE_DIR}/../deps/curl/_install/lib/libcurl.a rtmp)

or disable librtmp(agent/CMakeLists.txt line 49)

    --disable-ldaps --without-ssl --without-zlib --without-libidn --without-librtmp)

can solve this error.

Does QConf use cURL RTMP? If not, i think maybe disable it is fine:)

Thanks for this fantastic software!!!

@CatKang
Copy link
Contributor

CatKang commented Sep 24, 2015

cURL RTMP is not used in QConf, so there is no problem to disable it.

Thank you for your support

@lycboy lycboy closed this as completed Sep 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants