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

Ubuntu 18.04 LTS many undefined reference with sample in Qt and qmake #255

Open
rn3kk opened this issue Nov 12, 2018 · 3 comments
Open

Ubuntu 18.04 LTS many undefined reference with sample in Qt and qmake #255

rn3kk opened this issue Nov 12, 2018 · 3 comments

Comments

@rn3kk
Copy link

rn3kk commented Nov 12, 2018

Hello.
I build and install library in Ubuntu 18.04. Samples (webrtcstreamer) work.
I can,t build sample (webrtcstreamer) using Qt and qmake. Many many undefined reference
ur1
ur2

.
What need for solve this?

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic

@rn3kk
Copy link
Author

rn3kk commented Nov 16, 2018

I build use next
cmake .. -DCMAKE_BUILD_TYPE=DEBUG -D BUILD_SHARED_LIBS=OFF
-DBUILD_MODULES=ON -DBUILD_APPLICATIONS=ON
-DBUILD_SAMPLES=ON -DBUILD_TESTS=ON
-DWITH_FFMPEG=ON -DWITH_WEBRTC=ON
-DWEBRTC_ROOT_DIR=/home/rn3kk/Projects/webrtc-build/src

may be this "BUILD_SHARED_LIBS=OFF" my issue?

@rn3kk
Copy link
Author

rn3kk commented Nov 23, 2018

Create new build
cmake .. -DCMAKE_BUILD_TYPE=DEBUG -DBUILD_SHARED_LIBS=ON
-DBUILD_APPLICATIONS=ON -DBUILD_MODULES=ON
-DBUILD_SAMPLES=ON -DBUILD_TESTS=ON
-DWITH_FFMPEG=ON -DWITH_OPENCV=OFF
-DWITH_WEBRTC=ON -DBUILD_MODULE_archo=ON
-DBUILD_MODULE_base=ON -DBUILD_MODULE_crypto=ON
-DBUILD_MODULE_http=ON -DBUILD_MODULE_json=ON
-DBUILD_MODULE_av=ON -DBUILD_MODULE_net=ON
-DBUILD_MODULE_pacm=ON -DBUILD_MODULE_pluga=ON
-DBUILD_MODULE_sked=ON -DBUILD_MODULE_socketio=ON
-DBUILD_MODULE_stun=ON -DBUILD_MODULE_symple=ON
-DBUILD_MODULE_turn=ON -DBUILD_MODULE_util=ON
-DBUILD_MODULE_uv=ON -DBUILD_MODULE_webrtc=ON
-DWEBRTC_ROOT_DIR=/home/rn3kk/Projects/webrtc-build/src

,but webstreaamer not working from libsoucey build directory. His run, but streamming not working. Why it can?

Please see logs

1.txt

@rn3kk
Copy link
Author

rn3kk commented Nov 23, 2018

Solved. Important library order.
Right
LIBS +=
-lscy_webrtc
-lscy_turn
-lscy_stun
-lscy_symple
-lscy_socketio
-lscy_av
-lscy_util
-lscy_http
-lscy_net
-lscy_archo
-lscy_crypto
-lscy_json
-lscy_base
-lwebrtc_full
-llibuv
-lavdevice
-lavformat
-lavfilter
-lavcodec
-lswscale
-lswresample
-lavutil
-lX11
-ldl
-lhttp_parser \

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

1 participant