LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-28-2022, 06:54 AM   #1
slackbat
Member
 
Registered: Dec 2005
Location: Mid-West-Wales
Distribution: Slackware 14.2_64_multilib - Salix 14.2 - devuan
Posts: 142

Rep: Reputation: 27
tesseract libpmg16.la


Hi all,

Been trying to upgrade tesseract through sbopkg, which fails as libpng16.la cannot be found in /usr/lib64 and it be right there is no such file there or in /usr/lib - can anyone help?

cheers
 
Old 06-28-2022, 02:44 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,064

Rep: Reputation: Disabled
libpng16.la is a libtool archive shipped in the package libpng in Slackware 14.2 but not in Slackware 15.0.

Maybe the REPO_BRANCH set in sbopkg.conf does not match the version of Slackware you are using?

Bear in mind that the policy at SBo is to only upgrade SlackBuilds but for the latest stable version of Slackware (currently 15.0).

Last edited by Didier Spaier; 06-28-2022 at 03:50 PM.
 
Old 06-29-2022, 12:42 AM   #3
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,978

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
I don't use SBo. I am building teseract is 5.1.0. There is not much difference between my build configuration and the one in SBo.

I am building without out issues on Slackware64-current. I am building with leptonica 1.82.0. I am using language packs 4.1.0
 
Old 06-29-2022, 04:28 AM   #4
slackbat
Member
 
Registered: Dec 2005
Location: Mid-West-Wales
Distribution: Slackware 14.2_64_multilib - Salix 14.2 - devuan
Posts: 142

Original Poster
Rep: Reputation: 27
Hi

My Leptonica version is 1.82.0; the SBo verion of Tesseract is 5.0.1; I am also FYI using Slackware 15.0 64 stable, having been forced to upgrade from 14.2 64, not a fresh install.

Just looked at the Tesseract.slackbuild file on slackbuilds and as far as I can see it points to the correct version.

On the terract github page/space the latest version is 5.1.0, so I will download and adjust the SBo build script accordingly.

Thanks for providing inspiration.

slackbat
 
Old 06-29-2022, 05:19 AM   #5
slackbat
Member
 
Registered: Dec 2005
Location: Mid-West-Wales
Distribution: Slackware 14.2_64_multilib - Salix 14.2 - devuan
Posts: 142

Original Poster
Rep: Reputation: 27
No even with latest issue still exists.
 
Old 06-29-2022, 05:57 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
libpng16.la is a small text file, 932B.

Version "libpng-1.6.37" is attached as libpng16.la.txt
-
Attached Files
File Type: txt libpng16.la.txt (932 Bytes, 10 views)
 
1 members found this post helpful.
Old 06-29-2022, 06:16 AM   #7
slackbat
Member
 
Registered: Dec 2005
Location: Mid-West-Wales
Distribution: Slackware 14.2_64_multilib - Salix 14.2 - devuan
Posts: 142

Original Poster
Rep: Reputation: 27
Thanks fir the text file.

I looked in my lib64 directory and linpng.la points to libpng16.la which is not there; I also reinstalled libpng using slackpkg - still no joy. Have just inserted the downloaded libpng16.la into lib64, will see what happens.

cheers

slackbat
 
Old 06-29-2022, 07:01 AM   #8
slackbat
Member
 
Registered: Dec 2005
Location: Mid-West-Wales
Distribution: Slackware 14.2_64_multilib - Salix 14.2 - devuan
Posts: 142

Original Poster
Rep: Reputation: 27
Guess what now the complaint is about libgif.la not being found - well I have run out of patience and time for now - but thanks for the filw as it worked.
 
Old 06-29-2022, 03:42 PM   #9
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 404

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
Since a lot of time the .la files are not used anymore in Slackware.

You should delete all of them in your system (in /usr/lib64).

If some exist the compile process could have some problems like you have.

From Changelog 15 :
Quote:
Thu Apr 19 01:04:06 UTC 2018
Hi folks, and welcome to the third ever Slackware Mass Rebuild (and the
longest ChangeLog entry in project history). There were two primary
motivations for rebuilding everything in the main tree. The first was to
switch to the new C++ ABI. The second was to get rid of all the .la files
in the LD_LIBRARY_PATH. Really, having .la files installed has been mostly
obsolete since things began to use pkg-config instead, but it's not easy
to get rid of them unless you do it all at once. If you just take them out
of one package, any other packages containing .la files that refer to the
removed ones will be broken. We've removed a few here and there before
(and then handled any packages that had referred to them with a rebuild),
but it was time to finally remove all the ones in /lib{,64} and
/usr/lib{,64}. One of the reasons that this really needed to happen is that
many projects are starting to migrate to build systems other than autotools,
and those systems do not generate .la files. So if we didn't get rid of them
now, we might end up in a situation later on where they are being removed
by upstream and then we would have to chase down the dependency breakage and
recompile (possibly many) other packages. The .la files that are outside of
the LD_LIBRARY_PATH were not removed (and shouldn't be) - those ones are
often used by the lt_dlopen() function to load plugins and removing those
ones can break things. But those ones don't cause problems... they aren't
likely to try to infect .la files produced by other packages.
IMPORTANT NOTE: If you have any third party or other packages installed on
your system that don't come with Slackware, and those packages have installed
any .la files, it is very likely that they refer to some .la files which we
have just removed, and that trying to compile against these packages will no
longer work. Luckily, the solution is simple: remove them. This command will
remove any stale .la files from the LD_LIBRARY_PATH:
rm /{,usr/}lib{,64}/*.la
Moving forward, nothing shipped in Slackware will contain any .la files in
those directories, and any SlackBuilds intended to be used with Slackware 15.0
should contain this bit of script:
# Don't ship .la files:
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
 
1 members found this post helpful.
Old 06-30-2022, 05:00 AM   #10
slackbat
Member
 
Registered: Dec 2005
Location: Mid-West-Wales
Distribution: Slackware 14.2_64_multilib - Salix 14.2 - devuan
Posts: 142

Original Poster
Rep: Reputation: 27
Quote:
You should delete all of them in your system (in /usr/lib64).

If some exist the compile process could have some problems like you have.
Thanks Bruno; totally interesting amd helpful.

slackbat
 
Old 07-01-2022, 07:12 AM   #11
slackbat
Member
 
Registered: Dec 2005
Location: Mid-West-Wales
Distribution: Slackware 14.2_64_multilib - Salix 14.2 - devuan
Posts: 142

Original Poster
Rep: Reputation: 27
Smile

Hi all.

Just for everyones information, I was able to install tesseract version 5.0.1 from the SBo repository, but not the 5.1.0 version using the the same but version number diffrence in the slackbuild script; brunes help worked.

all the best
 
  


Reply

Tags
libpng16.la



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] tesseract-2.04 playing silly buggers business_kid Linux - Software 3 04-06-2010 05:59 AM
Compiling tesseract-2.03: error: ‘INT32’ was not declared in this scope J_Szucs Linux - Software 10 03-05-2009 02:35 PM
LXer: Optical Character Recognition With Tesseract OCR On Ubuntu 7.04 LXer Syndicated Linux News 0 08-30-2007 06:30 PM
OCR & Tesseract...Anyone tried it ? 2GNUBY Linux - Desktop 0 10-10-2006 03:39 PM
LXer: Google's Tesseract OCR engine is a quantum leap forward LXer Syndicated Linux News 0 09-28-2006 01:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration