Menu

#7 linux - compile error - puaLargeInput’ has no member ‘setText'

open
nobody
None
5
2020-04-17
2018-02-06
No

Hello,
Compiling on opensuse 43.2 distribution, I get the following error:

g++ -DHAVE_CONFIG_H -I.    -pthread  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -frounding-math -DPU_USE_SDL -DCRRC_DATA_PATH="\"/usr/local/share/crrcsim\"" -g -O2 -Dlinux -Wall -MT crrcsim-crrc_location.o -MD -MP -MF .deps/crrcsim-crrc_location.Tpo -c -o crrcsim-crrc_location.o `test -f 'src/GUI/crrc_location.cpp' || echo './'`src/GUI/crrc_location.cpp
src/GUI/crrc_location.cpp: In constructor ‘CGUILocationDialog::CGUILocationDialog()’:
src/GUI/crrc_location.cpp:211:16: error: ‘class puaLargeInput’ has no member named ‘setText’
   description->setText("This is a short description of the selected scenery.");
                ^
src/GUI/crrc_location.cpp: In member function ‘void CGUILocationDialog::updateLocationInfo(int)’:
src/GUI/crrc_location.cpp:293:18: error: ‘class puaLargeInput’ has no member named ‘setText’
     description->setText(description_string.c_str());
                  ^
Makefile:1254: recept voor doel 'crrcsim-crrc_location.o' is mislukt
make[2]: *** [crrcsim-crrc_location.o] Fout 1
make[2]: Map '/home/alasdair/crrcsim/crrcsim-0.9.13' wordt verlaten
Makefile:3108: recept voor doel 'all-recursive' is mislukt
make[1]: *** [all-recursive] Fout 1
make[1]: Map '/home/alasdair/crrcsim/crrcsim-0.9.13' wordt verlaten
Makefile:805: recept voor doel 'all' is mislukt
make: *** [all] Fout 2

Searching the internet, I don't come across much information about class 'puaLargeInput’ so any pointers would be appreciated.
Not relevant, I think but just in case, autogen ran ok and configure was executed without any flags or extra configuration.

Thanks in advance,
Alasdair

Discussion

  • Alasdair Hatfield

    I've found that it all seems to come from PLIB.
    The version of PLIB installed in opensuse 43.2 doesn't have 'puaLargeInput::setText'.
    Also found that puaLargeInput::getText is protected which crrcsim doesn't like.

    Will work on a workaround using addText but first clearing the buffer.
    I think this post can be closed.
    Alasdair

     
  • Don Littlefield

    Don Littlefield - 2020-04-17

    install errors downloaded crrcsim extracted files and run ./configure
    failed because of missing files which I downloaded and run ./configure on them too.
    boost 1.72.0
    jpeg-9d
    plib 1.8.5
    SDL 1.2.15
    SDL 2.0

    still getting errors about FETCH


    0 or newer not found!
    root@One:/home/don/crrcsim-0.9.13# cd ..
    root@One:/home/don# ls
    boost_1_72_0 Desktop Downloads Music plib-1.8.5 Public Templates Videos
    crrcsim-0.9.13 Documents jpeg-9d Pictures portaudio SDL-1.2.15 test.html
    root@One:/home/don# cd SDL-1.2.15/
    root@One:/home/don/SDL-1.2.15# ./configure
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for fgrep... /usr/bin/grep -F
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for ar... ar
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC -DPIC
    checking if gcc PIC flag -fPIC -DPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking whether byte ordering is bigendian... no
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ISO C89... (cached) none needed
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking whether we are using the GNU C++ compiler... (cached) yes
    checking whether g++ accepts -g... (cached) yes
    checking how to run the C++ preprocessor... g++ -E
    checking for ld used by g++... /usr/bin/ld -m elf_x86_64
    checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
    checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking for g++ option to produce PIC... -fPIC -DPIC
    checking if g++ PIC flag -fPIC -DPIC works... yes
    checking if g++ static flag -static works... yes
    checking if g++ supports -c -o file.o... yes
    checking if g++ supports -c -o file.o... (cached) yes
    checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether make sets $(MAKE)... yes
    checking for windres... no
    checking for an ANSI C-conforming const... yes
    checking for inline... inline
    checking for working volatile... yes
    checking for ANSI C header files... (cached) yes
    checking for sys/types.h... (cached) yes
    checking stdio.h usability... yes
    checking stdio.h presence... yes
    checking for stdio.h... yes
    checking for stdlib.h... (cached) yes
    checking stddef.h usability... yes
    checking stddef.h presence... yes
    checking for stddef.h... yes
    checking stdarg.h usability... yes
    checking stdarg.h presence... yes
    checking for stdarg.h... yes
    checking malloc.h usability... yes
    checking malloc.h presence... yes
    checking for malloc.h... yes
    checking for memory.h... (cached) yes
    checking for string.h... (cached) yes
    checking for strings.h... (cached) yes
    checking for inttypes.h... (cached) yes
    checking for stdint.h... (cached) yes
    checking ctype.h usability... yes
    checking ctype.h presence... yes
    checking for ctype.h... yes
    checking math.h usability... yes
    checking math.h presence... yes
    checking for math.h... yes
    checking iconv.h usability... yes
    checking iconv.h presence... yes
    checking for iconv.h... yes
    checking signal.h usability... yes
    checking signal.h presence... yes
    checking for signal.h... yes
    checking for size_t... yes
    checking for int64_t... yes
    checking for working alloca.h... yes
    checking for alloca... yes
    checking for working memcmp... yes
    checking for working strtod... yes
    checking for mprotect... yes
    checking for malloc... yes
    checking for calloc... yes
    checking for realloc... yes
    checking for free... yes
    checking for getenv... yes
    checking for putenv... yes
    checking for unsetenv... yes
    checking for qsort... yes
    checking for abs... yes
    checking for bcopy... yes
    checking for memset... yes
    checking for memcpy... yes
    checking for memmove... yes
    checking for strlen... yes
    checking for strlcpy... no
    checking for strlcat... no
    checking for strdup... yes
    checking for _strrev... no
    checking for _strupr... no
    checking for _strlwr... no
    checking for strchr... yes
    checking for strrchr... yes
    checking for strstr... yes
    checking for itoa... no
    checking for _ltoa... no
    checking for _uitoa... no
    checking for _ultoa... no
    checking for strtol... yes
    checking for strtoul... yes
    checking for _i64toa... no
    checking for _ui64toa... no
    checking for strtoll... yes
    checking for strtoull... yes
    checking for atoi... yes
    checking for atof... yes
    checking for strcmp... yes
    checking for strncmp... yes
    checking for _stricmp... no
    checking for strcasecmp... yes
    checking for _strnicmp... no
    checking for strncasecmp... yes
    checking for sscanf... yes
    checking for snprintf... yes
    checking for vsnprintf... yes
    checking for iconv... yes
    checking for sigaction... yes
    checking for setjmp... yes
    checking for nanosleep... yes
    checking for libiconv_open in -liconv... no
    checking for pow in -lm... yes
    checking for struct sigaction.sa_sigaction... yes
    checking for GCC -fvisibility=hidden option... yes
    checking for dlopen... yes
    checking for dlopen in -lc... no
    checking for dlopen in -ldl... yes
    checking for Altivec with GCC altivec.h and -maltivec option... no
    checking for Altivec with GCC -maltivec option... no
    checking for Altivec with GCC altivec.h and -faltivec option... no
    checking for Altivec with GCC -faltivec option... no
    checking for OSS audio support... yes
    checking for dmedia audio support... no
    checking for ALSA CFLAGS...
    checking for ALSA LDFLAGS... -lasound -lm -ldl -lpthread
    checking for libasound headers version >= 0.9.0... not present.
    checking for snd_ctl_open in -lasound... no
    checking for artsc-config... no
    checking for esd-config... no
    checking for ESD - version >= 0.2.8... no
    The esd-config script installed by ESD could not be found
    If ESD was installed in PREFIX, make sure PREFIX/bin is in
    your path, or set the ESD_CONFIG environment variable to the
    full path to esd-config.
    checking for pkg-config... no
    checking for PulseAudio 0.9 support... no
    checking audio/audiolib.h usability... no
    checking audio/audiolib.h presence... no
    checking for audio/audiolib.h... no
    checking for AuOpenServer in -laudio... no
    checking for NAS audio support... no
    checking for X... libraries , headers
    checking for gethostbyname... yes
    checking for connect... yes
    checking for remove... yes
    checking for shmat... yes
    checking for IceConnectionNumber in -lICE... no
    -- dynamic libX11 -> libX11.so.6
    -- dynamic libX11ext -> libXext.so.6
    checking for X11/extensions/Xrandr.h... no
    checking for framebuffer console support... yes
    checking for getpagesize... yes
    checking for directfb-config... no
    checking for pkg-config... (cached) no
    checking for DirectFB 0.9.15 support... no
    checking for PlayStation 2 GS support... no
    checking for PlayStation 3 Cell support... no
    checking for SVGAlib (1.4.0+) support... no
    checking for libVGL support... no
    checking for wscons support... no
    checking for OpenGL (GLX) support... yes
    checking for Linux 2.4 unified input interface... yes
    checking for Touchscreen library support... no
    checking for hid_init in -lusbhid... no
    checking usb.h usability... no
    checking usb.h presence... no
    checking for usb.h... no
    checking libusb.h usability... no
    checking libusb.h presence... no
    checking for libusb.h... no
    checking for hid_init in -lusb... no
    checking for usbhid... no
    checking for pthreads... yes
    checking for recursive mutexes... yes
    checking for pthread semaphores... yes
    checking for sem_timedwait... yes
    checking linux/version.h usability... yes
    checking linux/version.h presence... yes
    checking for linux/version.h... yes
    checking for GCC -Wall option... yes
    checking for necessary GCC -Wno-multichar option... no
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating sdl-config
    config.status: creating SDL.spec
    config.status: creating SDL.qpg
    config.status: creating sdl.pc
    config.status: creating include/SDL_config.h
    config.status: include/SDL_config.h is unchanged
    config.status: executing libtool commands
    config.status: executing default commands
    Generating dependencies for ./src/SDL.c
    Generating dependencies for ./src/SDL_error.c
    Generating dependencies for ./src/SDL_fatal.c
    Generating dependencies for ./src/audio/SDL_audio.c
    Generating dependencies for ./src/audio/SDL_audiocvt.c
    Generating dependencies for ./src/audio/SDL_audiodev.c
    Generating dependencies for ./src/audio/SDL_mixer.c
    Generating dependencies for ./src/audio/SDL_mixer_MMX.c
    Generating dependencies for ./src/audio/SDL_mixer_MMX_VC.c
    Generating dependencies for ./src/audio/SDL_mixer_m68k.c
    Generating dependencies for ./src/audio/SDL_wave.c
    Generating dependencies for ./src/cdrom/SDL_cdrom.c
    Generating dependencies for ./src/cpuinfo/SDL_cpuinfo.c
    Generating dependencies for ./src/events/SDL_active.c
    Generating dependencies for ./src/events/SDL_events.c
    Generating dependencies for ./src/events/SDL_expose.c
    Generating dependencies for ./src/events/SDL_keyboard.c
    Generating dependencies for ./src/events/SDL_mouse.c
    Generating dependencies for ./src/events/SDL_quit.c
    Generating dependencies for ./src/events/SDL_resize.c
    Generating dependencies for ./src/file/SDL_rwops.c
    Generating dependencies for ./src/stdlib/SDL_getenv.c
    Generating dependencies for ./src/stdlib/SDL_iconv.c
    Generating dependencies for ./src/stdlib/SDL_malloc.c
    Generating dependencies for ./src/stdlib/SDL_qsort.c
    Generating dependencies for ./src/stdlib/SDL_stdlib.c
    Generating dependencies for ./src/stdlib/SDL_string.c
    Generating dependencies for ./src/thread/SDL_thread.c
    Generating dependencies for ./src/timer/SDL_timer.c
    Generating dependencies for ./src/video/SDL_RLEaccel.c
    Generating dependencies for ./src/video/SDL_blit.c
    Generating dependencies for ./src/video/SDL_blit_0.c
    Generating dependencies for ./src/video/SDL_blit_1.c
    Generating dependencies for ./src/video/SDL_blit_A.c
    Generating dependencies for ./src/video/SDL_blit_N.c
    Generating dependencies for ./src/video/SDL_bmp.c
    Generating dependencies for ./src/video/SDL_cursor.c
    Generating dependencies for ./src/video/SDL_gamma.c
    Generating dependencies for ./src/video/SDL_pixels.c
    Generating dependencies for ./src/video/SDL_stretch.c
    Generating dependencies for ./src/video/SDL_surface.c
    Generating dependencies for ./src/video/SDL_video.c
    Generating dependencies for ./src/video/SDL_yuv.c
    Generating dependencies for ./src/video/SDL_yuv_mmx.c
    Generating dependencies for ./src/video/SDL_yuv_sw.c
    Generating dependencies for ./src/joystick/SDL_joystick.c
    Generating dependencies for ./src/video/dummy/SDL_nullevents.c
    Generating dependencies for ./src/video/dummy/SDL_nullmouse.c
    Generating dependencies for ./src/video/dummy/SDL_nullvideo.c
    Generating dependencies for ./src/audio/disk/SDL_diskaudio.c
    Generating dependencies for ./src/audio/dummy/SDL_dummyaudio.c
    Generating dependencies for ./src/loadso/dlopen/SDL_sysloadso.c
    Generating dependencies for ./src/audio/dsp/SDL_dspaudio.c
    Generating dependencies for ./src/audio/dma/SDL_dmaaudio.c
    Generating dependencies for ./src/video/x11/SDL_x11dga.c
    Generating dependencies for ./src/video/x11/SDL_x11dyn.c
    Generating dependencies for ./src/video/x11/SDL_x11events.c
    Generating dependencies for ./src/video/x11/SDL_x11gamma.c
    Generating dependencies for ./src/video/x11/SDL_x11gl.c
    Generating dependencies for ./src/video/x11/SDL_x11image.c
    Generating dependencies for ./src/video/x11/SDL_x11modes.c
    Generating dependencies for ./src/video/x11/SDL_x11mouse.c
    Generating dependencies for ./src/video/x11/SDL_x11video.c
    Generating dependencies for ./src/video/x11/SDL_x11wm.c
    Generating dependencies for ./src/video/x11/SDL_x11yuv.c
    Generating dependencies for ./src/video/Xext/Xxf86dga/XF86DGA.c
    Generating dependencies for ./src/video/Xext/Xxf86dga/XF86DGA2.c
    Generating dependencies for ./src/video/dga/SDL_dgaevents.c
    Generating dependencies for ./src/video/dga/SDL_dgamouse.c
    Generating dependencies for ./src/video/dga/SDL_dgavideo.c
    Generating dependencies for ./src/video/Xext/Xxf86vm/XF86VMode.c
    Generating dependencies for ./src/video/Xext/Xv/Xv.c
    Generating dependencies for ./src/video/Xext/Xinerama/Xinerama.c
    Generating dependencies for ./src/video/Xext/XME/xme.c
    Generating dependencies for ./src/video/fbcon/SDL_fb3dfx.c
    Generating dependencies for ./src/video/fbcon/SDL_fbelo.c
    Generating dependencies for ./src/video/fbcon/SDL_fbevents.c
    Generating dependencies for ./src/video/fbcon/SDL_fbmatrox.c
    Generating dependencies for ./src/video/fbcon/SDL_fbmouse.c
    Generating dependencies for ./src/video/fbcon/SDL_fbriva.c
    Generating dependencies for ./src/video/fbcon/SDL_fbvideo.c
    Generating dependencies for ./src/thread/pthread/SDL_systhread.c
    Generating dependencies for ./src/thread/pthread/SDL_syssem.c
    Generating dependencies for ./src/thread/pthread/SDL_sysmutex.c
    Generating dependencies for ./src/thread/pthread/SDL_syscond.c
    Generating dependencies for ./src/joystick/linux/SDL_sysjoystick.c
    Generating dependencies for ./src/cdrom/linux/SDL_syscdrom.c
    Generating dependencies for ./src/timer/unix/SDL_systimer.c
    Generating dependencies for ./src/main/dummy/SDL_dummy_main.c
    root@One:/home/don/SDL-1.2.15# not included
    bash: not: command not found
    root@One:/home/don/SDL-1.2.15# cd ..
    root@One:/home/don# cd ..
    root@One:/home# ls
    don
    root@One:/home# cd don
    root@One:/home/don# ls
    boost_1_72_0 Desktop Downloads Music plib-1.8.5 Public Templates Videos
    crrcsim-0.9.13 Documents jpeg-9d Pictures portaudio SDL-1.2.15 test.html
    root@One:/home/don# cd plib-1.8.5/
    root@One:/home/don/plib-1.8.5# ./configure
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... no
    checking for mawk... mawk
    checking whether make sets $(MAKE)... yes
    includedir changed to ${prefix}/include/plib libdir is ${exec_prefix}/lib
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking for style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking how to run the C preprocessor... gcc -E
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking dependency style of g++... gcc3
    checking how to run the C++ preprocessor... g++ -E
    checking for a BSD-compatible install... /usr/bin/install -c
    checking for ranlib... ranlib
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking for X... no
    checking for pthread_create in -lpthread... no
    checking for glNewList in -lGL... no
    checking for glNewList in -lMesaGL... no
    configure: error: could not find working GL library
    root@One:/home/don/plib-1.8.5# cd ..
    root@One:/home/don# cd crrcsim-0.9.13/
    root@One:/home/don/crrcsim-0.9.13# ./configure
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
    checking for gawk... no
    checking for mawk... mawk
    checking whether make sets $(MAKE)... yes
    checking for g++... g++
    checking whether the C++ compiler works... yes
    checking for C++ compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking for style of include used by make... GNU
    checking dependency style of g++... gcc3
    checking how to run the C++ preprocessor... g++ -E
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for ANSI C header files... yes
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking for pthread_create in -lpthread... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking sys/io.h usability... yes
    checking sys/io.h presence... yes
    checking for sys/io.h... yes
    checking asm/io.h usability... no
    checking asm/io.h presence... no
    checking for asm/io.h... no
    checking portaudio.h usability... no
    checking portaudio.h presence... no
    checking for portaudio.h... no
    checking for sdl-config... no
    checking for SDL - version >= 1.2.5... no
    The sdl-config script installed by SDL could not be found
    If SDL was installed in PREFIX, make sure PREFIX/bin is in
    your path, or set the SDL_CONFIG environment variable to the
    full path to sdl-config.
    configure: SDL version 1.2.5 or newer not found! See if at least 1.2.0 is present...
    checking for sdl-config... (cached) no
    checking for SDL - version >= 1.2.0... no
    The sdl-config script installed by SDL could not be found
    If SDL was installed in PREFIX, make sure PREFIX/bin is in
    your path, or set the SDL_CONFIG environment variable to the
    full path to sdl-config.
    configure: error:
    SDL version 1.2.0 or newer not found!
    root@One:/home/don/crrcsim-0.9.13#

    I hope that his is helpful for the maintainers.
    Don

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.