On Sat, Jul 16, 2016 at 11:40 AM,  <dan...@basereality.com> wrote:
>
> On Saturday, 16 July 2016 18:08:59 UTC+1, Ian Lance Taylor wrote:
>
>>
>> My guess is that you need to either pass -R /temp/imagemagick-temp/lib
>> to the linker, which you can do by setting CGO_LDFLAGS,
>
>
> I get the same result when using CGO_CFLAGS and CGO_LDFLAGS rather than
> pkg-config. Building with:
>
> export CGO_CFLAGS="-DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
> -I/temp/imagemagick-temp/include/ImageMagick-6"
> export CGO_LDFLAGS="-L/temp/imagemagick-temp/lib -lMagickWand-6.Q16
> -lMagickCore-6.Q16"
> go build -v -x -tags no_pkgconfig debug.go > debug_build_with_flags.txt 2>&1
>
> gives the same error.

I'm suggesting that you need an additional option: -R
/temp/imagemagick-temp/lib.  You need to set the runtime library
search path to point to the right directory.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to