[Gate-users] Prolem with installation ECAT
Nicola Poles
nicola.poles at gmail.com
Wed Oct 10 12:12:54 CEST 2012
Hi Pawel,
I don't know how to solve your particular problem with Ecat, but I can tell you how I finally managed to have it working on my Ubuntu 12.04 32bit system. I found that the installation instructions on the Gate Website were wrong, at least for this version of Ubuntu. The instructions you will find below are different from the instructions in the INSTALL file you will find in the ecat tarball.
Here is what I did. You should start from scratch, so I suggest you recreate your ecat directory. Then, from within that directory, do:
cp Makefile.unix Makefile
make clean (this should clean up any file a previous "make" command might have created)
make
mkdir include
cp *.h include/
mkdir lib
cp libecat.a lib/
I found that copying libecat.a in lib/Linux-g++ instead of just lib/ prevented cmake to recognize the ecat home directory during the configuration of Gate.
Regarding the utilities, I can't help you. Despite my best efforts, I never managed to compile them. Maybe someone else might help you out.
I hope this will help you.
Best regards,
Nicola Poles
On Oct 10, 2012, at 11:51 AM, Kowalski Paweł <Pawel.Kowalski at ncbj.gov.pl> wrote:
> Hi,
>
> I have problem with installation ECAT library on Ubuntu 12.04. Firstly, when I use command 'make depend' in ecat directory I have following warnings:
>
> makedepend -Dunix -O -I. ./*.c ./lib_compress/*.c
> makedepend: warning: ./analyze.c (reading /usr/include/gnu/stubs.h, line 7): cannot find include file "gnu/stubs-32.h"
> not in ./gnu/stubs-32.h
> not in /usr/include/gnu/stubs-32.h
> makedepend: warning: ./analyze.c (reading /usr/include/time.h, line 38): cannot find include file "stddef.h"
> not in ./stddef.h
> not in /usr/include/stddef.h
> makedepend: warning: ./analyze.c (reading /usr/include/string.h, line 34): cannot find include file "stddef.h"
> not in ./stddef.h
> not in /usr/include/stddef.h
> makedepend: warning: ./analyze.c (reading /usr/include/stdlib.h, line 33): cannot find include file "stddef.h"
> not in ./stddef.h
> not in /usr/include/stddef.h
> makedepend: warning: ./analyze.c (reading /usr/include/sys/types.h, line 147): cannot find include file "stddef.h"
> not in ./stddef.h
> not in /usr/include/stddef.h
> makedepend: warning: ./analyze.c (reading /usr/include/alloca.h, line 25): cannot find include file "stddef.h"
> not in ./stddef.h
> not in /usr/include/stddef.h
> makedepend: warning: ./analyze.c (reading /usr/include/stdio.h, line 34): cannot find include file "stddef.h"
> not in ./stddef.h
> not in /usr/include/stddef.h
> makedepend: warning: ./analyze.c (reading /usr/include/_G_config.h, line 15): cannot find include file "stddef.h"
> not in ./stddef.h
> not in /usr/include/stddef.h
> makedepend: warning: ./analyze.c (reading /usr/include/wchar.h, line 52): cannot find include file "stddef.h"
> not in ./stddef.h
> not in /usr/include/stddef.h
> makedepend: warning: ./analyze.c (reading /usr/include/sys/socket.h, line 30): cannot find include file "stddef.h"
> not in ./stddef.h
> not in /usr/include/stddef.h
> makedepend: warning: ./analyze.c (reading /usr/include/bits/socket.h, line 29): cannot find include file "stddef.h"
> not in ./stddef.h
> not in /usr/include/stddef.h
> makedepend: warning: ./load_volume7.c (reading /usr/include/malloc.h, line 25): cannot find include file "stddef.h"
> not in ./stddef.h
> not in /usr/include/stddef.h
> makedepend: warning: ./matrix_extra.c (reading /usr/include/unistd.h, line 227): cannot find include file "stddef.h"
> not in ./stddef.h
> not in /usr/include/stddef.h
> makedepend: warning: ./matrix_xdr.c (reading /usr/include/limits.h, line 125): cannot find include file "limits.h"
> makedepend: warning: ./rts_cmd.c (reading /usr/include/rpc/netdb.h, line 42): cannot find include file "stddef.h"
> not in ./stddef.h
> not in /usr/include/stddef.h
> makedepend: warning: cannot open "./lib_compress/*.c"
>
> When I run 'make' command in the same directory it compiles, but when I run make command in ecat/utils directory, I get following error:
>
> cc -O -I.. -o show_header ./show_header.c ../libecat.a -lrpcsvc -lnsl -lsocket -lm
> ./show_header.c: In function ‘main’:
> ./show_header.c:28:3: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default]
> ./show_header.c:33:4: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default]
> ./show_header.c:66:2: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default]
> ./show_header.c: In function ‘show_main_header’:
> ./show_header.c:113:2: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’ [-Wformat]
> ./show_header.c:119:2: warning: incompatible implicit declaration of built-in function ‘strncpy’ [enabled by default]
> ./show_header.c:186:6: error: ‘dosage’ undeclared (first use in this function)
> ./show_header.c:186:6: note: each undeclared identifier is reported only once for each function it appears in
> ./show_header.c:193:2: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’ [-Wformat]
> ./show_header.c:194:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat]
> ./show_header.c: In function ‘show_image_subheader’:
> ./show_header.c:373:4: warning: format ‘%f’ expects argument of type ‘double’, but argument 4 has type ‘int’ [-Wformat]
> ./show_header.c: In function ‘day_time’:
> ./show_header.c:407:2: warning: incompatible implicit declaration of built-in function ‘strncpy’ [enabled by default]
> ./show_header.c: In function ‘show_norm_subheader’:
> ./show_header.c:466:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘double’ [-Wformat]
> ./show_header.c:467:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘double’ [-Wformat]
> make: *** [show_header] Błąd 1
>
> What should I do to install ecat library properly? Thanks for your help.
> Is this library available as a .deb package or in any other compiled version for linux?
>
> Best regards,
> Paweł Kowalski
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
More information about the Gate-users
mailing list