QGCS error for Android
-
@InsideFPV said in QGCS error for Android:
target_link_libraries(QGroundControl
PUBLIC
-ljpeg
-lpng
)Yes, you're linking libpng.
Was libpng found when running cmake?
Where is libpng for Android located? -
@jsulm i am adding only this code porting inside my cmake file.
target_link_libraries(QGroundControl
PUBLIC
-ljpeg
-lpng
)I am getting gstreamer error and i ask chatgpt and it provide me this solution.
As form your questing i understand i have to add libpng in my project but i didnt added that till now.(Am i right...?)
please guide me how can i resolve it...? -
@InsideFPV said in QGCS error for Android:
i have to add libpng in my project but i didnt added that till now
You DID add it already! Just look at your CMakeLists.txt file.
I repeat the questions you did not answer:
Was libpng found when running cmake?
Where is libpng for Android located? -
@jsulm No libpng was not found while running cmake.
and it is not presend in this location:
"C:/Users/Software/AppData/Local/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/lib/aarch64-linux-android"where will i get libpng ?
-
@InsideFPV If Android NDK does not provide it you will have to build it by yourself from source.
-
@InsideFPV Take a look at https://github.com/julienr/libpng-android
Official description how to build: https://github.com/pnggroup/libpng/blob/libpng16/INSTALL -
-
You're missing libjpeg library now. Install it.
-
-
@InsideFPV Maybe you should ask QGCS project? It is not part of Qt...