Ubuntu: octave 4 no GUI & some features not installed



Question:

I installed octave 4 by compiling source as given in How to install Octave 4.0.0 in Ubuntu 14.04

but i am not able to use GUI. octave --force-gui gives me only commandline in terminal . please guide me to get GUI & other features .(if libraries are missing please tell me how to install libraries and get the featurs) hear is log file config.log ... BY seeing in log file i found this list :

  1. Build Octave GUI: no
  2. JIT compiler for loops: no

  3. Build Javainterface: yes

  4. Do internal array bounds checking: no

  5. Build static libraries: no

  6. Build shared libraries: yes

  7. Dynamic Linking: yes (dlopen)

  8. Include support for GNU readline: yes

  9. 64-bit array dims and indexing: no

  10. OpenMP SMP multithreading: yes

    1. Build cross tools: no

thank you


Solution:1

Easy:

sudo apt-get install libqt4-opengl-dev  


Solution:2

Your config.log shows that your system lacks the Qt development components necessary for building the octave-4.0 GUI:

configure:72095: checking for QT  configure:72103: $PKG_CONFIG --exists --print-errors "$QT_MODULES"  Package QtOpenGL was not found in the pkg-config search path.  Perhaps you should add the directory containing `QtOpenGL.pc'  to the PKG_CONFIG_PATH environment variable  No package 'QtOpenGL' found  configure:72106: $? = 1  configure:72121: $PKG_CONFIG --exists --print-errors "$QT_MODULES"  Package QtOpenGL was not found in the pkg-config search path.  Perhaps you should add the directory containing `QtOpenGL.pc'  to the PKG_CONFIG_PATH environment variable  No package 'QtOpenGL' found  configure:72124: $? = 1  No package 'QtOpenGL' found  configure:72152: result: no  configure:73317: WARNING: Qt libraries not found -- disabling GUI  

You will need to install at least the Qt toolkit dependencies noted in the INSTALL.OCTAVE file that ships with the octave-4.0.0 source:

Qt       GUI and utility libraries ().  Qt is required for building the GUI.       It is a large framework, but the only components required are the       GUI, core, and network modules.  

The specific Ubuntu packages are libqtgui4 libqtcore4 and libqt4-network however unless disk space is severely limited you may wish to install the comprehensive libqt4-dev package instead

sudo apt-get install libqt4-dev  

Although it's targeted at Debian rather than Ubuntu, you may find this additional resource helpful Octave for Debian systems: Compiling from source - The right way.


Solution:3

I installed libqt4-dev, libqt4-opengl-dev and unixodbc-dev packages, then it worked.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »