Hi Folks!
Peter Gerwinski wrote:
Well, now, libX11 is in its directory... and, besides, I'm trying to compile
the program for the Linux shell in text mode, so it doesn't even need X11.
Really in text mode? You probably mean SVGAlib instead of X11.
That's the point: In the case I currently want to work on, the program
should link with SVGAlib, not with X11. I didn't understand why the linker
was even looking for X11.
I did not try to compile GRX/SVGAlib Pascal programs for a long
time. Please look out for a "{$L X11}" directive in `grx.pas' and
replace it by "{$L vga}".
Got 'em.
IMHO, X11 should be the default graphics mechanism under Linux-based
systems.
Agreed. Nevertheless, I want to write a sufficiently common set of units as
to create as well X-Programs as Linux-Shell-Programs, so I have to get GRX
running in both modes.
I suggest to {$ifdef} the chosen library
You mean, inside the GRX source?
such that X11 is the default, and SVGAlib can be selected by something
like "-D SVGALIB" in the command line or "{$define SVGALIB}" in the
source.
M-hm, that has at least an effect. (See error log below;-)
Any idea how to fix that?
Yours
Markus
--
http://www.gerwinski.de/~markus/
-------------------------------- bite here --------------------------------
/usr/local/lib/libgrx20X.a(xwininp.o): In function `GrMouseInitN':
xwininp.o(.text+0x13e): undefined reference to `XCreateBitmapFromData'
xwininp.o(.text+0x18b): undefined reference to `XCreatePixmapCursor'
xwininp.o(.text+0x1a3): undefined reference to `XDefineCursor'
/usr/local/lib/libgrx20X.a(xwininp.o): In function `_GrUpdateInputs':
xwininp.o(.text+0x1fa): undefined reference to `XEventsQueued'
xwininp.o(.text+0x213): undefined reference to `XFlush'
xwininp.o(.text+0x23f): undefined reference to `XNextEvent'
xwininp.o(.text+0x553): undefined reference to `XKeycodeToKeysym'
xwininp.o(.text+0x73b): undefined reference to `XLookupString'
xwininp.o(.text+0x8d1): undefined reference to `XKeycodeToKeysym'
/usr/local/lib/libgrx20X.a(xwininp.o): In function `_XGrKeyboardHit':
xwininp.o(.text+0xe48): undefined reference to `XEventsQueued'
xwininp.o(.text+0xe5d): undefined reference to `XFlush'
xwininp.o(.text+0xe7b): undefined reference to `XPutBackEvent'
xwininp.o(.text+0xeb1): undefined reference to `XKeycodeToKeysym'
xwininp.o(.text+0x10a8): undefined reference to `XCheckMaskEvent'
/usr/local/lib/libgrx20X.a(xwininp.o): In function `_XGrKeyboardGetKey':
xwininp.o(.text+0x10f1): undefined reference to `XKeycodeToKeysym'
xwininp.o(.text+0x12f3): undefined reference to `XLookupString'
xwininp.o(.text+0x1352): undefined reference to `XMaskEvent'
/usr/local/lib/libgrx20X.a(xwininp.o): In function `GrMouseWarp':
xwininp.o(.text+0x1560): undefined reference to `XWarpPointer'
/usr/local/lib/libgrx20X.a(vd_xwin.o): In function `setmode':
vd_xwin.o(.text+0x2a): undefined reference to `XUnmapWindow'
vd_xwin.o(.text+0x54): undefined reference to `XResizeWindow'
vd_xwin.o(.text+0xd0): undefined reference to `XSetStandardProperties'
vd_xwin.o(.text+0xe7): undefined reference to `XMapRaised'
vd_xwin.o(.text+0xfd): undefined reference to `XNextEvent'
/usr/local/lib/libgrx20X.a(vd_xwin.o): In function `init':
vd_xwin.o(.text+0x137): undefined reference to `XOpenDisplay'
vd_xwin.o(.text+0x154): undefined reference to `XSetErrorHandler'
vd_xwin.o(.text+0x25f): undefined reference to `XAllocColorCells'
vd_xwin.o(.text+0x2db): undefined reference to `XCreateColormap'
vd_xwin.o(.text+0x3ff): undefined reference to `XCloseDisplay'
vd_xwin.o(.text+0x4b9): undefined reference to `XCreateWindow'
vd_xwin.o(.text+0x4d1): undefined reference to `XCreateGC'
vd_xwin.o(.text+0x4f5): undefined reference to `XCreatePixmap'
vd_xwin.o(.text+0x50d): undefined reference to `XCreateGC'
vd_xwin.o(.text+0x527): undefined reference to `XCreatePixmap'
vd_xwin.o(.text+0x53f): undefined reference to `XCreateGC'
vd_xwin.o(.text+0x55f): undefined reference to `XInstallColormap'
vd_xwin.o(.text+0x579): undefined reference to `XSetWindowColormap'
vd_xwin.o(.text+0x599): undefined reference to `XListPixmapFormats'
vd_xwin.o(.text+0x5b8): undefined reference to `XCloseDisplay'
vd_xwin.o(.text+0x621): undefined reference to `XFree'
vd_xwin.o(.text+0x636): undefined reference to `XCloseDisplay'
/usr/local/lib/libgrx20X.a(vd_xwin.o): In function `loadcolor':
vd_xwin.o(.text+0x7c3): undefined reference to `XStoreColor'
/usr/local/lib/libgrx20X.a(vd_xwin.o): In function `error_handler':
vd_xwin.o(.text+0x821): undefined reference to `XGetErrorText'
/usr/local/lib/libgrx20X.a(vd_xwin.o): In function `reset':
vd_xwin.o(.text+0x915): undefined reference to `XCloseDisplay'
/usr/local/lib/libgrx20X.a(fd_xwin.o): In function `readpixel':
fd_xwin.o(.text+0xa4): undefined reference to `XGetGeometry'
fd_xwin.o(.text+0xf7): undefined reference to `XGetImage'
fd_xwin.o(.text+0x12b): undefined reference to `XCreatePixmap'
fd_xwin.o(.text+0x17a): undefined reference to `XCopyArea'
fd_xwin.o(.text+0x19b): undefined reference to `XGetImage'
fd_xwin.o(.text+0x1b2): undefined reference to `XFreePixmap'
/usr/local/lib/libgrx20X.a(fd_xwin.o): In function `drawbitmap':
fd_xwin.o(.text+0x2c6): undefined reference to `XInitImage'
fd_xwin.o(.text+0x31c): undefined reference to `XSetForeground'
fd_xwin.o(.text+0x349): undefined reference to `XSetBackground'
fd_xwin.o(.text+0x37a): undefined reference to `XSetFunction'
fd_xwin.o(.text+0x3ac): undefined reference to `XPutImage'
fd_xwin.o(.text+0x3d7): undefined reference to `XSetForeground'
fd_xwin.o(.text+0x3ed): undefined reference to `XSetBackground'
fd_xwin.o(.text+0x41b): undefined reference to `XPutImage'
fd_xwin.o(.text+0x438): undefined reference to `XSetStipple'
fd_xwin.o(.text+0x451): undefined reference to `XSetTSOrigin'
fd_xwin.o(.text+0x46a): undefined reference to `XSetFillStyle'
fd_xwin.o(.text+0x497): undefined reference to `XSetForeground'
fd_xwin.o(.text+0x4c8): undefined reference to `XSetFunction'
fd_xwin.o(.text+0x4f2): undefined reference to `XFillRectangle'
fd_xwin.o(.text+0x518): undefined reference to `XSetForeground'
fd_xwin.o(.text+0x52e): undefined reference to `XSetBackground'
fd_xwin.o(.text+0x55c): undefined reference to `XPutImage'
fd_xwin.o(.text+0x579): undefined reference to `XSetStipple'
fd_xwin.o(.text+0x592): undefined reference to `XSetTSOrigin'
fd_xwin.o(.text+0x5ab): undefined reference to `XSetFillStyle'
fd_xwin.o(.text+0x5d8): undefined reference to `XSetForeground'
fd_xwin.o(.text+0x609): undefined reference to `XSetFunction'
fd_xwin.o(.text+0x633): undefined reference to `XFillRectangle'
fd_xwin.o(.text+0x64c): undefined reference to `XSetFillStyle'
/usr/local/lib/libgrx20X.a(fd_xwin.o): In function `drawpattern':
fd_xwin.o(.text+0x79b): undefined reference to `XInitImage'
fd_xwin.o(.text+0x7db): undefined reference to `XSetForeground'
fd_xwin.o(.text+0x7f1): undefined reference to `XSetBackground'
fd_xwin.o(.text+0x81e): undefined reference to `XPutImage'
fd_xwin.o(.text+0x83b): undefined reference to `XSetStipple'
fd_xwin.o(.text+0x854): undefined reference to `XSetTSOrigin'
fd_xwin.o(.text+0x86d): undefined reference to `XSetFillStyle'
fd_xwin.o(.text+0x899): undefined reference to `XSetForeground'
fd_xwin.o(.text+0x8ca): undefined reference to `XSetBackground'
fd_xwin.o(.text+0x8f1): undefined reference to `XSetForeground'
fd_xwin.o(.text+0x907): undefined reference to `XSetBackground'
fd_xwin.o(.text+0x934): undefined reference to `XPutImage'
fd_xwin.o(.text+0x951): undefined reference to `XSetStipple'
fd_xwin.o(.text+0x96a): undefined reference to `XSetTSOrigin'
fd_xwin.o(.text+0x983): undefined reference to `XSetFillStyle'
fd_xwin.o(.text+0x9af): undefined reference to `XSetForeground'
fd_xwin.o(.text+0x9e0): undefined reference to `XSetFunction'
fd_xwin.o(.text+0xa0b): undefined reference to `XFillRectangle'
fd_xwin.o(.text+0xa31): undefined reference to `XSetForeground'
fd_xwin.o(.text+0xa47): undefined reference to `XSetBackground'
fd_xwin.o(.text+0xa74): undefined reference to `XPutImage'
fd_xwin.o(.text+0xa91): undefined reference to `XSetStipple'
fd_xwin.o(.text+0xaaa): undefined reference to `XSetTSOrigin'
fd_xwin.o(.text+0xac3): undefined reference to `XSetFillStyle'
fd_xwin.o(.text+0xaf0): undefined reference to `XSetForeground'
fd_xwin.o(.text+0xb21): undefined reference to `XSetFunction'
fd_xwin.o(.text+0xb4c): undefined reference to `XFillRectangle'
fd_xwin.o(.text+0xb65): undefined reference to `XSetFillStyle'
/usr/local/lib/libgrx20X.a(fd_xwin.o): In function `bltr2v':
fd_xwin.o(.text+0xd37): undefined reference to `XInitImage'
fd_xwin.o(.text+0xd78): undefined reference to `XSetFunction'
fd_xwin.o(.text+0xdbd): undefined reference to `XPutImage'
/usr/local/lib/libgrx20X.a(fd_xwin.o): In function `init':
fd_xwin.o(.text+0xe9d): undefined reference to `XQueryColors'
/usr/local/lib/libgrx20X.a(fd_xwin.o): In function `drawpixel':
fd_xwin.o(.text+0xfd3): undefined reference to `XSetForeground'
fd_xwin.o(.text+0x1007): undefined reference to `XSetFunction'
fd_xwin.o(.text+0x1026): undefined reference to `XDrawPoint'
/usr/local/lib/libgrx20X.a(fd_xwin.o): In function `drawhline':
fd_xwin.o(.text+0x10bf): undefined reference to `XSetForeground'
fd_xwin.o(.text+0x10f3): undefined reference to `XSetFunction'
fd_xwin.o(.text+0x111c): undefined reference to `XDrawLine'
/usr/local/lib/libgrx20X.a(fd_xwin.o): In function `drawvline':
fd_xwin.o(.text+0x11af): undefined reference to `XSetForeground'
fd_xwin.o(.text+0x11e3): undefined reference to `XSetFunction'
fd_xwin.o(.text+0x120c): undefined reference to `XDrawLine'
/usr/local/lib/libgrx20X.a(fd_xwin.o): In function `drawblock':
fd_xwin.o(.text+0x12a4): undefined reference to `XSetForeground'
fd_xwin.o(.text+0x12d8): undefined reference to `XSetFunction'
fd_xwin.o(.text+0x12fd): undefined reference to `XFillRectangle'
/usr/local/lib/libgrx20X.a(fd_xwin.o): In function `drawline':
fd_xwin.o(.text+0x13a6): undefined reference to `XSetForeground'
fd_xwin.o(.text+0x13dc): undefined reference to `XSetFunction'
fd_xwin.o(.text+0x1401): undefined reference to `XDrawLine'
/usr/local/lib/libgrx20X.a(fd_xwin.o): In function `bitblt':
fd_xwin.o(.text+0x14bc): undefined reference to `XSetFunction'
fd_xwin.o(.text+0x14ef): undefined reference to `XCopyArea'
/usr/local/lib/libgrx20X.a(fd_xwin.o): In function `bltv2r':
fd_xwin.o(.text+0x15ce): undefined reference to `XGetImage'
fd_xwin.o(.text+0x15fc): undefined reference to `XCreatePixmap'
fd_xwin.o(.text+0x1642): undefined reference to `XCopyArea'
fd_xwin.o(.text+0x165f): undefined reference to `XGetImage'
fd_xwin.o(.text+0x1673): undefined reference to `XFreePixmap'
collect2: ld returned 1 exit status