Not able to find references for jpeg_functions
Hi, I am trying to compile dlib source code on android and while building the native lib, facing the following errors. Can you please help in fixing these?
Linking CXX static library dlib_build/libdlib.a Building CXX object CMakeFiles/cdl1.dir/src/main/cpp/dlib/all/source.cpp.o Building CXX object CMakeFiles/cdl1.dir/src/main/cpp/native-lib.cpp.o Linking CXX shared library ../../../../build/intermediates/cmake/debug/obj/x86_64/libcdl1.so
image_loader/jpeg_loader.cpp:104: error: undefined reference to 'jpeg_std_error' image_loader/jpeg_loader.cpp:114: error: undefined reference to 'jpeg_destroy_decompress'
My app/build.gradle file contains the following cmake { cppFlags "-std=c++11 -I/usr/local/include/ -DDLIB_PNG_SUPPORT -DDLIB_JPEG_SUPPORT" arguments "-DANDROID_STL=c++_shared" }
app/CMakeLists.txt add_subdirectory(src/main/cpp/dlib dlib_build) target_link_libraries( # Specifies the target library. cdl1 dlib::dlib)
Hi, I am trying to compile dlib source code on android and while building the native lib, facing the following errors. Can you please help in fixing these?
Linking CXX static library dlib_build/libdlib.a Building CXX object CMakeFiles/cdl1.dir/src/main/cpp/dlib/all/source.cpp.o Building CXX object CMakeFiles/cdl1.dir/src/main/cpp/native-lib.cpp.o Linking CXX shared library ../../../../build/intermediates/cmake/debug/obj/x86_64/libcdl1.so
image_loader/jpeg_loader.cpp:104: error: undefined reference to 'jpeg_std_error' image_loader/jpeg_loader.cpp:114: error: undefined reference to 'jpeg_destroy_decompress'
My app/build.gradle file contains the following cmake { cppFlags "-std=c++11 -I/usr/local/include/ -DDLIB_PNG_SUPPORT -DDLIB_JPEG_SUPPORT" arguments "-DANDROID_STL=c++_shared" }
app/CMakeLists.txt add_subdirectory(src/main/cpp/dlib dlib_build) target_link_libraries( # Specifies the target library. cdl1 dlib::dlib)
How do you fix this?