Project ARvideo is a dependent project to project ARWrapper. There are two libjpeg.lib in win64-x64 and win32-i386 folder. Also I made one by my own through source jpeg-6b.
First I build ARvideo
- I used the libjpeg.lib in lib/win64-x64. It successfully built.
- I used the libjpeg.lib in lib/win32-i386. So many unresolved external errors.
- I used the one made by my own. Also unresolved external symbols showed up.
Then I build ARWrapper
- It said the libjpeg.lib is built by an old compiler
- and 3) ended up as the same unresolved external symbols.
One thing I changed is, use extern "C" {#include <jpeglib.h>} instead of #include <jpeglib.h> for *.cpp file which include the header because libjpeg is a c library.
LINK : fatal error C1047: The object or library file 'C:\Users\zhenyihe\Dropbox (Facebook)\intern\artoolkitx\artoolkit5\VisualStudio\vs2017\..\..\lib\libjpeg.lib' was created with an older compiler than other objects; rebuild old objects and libraries