1 year ago

#239715

test-img

acho

cannot find -lpjsua2-armv7-unknown-linux-android

Im trying to build android application with Qt creator and I need to link pjsip libraries.

I builded pjsip for android and made a "sudo make install"

Then I link the libraries in CMakeLists.txt file with pkg-config like this:

find_package(PkgConfig REQUIRED)
pkg_check_modules(PJSIP REQUIRED libpjproject)

target_link_libraries(tid_trains_android PUBLIC ${PJSIP_LIBRARIES})
target_include_directories(tid_trains_android PUBLIC ${PJSIP_INCLUDE_DIRS})
target_compile_options(tid_trains_android PUBLIC ${PJSIP_CFLAGS_OTHER})

The libs are in /usr/local/bin but It cannot find them. Gives me errors:

error: cannot find -lpjsua2-armv7-unknown-linux-android
error: cannot find -lpjsua-armv7-unknown-linux-android
error: cannot find -lpjsip-simple-armv7-unknown-linux-android
...

Do I need to put the libraries somewhere else? In the ndk directory somewhere?

android

linux

qt

cmake

pjsip

0 Answers

Your Answer

Accepted video resources