New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jbig2enc does not compile with Leptonica 1.68 #12

Closed
mistydemeo opened this Issue May 11, 2011 · 3 comments

Comments

Projects
None yet
2 participants
@mistydemeo
Contributor

mistydemeo commented May 11, 2011

I'm unable to get jbig2enc to compile under Mac OS X, using either 0.27 or the latest source from git. I get the following error message for jbig2.cc:

g++ -o jbig2 jbig2.cc -L. -ljbig2enc brew --prefix/lib/liblept.a -Ibrew --prefix/include/leptonica/ -Wall -Ibrew --prefix/include -Lbrew --prefix/lib -O3 -lpng -ljpeg -ltiff -lm
jbig2.cc: In function ‘int main(int, char*)’:
jbig2.cc:349: error: cannot convert ‘FILE
’ to ‘const char_’ for argument ‘1’ to ‘l_int32 findFileFormat(const char_, l_int32_)’
make: *_* [jbig2] Error 1

@mistydemeo

This comment has been minimized.

Show comment
Hide comment
@mistydemeo

mistydemeo May 16, 2011

Contributor

Just an update, I've determined that the issue is that a change in Leptonica 1.68 prevents jbig2enc from compiling against it. When I downloaded 1.67, I was able to successfully get jbig2enc to compile.

Contributor

mistydemeo commented May 16, 2011

Just an update, I've determined that the issue is that a change in Leptonica 1.68 prevents jbig2enc from compiling against it. When I downloaded 1.67, I was able to successfully get jbig2enc to compile.

@logological

This comment has been minimized.

Show comment
Hide comment
@logological

logological Jun 5, 2011

jbig2enc doesn't compile with Leptonica 1.68 only because the parameters to the findFileFormat() function have changed. This function is referenced once, in jbig2.cc, where it's used to check something involving multi-page TIFFs. I don't use jbig2enc to process TIFFs so I just commented out these lines, and then jbig2enc compiled fine.

logological commented Jun 5, 2011

jbig2enc doesn't compile with Leptonica 1.68 only because the parameters to the findFileFormat() function have changed. This function is referenced once, in jbig2.cc, where it's used to check something involving multi-page TIFFs. I don't use jbig2enc to process TIFFs so I just commented out these lines, and then jbig2enc compiled fine.

@mistydemeo

This comment has been minimized.

Show comment
Hide comment
@mistydemeo

mistydemeo Jul 6, 2011

Contributor

Thanks for the tip, @Psych0naut. That led me to find where the problem is, and I submitted a pull request that allows it to build properly. Closing this in favour of the pull request.

Contributor

mistydemeo commented Jul 6, 2011

Thanks for the tip, @Psych0naut. That led me to find where the problem is, and I submitted a pull request that allows it to build properly. Closing this in favour of the pull request.

@mistydemeo mistydemeo closed this Jul 6, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment