Wednesday, August 12, 2015

esignal.c:974: error: ‘ARCH’ undeclared (first use in this function)

Error: esignal.c:974: error: 'ARCH' undeclared (first use in this function)


Solution:

  1. Open the HTKLib/esignal.c file in a code-friendly text editor. You can use Xcode, or my personal favorite TextMate 2.
  2. Find and change the below lines:

    Change Line 974: if (strcmp(architecture, ARCH) == 0) /* native architecture */

    To: if (strcmp(architecture, "darwin") == 0) /* native architecture */

    Change Line 1184: ` architecture = ARCH;`

    To: ` architecture = "darwin";`

  3. Now, let's build! Run make all in the terminal window

Source: http://linguisticmystic.com/page4/

No comments:

Post a Comment