xoreos / xoreos-tools

Tools to help the development of xoreos
https://xoreos.org/
GNU General Public License v3.0
66 stars 28 forks source link

Issue running configure to build project: Syntax error near unexpected token `FT2 #70

Closed rodolfomg closed 3 years ago

rodolfomg commented 3 years ago

I keep getting an error related to FT2:

checking for PTHREAD_PRIO_INHERIT... yes
./configure: line 23447: syntax error near unexpected token `FT2,'
./configure: line 23447: `  PKG_CHECK_MODULES(FT2, freetype2 >= 11.0.5, , as_fn_error $? "FreeType2 (>= 11.0.5) is required and could not be found!" "$LINENO" 5)'

when running ./configure

I have freetype updated:

> brew install freetype2                                                                                                                                                                                                                               

Warning: freetype 2.10.4 is already installed and up-to-date.
To reinstall 2.10.4, run:
  brew reinstall freetype
DrMcCoy commented 3 years ago

Might be that PKG_CHECK_MODULES does not exist? PKG_CHECK_MODULES is part of pkg.m4, which should be part of pkg-config. Do you have pkg-config installed? brew install pkg-config would be the command, I think.

Also make sure that automake, autoconf, libtool and gettext are installed.

If all these are installed, maybe a round of autoreconf might help, invoked by our autogen.sh script (i.e. ./autogen.sh).

DrMcCoy commented 3 years ago

@rodolfomg, did you have any luck with these suggestions? :)

DrMcCoy commented 3 years ago

Closing as potentially fixed. Feel free to reopen if there's still issues.

Also feel free to comment if you think the documentation (here in our Wiki: https://wiki.xoreos.org/index.php?title=Compiling_xoreos ) could be extended to make sure no one else stumbles over it.