- SDL Image IMG Load терпит неудачу на png с: «неудачная загрузка libpng16-16.файл DLL:»
- 5 ответов
- APP launch error: missing libpng16.so #5
- Comments
- enricop commented Aug 19, 2016
- enricop commented Aug 19, 2016
- enricop commented Aug 19, 2016 •
- Sdl error libpng16 so android
- Ubuntu 17.04 libpng12.so.0: cannot open shared object file #95
- Comments
- maraisr commented Apr 30, 2017
- olalonde commented Jun 19, 2017
- tcoopman commented Jun 19, 2017
- olalonde commented Jun 19, 2017
- balaindin commented Sep 21, 2017
- Arbitr108 commented Nov 2, 2017
- ghost commented Nov 27, 2017
- majamusan commented Dec 18, 2017
- VladimirVaivada commented Dec 31, 2017 •
- ndraiman commented Feb 12, 2018
- mikeherrera commented Mar 22, 2018 •
- campaignupgrade commented Jun 20, 2018 •
- bpauldun commented Jul 10, 2018
- samsuits commented Jul 16, 2018
- joscha commented Sep 11, 2018
- robotshateme commented Oct 5, 2018
- matheusfrancisco commented Oct 9, 2018
- ErwinCraps commented Oct 17, 2018
- tomwj commented Jan 2, 2019
- Fourteen98 commented Feb 16, 2019
- kupoback commented May 1, 2019
- campaignupgrade commented Jul 15, 2019 •
- campaignupgrade commented Jul 15, 2019
- shaohuaXu commented Sep 27, 2019
SDL Image IMG Load терпит неудачу на png с: «неудачная загрузка libpng16-16.файл DLL:»
всякий раз, когда я пытаюсь загрузить PNG с помощью функции Img_load SDL_Image, он дает ошибку Failed loading libpng16-16.dll: . У меня есть все правильные dll в правильном пути, и я могу использовать другие части SDL_Image, но по какой-то причине он не может загрузить dll libpng. Как я могу это исправить? Любая помощь приветствуется.
5 ответов
Если вы собираетесь запустить из Visual Studio, убедитесь, что изображение находится в той же папке, что и основной.cpp файл, в противном случае, если вы работаете прямо из исполняемого файла, размеры изображения должны быть в одной папке с ним.
Излишне говорить, что то, что я написал об изображении здесь, также относится к DLL.
получается, что libpng16-16.dll зависит от zlib1.dll для MinGW-w64 (32-бит). Попробуйте включить zlib в свои dependnecies—включите DLL в папку, где выполняется исполняемый файл.
VS не ищет библиотеки DLL нигде, кроме директории выполнения, поэтому вам, вероятно, нужно скопировать эту dll в каталог Debug/ на пути вашего решения.
этой ссылке показать вам, как настроить библиотеку SDL / libpng16-16.dll будет доступна для доступа компилятором.exe (последний шаг прямо перед образцом кода)
страницы -> волоконно программа строит событие-> событие после построения
в моем случае у меня
копировать «C:\Users\MehdiB\Desktop\C программа\библиотека\SDL2-devel-2.0.4-VC\SDL2-2.0.4\lib\x86\SDL2.dll «» $(OutDir)SDL2.библиотека DLL»;
копировать «C:\Users\MehdiB\Desktop\C Программа\библиотека\SDL2_image-devel-2.0.1-VC\SDL2_image-2.0.1\lib\x86\SDL2_image.dll «» $(OutDir)SDL2_image.библиотека DLL»;
копировать «C:\Users\MehdiB\Desktop\C программа\библиотека\dll\libjpeg-9.dll файлы» «$(OutDir)libjpeg-9.DLL-файл»
здесь где вы можете получить эту dll
Источник
APP launch error: missing libpng16.so #5
Comments
enricop commented Aug 19, 2016
Dear Sirs,
I have successfully packaged my game, created with renpy-6.99.11.1708.
I have used the latest RAPT source in this repo.
I have an error on my Android 5.1 complaining the missing libpng16.so shared library.
I have tested it also on Android Emulator.
dalvik.system.PathClassLoader[DexPathList[[zip file «/data/app/com. «],nativeLibraryDirectories=[/vernor/lib,/system/lib]]] couldn’t find «libpng16.so»
Hi have used the common procedure with «android.py» to build the app.
I have no particular errors in build and configure logs.
The text was updated successfully, but these errors were encountered:
enricop commented Aug 19, 2016
I checked build_renpy.sh which builds native libraries (obviously needed).
I’m currently running the build with my Android NDK
enricop commented Aug 19, 2016 •
I’m getting errors while building «pygame_sdl2»
I have tried with the last commit on your repo and the latest release here https://github.com/renpy/pygame_sdl2/releases:
I get this error:
/rapt/native/build/armeabi
pygame_sdl2.error is out of date.
Traceback (most recent call last):
File «setup.py», line 97, in
cython(«pygame_sdl2.error», libs=sdl_libs)
File «/home/sunkiss/1_PRESENTE/pygame_sdl2-renpy/setuplib.py», line 245, in cython
c_fn])
File «/home/sunkiss/1_PRESENTE/rapt/native/install/armeabi/lib/python2.7/subprocess.py», line 506, in check_call
retcode = call(_popenargs, *_kwargs)
File «/home/sunkiss/1_PRESENTE/rapt/native/install/armeabi/lib/python2.7/subprocess.py», line 493, in call
return Popen(_popenargs, *_kwargs).wait()
File «/home/sunkiss/1_PRESENTE/rapt/native/install/armeabi/lib/python2.7/subprocess.py», line 679, in init
errread, errwrite)
File «/home/sunkiss/1_PRESENTE/rapt/native/install/armeabi/lib/python2.7/subprocess.py», line 1228, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Do I have to «prepare» the pygame_sdl2 sources in some way?
The script is running is «native/scripts/pygame_sdl2.sh»
Источник
Sdl error libpng16 so android
2. Как установить/обновить её?
— Зависит от того, на какую систему ставите:
Windows/Linux: (необходимо заранее скачать оригинальную версию отсюда: ddlc.moe)
1. Скачайте архив по одной из ссылок, обозначенных «(W)»
2. Откройте в Проводнике или Файлах корневую папку игры
(предположим, D:\DDLC или /home/kt-harohapi/DDLC)
3. Откройте второе окно файлового менеджера и там найдите скачанный архив
4. Откройте скачанный архив (он откроется в окне Проводника или в Менеджере архивов)
5. Папки «game», «lib» и «renpy» перенесите в D:\DDLC (или /home/kt-harohapi/DDLC), которая открыта в окне из шага 2
6. Согласитесь на замену
7. Финал: на Windows запустите файл DDLC.exe, на дистрибутиве Linux — DDLC.sh (возможно, потребуется разрешить выполнение файла)
Android (только 5.0 (Lollipop) и выше):
— Начиная с версии Бета 1.8.5, Android-порты будут выкладываться в комбо-файлах .xapk —
— Обязательно установите XAPK Installer, его APK-файл уже вложен в архив —
— Если XAPK Installer работает на вашем устройстве некорректно, установите X-plore: —
— https://play.google.com/store/apps/details?id=com.lon.. —
— И устанавливайте .xapk через него —
1. Скачайте архив по одной из ссылок, обозначенных «(A)»
2. Откройте ES Проводник Pro, X-plore или аналогичный им файловый менеджер, который умеет адекватно работать с ZIP-архивами
3. Найдите скачанный архив
4. Откройте его и извлеките всё содержимое в отдельную папку (допустим, папка будет называться «JustYuri-Beta-1.8.5-android»)
4.1. Откройте параллельно в том же файловом менеджере папку Внутренняя память*/Android/obb и удалите уже имеющийся файл кэша**, оставшийся от прошлой установки
* — иногда указывается как «/storage/emulated/0»
** — его имя начинается с «main», формат — «.obb»
5. Откройте папку, в которую извлекли все файлы из архива, и коснитесь файла «ru.nekomonika.justyuri.xapk»
6. Из файлового менеджера вас должно перенаправить в приложение XAPK Installer, где появится окно со следующими пунктами: «Delete» и «Install»; выбираем второй вариант
6.1. Если перенаправление не произошло (такое бывает в X-plore), то выберите «*/*» и в выборке приложений выберите «XAPK Installer»
7. Дождитесь установки кэша игры; после этого появится окно Установщика пакетов, где надо нажать на «Установить»
7.1. Если появится окно «Заблокировано Play Защитой», разверните информацию («Подробнее») и выберите «Всё равно установить (не рекомендуется)»
8. Установщик пакетов должен отобразить надпись «Приложение установлено»
9. Запустите приложение «Только Юри» в меню рабочего стола
macOS:
1. Скачайте архив по одной из ссылок, обозначенных «(M)»
2. Откройте Finder и найдите скачанный архив; можно также развернуть на Dock папку «Загрузки» и посмотреть, есть ли скачанный архив там
3. Щёлкните дважды по нему, Менеджер архивов автоматически его распакует
3.1. Если во время распаковки Менеджер архивов выдал ошибку 22 или после распаковки приложение не открывается, попробуйте распаковать архив через альтернативный менеджер архивов Keka; скачать его можно здесь: https://www.keka.io/ru/
4. Попробуйте запустить файл «JustYuri.app»
5. Если появится окно Gatekeeper, оповещающее о том, что текущая политика запрещает использование приложений из любых источников, откройте Терминал и отправьте команду: sudo spctl —master-disable *
* — перед «master» должно быть 2 дефиса, а не длинное тире, учтите это! Это не моя ошибка, а триггер форматирования ВКонтакте!
6. После выполнения команды, попробуйте снова запустить приложение. В окне Gatekeeper нажмите «Открыть»
7. При желании, вы можете перенести «JustYuri.app» в папку Программы
— Процесс обновления проходит таким же образом. Удачи. :3
3. Как дарить Юри подарки?
——————————————
Внимание: Юри на данный момент времени *не принимает* подарки, данная возможность была отозвана самими разработчиками модификации; по этому поводу, пожалуйста, ничего *не пишите*, мы обязательно сообщим вам, когда подарки можно будет дарить Юри вновь.
——————————————
— Зависит от системы, на которой установлена модификация:
Источник
Ubuntu 17.04 libpng12.so.0: cannot open shared object file #95
Comments
maraisr commented Apr 30, 2017
Given this ticket somewhat relates to #76 I decided to re-create becuase we’re now at version 17.04 with still no fix?
Error message:
From what I can see I’d need to contact you guys?
OS: Ubuntu 17.04
Version:: mozjpeg v4.1.1
Package: sudo apt-get install libpng-dev ran with no errors:
The text was updated successfully, but these errors were encountered:
olalonde commented Jun 19, 2017
Anyone knows a work around?
tcoopman commented Jun 19, 2017
As you can see, it’s a problem with the dependency (mozjepg) and there is no current fix fo this. imagemin/mozjpeg-bin#18. At mozjepg you can find a possible workaround: mozilla/mozjpeg#255
Closing because this project can’t fix this.
olalonde commented Jun 19, 2017
Ah ok, using this as a workaround:
balaindin commented Sep 21, 2017
Arbitr108 commented Nov 2, 2017
what if libpng-dev:amd64 is already installed (debian 9) and still
«/mozjpeg/vendor/cjpeg: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory»?
ghost commented Nov 27, 2017
Same problem on Debian 9.
majamusan commented Dec 18, 2017
VladimirVaivada commented Dec 31, 2017 •
Sorry my English. I just installed mozjpeg@5.0.0 package and delete old mozjpeg@4.1.1 from image-webpack-loader node_modules. And it works!
I had the same error message: «. . . /mozjpeg/vendor/cjpeg: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory»
I am on Debian 9.3 with libpng16
ndraiman commented Feb 12, 2018
Downgrading image-webpack-loader to v3.6.0 solved it for me:
yarn add image-webpack-loader@^3.6.0
mikeherrera commented Mar 22, 2018 •
I got passed this on CentOS 7 through a combination of a lot of cursing and yum install libpng12.x86_64 libpng12-devel.x86_64 I didn’t have to remove the newer libpng packages either.
campaignupgrade commented Jun 20, 2018 •
None of the above fixes worked for me.
This one-liner solved it:
echo «deb http://mirrors.kernel.org/ubuntu/ xenial main» | sudo tee -a /etc/apt/sources.list && sudo apt-get update && sudo apt install -y —allow-unauthenticated libpng12-0
This installed libpng12 and doesn’t require uninstalling libpng-dev (16.34 as of this comment). The issue appears to reside in a node package or webpack configuration and I wish it could be resolved there. In the meantime loading an old, outdated, buggy revision of libpng allows the build to proceed.
bpauldun commented Jul 10, 2018
@slamorte Nice one. This fix works great. Thank you
samsuits commented Jul 16, 2018
Thanks @slamorte. Your fix worked for me. Cheers !!
joscha commented Sep 11, 2018
echo «deb http://mirrors.kernel.org/ubuntu/ xenial main» | sudo tee -a /etc/apt/sources.list && sudo apt-get update && sudo apt install -y —allow-unauthenticated libpng12-0
Does this solution work for anyone in sid ? I can’t seem to get it installed due to
robotshateme commented Oct 5, 2018
«echo «deb http://mirrors.kernel.org/ubuntu/ xenial main» | sudo tee -a /etc/apt/sources.list && sudo apt-get update && sudo apt install -y —allow-unauthenticated libpng12-0″
Worked for me.
matheusfrancisco commented Oct 9, 2018
Ah ok, using this as a workaround:
work to me on debian 9.4
ErwinCraps commented Oct 17, 2018
None of the above fixes worked for me.
This one-liner solved it:
echo «deb http://mirrors.kernel.org/ubuntu/ xenial main» | sudo tee -a /etc/apt/sources.list && sudo apt-get update && sudo apt install -y —allow-unauthenticated libpng12-0
This installed libpng12 and doesn’t require uninstalling libpng-dev (16.34 as of this comment). The issue appears to reside in a node package or webpack configuration and I wish it could be resolved there. In the meantime loading an old, outdated, buggy revision of libpng allows the build to proceed.
Worked for me on Ubuntu 18.04.1 LTS which is Hyper-V Win 10 Quick create one.
I needed this because ODOO has issues generating mail/pdf’s at least in the sales module.
Thank you.
tomwj commented Jan 2, 2019
Ended up here from Arch ( Manjaro ). This fixed it.
sudo pacman -S libpng12
Fourteen98 commented Feb 16, 2019
None of the above fixes worked for me.
This one-liner solved it:
echo «deb http://mirrors.kernel.org/ubuntu/ xenial main» | sudo tee -a /etc/apt/sources.list && sudo apt-get update && sudo apt install -y —allow-unauthenticated libpng12-0
This installed libpng12 and doesn’t require uninstalling libpng-dev (16.34 as of this comment). The issue appears to reside in a node package or webpack configuration and I wish it could be resolved there. In the meantime loading an old, outdated, buggy revision of libpng allows the build to proceed.
Worked for me on Ubuntu 18.04.1 LTS which is Hyper-V Win 10 Quick create one.
I needed this because ODOO has issues generating mail/pdf’s at least in the sales module.
Thank you.
Thank you Erwin, it solved mine
kupoback commented May 1, 2019
None of the above fixes worked for me.
This one-liner solved it:
echo «deb http://mirrors.kernel.org/ubuntu/ xenial main» | sudo tee -a /etc/apt/sources.list && sudo apt-get update && sudo apt install -y —allow-unauthenticated libpng12-0
This installed libpng12 and doesn’t require uninstalling libpng-dev (16.34 as of this comment). The issue appears to reside in a node package or webpack configuration and I wish it could be resolved there. In the meantime loading an old, outdated, buggy revision of libpng allows the build to proceed.
Worked for me on Ubuntu 18.04.1 LTS which is Hyper-V Win 10 Quick create one.
I needed this because ODOO has issues generating mail/pdf’s at least in the sales module.
Thank you.
Thank you Erwin, it solved mine
Thank you as well. Worked for me on Ubuntu 18.04
campaignupgrade commented Jul 15, 2019 •
Recently my deploy process starting throwing errors regarding keys.
This new three-line bash fixes that issue:
campaignupgrade commented Jul 15, 2019
If anyone has a better fix, perhaps using a new version of mozjepg, I’d be happier to replace this hacky fix.
shaohuaXu commented Sep 27, 2019
None of the above fixes worked for me.
This one-liner solved it:
echo «deb http://mirrors.kernel.org/ubuntu/ xenial main» | sudo tee -a /etc/apt/sources.list && sudo apt-get update && sudo apt install -y —allow-unauthenticated libpng12-0
This installed libpng12 and doesn’t require uninstalling libpng-dev (16.34 as of this comment). The issue appears to reside in a node package or webpack configuration and I wish it could be resolved there. In the meantime loading an old, outdated, buggy revision of libpng allows the build to proceed.
This installed libpng12 and doesn’t require uninstalling libpng-dev (16.34 as of this comment). The issue appears to reside in a node package or webpack configuration and I wish it could be resolved there. In the meantime loading an old, outdated, buggy revision of libpng allows the build to proceed.
Источник