c++ linker errors?
schlu opened this issue · 1 comments
schlu commented
I have been trying to get a proof of concept working for a couple days.
I have been able to compile the project just fine (after I fix the hard coded build paths). but when I take the libopenalpr-xcode.a (and other libraries) into my project I start to get linker errors on the c++ standard library.
I have been able to get a cv::Mat
object created, but when I instantiate an Alpr
instance I get the following linker errors.
Undefined symbols for architecture arm64:
"_jpeg_free_small", referenced from:
_free_pool in opencv2(jmemmgr.o)
_self_destruct in opencv2(jmemmgr.o)
"_jpeg_mem_available", referenced from:
_realize_virt_arrays in opencv2(jmemmgr.o)
"_jpeg_free_large", referenced from:
_free_pool in opencv2(jmemmgr.o)
"_jpeg_open_backing_store", referenced from:
_realize_virt_arrays in opencv2(jmemmgr.o)
"_jpeg_get_large", referenced from:
_alloc_large in opencv2(jmemmgr.o)
_alloc_barray in opencv2(jmemmgr.o)
"_jpeg_mem_term", referenced from:
_jinit_memory_mgr in opencv2(jmemmgr.o)
_self_destruct in opencv2(jmemmgr.o)
"_jpeg_mem_init", referenced from:
_jinit_memory_mgr in opencv2(jmemmgr.o)
"_jpeg_get_small", referenced from:
_jinit_memory_mgr in opencv2(jmemmgr.o)
_alloc_small in opencv2(jmemmgr.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have verified the headers paths and library paths are correct by setting them incorrectly and getting errors importing alpr.h
. Any clues what I am doing wrong?
schlu commented
I will close this as I needed to compile and link libjpeg.