Kubuntu AMD 64: grx build error

Maurice Lombardi Maurice.Lombardi at ujf-grenoble.fr
Sun Oct 11 11:23:33 CEST 2009


twixt at cstone.net a écrit :
> 
> Thanks for your help! Following the installation
> instructions, I was
> able to run "make -f makefile.x11"
> apparently without
> errors. I used the following
> choices when editing makedefs.grx:
> 
> HAVE_LIBTIFF=y
> HAVE_LIBJPEG=y
> HAVE_LIBPNG=y
> NEED_ZLIB=y
> INCLUDE_PRINTING_CODE=n
> INCLUDE_BMP_CODE=y
> INCLUDE_GPC_SUPPORT=y
> INCLUDE_SHARED_SUPPORT=y
> INCLUDE_BGI_SUPPORT=y
> HAVE_UNIX_TOOLS=n
> BUILD_X86_64=n

you should put BUILD_X86_64=y here since you have
an AMD 64 computer

> 
> I left the rest of the makedefs.grx file alone.
> 
> Then I
> went into the /test subdirectory and here is
> the log:
> 
> david at Achernar:~/software/grx/grx248/grx248/test$ sudo make -f
> makefile.x11
> [sudo] password for david:
> gcc -c -O2
> -fno-strict-aliasing -Wall -m32 -D__XWIN__ -I../include arctest.c -o
> arctest.o

-m32 option appears when you compile for 32 bits even on a 64 bits computer.
This is possible in fact, but you have to install all libraries (and 
gpc) in the 32 bits version.

> In file included from arctest.c:21:
> test.h: In
> function ‘main’:
> test.h:88: warning: ignoring return
> value of ‘fgets’, declared with attribute
> warn_unused_result
> gcc -s -m32 -s -o xarctest arctest.o
> ../lib/unix/libgrx20X.a  -ltiff -ljpeg -lpng -lz -L/usr/X11R6/lib
> -lX11 -lm
> /usr/bin/ld: skipping incompatible
> /usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../libz.so when searching for
> -lz
> /usr/bin/ld: skipping incompatible
> /usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../libz.a when searching for
> -lz
> /usr/bin/ld: skipping incompatible /usr/lib/libz.so when
> searching for -lz
> /usr/bin/ld: skipping incompatible /usr/lib/libz.a
> when searching for -lz
> /usr/bin/ld: cannot find -lz
> collect2: ld
> returned 1 exit status
> make: *** [xarctest] Error 1

These messages say that it has not found the 32 bits versions of libz

Maurice

-- 
        Maurice Lombardi
Laboratoire de  Spectrometrie Physique,
Universite Joseph Fourier de Grenoble, BP87
38402 Saint Martin d'Heres Cedex     FRANCE
Tel: 33 (0)4 76 51 47 51
Fax: 33 (0)4 76 63 54 95
mailto:Maurice.Lombardi at ujf-grenoble.fr





More information about the Gpc mailing list