LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-13-2018, 06:35 AM   #1
cdek
LQ Newbie
 
Registered: Jul 2016
Posts: 18

Rep: Reputation: Disabled
octave installation problem: gui editor missing


Hi,

This is probably another newbie question ...

I run slackware 14.2 with qt5 installed on top of qt4.

I fail to achieve a full installation of octave from slackbuilds. An important part of the program, the gui editor, is missing.

Since the configure script has detected that I have qt5 installed it looks for a qt5 version of QScintilla which it can't find, thereby disabling the gui editor.

Code:
...
checking Qt version 5... checking for QT... yes
...
checking for the QScintilla library for Qt 5... no
...
configure: WARNING: QScintilla library not found; disabling built-in Qt GUI editor
...
QScintilla is part of slackware 14.2 though

Code:
# ls /var/adm/packages/QS*  
/var/adm/packages/QScintilla-2.9.1-x86_64-1
and according to Riverbanks Software it supports both qt4 and qt5.

So, is there a way that I can make the configure script detect the QScintilla library that's already installed?
 
Old 04-13-2018, 08:45 AM   #2
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 1,280

Rep: Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977
Try adding this line to the ./configure command in octave.SlackBuild:

Code:
--with-qt=4
(Like this):

Code:
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --infodir=/usr/info \
  --docdir=/usr/doc/$PRGNAM-$VERSION \
  --disable-dependency-tracking \
  --build=$ARCH-slackware-linux \
  --with-qt=4 \
  CFLAGS="$SLKCFLAGS" \
  CXXFLAGS="$SLKCFLAGS" \
  FFLAGS="$SLKCFLAGS" \

Last edited by montagdude; 04-13-2018 at 08:48 AM.
 
1 members found this post helpful.
Old 04-14-2018, 02:11 PM   #3
cdek
LQ Newbie
 
Registered: Jul 2016
Posts: 18

Original Poster
Rep: Reputation: Disabled
That solved the problem entirely!

I see that --with-qt4 is configured as an option along with many others in octave's huge (about 78,500 lines) configure script. I didn't realize that I can add these to the slackbuild script. Such a neat solution, I love Slackware!

Code:
...
 --without-OSMesa        don't use OSMesa library                                                                     
 --with-qt=VER           use the Qt major version VER                                                                 
 --without-qt            don't use Qt libraries, disable Qt GUI                                                       
 --without-fltk          don't use FLTK libraries, disable OpenGL graphics       
...
Thank you very much!
 
Old 04-14-2018, 08:09 PM   #4
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 1,280

Rep: Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977
At some point when I had Octave on my system I ran into the same issue, so I asked on the SlackBuilds.org mailing list if that configure option could be added to the script by default, so that it will still build correctly for people who have Qt5 installed. No one ever replied, though. I still think it should be there by default.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: GNU Octave 3.8 With Its GUI Officially Announced LXer Syndicated Linux News 0 01-01-2014 01:01 PM
[help] Octave 3.2: execution error. missing library /cricket Slackware 4 07-30-2009 06:43 AM
Installing the latest version of octave readline libraries missing matuk_444 Ubuntu 1 08-02-2007 11:12 PM
Octave Installation problem- requires libg2c.so.0 refp16 Linux - Software 2 11-24-2005 05:30 PM
A GUI for Octave? darkarcon2015 Linux - Software 2 07-16-2005 11:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration