Re: [Jocr-devels] Configure script doesn't work and makefile is maybe wrong
Status: Alpha
Brought to you by:
joerg10
|
From: Joerg <jsc...@al...> - 2000-09-20 09:41:07
|
On Tue, 19 Sep 2000, Dany DB wrote:
> Hi,
>
> I just join the team, and checkout the sources,
> First I notice that configure doesn't work as expected
> Second I cannot compile the application
>
> Anybody can help ?
>
>
> Regards,
>
>
> Dany
please modify (near Row 126)
gocr: src/gocr.o libPgm2asc.a
$(CC) -o gocr src/gocr.o -L. -lPgm2asc -lpnm -lppm -lpbm -lpgm \
$(LIBS)
@echo "--- ./gocr is now installed ---"
I try to fix this.
Joerg.
>
> Follow the log -----------------------------------
> [dany@july jocr]$ ./configure
> ./configure: src/jconv.c: Permission denied
> creating cache ./config.cache
> checking for gcc... gcc
> checking whether the C compiler (gcc ) works... yes
> checking whether the C compiler (gcc ) is a cross-compiler... no
> checking whether we are using GNU C... yes
> checking whether gcc accepts -g... yes
> checking for a BSD compatible install... /usr/bin/install -c
> checking for ranlib... ranlib
> checking whether make sets ${MAKE}... yes
> checking how to run the C preprocessor... gcc -E
> checking for ANSI C header files... yes
> checking for pnm.h... yes
> checking for png.h... yes
> checking for working const... yes
> checking whether setvbuf arguments are reversed... no
> updating cache ./config.cache
> creating ./config.status
> creating Makefile
> creating config.h
> configuring in src
> configure: warning: no configuration information is in src
> configuring in doc
> configure: warning: no configuration information is in doc
> [dany@july jocr]$ ls
> CVS REMARK.txt config.log doc gpl.html
> text.tex
> Makefile REVIEW config.status font.tex install-sh
> Makefile.in config.cache configure font1.tex make.bat
> README.txt config.h configure.in frontend man
> READMEde.txt config.h.in create_db gocr.tcl src
> [dany@july jocr]$ make
> gcc -g -O2 -I. -c -o src/gocr.o src/gocr.c
> gcc -g -O2 -I. -c -o src/pgm2asc.o src/pgm2asc.c
> gcc -g -O2 -I. -c -o src/pnm.o src/pnm.c
> gcc -g -O2 -I. -c -o src/pcx.o src/pcx.c
> gcc -g -O2 -I. -c -o src/tga.o src/tga.c
> gcc -g -O2 -I. -c -o src/ocr0.o src/ocr0.c
> gcc -g -O2 -I. -c -o src/ocr0n.o src/ocr0n.c
> gcc -g -O2 -I. -c -o src/ocr1.o src/ocr1.c
> gcc -g -O2 -I. -c -o src/otsu.o src/otsu.c
> gcc -g -O2 -I. -c -o src/box.o src/box.c
> gcc -g -O2 -I. -c -o src/database.o src/database.c
> gcc -g -O2 -I. -c -o src/list.o src/list.c
> gcc -g -O2 -I. -c -o src/output.o src/output.c
> gcc -g -O2 -I. -c -o src/remove.o src/remove.c
> gcc -g -O2 -I. -c -o src/unicode.o src/unicode.c
> rm -f libPgm2asc.a
> ar cru libPgm2asc.a src/pgm2asc.o src/pnm.o src/pcx.o src/tga.o
> src/ocr0.o src/ocr0n.o src/ocr1.o src/otsu.o src/box.o src/database.o
> src/list.o src/output.o src/remove.o src/unicode.o
> ranlib libPgm2asc.a
> gcc -o gocr src/gocr.o -L. -lPgm2asc
> ./libPgm2asc.a(pnm.o): In function `readpnm':
> /home/dany/developpement/jocr/src/pnm.c:107: undefined reference to
> `pnm_readpnminit'
> /home/dany/developpement/jocr/src/pnm.c:110: undefined reference to
> `pm_allocrow'
> /home/dany/developpement/jocr/src/pnm.c:112: undefined reference to
> `pnm_readpnmrow'
> /home/dany/developpement/jocr/src/pnm.c:116: undefined reference to
> `pm_freerow'./libPgm2asc.a(pnm.o): In function `writepgmfile':
> /home/dany/developpement/jocr/src/pnm.c:261: undefined reference to
> `pgm_writepgminit'
> /home/dany/developpement/jocr/src/pnm.c:262: undefined reference to
> `pm_allocrow'
> /home/dany/developpement/jocr/src/pnm.c:266: undefined reference to
> `pgm_writepgmrow'
> /home/dany/developpement/jocr/src/pnm.c:268: undefined reference to
> `pm_freerow'collect2: ld returned 1 exit status
> make: *** [gocr] Error 1
> [dany@july jocr]$ make
> gcc -o gocr src/gocr.o -L. -lPgm2asc
> ./libPgm2asc.a(pnm.o): In function `readpnm':
> /home/dany/developpement/jocr/src/pnm.c:107: undefined reference to
> `pnm_readpnminit'
> /home/dany/developpement/jocr/src/pnm.c:110: undefined reference to
> `pm_allocrow'
> /home/dany/developpement/jocr/src/pnm.c:112: undefined reference to
> `pnm_readpnmrow'
> /home/dany/developpement/jocr/src/pnm.c:116: undefined reference to
> `pm_freerow'./libPgm2asc.a(pnm.o): In function `writepgmfile':
> /home/dany/developpement/jocr/src/pnm.c:261: undefined reference to
> `pgm_writepgminit'
> /home/dany/developpement/jocr/src/pnm.c:262: undefined reference to
> `pm_allocrow'
> /home/dany/developpement/jocr/src/pnm.c:266: undefined reference to
> `pgm_writepgmrow'
> /home/dany/developpement/jocr/src/pnm.c:268: undefined reference to
> `pm_freerow'collect2: ld returned 1 exit status
> make: *** [gocr] Error 1
>
>
>
> _______________________________________________
> Jocr-devels mailing list
> Joc...@li...
> http://lists.sourceforge.net/mailman/listinfo/jocr-devels
>
|