Opened 11 years ago

Last modified 10 years ago

#42625 new defect

h5utils can't find libpng

Reported by: Xsenon973@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: higginja@…, ryandesign (Ryan Carsten Schmidt), kurthindenburg (Kurt Hindenburg)
Port: h5utils

Description

I did:

sudo port install libpng
Password:
--->  Computing dependencies for libpng
--->  Cleaning libpng
--->  Scanning binaries for linking errors: 100.0%
--->  No broken files found.

when i tried to configure h5utils and get this warning:

checking for png_create_write_struct in -lpng... no
configure: WARNING: can't find libpng: won't be able to compile h5topng
checking for evaluator_get_variables in -lmatheval... no
configure: WARNING: can't find libmatheval: won't be able to compile h5math
checking for h4toh5... no
checking for h5toh4... no
checking for jpeg_start_compress in -ljpeg... no
configure: WARNING: can't find libjpeg: won't be able to compile h5fromh4 or h4fromh5

Why does libraries, installed with macports, can't be found?

Change History (4)

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: higginja@… ryandesign@… added
Port: h5utils added; libpng removed

There is nothing wrong with the libpng port.

I'm unable to reproduce any build failure of the h5utils port:

$ sudo port install h5utils
--->  Computing dependencies for h5utils
--->  Fetching distfiles for h5utils
--->  Verifying checksums for h5utils
--->  Extracting h5utils
--->  Applying patches to h5utils
--->  Configuring h5utils
--->  Building h5utils
--->  Staging h5utils into destroot
--->  Installing h5utils @1.12.1_5
--->  Activating h5utils @1.12.1_5
--->  Cleaning h5utils
$ 

If h5utils is failing to build for you, please attach h5utils' main.log file.

Or are you trying to build h5utils from source manually, outside of MacPorts? In that case, you need to inform the compiler where the MacPorts libraries are to be found. Typically this is done by putting -isystem/opt/local/include in CPPFLAGS and -L/opt/local/lib in LDFLAGS. However, if this is what you're doing, why can't you just use the h5utils port?

comment:2 Changed 11 years ago by Xsenon973@…

Thank you for advice, h5utils successfully installed. But now I get this:

sudo h5topng str-x2.h5>x1.png
h5topng(3579,0x7fff79091310) malloc: *** mach_vm_map(size=18446744052302057472) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
h5topng error: out of memory

What s the problem?

comment:3 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Cc: khindenburg@… added

Cc Me!

comment:4 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

It works fine here using some examples files from http://www.hdfgroup.org/ftp/HDF5/examples/files/exbyapi/

Is every file causing crashes for you?

Note: See TracTickets for help on using tickets.