Re: SPIRO_SELECT etc
Apostolos Syropoulos <[email protected]> Sat, 31 Mar 2018 17:43:09 +0300
| Newsgroups | gmane.comp.fonts.fontforge.devel |
|---|---|
| Message-ID | <CAMgK+ESsR5E5MaU8yEPzo6VP0K+zQpi6ofLKHAohGr=Fn9LQxQ@mail.gmail.com> |
Hi Matijs! 2018-03-31 9:03 GMT+03:00 Matijs van Zuijlen <[email protected]>: > > I just downloaded the latest source tar.gz from > https://github.com/fontforge/fontforge/releases. It contains > fontforge/spiro.h which defines these macros. > Indeed. > It's odd that these macros were not expanded during compilation. Can you > try to figure out why that happened? Finally I figured out what was wrong. To configure I am using the following influential environment variables: CC=gcc64 CXX=g++64 CFLAGS="-I/opt/gnu/include" LDFLAGS="-L/opt/gnu/lib/amd64 -R/opt/gnu/lib/amd64" However, with these setting the compiler (the libtool actually) cannot find file spiroentrypoints.h So I copied all spiro files from /opt/gnu/include in the fontforge folder and this overwrote the spiro.h file! The solution is to configure with CC=gcc64 CXX=g++64 CFLAGS="-I/opt/gnu/include" LIBSPIRO_CFLAGS="-I/opt/gnu/include" \ LDFLAGS="-L/opt/gnu/lib/amd64 -R/opt/gnu/lib/amd64" I have tried it and it works. Now configure contains the following lines: FONTFORGE_DATE_NOW=${SOURCE_DATE_EPOCH:-$(date +'%s')} FONTFORGE_DATE_OPTS="--date=@${FONTFORGE_DATE_NOW}" if ! date --version 2>/dev/null ; then # Use POSIX date instead of GNU date on BSD systems FONTFORGE_DATE_OPTS="-j -f %s ${FONTFORGE_DATE_NOW}" fi FONTFORGE_MODTIME="$(date -u $FONTFORGE_DATE_OPTS +'%s')L" FONTFORGE_MODTIME_STR="$(date -u $FONTFORGE_DATE_OPTS +'%H:%M %Z %e-%b-%Y')" FONTFORGE_VERSIONDATE="$(date -u $FONTFORGE_DATE_OPTS +'%Y%m%d')" The if command does not work at all! And one must use GNU date or else the other commands fail. So after I commented our the if command configure finished with no problem and compilation finished as well. > Also, what operating system are you using, since it's apparently not Linux? > I am using Illumos/OpenIndiana, the open version of Solaris. Regards, A.S. PS Please, if it is possible, add a README.Solaris flle that contains this information so that others who may try to compile FF will not have to go through all these. -- Apostolos Syropoulos Xanthi, GREECE ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ fontforge-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fontforge-devel http://fontforge.10959.n7.nabble.com/Developer-f3.html