xinggangw / leptonica

Automatically exported from code.google.com/p/leptonica
1 stars 0 forks source link

Undefined symbols for architecture x86_64: Mac OS 10.9 #86

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Downloaded the source leptonica-1.69.tar.gz from 
http://www.leptonica.com/download.html
2.cd leptonica-1.69
3. ./configure && make

What is the expected output? What do you see instead?
Expected liblept.la

Got below error:

Undefined symbols for architecture x86_64:
  "___sincos_stret", referenced from:
      _createMatrix2dRotate in affinecompose.o
      _ptaRotate in affinecompose.o
      _boxTransformOrdered in boxfunc2.o
      _generatePtaLineFromPt in graphics.o
      _locatePtRadially in graphics.o
      _pixEmbedForRotation in rotate.o
      _pixRotateBySampling in rotate.o
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [liblept.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

What version of the product are you using? On what operating system?

Leptonica 1.6.9

Mac OS X 10.9

Xcode 5

Please provide any additional information below.

Original issue reported on code.google.com by abkumar1...@gmail.com on 7 Nov 2013 at 11:29

GoogleCodeExporter commented 8 years ago
Installing command line tools solved the problem.

Thanks

Original comment by abkumar1...@gmail.com on 7 Nov 2013 at 11:54

GoogleCodeExporter commented 8 years ago
This isn't a problem with leptonica.  It may be specific to OS10.9.  See, for 
example:

http://stackoverflow.com/questions/19015780/sincos-stret-undefined-symbol-when-l
inking

Original comment by dan.bloo...@gmail.com on 7 Nov 2013 at 4:09

GoogleCodeExporter commented 8 years ago
Missed your second post.  Glad you resolved it.

Original comment by dan.bloo...@gmail.com on 7 Nov 2013 at 4:11