I use Cppan + VS2015 to build the tesseract-ocr master banch,it‘s not work.
It always give me LKN2001 and LNK2019 Error when I compling libs of cppan on VS2015
This is really wrong issue report. Information "It always give me LKN2001 and LNK2019 Error when I compiling libs of cppan on VS2015" is useless.
Please provide list of all steps what you did including logs for each step.
BTW: Yesterday I build master with VS2017 and cppan without problem.
Use MS-PS to Run:
cd tesseract
.\cppan
mkdir VS2015-x86
cd VS2015-x86
cmake ..
cppan cmd present:
Unpacking : pvt.cppan.demo.unicode.icu.i18n-61.1.0...
Unpacking : pvt.cppan.demo.unicode.icu.data-61.1.0...
Local db data caused issues, trying remote one
Requesting dependency list...
Downloading: pvt.cppan.demo.freedesktop.fontconfig.fontconfig-2.13.0...
Downloading: pvt.cppan.demo.gnu.gettext.intl-0.19.8...
Downloading: pvt.cppan.demo.gnome.glib.gobject-2.56.1...
Downloading: pvt.cppan.demo.gnome.glib.glib-2.56.1...
Unpacking : pvt.cppan.demo.freedesktop.fontconfig.fontconfig-2.13.0...
Unpacking : pvt.cppan.demo.gnu.gettext.intl-0.19.8...
Unpacking : pvt.cppan.demo.gnome.glib.gobject-2.56.1...
Unpacking : pvt.cppan.demo.gnome.glib.glib-2.56.1...
Reading package specs...
I think it's OK.
then cmake.. present:
-- Looking for include file unicode/uchar.h - not found
-- Looking for getline
-- Looking for getline - not found
-- Check size of long long int
-- Check size of long long int - done
-- Check size of off_t
-- Check size of off_t - done
-- Check size of mbstate_t
-- Check size of mbstate_t - done
-- Check size of wchar_t
-- Check size of wchar_t - done
-- Check size of _Bool
-- Check size of _Bool - done
-- Configuring done
-- Generating done
-- Build files have been written to: E:/liuzhx/tesseract-master/VS2015-x86
OK too!
then Use VS2015 to build,it present:
错误 LNK2019 锟睫凤拷锟斤拷锟斤拷锟斤拷锟解部锟斤拷锟斤拷 _g_atomic_pointer_get锟斤拷锟矫凤拷锟斤拷锟节猴拷锟斤拷 __g_atomic_array_copy 锟叫憋拷锟斤拷锟斤拷 [C:\Users\liuzhx.cppan\storage\obj\1a\1c\27e1\build\4108cfa7\cppan\1a1c27e1\1a1c27e1.vcxproj] [C:\Users\liuzhx.cppan\storage\obj\34\7c\6b2c\build\4108cfa7\cppan\347c6b2c\347c6b2c-b-d.vcxproj] cppan-d-b-d E:\liuzhx\tesseract-master\VS2015-x86.cppan\gatomicarray.obj 1 生成
错误 LNK2001 锟睫凤拷锟斤拷锟斤拷锟斤拷锟解部锟斤拷锟斤拷 _g_atomic_pointer_get [C:\Users\liuzhx.cppan\storage\obj\1a\1c\27e1\build\4108cfa7\cppan\1a1c27e1\1a1c27e1.vcxproj] [C:\Users\liuzhx.cppan\storage\obj\34\7c\6b2c\build\4108cfa7\cppan\347c6b2c\347c6b2c-b-d.vcxproj] cppan-d-b-d E:\liuzhx\tesseract-master\VS2015-x86.cppan\gobject.obj 1 生成
错误 LNK2001 锟睫凤拷锟斤拷锟斤拷锟斤拷锟解部锟斤拷锟斤拷 _g_atomic_pointer_get [C:\Users\liuzhx.cppan\storage\obj\1a\1c\27e1\build\4108cfa7\cppan\1a1c27e1\1a1c27e1.vcxproj] [C:\Users\liuzhx.cppan\storage\obj\34\7c\6b2c\build\4108cfa7\cppan\347c6b2c\347c6b2c-b-d.vcxproj] cppan-d-b-d E:\liuzhx\tesseract-master\VS2015-x86.cppan\gtype.obj 1 生成
错误 LNK2019 锟睫凤拷锟斤拷锟斤拷锟斤拷锟解部锟斤拷锟斤拷 _g_atomic_pointer_set锟斤拷锟矫凤拷锟斤拷锟节猴拷锟斤拷 __g_atomic_array_update 锟叫憋拷锟斤拷锟斤拷 [C:\Users\liuzhx.cppan\storage\obj\1a\1c\27e1\build\4108cfa7\cppan\1a1c27e1\1a1c27e1.vcxproj] [C:\Users\liuzhx.cppan\storage\obj\34\7c\6b2c\build\4108cfa7\cppan\347c6b2c\347c6b2c-b-d.vcxproj] cppan-d-b-d E:\liuzhx\tesseract-master\VS2015-x86.cppan\gatomicarray.obj 1 生成
.......
Error Messages of my chinese customer email to me
VS2015 may not work anymore (not 100% sure) - please try VS2017.
@egorpugin: do you know last version working with VS2015?
Tess 3.05 worked I think.
But as for today - some cppan packages are changed (not that much but still). And I don't have vs2015, so it's just untested.
Actually , I encountered the same problem ( 4.0 & 3.05 )
after fixing encoding format problems , it showed LNK 2019 errors
and also another errors showed that missing '.cppan\storage\lib\c98ba788\Debug\pvt.cppan.demo.unicode.icu.i18n-61.1.0.lib' files
I checked .cppan\storage , In .cppan\storage\src\0b\29\775e\i18n folder that contain its .cpp & .h files
but It doesn't generate lib files that I need.
I want to include Tesseract into my C++ project
so I need dll , lib and those h , cpp files for project , right?
sorry in advanced , pretty new to this
I think cppan-libs of newly added has some problems when work with VS2015
pvt.cppan.demo.unicode.icu.i18n-61.1.0...
Is that the correct icu lib version to be used for tesseract?
Format of UTF-8 With Signed has the same error still !!!
Can you compile the master bench with VS2015???
How to do? Can give me some guidances?
@barry15321 : goption.c is UTF-8 encoded. Why are you changing encoding?
@Jesson029 : what do you mean with "Format of UTF-8 With Signed has the same error"? Can you provide details?
@egorpugin Is it possible to change appyeyor build to use VS2015 as a test and see where the errors occur?
f58522ac624e (VS2015 -> VS2017)
@amitdo @Shreeshrii
at 2017,4.0.0 alpha bench can be compiled with cppan + VS2015. It's worked.
but 4.0.0 beta and master cannot.
appyeyor.yml of 2 version is almostly same.
I do not think this cause problems.
Is it possible to change appyeyor build to use VS2015 as a test and see where the errors occur?
It's possible. I've added vs2015. Let's see how it goes.
Bad thing is that I cannot control appveyor jobs - start,stop,restart. For example, current job seems to be stuck. But I have to wait for other ~50 mins for appveoyr to kill it.
Ok, error was on cppan side. Sorry for that.
I've fixed it, please, try again.
Ok, VS2015 builds fine now.
https://ci.appveyor.com/project/zdenop/tesseract/build/master.1645
I try it now, I will feedback the results。
@egorpugin thank you.
@egorpugin thanks.
Now it can be compiled successly.
@egorpugin
@Jesson029
thank u guys , so so much
@Jesson029 Hi ,could you provide you code in VS2015/2017 code for me?
Local db data caused issues, trying remote one
Requesting dependency list...
Reading package specs...
when I use cppan, always this error.
It's not an error.
Local db data caused issues, trying remote one
Requesting dependency list...
Reading package specs...when I use cppan, always this error.
try other version cppan,the same question ,i use an older version,!!!!!!!!!!! then is ok
@egorpugin thanks.
Now it can be compiled successly.
could you provide you code in VS2015/2017 code for me?
Local db
I also face this problem, would you have a solution with it,thanks for your reply.
It is better to use sw today instead of cppan.
Most helpful comment
Ok, VS2015 builds fine now.
https://ci.appveyor.com/project/zdenop/tesseract/build/master.1645