[Subject Prev][Subject Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hts-users:01906] Re: Error when installing HTS in 64-bit linux


Hi,

As the first errors imply, some developer packages are missing.

> HGraf.c:119:77: error: X11/Xlib.h: No such file or directory
> HGraf.c:120:23: error: X11/Xutil.h: No such file or directory
> HGraf.c:121:21: error: X11/Xos.h: No such file or directory
> HGraf.c:123:27: error: X11/keysymdef.h: No such file or directory

From http://ubuntuforums.org/showthread.php?t=71606 it seems that you need
to run the following command:

sudo apt-get install xlibs-dev

br,
  Nicholas

> hi,
>
> i have problem when compiling the HTS code in 64-bit Kubuntu.
> the folloing error occurs before make exits.
>               HGraf.c:119:77: error: X11/Xlib.h: No such file or directory
>
> the problem does not exist in 32-bit Kubuntu.  is there something
> wrong or missing?
>
> here is the full log for "make all"
>
> (cd HTKLib && make HTKLib.a) \
>           || case "" in *k*) fail=yes;; *) exit 1;; esac;
> make[1]: Entering directory `/home/saser/hmm/htk/HTKLib'
> gcc  -I. -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="x86_64"' -Wall
> -Wno-switch -g -O2   -c -o HGraf.o HGraf.c
> HGraf.c:119:77: error: X11/Xlib.h: No such file or directory
> HGraf.c:120:23: error: X11/Xutil.h: No such file or directory
> HGraf.c:121:21: error: X11/Xos.h: No such file or directory
> HGraf.c:123:27: error: X11/keysymdef.h: No such file or directory
> HGraf.c:133: error: expected ¡®=¡¯, ¡®,¡¯, ¡®;¡¯, ¡®asm¡¯ or
> ¡®__attribute__¡¯
> before ¡®*¡¯ token
> HGraf.c:134: error: expected ¡®=¡¯, ¡®,¡¯, ¡®;¡¯, ¡®asm¡¯ or
> ¡®__attribute__¡¯
> before ¡®rootW¡¯
> HGraf.c:137: error: expected ¡®=¡¯, ¡®,¡¯, ¡®;¡¯, ¡®asm¡¯ or
> ¡®__attribute__¡¯
> before ¡®theCmap¡¯
> HGraf.c:138: error: expected ¡®=¡¯, ¡®,¡¯, ¡®;¡¯, ¡®asm¡¯ or
> ¡®__attribute__¡¯
> before ¡®theGC¡¯
> HGraf.c:139: error: expected ¡®=¡¯, ¡®,¡¯, ¡®;¡¯, ¡®asm¡¯ or
> ¡®__attribute__¡¯
> before ¡®gcs¡¯
> HGraf.c:141: error: expected ¡®=¡¯, ¡®,¡¯, ¡®;¡¯, ¡®asm¡¯ or
> ¡®__attribute__¡¯
> before ¡®*¡¯ token
> HGraf.c:142: error: expected ¡®=¡¯, ¡®,¡¯, ¡®;¡¯, ¡®asm¡¯ or
> ¡®__attribute__¡¯
> before ¡®report¡¯
> HGraf.c:143: error: expected ¡®=¡¯, ¡®,¡¯, ¡®;¡¯, ¡®asm¡¯ or
> ¡®__attribute__¡¯
> before ¡®hints¡¯
> HGraf.c:157: error: ¡®GXcopy¡¯ undeclared here (not in a function)
> HGraf.c:157: error: ¡®GXor¡¯ undeclared here (not in a function)
> HGraf.c:157: error: ¡®GXxor¡¯ undeclared here (not in a function)
> HGraf.c:157: error: ¡®GXinvert¡¯ undeclared here (not in a function)
> HGraf.c:203: error: expected ¡®=¡¯, ¡®,¡¯, ¡®;¡¯, ¡®asm¡¯ or
> ¡®__attribute__¡¯
> before ¡®*¡¯ token
> HGraf.c: In function ¡®InstallFonts¡¯:
> HGraf.c:216: error: ¡®FontInfo¡¯ undeclared (first use in this function)
> HGraf.c:216: error: (Each undeclared identifier is reported only once
> HGraf.c:216: error: for each function it appears in.)
> HGraf.c:216: warning: implicit declaration of function
> ¡®XLoadQueryFont¡¯
> HGraf.c:216: error: ¡®theDisp¡¯ undeclared (first use in this function)
> HGraf.c:219: error: ¡®DefaultFont¡¯ undeclared (first use in this
> function)
> HGraf.c: At top level:
> HGraf.c:228: error: expected ¡®)¡¯ before ¡®*¡¯ token
> HGraf.c: In function ¡®HGetEvent¡¯:
> HGraf.c:271: error: ¡®XEvent¡¯ undeclared (first use in this function)
> HGraf.c:271: error: expected ¡®;¡¯ before ¡®xev¡¯
> HGraf.c:275: warning: implicit declaration of function ¡®XFlush¡¯
> HGraf.c:275: error: ¡®theDisp¡¯ undeclared (first use in this function)
> HGraf.c:277: warning: implicit declaration of function ¡®XEventsQueued¡¯
> HGraf.c:277: error: ¡®QueuedAfterFlush¡¯ undeclared (first use in this
> function)
> HGraf.c:278: warning: implicit declaration of function ¡®XNextEvent¡¯
> HGraf.c:278: error: ¡®xev¡¯ undeclared (first use in this function)
> HGraf.c:280: error: ¡®theWindow¡¯ undeclared (first use in this
> function)
> HGraf.c:282: error: ¡®ButtonPress¡¯ undeclared (first use in this
> function)
> HGraf.c:287: error: ¡®ButtonRelease¡¯ undeclared (first use in this
> function)
> HGraf.c:292: error: ¡®MotionNotify¡¯ undeclared (first use in this
> function)
> HGraf.c:297: error: ¡®KeyPress¡¯ undeclared (first use in this function)
> HGraf.c:301: warning: implicit declaration of function
> ¡®DecodeKeyPress¡¯
> HGraf.c:303: error: ¡®KeyRelease¡¯ undeclared (first use in this
> function)
> HGraf.c:309: error: ¡®Expose¡¯ undeclared (first use in this function)
> HGraf.c: In function ¡®HEventsPending¡¯:
> HGraf.c:333: error: ¡®theDisp¡¯ undeclared (first use in this function)
> HGraf.c:333: error: ¡®QueuedAfterFlush¡¯ undeclared (first use in this
> function)
> HGraf.c: In function ¡®HMousePos¡¯:
> HGraf.c:340: error: ¡®Window¡¯ undeclared (first use in this function)
> HGraf.c:340: error: expected ¡®;¡¯ before ¡®root¡¯
> HGraf.c:345: warning: implicit declaration of function ¡®XQueryPointer¡¯
> HGraf.c:345: error: ¡®theDisp¡¯ undeclared (first use in this function)
> HGraf.c:345: error: ¡®theWindow¡¯ undeclared (first use in this
> function)
> HGraf.c:345: error: ¡®root¡¯ undeclared (first use in this function)
> HGraf.c:345: error: ¡®child¡¯ undeclared (first use in this function)
> HGraf.c: In function ¡®InstallColours¡¯:
> HGraf.c:366: error: ¡®XColor¡¯ undeclared (first use in this function)
> HGraf.c:366: error: expected ¡®;¡¯ before ¡®greyDef¡¯
> HGraf.c:372: warning: implicit declaration of function ¡®XParseColor¡¯
> HGraf.c:372: error: ¡®theDisp¡¯ undeclared (first use in this function)
> HGraf.c:372: error: ¡®theCmap¡¯ undeclared (first use in this function)
> HGraf.c:372: error: ¡®colourDef¡¯ undeclared (first use in this
> function)
> HGraf.c:375: warning: implicit declaration of function ¡®XAllocColor¡¯
> HGraf.c:389: error: ¡®whiteDef¡¯ undeclared (first use in this function)
> HGraf.c:389: warning: implicit declaration of function ¡®XQueryColor¡¯
> HGraf.c:390: error: ¡®blackDef¡¯ undeclared (first use in this function)
> HGraf.c:396: error: ¡®greyDef¡¯ undeclared (first use in this function)
> HGraf.c: In function ¡®HSetColour¡¯:
> HGraf.c:416: warning: implicit declaration of function
> ¡®XSetForeground¡¯
> HGraf.c:416: error: ¡®theDisp¡¯ undeclared (first use in this function)
> HGraf.c:416: error: ¡®gcs¡¯ undeclared (first use in this function)
> HGraf.c: In function ¡®HSetGrey¡¯:
> HGraf.c:425: error: ¡®theDisp¡¯ undeclared (first use in this function)
> HGraf.c:425: error: ¡®gcs¡¯ undeclared (first use in this function)
> HGraf.c: In function ¡®HDrawLines¡¯:
> HGraf.c:443: warning: implicit declaration of function ¡®XDrawLines¡¯
> HGraf.c:443: error: ¡®theDisp¡¯ undeclared (first use in this function)
> HGraf.c:443: error: ¡®theWindow¡¯ undeclared (first use in this
> function)
> HGraf.c:443: error: ¡®theGC¡¯ undeclared (first use in this function)
> HGraf.c:443: error: ¡®XPoint¡¯ undeclared (first use in this function)
> HGraf.c:443: error: expected expression before ¡®)¡¯ token
> HGraf.c: In function ¡®HDrawRectangle¡¯:
> HGraf.c:450: warning: implicit declaration of function
> ¡®XDrawRectangle¡¯
> HGraf.c:450: error: ¡®theDisp¡¯ undeclared (first use in this function)
> HGraf.c:450: error: ¡®theWindow¡¯ undeclared (first use in this
> function)
> HGraf.c:450: error: ¡®theGC¡¯ undeclared (first use in this function)
> HGraf.c: In function ¡®HFillRectangle¡¯:
> HGraf.c:457: warning: implicit declaration of function
> ¡®XFillRectangle¡¯
> HGraf.c:457: error: ¡®theDisp¡¯ undeclared (first use in this function)
> HGraf.c:457: error: ¡®theWindow¡¯ undeclared (first use in this
> function)
> HGraf.c:457: error: ¡®theGC¡¯ undeclared (first use in this function)
> HGraf.c: In function ¡®HDrawLine¡¯:
> HGraf.c:463: warning: implicit declaration of function ¡®XDrawLine¡¯
> HGraf.c:463: error: ¡®theDisp¡¯ undeclared (first use in this function)
> HGraf.c:463: error: ¡®theWindow¡¯ undeclared (first use in this
> function)
> HGraf.c:463: error: ¡®theGC¡¯ undeclared (first use in this function)
> HGraf.c: In function ¡®HFillPolygon¡¯:
> HGraf.c:469: warning: implicit declaration of function ¡®XFillPolygon¡¯
> HGraf.c:469: error: ¡®theDisp¡¯ undeclared (first use in this function)
> HGraf.c:469: error: ¡®theWindow¡¯ undeclared (first use in this
> function)
> HGraf.c:469: error: ¡®theGC¡¯ undeclared (first use in this function)
> HGraf.c:469: error: ¡®XPoint¡¯ undeclared (first use in this function)
> HGraf.c:469: error: expected expression before ¡®)¡¯ token
> HGraf.c: In function ¡®HDrawArc¡¯:
> HGraf.c:482: warning: implicit declaration of function ¡®XDrawArc¡¯
> HGraf.c:482: error: ¡®theDisp¡¯ undeclared (first use in this function)
> HGraf.c:482: error: ¡®theWindow¡¯ undeclared (first use in this
> function)
> HGraf.c:482: error: ¡®theGC¡¯ undeclared (first use in this function)
> HGraf.c: In function ¡®HFillArc¡¯:
> HGraf.c:495: warning: implicit declaration of function ¡®XFillArc¡¯
> HGraf.c:495: error: ¡®theDisp¡¯ undeclared (first use in this function)
> HGraf.c:495: error: ¡®theWindow¡¯ undeclared (first use in this
> function)
> HGraf.c:495: error: ¡®theGC¡¯ undeclared (first use in this function)
> HGraf.c: In function ¡®HPrintf¡¯:
> HGraf.c:506: warning: implicit declaration of function ¡®XDrawString¡¯
> HGraf.c:506: error: ¡®theDisp¡¯ undeclared (first use in this function)
> HGraf.c:506: error: ¡®theWindow¡¯ undeclared (first use in this
> function)
> HGraf.c:506: error: ¡®theGC¡¯ undeclared (first use in this function)
> HGraf.c: In function ¡®HCopyArea¡¯:
> HGraf.c:512: warning: implicit declaration of function ¡®XCopyArea¡¯
> HGraf.c:512: error: ¡®theDisp¡¯ undeclared (first use in this function)
> HGraf.c:512: error: ¡®theWindow¡¯ undeclared (first use in this
> function)
> HGraf.c:512: error: ¡®theGC¡¯ undeclared (first use in this function)
> HGraf.c: In function ¡®HPlotVector¡¯:
> HGraf.c:531: error: ¡®theDisp¡¯ undeclared (first use in this function)
> HGraf.c:531: error: ¡®theWindow¡¯ undeclared (first use in this
> function)
> HGraf.c:531: error: ¡®theGC¡¯ undeclared (first use in this function)
> HGraf.c: In function ¡®HSetFontSize¡¯:
> HGraf.c:545: error: ¡®CurrentFont¡¯ undeclared (first use in this
> function)
> HGraf.c:545: error: ¡®DefaultFont¡¯ undeclared (first use in this
> function)
> HGraf.c:554: error: ¡®FontInfo¡¯ undeclared (first use in this function)
> HGraf.c:557: warning: implicit declaration of function ¡®XSetFont¡¯
> HGraf.c:557: error: ¡®theDisp¡¯ undeclared (first use in this function)
> HGraf.c:557: error: ¡®gcs¡¯ undeclared (first use in this function)
> HGraf.c: In function ¡®HSetLineWidth¡¯:
> HGraf.c:566: warning: implicit declaration of function
> ¡®XSetLineAttributes¡¯
> HGraf.c:566: error: ¡®theDisp¡¯ undeclared (first use in this function)
> HGraf.c:566: error: ¡®gcs¡¯ undeclared (first use in this function)
> HGraf.c:566: error: ¡®LineSolid¡¯ undeclared (first use in this
> function)
> HGraf.c:566: error: ¡®JoinRound¡¯ undeclared (first use in this
> function)
> HGraf.c:566: error: ¡®FillSolid¡¯ undeclared (first use in this
> function)
> HGraf.c: In function ¡®HSetXMode¡¯:
> HGraf.c:572: error: ¡®theGC¡¯ undeclared (first use in this function)
> HGraf.c:572: error: ¡®gcs¡¯ undeclared (first use in this function)
> HGraf.c: In function ¡®CentreX¡¯:
> HGraf.c:578: warning: implicit declaration of function ¡®XTextWidth¡¯
> HGraf.c:578: error: ¡®CurrentFont¡¯ undeclared (first use in this
> function)
> HGraf.c: In function ¡®CentreY¡¯:
> HGraf.c:584: error: ¡®CurrentFont¡¯ undeclared (first use in this
> function)
> HGraf.c: In function ¡®HTextWidth¡¯:
> HGraf.c:590: error: ¡®CurrentFont¡¯ undeclared (first use in this
> function)
> HGraf.c: In function ¡®HTextHeight¡¯:
> HGraf.c:596: error: ¡®CurrentFont¡¯ undeclared (first use in this
> function)
> HGraf.c: In function ¡®HDrawImage¡¯:
> HGraf.c:605: error: expected ¡®=¡¯, ¡®,¡¯, ¡®;¡¯, ¡®asm¡¯ or
> ¡®__attribute__¡¯
> before ¡®*¡¯ token
> HGraf.c:605: error: ¡®xi¡¯ undeclared (first use in this function)
> HGraf.c:612: warning: implicit declaration of function ¡®XDestroyImage¡¯
> HGraf.c:613: warning: implicit declaration of function ¡®XGetImage¡¯
> HGraf.c:613: error: ¡®theDisp¡¯ undeclared (first use in this function)
> HGraf.c:613: error: ¡®theWindow¡¯ undeclared (first use in this
> function)
> HGraf.c:613: error: ¡®AllPlanes¡¯ undeclared (first use in this
> function)
> HGraf.c:613: error: ¡®XYPixmap¡¯ undeclared (first use in this function)
> HGraf.c:617: warning: implicit declaration of function ¡®XPutPixel¡¯
> HGraf.c:619: warning: implicit declaration of function ¡®XPutImage¡¯
> HGraf.c:619: error: ¡®theGC¡¯ undeclared (first use in this function)
> HGraf.c: In function ¡®HFlush¡¯:
> HGraf.c:625: error: ¡®theDisp¡¯ undeclared (first use in this function)
> HGraf.c: In function ¡®InitGCs¡¯:
> HGraf.c:835: error: ¡®XGCValues¡¯ undeclared (first use in this
> function)
> HGraf.c:835: error: expected ¡®;¡¯ before ¡®values¡¯
> HGraf.c:838: error: ¡®GCLineWidth¡¯ undeclared (first use in this
> function)
> HGraf.c:838: error: ¡®GCFunction¡¯ undeclared (first use in this
> function)
> HGraf.c:838: error: ¡®GCForeground¡¯ undeclared (first use in this
> function)
> HGraf.c:840: error: ¡®values¡¯ undeclared (first use in this function)
> HGraf.c:843: error: ¡®gcs¡¯ undeclared (first use in this function)
> HGraf.c:843: warning: implicit declaration of function ¡®XCreateGC¡¯
> HGraf.c:843: error: ¡®theDisp¡¯ undeclared (first use in this function)
> HGraf.c:843: error: ¡®theWindow¡¯ undeclared (first use in this
> function)
> HGraf.c:845: error: ¡®GCPlaneMask¡¯ undeclared (first use in this
> function)
> HGraf.c: In function ¡®InitGlobals¡¯:
> HGraf.c:855: warning: implicit declaration of function ¡®DefaultScreen¡¯
> HGraf.c:855: error: ¡®theDisp¡¯ undeclared (first use in this function)
> HGraf.c:856: error: ¡®theCmap¡¯ undeclared (first use in this function)
> HGraf.c:856: warning: implicit declaration of function
> ¡®DefaultColormap¡¯
> HGraf.c:857: error: ¡®rootW¡¯ undeclared (first use in this function)
> HGraf.c:857: warning: implicit declaration of function ¡®RootWindow¡¯
> HGraf.c:858: error: ¡®theGC¡¯ undeclared (first use in this function)
> HGraf.c:858: warning: implicit declaration of function ¡®DefaultGC¡¯
> HGraf.c:859: error: ¡®theVisual¡¯ undeclared (first use in this
> function)
> HGraf.c:859: warning: implicit declaration of function ¡®DefaultVisual¡¯
> HGraf.c:860: warning: implicit declaration of function ¡®DisplayCells¡¯
> HGraf.c:861: warning: implicit declaration of function ¡®DisplayWidth¡¯
> HGraf.c:862: warning: implicit declaration of function ¡®DisplayHeight¡¯
> HGraf.c:863: warning: implicit declaration of function ¡®DisplayPlanes¡¯
> HGraf.c:864: warning: implicit declaration of function ¡®WhitePixel¡¯
> HGraf.c:865: warning: implicit declaration of function ¡®BlackPixel¡¯
> HGraf.c: In function ¡®MakeXGraf¡¯:
> HGraf.c:872: error: ¡®Window¡¯ undeclared (first use in this function)
> HGraf.c:872: error: expected ¡®;¡¯ before ¡®window¡¯
> HGraf.c:873: error: ¡®XSetWindowAttributes¡¯ undeclared (first use in
> this function)
> HGraf.c:873: error: expected ¡®;¡¯ before ¡®setwinattr¡¯
> HGraf.c:878: error: ¡®theDisp¡¯ undeclared (first use in this function)
> HGraf.c:878: warning: implicit declaration of function ¡®XOpenDisplay¡¯
> HGraf.c:879: warning: implicit declaration of function ¡®XDisplayName¡¯
> HGraf.c:883: error: ¡®parent¡¯ undeclared (first use in this function)
> HGraf.c:884: error: ¡®window¡¯ undeclared (first use in this function)
> HGraf.c:884: warning: implicit declaration of function
> ¡®XCreateSimpleWindow¡¯
> HGraf.c:886: error: ¡®CWBackingStore¡¯ undeclared (first use in this
> function)
> HGraf.c:886: error: ¡®setwinattr¡¯ undeclared (first use in this function)
> HGraf.c:886: error: ¡®WhenMapped¡¯ undeclared (first use in this function)
> HGraf.c:887: warning: implicit declaration of function
> ¡®XChangeWindowAttributes¡¯
> HGraf.c:889: error: ¡®hints¡¯ undeclared (first use in this function)
> HGraf.c:889: error: ¡®PPosition¡¯ undeclared (first use in this function)
> HGraf.c:889: error: ¡®PSize¡¯ undeclared (first use in this function)
> HGraf.c:889: error: ¡®PMaxSize¡¯ undeclared (first use in this function)
> HGraf.c:889: error: ¡®PMinSize¡¯ undeclared (first use in this function)
> HGraf.c:896: warning: implicit declaration of function
> ¡®XSetStandardProperties¡¯
> HGraf.c:896: error: ¡®None¡¯ undeclared (first use in this function)
> HGraf.c:898: warning: implicit declaration of function ¡®XSelectInput¡¯
> HGraf.c:898: error: ¡®ExposureMask¡¯ undeclared (first use in this
> function)
> HGraf.c:898: error: ¡®KeyPressMask¡¯ undeclared (first use in this
> function)
> HGraf.c:898: error: ¡®ButtonPressMask¡¯ undeclared (first use in this
> function)
> HGraf.c:899: error: ¡®ButtonReleaseMask¡¯ undeclared (first use in this
> function)
> HGraf.c:899: error: ¡®PointerMotionHintMask¡¯ undeclared (first use in
> this function)
> HGraf.c:899: error: ¡®PointerMotionMask¡¯ undeclared (first use in this
> function)
> HGraf.c:900: warning: implicit declaration of function ¡®XMapWindow¡¯
> HGraf.c:900: error: ¡®theWindow¡¯ undeclared (first use in this function)
> HGraf.c:905: error: ¡®report¡¯ undeclared (first use in this function)
> HGraf.c:906: error: ¡®Expose¡¯ undeclared (first use in this function)
> HGraf.c:907: warning: implicit declaration of function ¡®XSendEvent¡¯
> HGraf.c:907: error: ¡®False¡¯ undeclared (first use in this function)
> HGraf.c: In function ¡®TermHGraf¡¯:
> HGraf.c:916: error: ¡®theDisp¡¯ undeclared (first use in this function)
> HGraf.c:917: warning: implicit declaration of function ¡®XCloseDisplay¡¯
> make[1]: *** [HGraf.o] Error 1
> make[1]: Leaving directory `/home/saser/hmm/htk/HTKLib'
> make: *** [HTKLib/HTKLib.a] Error 1
>
>
> --
> ¿µÊÀØ·
> Shiyin Kang
>
> kangshiyin@xxxxxxxxx
>
>



References
[hts-users:01905] Error when installing HTS in 64-bit linux, 康世胤