It looks like it's not linking with the GPM and ncurses libs though it finds the
headers just fine. Is there '-lgpm' and '-lncurses' on the linker command line? If
not, then there's a bug in the makefile. I don't have CVS access to fix it from here,
but you can add those two switches manually and it should compile.
On Thu, 05 April 2001, "Gray, Tim" wrote:
>
> Ok I installed GPM1.19.3 Which from the site is the latest and last version.
> I also installed ncurses 5.2 (Which is also supposed to be the latest.)
>
> and I get upon linking....
>
> o
> input/ncursesinput.o: In function `ncursesinput_fd_activate':
> input/ncursesinput.o(.text+0x14): undefined reference to `stdscr'
> input/ncursesinput.o(.text+0x19): undefined reference to `wgetch'
> input/ncursesinput.o(.text+0x16a): undefined reference to `stdscr'
> input/ncursesinput.o(.text+0x16f): undefined reference to `wgetch'
> input/ncursesinput.o(.text+0x31a): undefined reference to `gpm_fd'
> input/ncursesinput.o(.text+0x32a): undefined reference to `Gpm_GetEvent'
> input/ncursesinput.o(.text+0x379): undefined reference to `gpm_mx'
> input/ncursesinput.o(.text+0x381): undefined reference to `gpm_my'
> input/ncursesinput.o(.text+0x3b2): undefined reference to `Gpm_FitValuesM'
> input/ncursesinput.o: In function `ncursesinput_fd_init':
> input/ncursesinput.o(.text+0x4ce): undefined reference to `gpm_fd'
> input/ncursesinput.o(.text+0x4e3): undefined reference to `gpm_fd'
> input/ncursesinput.o: In function `ncursesinput_init':
> input/ncursesinput.o(.text+0x500): undefined reference to `initscr'
> input/ncursesinput.o(.text+0x505): undefined reference to `start_color'
> input/ncursesinput.o(.text+0x50a): undefined reference to `raw'
> input/ncursesinput.o(.text+0x512): undefined reference to `stdscr'
> input/ncursesinput.o(.text+0x517): undefined reference to `meta'
> input/ncursesinput.o(.text+0x51c): undefined reference to `noecho'
> input/ncursesinput.o(.text+0x521): undefined reference to `nonl'
> input/ncursesinput.o(.text+0x529): undefined reference to `stdscr'
> input/ncursesinput.o(.text+0x52e): undefined reference to `intrflush'
> input/ncursesinput.o(.text+0x536): undefined reference to `stdscr'
> input/ncursesinput.o(.text+0x53b): undefined reference to `keypad'
> input/ncursesinput.o(.text+0x542): undefined reference to `curs_set'
> input/ncursesinput.o(.text+0x54a): undefined reference to `stdscr'
> input/ncursesinput.o(.text+0x54f): undefined reference to `nodelay'
> input/ncursesinput.o(.text+0x57a): undefined reference to `Gpm_Open'
> input/ncursesinput.o(.text+0x588): undefined reference to `gpm_zerobased'
> input/ncursesinput.o: In function `ncursesinput_close':
> input/ncursesinput.o(.text+0x5a1): undefined reference to `Gpm_Close'
> input/ncursesinput.o(.text+0x5ab): undefined reference to `stdscr'
> input/ncursesinput.o(.text+0x5b0): undefined reference to `wclear'
> input/ncursesinput.o(.text+0x5b6): undefined reference to `stdscr'
> input/ncursesinput.o(.text+0x5bb): undefined reference to `wrefresh'
> input/ncursesinput.o(.text+0x5c0): undefined reference to `endwin'
> collect2: ld returned 1 exit status
> make: *** [pgserver] Error 1
> player:/home/timgr/pgui-dev20010403/pgserver#
>
> any other ideas on how to get this to compile? I need the keyboard and
> mouse inputs.
> now under GPM I did a ./configure; make; make test; make install;
> I also tried to install GPM with the --prefix=/usr switch to see if it was a
> path issue.
> I also followed that same proceedures for ncurses.
>
> Thanks all.
>
>
> -----Original Message-----
> From: Micah Dowty [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 04, 2001 8:26 PM
> To: Gray, Tim
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Pgui-devel] picoGUI compile errors.
>
>
> You need to install the GPM development libraries. (Usually the package is
> called libgpm-dev or something of that sort) The ncursesinput driver uses
> ncurses itself for keyboard, but it uses gpm directly for mouse.
> It's not a great method, because gpm scales down the resolution of the
> mouse, but I haven't gotten anything better yet. It would be nice to have
> direct drivers for serial and PS/2 mice, but I haven't gotten around to it.
>
> Another note: You don't need the svgainput driver if you're not using the
> svgafb/svgagl video drivers too. Also note that as I've rearranged the video
> drivers recently if it doesn't compile it's probably my fault.
>
>
> On Wed, 04 April 2001, "Gray, Tim" wrote:
>
> >
> > Ok, I have for my development station a standard Intel box with Redhat 6.2
> > on it with a clean install.
> >
> > upon compiling pgserver I get the following errors.
> >
> > fonts.tmp.c:1408: warning: initialization discards `const' from pointer
> > target type
> > rm -f fonts.tmp.c
> > gcc -o pgserver widget/bitmap.o widget/indicator.o widget/label.o
> > widget/toolbar.o widget/scroll.o widget/widget.o widget/button.o
> > widget/popup.o widget/box.o widget/field.o widget/background.o
> > widget/menuitem.o widget/checkbox.o gcore/grop.o gcore/g_malloc.o
> > gcore/div.o gcore/font.o gcore/handle.o gcore/g_error.o gcore/timer.o
> > gcore/errortext.o gcore/video.o gcore/input.o gcore/driverinfo.o
> > gcore/pgmain.o appmgr/global.o net/request.o net/dispatch.o net/eventq.o
> > vidbase/defaultvbl.o theme/memtheme.o theme/fillstyle.o video/fbdev.o
> > input/ncursesinput.o vidbase/linear8.o vidbase/linear16.o
> widget/terminal.o
> > widget/canvas.o widget/panel.o formats/pnm.o font/fontdata.o
> > input/ncursesinput.o: In function `ncursesinput_fd_activate':
> > input/ncursesinput.o(.text+0x14): undefined reference to `stdscr'
> > input/ncursesinput.o(.text+0x19): undefined reference to `wgetch'
> > input/ncursesinput.o(.text+0x163): undefined reference to `stdscr'
> > input/ncursesinput.o(.text+0x168): undefined reference to `wgetch'
> > input/ncursesinput.o(.text+0x339): undefined reference to `gpm_fd'
> > input/ncursesinput.o(.text+0x349): undefined reference to `Gpm_GetEvent'
> > input/ncursesinput.o(.text+0x398): undefined reference to `gpm_mx'
> > input/ncursesinput.o(.text+0x3a0): undefined reference to `gpm_my'
> > input/ncursesinput.o(.text+0x3d1): undefined reference to `Gpm_FitValuesM'
> > input/ncursesinput.o: In function `ncursesinput_fd_init':
> > input/ncursesinput.o(.text+0x4f2): undefined reference to `gpm_fd'
> > input/ncursesinput.o(.text+0x507): undefined reference to `gpm_fd'
> > input/ncursesinput.o: In function `ncursesinput_init':
> > input/ncursesinput.o(.text+0x524): undefined reference to `initscr'
> > input/ncursesinput.o(.text+0x529): undefined reference to `start_color'
> > input/ncursesinput.o(.text+0x52e): undefined reference to `raw'
> > input/ncursesinput.o(.text+0x536): undefined reference to `stdscr'
> > input/ncursesinput.o(.text+0x53b): undefined reference to `meta'
> > input/ncursesinput.o(.text+0x540): undefined reference to `noecho'
> > input/ncursesinput.o(.text+0x545): undefined reference to `nonl'
> > input/ncursesinput.o(.text+0x54d): undefined reference to `stdscr'
> > input/ncursesinput.o(.text+0x552): undefined reference to `intrflush'
> > input/ncursesinput.o(.text+0x55a): undefined reference to `stdscr'
> > input/ncursesinput.o(.text+0x55f): undefined reference to `keypad'
> > input/ncursesinput.o(.text+0x566): undefined reference to `curs_set'
> > input/ncursesinput.o(.text+0x56e): undefined reference to `stdscr'
> > input/ncursesinput.o(.text+0x573): undefined reference to `nodelay'
> > input/ncursesinput.o(.text+0x59e): undefined reference to `Gpm_Open'
> > input/ncursesinput.o(.text+0x5ac): undefined reference to `gpm_zerobased'
> > input/ncursesinput.o: In function `ncursesinput_close':
> > input/ncursesinput.o(.text+0x5c5): undefined reference to `Gpm_Close'
> > input/ncursesinput.o(.text+0x5cf): undefined reference to `stdscr'
> > input/ncursesinput.o(.text+0x5d4): undefined reference to `wclear'
> > input/ncursesinput.o(.text+0x5da): undefined reference to `stdscr'
> > input/ncursesinput.o(.text+0x5df): undefined reference to `wrefresh'
> > input/ncursesinput.o(.text+0x5e4): undefined reference to `endwin'
> > collect2: ld returned 1 exit status
> > make: *** [pgserver] Error 1
> > [timgr@gr_is2 pgserver]$
> >
> > Here is my configuration.
> >
> >
> > sh configscript/Configure config.in
> > #
> > # Using defaults found in .config
> > #
> > *
> > * Target System
> > *
> > Platform (Linux, uClinux, Windows) [Linux]
> > defined LINUX
> > x86 asm optimization (ASM_INTEL) [N/y/?] (NEW)
> > *
> > * Debugging
> > *
> > Enable text messages (CONFIG_TEXT) [N/y/?]
> > Debugging symbols in binary (CONFIG_NOSTRIP) [N/y/?]
> > Debugging keys (DEBUG_KEYS) [N/y/?] (NEW)
> > Video test mode (CONFIG_VIDEOTEST) [N/y/?]
> > Disable compiler optimization (CONFIG_NO_OPTIMIZE) [N/y/?]
> > Electric Fence malloc debugging (CONFIG_EFENCE) [N/y/?]
> > gcov coverage analysis (CONFIG_GCOV) [N/y/?]
> > gprof profiling (CONFIG_GPROF) [N/y/?]
> > Terminal prints unknown escapes (BOTHERSOME_TERMINAL) [N/y/?] (NEW)
> > Widget debugging (DEBUG_WIDGET) [N/y/?] (NEW)
> > Event debugging (DEBUG_EVENT) [N/y/?] (NEW)
> > Video debugging (DEBUG_VIDEO) [N/y/?] (NEW)
> > Theme debugging (DEBUG_THEME) [N/y/?] (NEW)
> > Client/server debugging (DEBUG_NET) [N/y/?] (NEW)
> > Initialization debugging (DEBUG_INIT) [N/y/?] (NEW)
> > Memory debugging (DEBUG_MEMORY) [N/y/?] (NEW)
> > *
> > * Fonts
> > *
> > Helvetica 10 (default font) (FONT_HELVETICA10) [Y/n/?]
> > Clean 12 (default fixed-width font) (FONT_CLEAN12) [Y/n/?]
> > Lucida 10 (FONT_LUCIDA10) [N/y/?] (NEW)
> > Clean 6 (FONT_CLEAN6) [N/y/?] (NEW)
> > Console 8 (FONT_CONSOLE8) [N/y/?] (NEW)
> > Courier 12, 12b (FONT_COURIER12) [N/y/?] (NEW)
> > Helvetica 8 (FONT_HELVETICA8) [N/y/?] (NEW)
> > Times 10, 10b (FONT_TIMES10) [N/y/?] (NEW)
> > Utopia 25 (FONT_UTOPIA25) [N/y/?] (NEW)
> > *
> > * Video Drivers
> > *
> > Linux framebuffer device (DRIVER_FBDEV) [Y/n/?]
> > SDL framebuffer driver (DRIVER_SDLFB) [N/y/?] (NEW)
> > SVGAlib framebuffer driver (DRIVER_SVGAFB) [N/y/?] (NEW)
> > SVGAlib vgagl driver (DRIVER_SVGAGL) [N/y/?] (NEW)
> > Motorola 68EZ328 LCD driver (DRIVER_EZ328) [N/y/?] (NEW)
> > Ncurses driver (DRIVER_NCURSES) [N/y/?] (NEW)
> > Null driver (DRIVER_NULL) [N/y/?] (NEW)
> > *
> > * Input Drivers
> > *
> > SDL input driver (DRIVER_SDLINPUT) [N/y/?] (NEW)
> > SVGAlib input driver (DRIVER_SVGAINPUT) [Y/n/?] n
> > Ncurses/GPM input driver (also for framebuffer) (DRIVER_NCURSESINPUT)
> > [Y/n/?]
> > Touchscreen input driver (DRIVER_TSINPUT) [N/y/?] (NEW)
> > *
> > * Video Base Libraries
> > *
> > Linear framebuffer @ 1bpp (CONFIG_VBL_LINEAR1) [N/y/?]
> > Linear framebuffer @ 2bpp (CONFIG_VBL_LINEAR2) [N/y/?]
> > Linear framebuffer @ 4bpp (CONFIG_VBL_LINEAR4) [N/y/?]
> > Linear framebuffer @ 8bpp (CONFIG_VBL_LINEAR8) [Y/n/?]
> > Linear framebuffer @ 16bpp (CONFIG_VBL_LINEAR16) [Y/n/?]
> > Video rotation support (CONFIG_ROTATE) [N/y/?]
> > *
> > * Widget Options
> > *
> > Terminal widget (VT102 emulator) (CONFIG_WIDGET_TERMINAL) [Y/n/?]
> > Canvas widget (for arbitrary graphics) (CONFIG_WIDGET_CANVAS) [Y/n/?]
> > Disable panelbar (CONFIG_NOPANELBAR) [N/y/?]
> > Solid panel dragging (CONFIG_DRAGSOLID) [N/y/?]
> > *
> > * Bitmap Formats
> > *
> > Internal XBM loader (CONFIG_FORMAT_XBM) [Y/n/?]
> > PNM: portable anymap (CONFIG_FORMAT_PNM) [Y/n/?]
> > *
> > * Security
> > *
> > Disable remote input devices (CONFIG_NOREMOTEINPUT) [N/y/?]
> > Disable exclusive resource access (CONFIG_NOEXCLUSIVE) [N/y/?]
> > Client packet size limit in bytes (CONFIG_MAXPACKETSZ) [5000000]
> > Client quotas (not implemented) (CONFIG_QUOTA) [N/y/?]
> >
> > *** End of PicoGUI configuration. Now run 'make'
> > [timgr@gr_is2 pgserver]$
> >
> > I am using last night's CVS snapshot. any ideas?
> >
> >
> > thanks.
> >
> >
> > _______________________________________________
> > Pgui-devel mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/pgui-devel
>
> --
> perl -e'socket S,2,1,tcp;connect S,pack(H16,"0200029a80692d32").\0x8;print
> grep!/=/,<S>'
>
>
> _______________________________________________
> Pgui-devel mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/pgui-devel
--
perl -e'socket S,2,1,tcp;connect S,pack(H16,"0200029a80692d32").\0x8;print
grep!/=/,<S>'
_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/pgui-devel