Closed keevee09 closed 11 years ago
On November 2, 2013 05:53:48 PM keevee09 wrote:
I assume there is a missing -lm somewhere but have not successfully found a solution. I have however successfully compiled and installed libspiro from here: http://libspiro.sourceforge.net
You are right. We went through this problem before with FontForge and '-lm' too. Fix added to libspiro MASTER https://github.com/fontforge/libspiro
Before trying the solution, since you're running the older libspiro, try making 4 spiro points shown in lines 78..82 of: https://github.com/fontforge/libspiro/blob/master/tests/call-test.c
the older libspiro should fail with straight lines.
Next, MASTER should compile okay now with the extra search. After installing, the above 4 points should give curves.
Please close this issue if it looks okay now.
Thanks, Joe
Confirmed Joe. The libspiro-master compiles and tests fine against call-test.c, path2[](lines 78..82)
Thank you, Chris
Trying to compile libspiro on a 32-bit xubuntu-12.04 I perform the following steps: $autoreconf $automake [have tried with and without --foreign -Wall] $./configure
then make fails at CCLD call-test:
$make make all-recursive make[1]: Entering directory
/home/slarty/CODE/source/fontforge/git_fontforge/libspiro' Making all in . make[2]: Entering directory
/home/slarty/CODE/source/fontforge/git_fontforge/libspiro' CC spiro.lo CC bezctx.lo CC spiroentrypoints.lo CCLD libspiro.la make[2]: Leaving directory/home/slarty/CODE/source/fontforge/git_fontforge/libspiro' Making all in tests make[2]: Entering directory
/home/slarty/CODE/source/fontforge/git_fontforge/libspiro/tests' CC unit-test.o CCLD unit-test CC call-test.o CCLD call-test ../.libs/libspiro.so: undefined reference tosincos' ../.libs/libspiro.so: undefined reference to
atan2' ../.libs/libspiro.so: undefined reference tohypot' collect2: ld returned 1 exit status make[2]: *** [call-test] Error 1 make[2]: Leaving directory
/home/slarty/CODE/source/fontforge/git_fontforge/libspiro/tests' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory `/home/slarty/CODE/source/fontforge/git_fontforge/libspiro' make: * [all] Error 2I assume there is a missing -lm somewhere but have not successfully found a solution. I have however successfully compiled and installed libspiro from here: http://libspiro.sourceforge.net