agl / jbig2enc

JBIG2 Encoder
Other
251 stars 86 forks source link

fatal error LNK1104 for 'zlib125-static-mtdll-debug.lib' #38

Closed Fendayen closed 11 years ago

Fendayen commented 11 years ago

I am receiving the following fatal error link when attempting to build the solution in VC++ 2008:

LINK : fatal error LNK1104: cannot open file 'zlib125-static-mtdll-debug.lib'

As a note, changing the runtime library to other versions had no impact on the error.

zdenop commented 11 years ago

The error message is IMO clear VC++ is not able to find (open) file zlib125-static-mtdll-debug.lib. It is part of leptonica-1.68-win32-lib-include-dirs.zip.

Please follow instruction in https://github.com/agl/jbig2enc/blob/master/INSTALL for VC++ 2008.

Fendayen commented 11 years ago

I'm sorry, I should have been more specific in my description. I have followed the instructions and downloaded the correct leptonica zip file. The problem is that although the zlib file is present and included within the directory, the program is still showing the error when I attempt to build the solution. I have verified that VC++ is pulling from the leptonica files by manually including the file paths in the VC++ directory. I have also attempted building the solution on a separate computer (both Windows 7), but I am still receiving the same error.

zdenop commented 11 years ago

I tried it too and it works for me ;-) Can you please post log of build process? It should be: jbig2enc\vs2008\jbig2\Debug\BuildLog.htm jbig2enc\vs2008\libjbig2enc\Debug\BuildLog.htm

Fendayen commented 11 years ago

Thank you for listing the specific paths for the build logs.

The build log for jbig2enc\vs2008\jbig2\Debug\BuildLog.htm:

Build Log

  Build started: Project: libjbig2enc, Configuration: Debug|Win32

Command Lines

Creating temporary file "c:\Users\Jesse Hairston\Desktop\RCEU Summer 2013\JBIG2\Encoder\jbig2enc-master\vs2008\libjbig2enc\Debug\RSP00000146804668.rsp" with contents [ /Od /I "......\include" /D "WIN32" /D "UNIFICATION_DEBUGGING" /D "_DEBUG" /D "_LIB" /D "VERSION=\"0.28\"" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MDd /Fo"Debug\" /Fd"Debug\vc90.pdb" /W3 /c /ZI /TP "....\src\jbig2enc.cc" ] Creating command line "cl.exe @"c:\Users\Jesse Hairston\Desktop\RCEU Summer 2013\JBIG2\Encoder\jbig2enc-master\vs2008\libjbig2enc\Debug\RSP00000146804668.rsp" /nologo /errorReport:prompt" Creating temporary file "c:\Users\Jesse Hairston\Desktop\RCEU Summer 2013\JBIG2\Encoder\jbig2enc-master\vs2008\libjbig2enc\Debug\RSP00000246804668.rsp" with contents [ /OUT:"C:\Users\Jesse Hairston\Desktop\RCEU Summer 2013\JBIG2\Encoder\jbig2enc-master\vs2008\Debug\libjbig2enc.lib" ".\Debug\jbig2arith.obj"

".\Debug\jbig2comparator.obj"

".\Debug\jbig2enc.obj"

".\Debug\jbig2sym.obj" ] Creating command line "lib.exe @"c:\Users\Jesse Hairston\Desktop\RCEU Summer 2013\JBIG2\Encoder\jbig2enc-master\vs2008\libjbig2enc\Debug\RSP00000246804668.rsp" /NOLOGO"

Output Window

Compiling... jbig2enc.cc c:\users\jesse hairston\desktop\rceu summer 2013\jbig2\encoder\jbig2enc-master\vs2008\include\leptonica\pix.h(169) : warning C4305: 'initializing' : truncation from 'double' to 'const l_float32' c:\users\jesse hairston\desktop\rceu summer 2013\jbig2\encoder\jbig2enc-master\vs2008\include\leptonica\pix.h(171) : warning C4305: 'initializing' : truncation from 'double' to 'const l_float32' c:\users\jesse hairston\desktop\rceu summer 2013\jbig2\encoder\jbig2enc-master\src\jbig2enc.cc(206) : warning C4244: 'argument' : conversion from 'int' to 'l_float32', possible loss of data c:\users\jesse hairston\desktop\rceu summer 2013\jbig2\encoder\jbig2enc-master\src\jbig2enc.cc(268) : warning C4244: 'argument' : conversion from 'int' to 'l_float32', possible loss of data c:\users\jesse hairston\desktop\rceu summer 2013\jbig2\encoder\jbig2enc-master\src\jbig2enc.cc(306) : warning C4244: 'argument' : conversion from 'int' to 'l_float32', possible loss of data c:\users\jesse hairston\desktop\rceu summer 2013\jbig2\encoder\jbig2enc-master\src\jbig2enc.cc(336) : warning C4244: 'argument' : conversion from 'int' to 'l_float32', possible loss of data Creating library...

Results

Build log was saved at "file://c:\Users\Jesse Hairston\Desktop\RCEU Summer 2013\JBIG2\Encoder\jbig2enc-master\vs2008\libjbig2enc\Debug\BuildLog.htm" libjbig2enc - 0 error(s), 6 warning(s)

The build log for jbig2enc\vs2008\libjbig2enc\Debug\BuildLog.htm:

Build Log

  Build started: Project: libjbig2enc, Configuration: Debug|Win32

Command Lines

Creating temporary file "c:\Users\Jesse Hairston\Desktop\RCEU Summer 2013\JBIG2\Encoder\jbig2enc-master\vs2008\libjbig2enc\Debug\RSP00000146804668.rsp" with contents [ /Od /I "......\include" /D "WIN32" /D "UNIFICATION_DEBUGGING" /D "_DEBUG" /D "_LIB" /D "VERSION=\"0.28\"" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MDd /Fo"Debug\" /Fd"Debug\vc90.pdb" /W3 /c /ZI /TP "....\src\jbig2enc.cc" ] Creating command line "cl.exe @"c:\Users\Jesse Hairston\Desktop\RCEU Summer 2013\JBIG2\Encoder\jbig2enc-master\vs2008\libjbig2enc\Debug\RSP00000146804668.rsp" /nologo /errorReport:prompt" Creating temporary file "c:\Users\Jesse Hairston\Desktop\RCEU Summer 2013\JBIG2\Encoder\jbig2enc-master\vs2008\libjbig2enc\Debug\RSP00000246804668.rsp" with contents [ /OUT:"C:\Users\Jesse Hairston\Desktop\RCEU Summer 2013\JBIG2\Encoder\jbig2enc-master\vs2008\Debug\libjbig2enc.lib" ".\Debug\jbig2arith.obj"

".\Debug\jbig2comparator.obj"

".\Debug\jbig2enc.obj"

".\Debug\jbig2sym.obj" ] Creating command line "lib.exe @"c:\Users\Jesse Hairston\Desktop\RCEU Summer 2013\JBIG2\Encoder\jbig2enc-master\vs2008\libjbig2enc\Debug\RSP00000246804668.rsp" /NOLOGO"

Output Window

Compiling... jbig2enc.cc c:\users\jesse hairston\desktop\rceu summer 2013\jbig2\encoder\jbig2enc-master\vs2008\include\leptonica\pix.h(169) : warning C4305: 'initializing' : truncation from 'double' to 'const l_float32' c:\users\jesse hairston\desktop\rceu summer 2013\jbig2\encoder\jbig2enc-master\vs2008\include\leptonica\pix.h(171) : warning C4305: 'initializing' : truncation from 'double' to 'const l_float32' c:\users\jesse hairston\desktop\rceu summer 2013\jbig2\encoder\jbig2enc-master\src\jbig2enc.cc(206) : warning C4244: 'argument' : conversion from 'int' to 'l_float32', possible loss of data c:\users\jesse hairston\desktop\rceu summer 2013\jbig2\encoder\jbig2enc-master\src\jbig2enc.cc(268) : warning C4244: 'argument' : conversion from 'int' to 'l_float32', possible loss of data c:\users\jesse hairston\desktop\rceu summer 2013\jbig2\encoder\jbig2enc-master\src\jbig2enc.cc(306) : warning C4244: 'argument' : conversion from 'int' to 'l_float32', possible loss of data c:\users\jesse hairston\desktop\rceu summer 2013\jbig2\encoder\jbig2enc-master\src\jbig2enc.cc(336) : warning C4244: 'argument' : conversion from 'int' to 'l_float32', possible loss of data Creating library...

Results

Build log was saved at "file://c:\Users\Jesse Hairston\Desktop\RCEU Summer 2013\JBIG2\Encoder\jbig2enc-master\vs2008\libjbig2enc\Debug\BuildLog.htm" libjbig2enc - 0 error(s), 6 warning(s)

zdenop commented 11 years ago

I can not see there error message you are reporting: LINK : fatal error LNK1104: cannot open file 'zlib125-static-mtdll-debug.lib'

I just see there: libjbig2enc - 0 error(s), 6 warning(s) => library was create without problem.

And it looks like you posted libjbig2enc log instead of jbig2 log (big2enc\vs2008\jbig2\Debug\BuildLog.htm) - there is info about 'ibjbig2enc - 0 error(s), 6 warning(s)' instead of 'jbig2 - 0 error(s), 0 warning(s)'.

Fendayen commented 11 years ago

My error was caused by a directory issue. I had placed the Leptonica libraries within the wrong directory. The problem has been fixed -- thank you very much for your assistance.

nmdwolf commented 9 months ago

I tried to compile everything yesterday but ran into this same issue. However, the link at https://github.com/agl/jbig2enc/blob/master/INSTALL was for vs2008 and is officially dead. What is the current way out of this situation?