fontforge / libspiro

Spiro is the creation of Raph Levien. It simplifies the drawing of beautiful curves. (Migrated here from libspiro.sourceforge.net on 2013-04-20)
GNU General Public License v3.0
107 stars 25 forks source link

Can't compile on xubuntu-12.04 32-bit #6

Closed keevee09 closed 11 years ago

keevee09 commented 11 years ago

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 to sincos' ../.libs/libspiro.so: undefined reference toatan2' ../.libs/libspiro.so: undefined reference to hypot' 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 2


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

JoesCat commented 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

keevee09 commented 11 years ago

Confirmed Joe. The libspiro-master compiles and tests fine against call-test.c, path2[](lines 78..82)

Thank you, Chris