Menu

error: unrecognized debug output level ‘nuplot_qt’

2018-10-21
2024-06-27
  • narunlifescience

    I am trying to link gnuplot_qt as a shared library to one of my projects in Qt5. however the attempt is failing with the following error:
    g++ -Wl,-O1 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o visualization main.o MainWindow.o moc_MainWindow.o -gnuplot_qt -gnuplot_x11 -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
    g++: error: unrecognized debug output level ‘nuplot_qt’

    A shared library of gnuplot was created from source using the following commands
    ./configure --with-qt=lib
    make

    how to fix this ?

     
    • Ethan Merritt

      Ethan Merritt - 2018-10-21

      On Sunday, 21 October 2018 22:08:39 narunlifescience wrote:

      I am trying to link gnuplot_qt as a shared library to one of my projects in Qt5. however the attempt is failing with the following error:
      g++ -Wl,-O1 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o visualization main.o MainWindow.o moc_MainWindow.o -gnuplot_qt -gnuplot_x11 -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
      g++: error: unrecognized debug output level ‘nuplot_qt’

      A shared library of gnuplot was created from source using the following commands
      ./configure --with-qt=lib
      make

      how to fix this ?

      Both gnuplot_qt and gnuplot_x11 are standalone programs. It makes no sense
      to try to put either one in a shared library. gnuplot itself is also a
      standalone program, not a library.

      Maybe you can take a step back and describe your application requirements?
      There may be other ways to accomplish what you need.

      Ethan
      
       
  • narunlifescience

    Well I am trying to create an interactive plot inside a QT application. some thing like in GNU Octave. my idea was to link gnuplot to the program and use QT to add QtGnuplotWidget as a widget to my application and control the plot using QtGnuplotInstance

    widget_ = new QtGnuplotWidget(this);
    instance_ = new QtGnuplotInstance();
    instance_->setWidget(widget_);
    widget_->show();
    widget_->resize(600, 600);
    *instance_ << "plot(sin(x))";

    please check
    https://sourceforge.net/p/gnuplot/patches/_discuss/thread/47917802/

     

    Last edit: narunlifescience 2018-10-21
    • Ethan Merritt

      Ethan Merritt - 2018-10-22

      On Sunday, 21 October 2018 23:14:55 narunlifescience wrote:

      Well I am trying to create an interactive plot inside a QT application. some thing like in GNU Octave. my idea was to link gnuplot to the program and use QT to add QtGnuplotWidget as a widget to my application and control the plot using QtGnuplotInstance

      widget_ = new QtGnuplotWidget(this);
      instance_ = new QtGnuplotInstance();
      instance_->setWidget(widget_);
      widget_->show();
      widget_->resize(600, 600);
      *instance_ << "plot(sin(x))";

      Have a look at the example program in the qtterminal source directory of the gnuplot
      distribution. Unfortunately I do not have any documentation to point to.

      .../src/qtterminal/embed_example.cpp
      
      Ethan
      
       
  • narunlifescience

    still unable to make it work... had a look in to src/qtterminal/embed_example.cpp but the issue is how to access those classes namely QtGnuplotWidget and QtGnuplotInstance from another QT application. any help would be highly appreciated.

     
    • Ethan Merritt

      Ethan Merritt - 2018-10-27

      On Wed, Oct 24, 2018 at 10:32 AM narunlifescience narunlifescienc@users.sourceforge.net wrote:

      still unable to make it work... had a look in to
      src/qtterminal/embed_example.cpp but the issue is how to access those
      classes namely QtGnuplotWidget and QtGnuplotInstance from another QT
      application. any help would be highly appreciated.

      I am forwarding a response from the original author, Jérôme Lodewyck.

      ==========================

      There is a patch to build the qt terminal as a shared library so that
      you can include a QtGnuplotWidget in your own application

      https://sourceforge.net/p/gnuplot/patches/649/

      When building gnuplot with this patch, a library called
      "libQtGnuplot.so" is generated, with which you have to link you
      rapplication with -lQtGnuplot

      Jérôme

      ==========================

         cheers,
                         Ethan
      
       
  • narunlifescience

    Thanks for the reply. I will try it.

     

    Last edit: narunlifescience 2018-11-01
  • narunlifescience

    I am unable to make the shared library. after manually patching the files mentioned in https://sourceforge.net/p/gnuplot/patches/649/
    ./prepare doesnt seem to work. following with the procedure, resulted in executable files rather than a shared library
    here is the configure output:

    [arun@Macbook gnuplot-5.0.6]$ ./configure --with-qt=lib
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    /home/arun/test/gnuplot-5.0.6/missing: Unknown --is-lightweight' option Try/home/arun/test/gnuplot-5.0.6/missing --help' for more information
    configure: WARNING: 'missing' script is too old or missing
    checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking for style of include used by make... GNU
    checking for gcc... gcc
    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 gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking whether gcc understands -c and -o together... yes
    checking dependency style of gcc... gcc3
    checking how to run the C preprocessor... gcc -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 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 minix/config.h usability... no
    checking minix/config.h presence... no
    checking for minix/config.h... no
    checking whether it is safe to define EXTENSIONS... yes
    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 whether gcc understands -c and -o together... (cached) yes
    checking dependency style of gcc... (cached) gcc3
    checking how to run the C preprocessor... gcc -E
    checking for gcc... gcc
    checking whether we are using the GNU Objective C compiler... no
    checking whether gcc accepts -g... no
    checking dependency style of gcc... gcc3
    checking for an ANSI C-conforming const... yes
    checking for inline... inline
    checking for preprocessor stringizing operator... yes
    checking whether ln -s works... yes
    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 whether gcc understands -c and -o together... (cached) yes
    checking dependency style of gcc... (cached) gcc3
    checking for off_t... yes
    checking for _LARGEFILE_SOURCE value needed for large files... no
    checking for special C compiler options needed for large files... no
    checking for _FILE_OFFSET_BITS value needed for large files... no
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for LIBCERF... configure: WARNING:
    Package requirements (libcerf) were not met:

    Package 'libcerf', required by 'virtual:world', not found

    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.

    Alternatively, you may set the environment variables LIBCERF_CFLAGS
    and LIBCERF_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.

    checking for library containing cdawson... -lcerf
    checking for emacs... no
    checking for xemacs... no
    checking for tex... no
    checking for latex... no
    checking for latex2e... no
    checking for pdflatex... no
    checking for latex2html... no
    checking for dvips... no
    checking for troff... troff
    checking for kpsexpand... no
    checking for texhash... 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... yes
    checking for MS-DOS/djgpp/libGRX... no
    checking for NeXT... no
    checking for Mac OS X... no
    checking for BeOS... no
    checking for Alpha/AXP CPU... no
    checking for sin... no
    checking for sin in -lm... yes
    checking for ANSI C header files... (cached) yes
    checking dirent.h usability... yes
    checking dirent.h presence... yes
    checking for dirent.h... yes
    checking errno.h usability... yes
    checking errno.h presence... yes
    checking for errno.h... yes
    checking float.h usability... yes
    checking float.h presence... yes
    checking for float.h... yes
    checking langinfo.h usability... yes
    checking langinfo.h presence... yes
    checking for langinfo.h... yes
    checking limits.h usability... yes
    checking limits.h presence... yes
    checking for limits.h... yes
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking math.h usability... yes
    checking math.h presence... yes
    checking for math.h... yes
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking time.h usability... yes
    checking time.h presence... yes
    checking for time.h... yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking for sys/types.h... (cached) yes
    checking sys/bsdtypes.h usability... no
    checking sys/bsdtypes.h presence... no
    checking for sys/bsdtypes.h... no
    checking sys/ioctl.h usability... yes
    checking sys/ioctl.h presence... yes
    checking for sys/ioctl.h... yes
    checking sys/param.h usability... yes
    checking sys/param.h presence... yes
    checking for sys/param.h... yes
    checking sys/select.h usability... yes
    checking sys/select.h presence... yes
    checking for sys/select.h... yes
    checking sys/socket.h usability... yes
    checking sys/socket.h presence... yes
    checking for sys/socket.h... yes
    checking for sys/stat.h... (cached) yes
    checking sys/systeminfo.h usability... no
    checking sys/systeminfo.h presence... no
    checking for sys/systeminfo.h... no
    checking sys/timeb.h usability... yes
    checking sys/timeb.h presence... yes
    checking for sys/timeb.h... yes
    checking sys/utsname.h usability... yes
    checking sys/utsname.h presence... yes
    checking for sys/utsname.h... yes
    checking libc.h usability... no
    checking libc.h presence... no
    checking for libc.h... no
    checking malloc.h usability... yes
    checking malloc.h presence... yes
    checking for malloc.h... yes
    checking poll.h usability... yes
    checking poll.h presence... yes
    checking for poll.h... yes
    checking sgtty.h usability... yes
    checking sgtty.h presence... yes
    checking for sgtty.h... yes
    checking termios.h usability... yes
    checking termios.h presence... yes
    checking for termios.h... yes
    checking values.h usability... yes
    checking values.h presence... yes
    checking for values.h... yes
    checking for dirent.h... (cached) yes
    checking dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking dl.h usability... no
    checking dl.h presence... no
    checking for dl.h... no
    checking for stdbool.h that conforms to C99... yes
    checking for _Bool... yes
    checking for struct exception in math.h... no
    checking whether stat file-mode macros are broken... no
    checking for library containing dlopen... -ldl
    checking for unistd.h... yes
    checking if errno variable is declared... yes
    checking for size_t... yes
    checking for time_t in time.h... yes
    checking return type of signal handlers... void
    checking for atexit... yes
    checking for memcpy... yes
    checking for memmove... yes
    checking for memset... yes
    checking for on_exit... yes
    checking for bcopy... yes
    checking for bzero... yes
    checking for setvbuf... yes
    checking for strerror... yes
    checking for strchr... yes
    checking for strrchr... yes
    checking for strstr... yes
    checking for index... yes
    checking for rindex... yes
    checking for erf... yes
    checking for erfc... yes
    checking for gamma... yes
    checking for lgamma... yes
    checking for getcwd... yes
    checking for poll... yes
    checking for pclose... yes
    checking for popen... yes
    checking for fdopen... yes
    checking for select... yes
    checking for sleep... yes
    checking for stpcpy... yes
    checking for strcspn... yes
    checking for strdup... yes
    checking for strndup... yes
    checking for strnlen... yes
    checking for strcasecmp... yes
    checking for stricmp... no
    checking for strncasecmp... yes
    checking for strnicmp... no
    checking for sysinfo... yes
    checking for tcgetattr... yes
    checking for vfprintf... yes
    checking for doprnt... no
    checking for usleep... yes
    checking for snprintf... yes
    checking whether signgam is declared... yes
    checking for sigsetjmp... yes
    checking if malloc(0) returns 0... no
    checking for sys/select.h... (cached) yes
    checking for sys/socket.h... (cached) yes
    checking types of arguments for select... int,fd_set ,struct timeval
    checking for tputs in -lncurses... yes
    checking for remove_history in -lreadline... yes
    checking for library containing rl_ding... -lreadline
    checking for library containing rl_forced_update_display... none required
    checking for library containing rl_reset_after_signal... none required
    checking for library containing rl_complete_with_tilde_expansion... none required
    checking readline/readline.h usability... yes
    checking readline/readline.h presence... yes
    checking for readline/readline.h... yes
    checking readline/history.h usability... yes
    checking readline/history.h presence... yes
    checking for readline/history.h... yes
    checking for deflate in -lz... yes
    checking zlib.h usability... yes
    checking zlib.h presence... yes
    checking for zlib.h... yes
    checking for gdlib-config... /usr/bin/gdlib-config
    gdlib-config: warning: this script is deprecated; please use the pkg-config file instead.
    gdlib-config: warning: this script is deprecated; please use the pkg-config file instead.
    gdlib-config: warning: this script is deprecated; please use the pkg-config file instead.
    checking for gdImageCreateTrueColor in -lgd... yes
    checking gd.h usability... yes
    checking gd.h presence... yes
    checking for gd.h... yes
    checking for gdImageGif in -lgd... yes
    checking for gdImageGifAnimBegin in -lgd... yes
    checking for gdImageJpeg in -lgd... yes
    checking for gdImageStringFT in -lgd... yes
    checking for gdImagePng in -lgd... yes
    checking for library containing iconv_open... none required
    checking iconv.h usability... yes
    checking iconv.h presence... yes
    checking for iconv.h... yes
    checking for LUA... yes
    checking lua.h usability... yes
    checking lua.h presence... yes
    checking for lua.h... yes
    checking for multi-byte support in x11... checking for XmbDrawString in -lX11... yes
    checking for pkg-config... (cached) /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking whether we are using the GNU C++ compiler... yes
    checking whether c++ accepts -g... yes
    checking dependency style of c++... gcc3
    checking how to run the C++ preprocessor... c++ -E
    checking for wx-config... /usr/bin/wx-config
    checking for CAIROPANGO... yes
    checking for PANGO_1_10_2... no
    checking for pid_t... yes
    checking vfork.h usability... no
    checking vfork.h presence... no
    checking for vfork.h... no
    checking for fork... yes
    checking for vfork... yes
    checking for working fork... yes
    checking for working vfork... (cached) yes
    checking for GTK... yes
    checking for CAIROPDF... yes
    checking for CAIROEPS... yes
    checking for QT... yes
    configure: WARNING: The Qt terminal will use Qt5.
    checking for vfork.h... (cached) no
    checking for fork... (cached) yes
    checking for vfork... (cached) yes
    checking for working fork... (cached) yes
    checking for working vfork... (cached) yes
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating config/Makefile
    config.status: creating demo/Makefile
    config.status: creating demo/plugin/Makefile
    config.status: creating docs/Makefile
    config.status: creating m4/Makefile
    config.status: creating man/Makefile
    config.status: creating share/Makefile
    config.status: creating share/LaTeX/Makefile
    config.status: creating src/Makefile
    config.status: creating src/beos/Makefile
    config.status: creating src/wxterminal/Makefile
    config.status: creating src/qtterminal/Makefile
    config.status: creating term/Makefile
    config.status: creating tutorial/Makefile
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing depfiles commands
    config.status: executing default commands

    ** Configuration summary for gnuplot 5.0.6:

    gnuplot will be compiled with the following terminals:

    Standalone terminals: yes (always builtin)
    canvas, cgm, context, corel, dumb, dxf, eepic, emf, emtex,
    epslatex, fig, hpgl,latex, metafont, metapost, mif, pcl5,
    postscript, pslatex, pstex, pstricks, qms, svg,
    tek40xx, tek410x, texdraw, tgif, tkcanvas, tpic, vttek

    dot-matrix terminals: no (use --with-bitmap-terminals to enable)
    epson, nec, okidata, tandy, and seiko dp414 printers
    hp500c, hpdj, hpljii, hppj, pbm, sixel, starc

    X Window System terminal: yes
    (with multi-byte fonts)
    (enable plotting to windows opened by external apps)
    (with application defaults, in /etc/X11/app-defaults/)
    PDFlib pdf terminal: no (use --with-pdf to enable)
    linux terminal (vga console): no (use --with-linux-vga to enable)
    vgagl terminal ((s)vga console): no (use --with-linux-vga to enable)
    ggi terminal: no (use --with-ggi to enable, requires libggi)
    gpic terminal: no (use --with-gpic to enable)
    mif terminal: no (use --with-mif to enable)
    caca terminal: no (requires libcaca >= 0.99.beta15)
    aqua terminal (OSX): no
    libgd-based png, jpeg, and gif terminals: yes (with animated gif)
    cairo-based pdf and png terminals: yes
    lua/TikZ terminal: yes
    wxt terminal: yes
    Qt terminal: yes (qt5)

    Additional platform-specific or older terminals omitted by default:
    gpic, mif (FrameMaker 3), hp2623a, hp2648, imagen, kyocera
    pm (makefile.os2), be (BeOS), svga (MSDOS/djgpp)
    sun, windows (several options)

    gnuplot will be compiled with the following configurable features:

    Mouse support in interactive terminals: yes
    Typing <space> in plot window raises console
    Maximum number of parallel axes: 5
    Placement of rectangles and other objects: yes
    Readline library: GNU readline library with -lncurses
    Command-line history file: yes
    Check current directory for .gnuplot file: no (use --with-cwdrc to enable)
    Sort help/subtopic tables by column: no (use --without-row-help to enable)
    cerf() and other special functions from libcerf: yes
    plugin support for loading external functions: yes
    Use TeX kpsexpand to search for fonts: no (use --with-kpsexpand to enable)
    Hidden3d optimization (gridbox/quadtree/none): quadtree
    Allow deprecated syntax: no (use --enable-backwards-compatibility)
    Statistical summary of data ("stats" command): yes</space>

    gnuplot will install the following additional materials:

    LaTeX tutorial: no
    cfg file for epslatex terminal: no
    TeX *.sty for lua/tikz terminal: no
    Help file: yes (always), in ${datarootdir}/gnuplot/5.0/gnuplot.gih
    PostScript prologue files: yes (always)

     
  • emily roger

    emily roger - 2024-06-27
     

    Last edit: emily roger 2024-06-28

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.