Configure error libpng is required for writing png messages

http://guac-dev.org/doc/gug/installing-guacamole.html#required-dependencies From ./configure checking for png_write_png in -lpng... no configure: error: "libpng is required for writing png mes...

Comments

@TyrfingMjolnir

jperkin

pushed a commit
that referenced
this issue

May 19, 2016

Changelog:
2.17.2288.102 - 2.17.2313.102 / 2016-01-03 - 2016-01-10

Summary of changes between 2.17.2288.102 and 2.17.2313.102 as follows.

    Third party libraries:
        None.
    Build related changes:
        None.
    Major changes:
        Update system dictionary.
        Status icons for OS X are updated with Noto font.
    Fixed issues:
        #344: Support icon_prop_key entry in ibus-mozc
        #345: Mozc for Android keeps crashing
        #347: Software keyboard is not rendered correctly on Android 6 if non-material theme is selected
        #350: Status icon is not updated when using Windows Store Apps in desktop mode on Windows 10
        #351: Mozc cannot be activated in the search box on the task bar when configured to be the default IME on Windows 10
        Following issues are not completely fixed yet, but at least worked around.
            #348: DirectWrite may fail to render text in certain enviromnents
            #349: Word suggestion can be unexpectedly suppressed on Chromium
    Total commits:
        29 commits.


2.17.2285.102 - 2.17.2287.102 / 2016-01-01 - 2016-01-02

Summary of changes between 2.17.2285.102 and 2.17.2287.102 as follows.

    Third party libraries:
        None.
    Build related changes:
        None.
    Major changes:
        None.
    Fixed issues:
        None.
    Total commits:
        4 commits.


2.17.2241.102 - 2.17.2284.102 / 2015-11-15 - 2015-12-31

Summary of changes between 2.17.2241.102 and 2.17.2284.102 as follows.

    Third party libraries:
        fontTools: 5ba7d98 -> 8724513
    Build related changes:
        Reference Dockerfile for Fedora now uses Fedora 23 base image.
        Default SDKROOT for OS X build is switched from macosx10.8 to macosx10.9.
    Major changes:
        CalculatorRewriter is now triggered not only by inputs end with = but also by inputs start with =. For instance, now =1+1 triggers CalculatorRewriter. See the commit message of 5d423b0b and its unittests as for how it works.
        Performance improvements in LOUDS. See commits 3591f5e7 and cac14650 for details.
    Fixed issues:
        #317: session_handler_scenario_test is flaky in Linux build on Travis-CI
        #341: 1d*= should not trigger language-aware rewriter
    Total commits:
        48 commits.

jperkin

pushed a commit
that referenced
this issue

Oct 5, 2016

v1.1.0
New : contrib/pzstd, parallel version of zstd, by Nick Terrell
added : NetBSD install target (#338)
Improved : speed for batches of small files
Improved : speed of zlib wrapper, by Przemyslaw Skibinski
Changed : libzstd on Windows supports legacy formats, by Christophe Chevalier
Fixed : CLI -d output to stdout by default when input is stdin (#322)
Fixed : CLI correctly detects console on Mac OS-X
Fixed : CLI supports recursive mode `-r` on Mac OS-X
Fixed : Legacy decoders use unified error codes, reported by benrg (#341), fixed by Przemyslaw Skibinski
Fixed : compatibility with OpenBSD, reported by Juan Francisco Cantero Hurtado (#319)
Fixed : compatibility with Hurd, by Przemyslaw Skibinski (#365)
Fixed : zstd-pgo, reported by octoploid (#329)

jperkin

pushed a commit
that referenced
this issue

Oct 22, 2016

jperkin

pushed a commit
that referenced
this issue

Feb 28, 2017

v1.6.2
  Version 1.6.2

  Bugfix release

  - Fixed a bug where application default credentials would still be used even
    when a developerKey was specified. (#347)
  - Official support for Python 3.5 and 3.6. (#341)

jperkin

pushed a commit
that referenced
this issue

Mar 20, 2017

Changes in 2.8.3			2016/12/8

Bug

* Avoid frozen string errors on Ruby 2.3 - fixed by RJ Walsh #336
* SSL timeouts not working on JRuby - fixed by Dave Golombek #341
* Do not reset SSL connection if unnecessary - fixed by Dave Golombek #344
* Ignore text around PEM file in JRuby fixed by Scott Kolb #352

Changes

* Add HTTPClient#tcp_keepalive= for enabling TCP keepalive. false by default. #350

  • Summary

  • Files

  • Reviews

  • Support

  • News

  • Discussion

  • Git

Menu

FreeBSD 10.0


Created:

2014-08-13

Updated:

2015-02-22

  • Sergey

    Hi there! I have this problem on FreeBSD 10.0

    ./configure
    checking for a BSD-compatible install… /usr/bin/install -c
    checking whether build environment is sane… yes
    checking for a thread-safe mkdir -p… ./install-sh -c -d
    checking for gawk… no
    checking for mawk… no
    checking for nawk… nawk
    checking whether make sets $(MAKE)… yes
    checking whether make supports nested variables… yes
    checking whether make supports nested variables… (cached) yes
    checking build system type… amd64-unknown-freebsd10.0
    checking host system type… amd64-unknown-freebsd10.0
    checking how to print strings… printf
    checking for style of include used by make… GNU
    checking for gcc… no
    checking for cc… cc
    checking whether the C compiler works… yes
    checking for C compiler default output file name… a.out
    checking for suffix of executables…
    checking whether we are cross compiling… no
    checking for suffix of object files… o
    checking whether we are using the GNU C compiler… yes
    checking whether cc accepts -g… yes
    checking for cc option to accept ISO C89… none needed
    checking whether cc understands -c and -o together… yes
    checking dependency style of cc… gcc3
    checking for a sed that does not truncate output… /usr/bin/sed
    checking for grep that handles long lines and -e… /usr/bin/grep
    checking for egrep… /usr/bin/grep -E
    checking for fgrep… /usr/bin/grep -F
    checking for ld used by cc… /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld… yes
    checking for BSD- or MS-compatible name lister (nm)… /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface… BSD nm
    checking whether ln -s works… yes
    checking the maximum length of command line arguments… 196608
    checking whether the shell understands some XSI constructs… yes
    checking whether the shell understands «+=»… no
    checking how to convert amd64-unknown-freebsd10.0 file names to amd64-unknown-freebsd10.0 format… func_convert_file_noop
    checking how to convert amd64-unknown-freebsd10.0 file names to toolchain format… func_convert_file_noop
    checking for /usr/bin/ld option to reload object files… -r
    checking for objdump… objdump
    checking how to recognize dependent libraries… pass_all
    checking for dlltool… no
    checking how to associate runtime and link libraries… printf %sn
    checking for ar… ar
    checking for archiver @FILE support… no
    checking for strip… strip
    checking for ranlib… ranlib
    checking command to parse /usr/bin/nm -B output from cc object… ok
    checking for sysroot… no
    checking for mt… mt
    checking if mt is a manifest tool… no
    checking how to run the C preprocessor… cc -E
    checking for ANSI C header files… yes
    checking for sys/types.h… yes
    checking for sys/stat.h… yes
    checking for stdlib.h… yes
    checking for string.h… yes
    checking for memory.h… yes
    checking for strings.h… yes
    checking for inttypes.h… yes
    checking for stdint.h… yes
    checking for unistd.h… yes
    checking for dlfcn.h… yes
    checking for objdir… .libs
    checking if cc supports -fno-rtti -fno-exceptions… yes
    checking for cc option to produce PIC… -fPIC -DPIC
    checking if cc PIC flag -fPIC -DPIC works… yes
    checking if cc static flag -static works… yes
    checking if cc supports -c -o file.o… yes
    checking if cc supports -c -o file.o… (cached) yes
    checking whether the cc linker (/usr/bin/ld) supports shared libraries… yes
    checking whether -lc should be explicitly linked in… no
    checking dynamic linker characteristics… freebsd10.0 ld.so
    checking how to hardcode library paths into programs… immediate
    checking for shl_load… no
    checking for shl_load in -ldld… no
    checking for dlopen… yes
    checking whether a program can dlopen itself… yes
    checking whether a statically linked program can dlopen itself… no
    checking whether stripping libraries is possible… yes
    checking if libtool supports shared libraries… yes
    checking whether to build shared libraries… yes
    checking whether to build static libraries… yes
    checking whether we are using the GNU C compiler… (cached) yes
    checking whether cc accepts -g… (cached) yes
    checking for cc option to accept ISO C89… (cached) none needed
    checking whether cc understands -c and -o together… (cached) yes
    checking dependency style of cc… (cached) gcc3
    checking for cc option to accept ISO C99… none needed
    checking fcntl.h usability… yes
    checking fcntl.h presence… yes
    checking for fcntl.h… yes
    checking for stdlib.h… (cached) yes
    checking for string.h… (cached) yes
    checking sys/socket.h usability… yes
    checking sys/socket.h presence… yes
    checking for sys/socket.h… yes
    checking time.h usability… yes
    checking time.h presence… yes
    checking for time.h… yes
    checking sys/time.h usability… yes
    checking sys/time.h presence… yes
    checking for sys/time.h… yes
    checking syslog.h usability… yes
    checking syslog.h presence… yes
    checking for syslog.h… yes
    checking for unistd.h… (cached) yes
    checking cairo/cairo.h usability… no
    checking cairo/cairo.h presence… no
    checking for cairo/cairo.h… no
    checking pngstruct.h usability… no
    checking pngstruct.h presence… no
    checking for pngstruct.h… no
    checking for cos in -lm… yes
    checking for png_write_png in -lpng… no
    configure: error: «libpng is required for writing png messages»

    have seen a similar problem with Debian users, but the solution for me is not ideal. Tried to install libpng manually. There is also no effect. How fix it? Thaks!

  • Sergey

    root@Aurora:/usr/local/lib # ls | grep libpng
    libpng
    libpng.a
    libpng.la
    libpng.so
    libpng15.a
    libpng15.so
    libpng15.so.15
    libpng16.a
    libpng16.la
    libpng16.so
    libpng16.so.16
    libpng17.a
    libpng17.la
    libpng17.so
    libpng17.so.17
    libpngwriter.a

  • Michael Jumper

  • Sergey

    thanks it worked, but now I have another problem
    ./configure CFLAGS=»-I/usr/local/include» LDFLAGS=»-L/usr/local/lib» —with-init-dir=/etc/rc.d
    checking for a BSD-compatible install… /usr/bin/install -c
    checking whether build environment is sane… yes
    checking for a thread-safe mkdir -p… ./install-sh -c -d
    checking for gawk… no
    checking for mawk… no
    checking for nawk… nawk
    checking whether make sets $(MAKE)… yes
    checking whether make supports nested variables… yes
    checking whether make supports nested variables… (cached) yes
    checking build system type… amd64-unknown-freebsd10.0
    checking host system type… amd64-unknown-freebsd10.0
    checking how to print strings… printf
    checking for style of include used by make… GNU
    checking for gcc… no
    checking for cc… cc
    checking whether the C compiler works… yes
    checking for C compiler default output file name… a.out
    checking for suffix of executables…
    checking whether we are cross compiling… no
    checking for suffix of object files… o
    checking whether we are using the GNU C compiler… yes
    checking whether cc accepts -g… yes
    checking for cc option to accept ISO C89… none needed
    checking whether cc understands -c and -o together… yes
    checking dependency style of cc… gcc3
    checking for a sed that does not truncate output… /usr/bin/sed
    checking for grep that handles long lines and -e… /usr/bin/grep
    checking for egrep… /usr/bin/grep -E
    checking for fgrep… /usr/bin/grep -F
    checking for ld used by cc… /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld… yes
    checking for BSD- or MS-compatible name lister (nm)… /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface… BSD nm
    checking whether ln -s works… yes
    checking the maximum length of command line arguments… 196608
    checking whether the shell understands some XSI constructs… yes
    checking whether the shell understands «+=»… no
    checking how to convert amd64-unknown-freebsd10.0 file names to amd64-unknown-freebsd10.0 format… func_convert_file_noop
    checking how to convert amd64-unknown-freebsd10.0 file names to toolchain format… func_convert_file_noop
    checking for /usr/bin/ld option to reload object files… -r
    checking for objdump… objdump
    checking how to recognize dependent libraries… pass_all
    checking for dlltool… no
    checking how to associate runtime and link libraries… printf %sn
    checking for ar… ar
    checking for archiver @FILE support… no
    checking for strip… strip
    checking for ranlib… ranlib
    checking command to parse /usr/bin/nm -B output from cc object… ok
    checking for sysroot… no
    checking for mt… mt
    checking if mt is a manifest tool… no
    checking how to run the C preprocessor… cc -E
    checking for ANSI C header files… yes
    checking for sys/types.h… yes
    checking for sys/stat.h… yes
    checking for stdlib.h… yes
    checking for string.h… yes
    checking for memory.h… yes
    checking for strings.h… yes
    checking for inttypes.h… yes
    checking for stdint.h… yes
    checking for unistd.h… yes
    checking for dlfcn.h… yes
    checking for objdir… .libs
    checking if cc supports -fno-rtti -fno-exceptions… yes
    checking for cc option to produce PIC… -fPIC -DPIC
    checking if cc PIC flag -fPIC -DPIC works… yes
    checking if cc static flag -static works… yes
    checking if cc supports -c -o file.o… yes
    checking if cc supports -c -o file.o… (cached) yes
    checking whether the cc linker (/usr/bin/ld) supports shared libraries… yes
    checking whether -lc should be explicitly linked in… no
    checking dynamic linker characteristics… freebsd10.0 ld.so
    checking how to hardcode library paths into programs… immediate
    checking for shl_load… no
    checking for shl_load in -ldld… no
    checking for dlopen… yes
    checking whether a program can dlopen itself… yes
    checking whether a statically linked program can dlopen itself… no
    checking whether stripping libraries is possible… yes
    checking if libtool supports shared libraries… yes
    checking whether to build shared libraries… yes
    checking whether to build static libraries… yes
    checking whether we are using the GNU C compiler… (cached) yes
    checking whether cc accepts -g… (cached) yes
    checking for cc option to accept ISO C89… (cached) none needed
    checking whether cc understands -c and -o together… (cached) yes
    checking dependency style of cc… (cached) gcc3
    checking for cc option to accept ISO C99… none needed
    checking fcntl.h usability… yes
    checking fcntl.h presence… yes
    checking for fcntl.h… yes
    checking for stdlib.h… (cached) yes
    checking for string.h… (cached) yes
    checking sys/socket.h usability… yes
    checking sys/socket.h presence… yes
    checking for sys/socket.h… yes
    checking time.h usability… yes
    checking time.h presence… yes
    checking for time.h… yes
    checking sys/time.h usability… yes
    checking sys/time.h presence… yes
    checking for sys/time.h… yes
    checking syslog.h usability… yes
    checking syslog.h presence… yes
    checking for syslog.h… yes
    checking for unistd.h… (cached) yes
    checking cairo/cairo.h usability… yes
    checking cairo/cairo.h presence… no
    configure: WARNING: cairo/cairo.h: accepted by the compiler, rejected by the preprocessor!
    configure: WARNING: cairo/cairo.h: proceeding with the compiler’s result
    checking for cairo/cairo.h… yes
    checking pngstruct.h usability… no
    checking pngstruct.h presence… no
    checking for pngstruct.h… no
    checking for cos in -lm… yes
    checking for png_write_png in -lpng… yes
    checking for cairo_create in -lcairo… yes
    checking for pthread_create in -lpthread… yes
    checking for uuid_make in -lossp-uuid… no
    checking for uuid_make in -luuid… no
    configure: error: «The OSSP UUID library is required»

    I tried to install libuuid-devel manually in /usr and /usr/local does not have the proper result

  • Sergey

    more precisely, in /usr/local/include and /usr/local/lib respectively

  • Sergey

    and i use
    cd /usr/ports/misc/e2fsprogs-libuuid
    make install clean
    nothing…

     

    Last edit: Sergey 2014-08-14

  • Sergey

    uuidd defined in /etc/rc.conf

  • Michael Jumper

    The library you’re looking for is /usr/ports/misc/ossp-uuid.

    The various others are different UUID libraries, but not the OSSP one used by the guacamole-server source.

  • Sergey

  • Hugo Conde

    I know this has nothing to do with FressSBD10.0 but i am also experiencing the same error when installing the guacamole server in OpenSuse 13.1 using Gnome Desktop 3.10.2. For some reason there is no documentation in guacamoles website on how to install guacamole server in opensuse so i am doing it from source. I have had all the gcc compiler is missing error, the libpng error and now i have the ossp uuid lib is required error though i have installed it using SUDO ZYPPER INSTALL ossp-uuid/

    hugo@linux-l3i7:~/Downloads/guacamole-server-0.9.3> ./configure && make -j8 && make install
    checking for a BSD-compatible install… /usr/bin/install -c
    checking whether build environment is sane… yes
    checking for a thread-safe mkdir -p… /usr/bin/mkdir -p
    checking for gawk… gawk
    checking whether make sets $(MAKE)… no
    checking whether make supports nested variables… no
    checking whether make supports nested variables… (cached) no
    checking build system type… x86_64-unknown-linux-gnu
    checking host system type… x86_64-unknown-linux-gnu
    checking how to print strings… printf
    checking for style of include used by make… none
    checking for gcc… gcc
    checking whether the C compiler works… yes
    checking for C compiler default output file name… a.out
    checking for suffix of executables…
    checking whether we are cross compiling… no
    checking for suffix of object files… o
    checking whether we are using the GNU C compiler… yes
    checking whether gcc accepts -g… yes
    checking for gcc option to accept ISO C89… none needed
    checking dependency style of gcc… none
    checking for a sed that does not truncate output… /usr/bin/sed
    checking for grep that handles long lines and -e… /usr/bin/grep
    checking for egrep… /usr/bin/grep -E
    checking for fgrep… /usr/bin/grep -F
    checking for ld used by gcc… /usr/x86_64-suse-linux/bin/ld
    checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld… yes
    checking for BSD- or MS-compatible name lister (nm)… /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface… BSD nm
    checking whether ln -s works… yes
    checking the maximum length of command line arguments… 1572864
    checking whether the shell understands some XSI constructs… yes
    checking whether the shell understands «+=»… yes
    checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format… func_convert_file_noop
    checking how to convert x86_64-unknown-linux-gnu file names to toolchain format… func_convert_file_noop
    checking for /usr/x86_64-suse-linux/bin/ld option to reload object files… -r
    checking for objdump… objdump
    checking how to recognize dependent libraries… pass_all
    checking for dlltool… no
    checking how to associate runtime and link libraries… printf %sn
    checking for ar… ar
    checking for archiver @FILE support… @
    checking for strip… strip
    checking for ranlib… ranlib
    checking command to parse /usr/bin/nm -B output from gcc object… ok
    checking for sysroot… no
    checking for mt… mt
    checking if mt is a manifest tool… no
    checking how to run the C preprocessor… gcc -E
    checking for ANSI C header files… yes
    checking for sys/types.h… yes
    checking for sys/stat.h… yes
    checking for stdlib.h… yes
    checking for string.h… yes
    checking for memory.h… yes
    checking for strings.h… yes
    checking for inttypes.h… yes
    checking for stdint.h… yes
    checking for unistd.h… yes
    checking for dlfcn.h… yes
    checking for objdir… .libs
    checking if gcc supports -fno-rtti -fno-exceptions… no
    checking for gcc option to produce PIC… -fPIC -DPIC
    checking if gcc PIC flag -fPIC -DPIC works… yes
    checking if gcc static flag -static works… no
    checking if gcc supports -c -o file.o… yes
    checking if gcc supports -c -o file.o… (cached) yes
    checking whether the gcc linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries… yes
    checking whether -lc should be explicitly linked in… no
    checking dynamic linker characteristics… GNU/Linux ld.so
    checking how to hardcode library paths into programs… immediate
    checking for shl_load… no
    checking for shl_load in -ldld… no
    checking for dlopen… no
    checking for dlopen in -ldl… yes
    checking whether a program can dlopen itself… yes
    checking whether a statically linked program can dlopen itself… yes
    checking whether stripping libraries is possible… yes
    checking if libtool supports shared libraries… yes
    checking whether to build shared libraries… yes
    checking whether to build static libraries… yes
    checking for gcc… (cached) gcc
    checking whether we are using the GNU C compiler… (cached) yes
    checking whether gcc accepts -g… (cached) yes
    checking for gcc option to accept ISO C89… (cached) none needed
    checking dependency style of gcc… (cached) none
    checking for gcc option to accept ISO C99… -std=gnu99
    checking fcntl.h usability… yes
    checking fcntl.h presence… yes
    checking for fcntl.h… yes
    checking for stdlib.h… (cached) yes
    checking for string.h… (cached) yes
    checking sys/socket.h usability… yes
    checking sys/socket.h presence… yes
    checking for sys/socket.h… yes
    checking time.h usability… yes
    checking time.h presence… yes
    checking for time.h… yes
    checking sys/time.h usability… yes
    checking sys/time.h presence… yes
    checking for sys/time.h… yes
    checking syslog.h usability… yes
    checking syslog.h presence… yes
    checking for syslog.h… yes
    checking for unistd.h… (cached) yes
    checking cairo/cairo.h usability… yes
    checking cairo/cairo.h presence… yes
    checking for cairo/cairo.h… yes
    checking pngstruct.h usability… no
    checking pngstruct.h presence… no
    checking for pngstruct.h… no
    checking for cos in -lm… yes
    checking for png_write_png in -lpng… yes
    checking for cairo_create in -lcairo… yes
    checking for pthread_create in -lpthread… yes
    checking for uuid_make in -lossp-uuid… no
    checking for uuid_make in -luuid… no
    configure: error: «The OSSP UUID library is required»

    SO I have installed it, but it is still giving me this error.

    Thanks for your help

  • PC Varma

    install the following libs, it will work

    yum install uuid uuid-devel uuid-c++ uuid-c++-devel uuid-dce uuid-dce-devel telnet

  • Michael Jumper

    uuid and uuid-devel should be sufficient. For that matter, just installing uuid-devel will pull uuid as a dependency.

    Those other libraries appear to be bindings for languages that Guacamole is not written in… Installing them won’t hurt, but you really probably don’t need to.

    The full list of dependencies along with common package names is in the manual:

    http://guac-dev.org/doc/gug/installing-guacamole.html#required-dependencies

From jmclean regarding the 0.9.10-incubating (RC2) release vote:

When configuring the server I get this error:

configure: error: "libpng is required for writing png messages"

But I do have libpng installed:

brew install libpng
Warning: libpng-1.6.26 already installed

Is OSX a supported platform? It would be nice if the README had a bit more information on how to compile and what the dependancies are. For instance I think the instruction «Before compiling, you need to have compiled and installed libguac, the core Guacamole library” may possibly be misleading?

The guacamole-server README is out-of-date and does not correctly cover the current build process. The actual required/optional dependencies are listed only in the manual (http://guacamole.incubator.apache.org/doc/gug/installing-guacamole.html), while the README lists dependencies which are actually now part of the guacamole-server build (libguac).

If the README is to be «quick and to-the-point documentation» covering building Guacamole, as it explicitly states it is intended to be, this needs to be fixed.

До сих пор я удостоверился, что установил libpng и libjpeg с DarwinPorts (я работаю на OS X Leopard), но, похоже, это не помогает. Я читал в ряде мест, что вам нужны файлы для разработки (например, libpng-devel и т. Д.), Чтобы заставить эту работу работать. Я немного заблудился. Может ли кто-нибудь помочь мне понять, что я должен делать? Я с радостью предоставлю вам дополнительную информацию.

Моя конфигурация для PHP выглядит так:

./configure '--with-png-dir = / usr / local' '--with-jpeg-dir = / usr / local' '--with-gd'

и я пытаюсь установить PHP 5.2.9. У меня make работает без опции ‘—with-gd’. Я также копировал то, что нашел на разных сайтах, так что могу делать что-то действительно не так.

2 ответы

Эта ошибка указывает на то, что не удалось найти файл libpng.so или libpng.a. Эти файлы создаются при компиляции libpng.

Я мало что знаю о способе установки Mac OS X, но если вы хотите сделать это способом Mac OS X, вам, вероятно, потребуется найти и установить этот пакет libpng-devel.

В противном случае вам нужно будет взять исходный код libpng и скомпилировать его самостоятельно. Это зависит от zlib, для которого у вас, вероятно, уже есть общие библиотеки, но если нет, вам тоже придется это получить.

Вот руководство по компиляции libpng в Mac OS X. У него есть Makefile, специфичный для Дарвина (не знаю, зачем он нужен, но стоит попробовать).

ответ дан 20 апр.

Я считаю, что MacPorts по умолчанию устанавливается в / opt / local, а не в / usr / local? Может, вместо этого попробуйте / opt / local?

Если у вас есть fink, вот что я сейчас использую (так что я знаю, что это работает)

Вот установленные мной пакеты fink.

 i  libpng3 1:1.2.29-1  PNG image format handling library
 i  libpng3-shlibs  1:1.2.29-1  Shared libraries for libpng3 package

 i  libjpeg 6b-17   JPEG image format handling library
 i  libjpeg-bin 6b-17   Executables for libjpeg package
 i  libjpeg-shlibs  6b-17   Shared libraries for libjpeg package

Затем для настройки тех частей моего php я использую

'--with-gd' 
'--with-jpeg-dir=/sw' 
'--with-png-dir=/sw' 

Создан 24 июля ’09, 03:07

Не тот ответ, который вы ищете? Просмотрите другие вопросы с метками

php
gd
libpng

or задайте свой вопрос.

  1. linuxham@groups.io
  2. Topics
  3. libpng not found — fldigi 4.0.9

moderated

libpng not found — fldigi 4.0.9


Steve


 


#35091  

Does anyone know how to get past the ./configure step when installing fldigi-4.0.9 on Debian 9 (Stretch)?

Output from ./configure is:
checking for PNG… no
configure: error: Package requirements (libpng >= 1.2.8) were not met:
No package ‘libpng’ found

Output from «dpkg -l | grep libpng» is:
ii libpng16-16:amd64 1.6.28-1 amd64 PNG library — runtime (version 1.6)

I was able to overcome gcc and g++ not being found by creating two symbolic links:
/usr/local/bin/g++ -> /usr/bin/x86_64-linux-gnu-g++-6
/usr/local/bin/gcc -> /usr/bin/x86_64-linux-gnu-gcc-6

But neither of these similar links works for libpng:
/usr/local/bin/libpng -> /usr/lib/x86_64-linux-gnu/libpng16.so.16.28.0
/usr/local/lib/libpng -> /usr/lib/x86_64-linux-gnu/libpng16.so.16.28.0

Thanks,
Steve


More


Ed W3NR


 


#35092  

On 09/07/2017 01:00 PM, Steve wrote:

You don’t have all of fltk

http://www.w1hkj.com/doku/doku.php?id=howto:building_on_debian-ubuntu-mint

Ed W3NR


More


Steve


 


#35095  

Thanks Ed. Prior to trying to install fldigi, I downloaded and installed fltk-1.3.4-1 from http://www.fltk.org/software.php, so I don’t follow your comment on what I might have missed. As near as I can tell, libpng16 is on the machine, but ./configure isn’t detecting it.

Steve

Ed W3NR wrote on 09/07/2017 10:29 AM:


toggle quoted message

Show quoted text

On 09/07/2017 01:00 PM, Steve wrote:
You don’t have all of fltk

http://www.w1hkj.com/doku/doku.php?id=howto:building_on_debian-ubuntu-mint

Ed W3NR


More


Dave, W1HKJ


 


#35096  

You must have the
development libraries, which includes the c header files.  Simply
have the lib is insufficient.  Are you using the wiki as a guide? 
http://www.w1hkj.com/doku/doku.php?id=howto:building_on_debian-ubuntu-mint

David

On 09/07/2017 12:52 PM, Steve wrote:


toggle quoted message

Show quoted text

Thanks
Ed.  Prior to trying to install fldigi, I downloaded and installed
fltk-1.3.4-1 from http://www.fltk.org/software.php, so I don’t
follow your comment on what I might have missed.  As near as I can
tell, libpng16 is on the machine, but ./configure isn’t detecting
it.

Steve

Ed W3NR wrote on 09/07/2017 10:29 AM:

On 09/07/2017 01:00 PM, Steve wrote:

You don’t have all of fltk

http://www.w1hkj.com/doku/doku.php?id=howto:building_on_debian-ubuntu-mint

Ed W3NR


More


Brian Morrison ,G8SEZ


 


#35097  

On Thu, 7 Sep 2017 10:52:26 -0700
Steve wrote:

Thanks Ed. Prior to trying to install fldigi, I downloaded and
installed fltk-1.3.4-1 from http://www.fltk.org/software.php, so I
don’t follow your comment on what I might have missed. As near as I
can tell, libpng16 is on the machine, but ./configure isn’t detecting
it.

You will need the -dev packages I think.

Brian Morrison


More


Richard Shaw, KF5OIM


 


#35098  


More


Steve


 


#35099  

Thanks Dave, that worked.

Nope, I hadn’t found that page, so was just working off the prerequisites in the fldigi-4.0.9/INSTALL file. That might be a good place to enumerate the dependencies and/or add the link.

Steve

Dave wrote on 09/07/2017 10:58 AM:


toggle quoted message

Show quoted text

You must have the development libraries, which includes the c header files. Simply have the lib is insufficient. Are you using the wiki as a guide? http://www.w1hkj.com/doku/doku.php?id=howto:building_on_debian-ubuntu-mint
David
On 09/07/2017 12:52 PM, Steve wrote:

Thanks Ed. Prior to trying to install fldigi, I downloaded and installed fltk-1.3.4-1 from http://www.fltk.org/software.php, so I don’t follow your comment on what I might have missed. As near as I can tell, libpng16 is on the machine, but ./configure isn’t detecting it.

Steve

Ed W3NR wrote on 09/07/2017 10:29 AM:

On 09/07/2017 01:00 PM, Steve wrote:

You don’t have all of fltk

http://www.w1hkj.com/doku/doku.php?id=howto:building_on_debian-ubuntu-mint

Ed W3NR


More

Я только что импортировал проект из Eclipe to Android Studio. Простой и понятный проект. Но в папке проекта отображается одна ошибка .

могу ли я знать, каков правильный способ достижения моей цели? Я новичок в Android-студии .Ли ребята встретить эту проблему?Любая помощь будет очень признательна.

здесь Logcat :

Execution failed for task ':app:mergeDebugResources'.
> Error: Failed to run command:
    /home/amiya/android-studio/sdk/build-tools/android-4.4.2/aapt s -i /home/amiya/vola/app/src/main/res/drawable-mdpi/call.png -o /home/amiya/vola/app/build/res/all/debug/drawable-mdpi/call.png
  Error Code:
    42
  Output:
    libpng error: Not a PNG file

вот мой build.gradle

 apply plugin: 'android'

android {


    compileSdkVersion 19
    buildToolsVersion "19.0.3"



    defaultConfig {
        minSdkVersion 17
        targetSdkVersion 19
    }


    buildTypes {
        release {
            runProguard false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }



}

dependencies {
    compile 'com.android.support:appcompat-v7:+'
    compile 'com.android.support:support-v4:+'
    compile 'com.google.android.gms:play-services:+'
    compile files('libs/google-play-services.jar')
    compile files('libs/livesdk.jar')
}

Я не использую этот файл нигде в моем проекте с этим именем !! Есть много другие png-файлы в моем проекте.

7 ответов


вы должны следовать ниже шаги.

  1. вырезать-вставить изображение на рабочий стол.

  2. открыл его в Редакторе, сохранил его как png. без переименования файла
    имя
    .

  3. копировать-вставить .png изображение в папку drawable.

вы можете использовать cruncherEnabled.

возвращает true, если PNGs должен быть crunched, false в противном случае.

android 
{ 
   aaptOptions
   {
   cruncherEnabled = false
   } 
}

надеюсь, это поможет вам.


попробуйте это в build.Gradle в

android {
    ....
    aaptOptions {
        cruncherEnabled = false
    }
    ....
}

попробуйте выполнить команду

find . -type f -name "*.png" | xargs -L 1 -I{} file  -I {} | grep -v 'image/png; charset=binary$'

в корневом каталоге проекта, он покажет вам все файлы .формат PNG расширение, но не pngs.
Затем вы можете сохранить их как png в каком-либо редакторе изображений.
Перед запуском этой команды очистите проект, чтобы ускорить процесс.


это может быть из-за переименования проблемы изображения просто вырезать изображения и вставить в любом месте в системе и открыть каждый с соответствующим редактором и сохранить как то же самое, но из PNG
а потом … —2—>скопировать и вставить
снова для рисования папок. Это работает для меня

И, ПОЖАЛУЙСТА, ПОСМОТРИТЕ НА ВОПРОС, КОТОРЫЙ Я ПРЕДСТАВИЛ КОМАНДЕ ANDROID STUDIO

надеюсь, что это поможет вам всем .


Если вы используете Mac OS, выполните следующие действия, чтобы получить png

  1. Открыть изображение в preview
  2. перейти к файлу — > экспорт
  3. установить формат как png
  4. нажмите на кнопку Сохранить

Это даст вам действительный png

простое переименование или изменение расширения не будет работать в Mac OS.


«PNG»в ошибке четко написано заглавными буквами. Поэтому вам нужно видеть, что изображение есть .Расширение PNG (в столице).

Шаг 1: откройте изображение в краски.

Шаг 2: Сохраните изображение Сохранить как .Формат PNG как показано ниже
Нажмите здесь, чтобы увидеть, как сохранить изображение в PNG

Шаг 3: обновите свой проект

Шаг 4: Вы должны увидеть, как это -> посмотреть здесь

пожалуйста ответить если проблема все еще не решена


попробуйте использовать другой png файлы. Кажется, что-то не так с метаданные png. У меня была та же проблема. Затем я использовал какой-то другой png файлы и это фиксированная моя проблема.


Понравилась статья? Поделить с друзьями:
  • Connection error with ews
  • Connection error vpn gate connection
  • Connection error threshold hobdrive
  • Connection error the hostname or domain name could not be found
  • Configure error gnu multi precision library gmp not found