New issue 166 by rmcleay: Needs additional link libraries (-lgsl
-lgslcblas) to build ocropus binary under Ubuntu Intrepid (8.10)
http://code.google.com/p/ocropus/issues/detail?id=166
What steps will reproduce the problem?
1. Checkout changeset: 168:6a7cc1b4f7ce
2. Attempt to build under Ubuntu 8.10 with tesseract and leptonica, using
defaults with the
autoconf/automake build system.
What is the expected output? What do you see instead?
Successful build of binary when executing:
g++ -g -O2 -fopenmp -Wall -Wno-sign-compare -Wno-write-strings
-Wno-deprecated -g -
O2 -fopenmp -L/usr/lib -L/usr/local/lib -L/usr/include/leptonica/../../lib
-lgomp -Wl,-E -o
ocropus ocropus.o libocropus.a -lgomp -lSDL_gfx -lSDL -llept
-ltesseract_full -lpthread -liulib
-ltiff -ljpeg -lpng -lz
Instead, you receive:
g++ -g -O2 -fopenmp -Wall -Wno-sign-compare -Wno-write-strings
-Wno-deprecated -g -
O2 -fopenmp -L/usr/lib -L/usr/local/lib -L/usr/include/leptonica/../../lib
-lgomp -Wl,-E -o
ocropus ocropus.o libocropus.a -lgomp -lSDL_gfx -lSDL -llept
-ltesseract_full -lpthread -liulib
-ltiff -ljpeg -lpng -lz
libocropus.a(glclass.o): In function `vector':
/export/home/rob/scratch/ocropus/ocropus/./include/gsl.h:12: undefined
reference to
`gsl_vector_alloc'
/export/home/rob/scratch/ocropus/ocropus/./include/gsl.h:13: undefined
reference to
`gsl_vector_subvector_with_stride'
/export/home/rob/scratch/ocropus/ocropus/./include/gsl.h:12: undefined
reference to
`gsl_vector_alloc'
/export/home/rob/scratch/ocropus/ocropus/./include/gsl.h:13: undefined
reference to
`gsl_vector_subvector_with_stride'
/export/home/rob/scratch/ocropus/ocropus/./include/gsl.h:12: undefined
reference to
`gsl_vector_alloc'
/export/home/rob/scratch/ocropus/ocropus/./include/gsl.h:13: undefined
reference to
`gsl_vector_subvector_with_stride'
/export/home/rob/scratch/ocropus/ocropus/./include/gsl.h:12: undefined
reference to
`gsl_vector_alloc'
/export/home/rob/scratch/ocropus/ocropus/./include/gsl.h:13: undefined
reference to
`gsl_vector_subvector_with_stride'
libocropus.a(glclass.o): In function `matrix':
/export/home/rob/scratch/ocropus/ocropus/./include/gsl.h:61: undefined
reference to
`gsl_matrix_alloc'
/export/home/rob/scratch/ocropus/ocropus/./include/gsl.h:62: undefined
reference to
`gsl_matrix_view_array_with_tda'
etc...
In order to build this correctly, I added "-lgsl -lgslcblas" to what make
attempted to run, giving:
g++ -g -O2 -fopenmp -Wall -Wno-sign-compare -Wno-write-strings
-Wno-deprecated -g -
O2 -fopenmp -L/usr/lib -L/usr/local/lib -L/usr/include/leptonica/../../lib
-lgomp -Wl,-E -o
ocropus ocropus.o libocropus.a -lgomp -lSDL_gfx -lSDL -llept
-ltesseract_full -lpthread -liulib
-ltiff -ljpeg -lpng -lz -lgsl -lgslcblas
This then built correctly, and I was able to run make to continue the build.
Thanks for all of your time that you're putting into this project, it's
really appreciated.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
Comment #1 on issue 166 by tmb...@gmail.com: Needs additional link
libraries (-lgsl -lgslcblas) to build ocropus binary under Ubuntu Intrepid
(8.10)
http://code.google.com/p/ocropus/issues/detail?id=166
We don't have a lot of resources to support other systems. This would get
fixed most
quickly if you could supply a patch for autoconf.