Libpng

Questions about Wine on Linux
Post Reply
Nevi
Level 1
Level 1
Posts: 5
Joined: Mon Jul 27, 2020 9:30 am

Libpng

Post by Nevi » Mon Jul 27, 2020 10:18 am

Hi
I am trying to install the vcrun 2017 libraries . (Same error occurs with versions vcrun 2012 - 2019 )
Pop os wine-5.13 (Staging)

I get the following error :

0120:err:wincodecs:PngDecoder_CreateInstance Failed reading PNG because unable to find libpng12.so.0
0120:fixme:shell:SHAutoComplete stub
------------------------------------------------------
Note: command wine vcredist_x86.exe returned status 5. Aborting.
------------------------------------------------------

I have been reading that libpng12 is not supported anymore .

Then i found this article ( https://www.linuxuprising.com/2018/05/f ... -1804.html ) and followed its instructions .

I have downloaded the libpng12-0_1.2.54-1ubuntu1.1+1~ppa0~eoan_amd64.deb and run it successfully with Eddy .

Yet still installing the vcrun 2017 libraries, I do get the same error message .

So what to do ?
Im new to this .

jkfloris
Level 8
Level 8
Posts: 1158
Joined: Thu Aug 14, 2014 10:10 am

Re: Libpng

Post by jkfloris » Mon Jul 27, 2020 5:19 pm

  • Which version of PopOs! do you use?
  • Which version of Winetricks do you use?
    • Use sudo winetricks --self-update to update.
  • How did you install Wine Staging?
  • Did you install the 64 and the 32-bit versions of libpng?
    • Use dpkg -l | grep libpng to check.

Nevi
Level 1
Level 1
Posts: 5
Joined: Mon Jul 27, 2020 9:30 am

Re: Libpng

Post by Nevi » Thu Jul 30, 2020 6:19 am

Hi

Which version of PopOs! do you use?

Distributor ID: Pop
Description: Pop!_OS 20.04 LTS
Release: 20.04
Codename: focal

Which version of Winetricks do you use?

20200412-next - sha256sum: d3829f1cfe6fa655b178ef1f547bc39c9e4acfac72899726ab310a8462f34167

How did you install Wine Staging?

I have followed the instructions on https://wiki.winehq.org/Ubuntu . libpng 16 is installed .

Did you install the 64 and the 32-bit versions of libpng?

ii libpng-dev:amd64 1.6.37-2 amd64 PNG library - development (version 1.6)
ii libpng-tools 1.6.37-2 amd64 PNG library - tools (version 1.6)
ii libpng12-0:amd64 1.2.54-1ubuntu1.1+1~ppa0~eoan amd64 PNG library - runtime
ii libpng16-16:amd64 1.6.37-2 amd64 PNG library - runtime (version 1.6)
ii libpng16-16:i386 1.6.37-2 i386 PNG library - runtime (version 1.6)
ii libpng3:amd64 1.2.54-1ubuntu1.1 amd64 PNG library - runtime

spoon0042
Level 5
Level 5
Posts: 383
Joined: Thu Dec 24, 2009 11:00 am

Re: Libpng

Post by spoon0042 » Thu Jul 30, 2020 4:35 pm

Yeah, you're missing the 32-bit libpng12-0. On the other hand you shouldn't need libpng 1.2 at all so I suspect there's still some old distro wine packages installed. (Unless you tell it differently winetricks will use /usr/bin/wine.) Can you do a 'dpkg -l | grep wine'?

Nevi
Level 1
Level 1
Posts: 5
Joined: Mon Jul 27, 2020 9:30 am

Re: Libpng

Post by Nevi » Fri Jul 31, 2020 6:44 am

Hi

ii wine-devel 5.13~xenial amd64 WINE Is Not An Emulator - runs MS Windows programs
ii wine-devel-amd64 5.13~xenial amd64 WINE Is Not An Emulator - runs MS Windows programs
ii wine-devel-i386:i386 5.13~xenial i386 WINE Is Not An Emulator - runs MS Windows programs
ii wine-stable 5.0.1~xenial amd64 WINE Is Not An Emulator - runs MS Windows programs
ii wine-stable-amd64 5.0.1~xenial amd64 WINE Is Not An Emulator - runs MS Windows programs
ii wine-stable-i386:i386 5.0.1~xenial i386 WINE Is Not An Emulator - runs MS Windows programs
ii wine-staging 5.13~xenial amd64 WINE Is Not An Emulator - runs MS Windows programs
ii wine-staging-amd64 5.13~xenial amd64 WINE Is Not An Emulator - runs MS Windows programs
ii wine-staging-i386:i386 5.13~xenial i386 WINE Is Not An Emulator - runs MS Windows programs
ii winehq-staging 5.13~xenial amd64 WINE Is Not An Emulator - runs MS Windows programs

Where can i get he 32-bit libpng12-0 ?
It seems that the install of vcrun doesn't works with libpng 16 .

(Unless you tell it differently winetricks will use /usr/bin/wine.) ?

spoon0042
Level 5
Level 5
Posts: 383
Joined: Thu Dec 24, 2009 11:00 am

Re: Libpng

Post by spoon0042 » Fri Jul 31, 2020 5:31 pm

Well that's odd. I had a look and it seems the xenial packages still use 1.2. Who knows.

If that link you posted is where you downloaded from it has a link there for the 32 bit libpng12 as well. The file you get should be named the same as the other but with 'i386' instead of 'amd64'. Installing that should fix it, I think/hope.

jkfloris
Level 8
Level 8
Posts: 1158
Joined: Thu Aug 14, 2014 10:10 am

Re: Libpng

Post by jkfloris » Sun Aug 02, 2020 4:55 am

...
Release: 20.04
Codename: focal
ii wine-devel 5.13~xenial ...
Why do you use the xenial packages on a focal distro?

Nevi
Level 1
Level 1
Posts: 5
Joined: Mon Jul 27, 2020 9:30 am

Re: Libpng

Post by Nevi » Mon Aug 03, 2020 12:43 pm

How do i remove the for my distro unneeded packages .
Where do i find the needed packages for my distro .

I have tried the 32 bit libpng12 packages but they wont install / are rejected .

jkfloris
Level 8
Level 8
Posts: 1158
Joined: Thu Aug 14, 2014 10:10 am

Re: Libpng

Post by jkfloris » Mon Aug 03, 2020 5:16 pm

Find and replace the winehq xenial line in /etc/apt/sources.list(.d/***.list) with focal.

Code: Select all

# Make sure grep finds the right file
grep -r winehq /etc/apt/sources.list*
# output: /etc/apt/sources.list***:deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main
# Use sed to find and replace xenial with focal
sudo sed -i '/winehq/s/xenial/focal/g' $(grep -r winehq /etc/apt/sources.list* | cut -d: -f1)
# Check the output
grep -r winehq /etc/apt/sources.list*
# output: /etc/apt/sources.list***:deb https://dl.winehq.org/wine-builds/ubuntu/ focal main
If everything went right remove the wrong wine packages and use the new repo to install Wine

Code: Select all

sudo apt remove wine-devel wine-devel-amd64 wine-devel-i386:i386 wine-stable wine-stable-amd64 wine-stable-i386:i386 wine-staging wine-staging-amd64 wine-staging-i386:i386 winehq-staging
sudo apt update
sudo apt install --install-recommends wine-devel wine-devel-amd64 wine-devel-i386:i386 wine-stable wine-stable-amd64 wine-stable-i386:i386 wine-staging wine-staging-amd64 wine-staging-i386:i386 winehq-staging

spoon0042
Level 5
Level 5
Posts: 383
Joined: Thu Dec 24, 2009 11:00 am

Re: Libpng

Post by spoon0042 » Mon Aug 03, 2020 5:33 pm

fyi add-apt-repository has a -r option to remove a repository, assuming it was added that way:

Code: Select all

sudo add-apt-repository -r 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'

Nevi
Level 1
Level 1
Posts: 5
Joined: Mon Jul 27, 2020 9:30 am

Re: Libpng

Post by Nevi » Wed Aug 05, 2020 2:49 am

I have run the commands successfully . Thanks
Executing cd /home/hh/.cache/winetricks/vcrun2017
Executing wine vc_redist.x86.exe
002c:fixme:winediag:__wine_start_process Wine Staging 5.14 is a testing version containing experimental patches.
002c:fixme:winediag:__wine_start_process Please mention your exact version when filing bug reports on winehq.org.
002c:fixme:ntdll:EtwRegisterTraceGuidsA (000007FF7772E4E0, 000007FF777BA660, {0cfe0455-93ba-440d-a3fe-553973d0b723}, 1, 000000000031E7A0, (null), (null), 000007FF777BA668): stub
002c:fixme:ntdll:EtwRegisterTraceGuidsA (000007FF7772E4E0, 000007FF777BA680, {797fabac-7b58-4796-b924-d51178a59ce4}, 1, 000000000031E7A0, (null), (null), 000007FF777BA688): stub
002c:fixme:ntdll:EtwEventRegister ({43d1a55c-76d6-4f7e-995c-64c711e5cafe}, 000007FF776DC740, 000007FF777BB7E8, 000007FF777B9A40) stub.
002c:fixme:ntdll:EtwEventActivityIdControl 0x1, 000000000031E9D0: stub
0024:fixme:heap:RtlSetHeapInformation 00000000 1 00000000 0 stub
0024:err:ole:apartment_getclassobject DllGetClassObject returned error 0x80040111 for dll L"C:\\windows\\system32\\msxml2.dll"
0024:err:ole:CoGetClassObject no class object {f5078f1b-c551-11d3-89b9-0000f81fe221} could be created for context 0x1
0024:fixme:ver:GetCurrentPackageId (0031FE34 00000000): stub
------------------------------------------------------
Note: command wine vc_redist.x86.exe returned status 17. Aborting.
------------------------------------------------------

jkfloris
Level 8
Level 8
Posts: 1158
Joined: Thu Aug 14, 2014 10:10 am

Re: Libpng

Post by jkfloris » Thu Aug 06, 2020 11:43 am

Do you get the same error if you run winetricks with a clean wineprefix?

Code: Select all

WINEPREFIX=~/wine-test-vcrun winetricks -q vcrun2017

Post Reply