[stable build from source] Ubuntu 20.04 scintilla not found

classic Classic list List threaded Threaded
20 messages Options
Reply | Threaded
Open this post in threaded view
|

[stable build from source] Ubuntu 20.04 scintilla not found

JuanPi
Hi all,

I've just updated to Ubunutu 20.04 and the configure script of the
stable branch is failing to find qscintilla2-qt5. The error appears
here:

configure:71463: g++ -o conftest -fPIC -g -O2 -pthread -fopenmp -I/usr/include/x
86_64-linux-gnu/qt5/QtNetwork -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include
/x86_64-linux-gnu/qt5/QtPrintSupport -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/
include/x86_64-linux-gnu/qt5/QtHelp -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/i
nclude/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr
/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/i
nclude/x86_64-linux-gnu/qt5/QtSql -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/inc
lude/x86_64-linux-gnu/qt5/QtXml -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/inclu
de/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -fPIC -I/usr/
include/suitesparse   conftest.cpp -lQt5Network -lQt5PrintSupport
-lQt5Help -lQt5Widgets -lQt5Gui -lQt5Sql -lQt5Xml -lQt5Core
-lqscintilla2-qt5 >&5
/usr/bin/ld: cannot find -lQt5Network
/usr/bin/ld: cannot find -lQt5PrintSupport
/usr/bin/ld: cannot find -lQt5Help
/usr/bin/ld: cannot find -lQt5Widgets
/usr/bin/ld: cannot find -lQt5Gui
/usr/bin/ld: cannot find -lQt5Sql
/usr/bin/ld: cannot find -lQt5Xml
/usr/bin/ld: cannot find -lQt5Core
/usr/bin/ld: cannot find -lqscintilla2-qt5
collect2: error: ld returned 1 exit status

This is curious since it was compiling perfectly in 19.10, that is, my
system had all dependencies. And still has, accroding to our wiki[1],
and to apt (all those modeules are installed).
All the include folders do exist.

Anynone with the same issue?

[1]: https://wiki.octave.org/Octave_for_Debian_systems
--
JuanPi Carbajal
https://goo.gl/ayiJzi

-----
“An article about computational result is advertising, not
scholarship. The actual scholarship is the full software environment,
code and data, that produced  the  result.”
- Buckheit and Donoho

Reply | Threaded
Open this post in threaded view
|

Re: [stable build from source] Ubuntu 20.04 scintilla not found

John W. Eaton
Administrator
On 6/8/20 8:42 PM, JuanPi wrote:

> Hi all,
>
> I've just updated to Ubunutu 20.04 and the configure script of the
> stable branch is failing to find qscintilla2-qt5. The error appears
> here:
>
> configure:71463: g++ -o conftest -fPIC -g -O2 -pthread -fopenmp -I/usr/include/x
> 86_64-linux-gnu/qt5/QtNetwork -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include
> /x86_64-linux-gnu/qt5/QtPrintSupport -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/
> include/x86_64-linux-gnu/qt5/QtHelp -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/i
> nclude/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr
> /include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/i
> nclude/x86_64-linux-gnu/qt5/QtSql -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/inc
> lude/x86_64-linux-gnu/qt5/QtXml -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/inclu
> de/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -fPIC -I/usr/
> include/suitesparse   conftest.cpp -lQt5Network -lQt5PrintSupport
> -lQt5Help -lQt5Widgets -lQt5Gui -lQt5Sql -lQt5Xml -lQt5Core
> -lqscintilla2-qt5 >&5
> /usr/bin/ld: cannot find -lQt5Network
> /usr/bin/ld: cannot find -lQt5PrintSupport
> /usr/bin/ld: cannot find -lQt5Help
> /usr/bin/ld: cannot find -lQt5Widgets
> /usr/bin/ld: cannot find -lQt5Gui
> /usr/bin/ld: cannot find -lQt5Sql
> /usr/bin/ld: cannot find -lQt5Xml
> /usr/bin/ld: cannot find -lQt5Core
> /usr/bin/ld: cannot find -lqscintilla2-qt5
> collect2: error: ld returned 1 exit status
>
> This is curious since it was compiling perfectly in 19.10, that is, my
> system had all dependencies. And still has, accroding to our wiki[1],
> and to apt (all those modeules are installed).
> All the include folders do exist.
>
> Anynone with the same issue?

What does

   dpkg -l '*qt*' | grep ^ii

show?  Do you have the -dev packages installed?  I have the following
installed on my Debian system:

ii libqscintilla2-qt5-dev
ii libqt5opengl5-dev:amd64
ii qtbase5-dev:amd64
ii qtbase5-dev-tools
ii qtdeclarative5-dev-tools
ii qttools5-dev:amd64
ii qttools5-dev-tools
ii qtxmlpatterns5-dev-tools

jwe

Reply | Threaded
Open this post in threaded view
|

Re: [stable build from source] Ubuntu 20.04 scintilla not found

JuanPi
On Tue, Jun 9, 2020 at 3:01 AM John W. Eaton <[hidden email]> wrote:

>
> On 6/8/20 8:42 PM, JuanPi wrote:
> > Hi all,
> >
> > I've just updated to Ubunutu 20.04 and the configure script of the
> > stable branch is failing to find qscintilla2-qt5. The error appears
> > here:
> >
> > configure:71463: g++ -o conftest -fPIC -g -O2 -pthread -fopenmp -I/usr/include/x
> > 86_64-linux-gnu/qt5/QtNetwork -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include
> > /x86_64-linux-gnu/qt5/QtPrintSupport -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/
> > include/x86_64-linux-gnu/qt5/QtHelp -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/i
> > nclude/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr
> > /include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/i
> > nclude/x86_64-linux-gnu/qt5/QtSql -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/inc
> > lude/x86_64-linux-gnu/qt5/QtXml -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/inclu
> > de/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -fPIC -I/usr/
> > include/suitesparse   conftest.cpp -lQt5Network -lQt5PrintSupport
> > -lQt5Help -lQt5Widgets -lQt5Gui -lQt5Sql -lQt5Xml -lQt5Core
> > -lqscintilla2-qt5 >&5
> > /usr/bin/ld: cannot find -lQt5Network
> > /usr/bin/ld: cannot find -lQt5PrintSupport
> > /usr/bin/ld: cannot find -lQt5Help
> > /usr/bin/ld: cannot find -lQt5Widgets
> > /usr/bin/ld: cannot find -lQt5Gui
> > /usr/bin/ld: cannot find -lQt5Sql
> > /usr/bin/ld: cannot find -lQt5Xml
> > /usr/bin/ld: cannot find -lQt5Core
> > /usr/bin/ld: cannot find -lqscintilla2-qt5
> > collect2: error: ld returned 1 exit status
> >
> > This is curious since it was compiling perfectly in 19.10, that is, my
> > system had all dependencies. And still has, accroding to our wiki[1],
> > and to apt (all those modeules are installed).
> > All the include folders do exist.
> >
> > Anynone with the same issue?
>
> What does
>
>    dpkg -l '*qt*' | grep ^ii
>
> show?  Do you have the -dev packages installed?  I have the following
> installed on my Debian system:
>
> ii libqscintilla2-qt5-dev
> ii libqt5opengl5-dev:amd64
> ii qtbase5-dev:amd64
> ii qtbase5-dev-tools
> ii qtdeclarative5-dev-tools
> ii qttools5-dev:amd64
> ii qttools5-dev-tools
> ii qtxmlpatterns5-dev-tools
>
> jwe

Hi John,

I have that and plenty more

ii  libqscintilla2-qt5-15           2.11.2+dfsg-6           amd64
  Qt5 port of the Scintilla source code editing widget
ii  libqscintilla2-qt5-dev          2.11.2+dfsg-6           amd64
  Scintilla source code editing widget for Qt5, development files
ii  libqscintilla2-qt5-l10n         2.11.2+dfsg-6           all
  Scintilla source code editing widget for Qt5, translation files
ii  libqt5concurrent5:amd64         5.12.8+dfsg-0ubuntu1    amd64
  Qt 5 concurrent module
ii  libqt5core5a:amd64              5.12.8+dfsg-0ubuntu1    amd64
  Qt 5 core module
ii  libqt5dbus5:amd64               5.12.8+dfsg-0ubuntu1    amd64
  Qt 5 D-Bus module
ii  libqt5designer5:amd64           5.12.8-0ubuntu1         amd64
  Qt 5 designer module
ii  libqt5designercomponents5:amd64 5.12.8-0ubuntu1         amd64
  Qt 5 Designer components module
ii  libqt5gui5:amd64                5.12.8+dfsg-0ubuntu1    amd64
  Qt 5 GUI module
ii  libqt5help5:amd64               5.12.8-0ubuntu1         amd64
  Qt 5 help module
ii  libqt5network5:amd64            5.12.8+dfsg-0ubuntu1    amd64
  Qt 5 network module
ii  libqt5opengl5:amd64             5.12.8+dfsg-0ubuntu1    amd64
  Qt 5 OpenGL module
ii  libqt5opengl5-dev:amd64         5.12.8+dfsg-0ubuntu1    amd64
  Qt 5 OpenGL library development files
ii  libqt5positioning5:amd64        5.12.8+dfsg-0ubuntu1    amd64
  Qt Positioning module
ii  libqt5printsupport5:amd64       5.12.8+dfsg-0ubuntu1    amd64
  Qt 5 print support module
ii  libqt5qml5:amd64                5.12.8-0ubuntu1         amd64
  Qt 5 QML module
ii  libqt5quick5:amd64              5.12.8-0ubuntu1         amd64
  Qt 5 Quick library
ii  libqt5quickparticles5:amd64     5.12.8-0ubuntu1         amd64
  Qt 5 Quick particles module
ii  libqt5quickshapes5:amd64        5.12.8-0ubuntu1         amd64
  Qt 5 Quick Shapes module
ii  libqt5quicktest5:amd64          5.12.8-0ubuntu1         amd64
  Qt 5 Quick Test library
ii  libqt5quickwidgets5:amd64       5.12.8-0ubuntu1         amd64
  Qt 5 Quick Widgets library
ii  libqt5sensors5:amd64            5.12.8-0ubuntu1         amd64
  Qt Sensors module
ii  libqt5sql5:amd64                5.12.8+dfsg-0ubuntu1    amd64
  Qt 5 SQL module
ii  libqt5sql5-sqlite:amd64         5.12.8+dfsg-0ubuntu1    amd64
  Qt 5 SQLite 3 database driver
ii  libqt5svg5:amd64                5.12.8-0ubuntu1         amd64
  Qt 5 SVG module
ii  libqt5test5:amd64               5.12.8+dfsg-0ubuntu1    amd64
  Qt 5 test module
ii  libqt5webchannel5:amd64         5.12.8-0ubuntu1         amd64
  Web communication library for Qt
ii  libqt5webkit5:amd64             5.212.0~alpha4-1ubuntu2 amd64
  Web content engine library for Qt
ii  libqt5widgets5:amd64            5.12.8+dfsg-0ubuntu1    amd64
  Qt 5 widgets module
ii  libqt5x11extras5:amd64          5.12.8-0ubuntu1         amd64
  Qt 5 X11 extras
ii  libqt5x11extras5-dev:amd64      5.12.8-0ubuntu1         amd64
  Qt 5 X11 extras development files
ii  libqt5xml5:amd64                5.12.8+dfsg-0ubuntu1    amd64
  Qt 5 XML module
ii  libqt5xmlpatterns5:amd64        5.12.8-0ubuntu1         amd64
  Qt 5 XML patterns module
ii  qdoc-qt5                        5.12.8-0ubuntu1         amd64
  Qt 5 qdoc tool
ii  qhelpgenerator-qt5              5.12.8-0ubuntu1         amd64
  Qt 5 qhelpgenerator tool
ii  qt5-assistant                   5.12.8-0ubuntu1         amd64
  Qt 5 Assistant
ii  qt5-default:amd64               5.12.8+dfsg-0ubuntu1    amd64
  Qt 5 development defaults package
ii  qt5-gtk-platformtheme:amd64     5.12.8+dfsg-0ubuntu1    amd64
  Qt 5 GTK+ 3 platform theme
ii  qt5-qmake:amd64                 5.12.8+dfsg-0ubuntu1    amd64
  Qt 5 qmake Makefile generator tool
ii  qt5-qmake-bin                   5.12.8+dfsg-0ubuntu1    amd64
  Qt 5 qmake Makefile generator tool — binary file
ii  qt5-qmltooling-plugins:amd64    5.12.8-0ubuntu1         amd64
  Qt 5 qmltooling plugins
ii  qtattributionsscanner-qt5       5.12.8-0ubuntu1         amd64
  Qt 5 qtattributionsscanner tool
ii  qtbase5-dev:amd64               5.12.8+dfsg-0ubuntu1    amd64
  Qt 5 base development files
ii  qtbase5-dev-tools               5.12.8+dfsg-0ubuntu1    amd64
  Qt 5 base development programs
ii  qtchooser                       66-2build1              amd64
  Wrapper to select between Qt development binary versions
ii  qtdeclarative5-dev:amd64        5.12.8-0ubuntu1         amd64
  Qt 5 declarative development files
ii  qtdeclarative5-dev-tools        5.12.8-0ubuntu1         amd64
  Qt 5 declarative development programs
ii  qttools5-dev:amd64              5.12.8-0ubuntu1         amd64
  Qt 5 tools development files
ii  qttools5-dev-tools              5.12.8-0ubuntu1         amd64
  Qt 5 development tools
ii  qttranslations5-l10n            5.12.8-0ubuntu1         all
  translations for Qt 5
ii  qtxmlpatterns5-dev-tools        5.12.8-0ubuntu1         amd64
  Qt 5 XML patterns development programs
ii  vlc-plugin-qt:amd64             3.0.9.2-1               amd64
  multimedia player and streamer (Qt plugin)

The config script says

configure: WARNING: QScintilla library not found; disabling built-in
Qt GUI editor

But many errors are triggered relate to qt5 if I try to compile
nevertheless (compilation does not succeeds)

--
JuanPi Carbajal
https://goo.gl/ayiJzi

-----
“An article about computational result is advertising, not
scholarship. The actual scholarship is the full software environment,
code and data, that produced  the  result.”
- Buckheit and Donoho

Reply | Threaded
Open this post in threaded view
|

Re: [stable build from source] Ubuntu 20.04 scintilla not found

JuanPi
Dear all,

I am still unable to compile stable, due to configure failing to
detect Qscintiilla 2 (current hypothesis). The failing messages in
config.log are

$ grep scintilla config.log
configure:71463: g++ -o conftest -fPIC -g -O2 -pthread -fopenmp
-I/usr/include/x86_64-linux-gnu/qt5/QtNetwork
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtHelp
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtWidgets
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtGui
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtSql
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtXml
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtCore
-I/usr/include/x86_64-linux-gnu/qt5 -fPIC -I/usr/include/suitesparse
conftest.cpp -lQt5Network -lQt5PrintSupport -lQt5Help -lQt5Widgets
-lQt5Gui -lQt5Sql -lQt5Xml -lQt5Core -lqscintilla2-qt5 >&5
/usr/bin/ld: cannot find -lqscintilla2-qt5
configure:71463: g++ -o conftest -fPIC -g -O2 -pthread -fopenmp
-I/usr/include/x86_64-linux-gnu/qt5/QtNetwork
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtHelp
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtWidgets
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtGui
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtSql
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtXml
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtCore
-I/usr/include/x86_64-linux-gnu/qt5 -fPIC -I/usr/include/suitesparse
conftest.cpp -lQt5Network -lQt5PrintSupport -lQt5Help -lQt5Widgets
-lQt5Gui -lQt5Sql -lQt5Xml -lQt5Core -lqscintilla2_qt5 >&5
configure:71463: g++ -o conftest -fPIC -g -O2 -pthread -fopenmp
-I/usr/include/x86_64-linux-gnu/qt5/QtNetwork
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtHelp
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtWidgets
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtGui
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtSql
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtXml
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtCore
-I/usr/include/x86_64-linux-gnu/qt5 -fPIC -I/usr/include/suitesparse
conftest.cpp -lQt5Network -lQt5PrintSupport -lQt5Help -lQt5Widgets
-lQt5Gui -lQt5Sql -lQt5Xml -lQt5Core -lqt5scintilla2 >&5
/usr/bin/ld: cannot find -lqt5scintilla2
octave_cv_lib_qscintilla=no

My system has the library

$ locate scintilla | grep /usr
/usr/include/x86_64-linux-gnu/qt5/Qsci/qsciscintilla.h
/usr/include/x86_64-linux-gnu/qt5/Qsci/qsciscintillabase.h
/usr/lib/libqscintilla2_qt5.so
/usr/lib/libqscintilla2_qt5.so.15
/usr/lib/libqscintilla2_qt5.so.15.0
/usr/lib/libqscintilla2_qt5.so.15.0.0
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qscintilla2.prf
/usr/share/doc/libqscintilla2-qt5-15
/usr/share/doc/libqscintilla2-qt5-dev
/usr/share/doc/libqscintilla2-qt5-l10n
/usr/share/doc/libqscintilla2-qt5-15/README
/usr/share/doc/libqscintilla2-qt5-15/changelog.Debian.gz
/usr/share/doc/libqscintilla2-qt5-15/copyright
/usr/share/doc/libqscintilla2-qt5-dev/changelog.Debian.gz
/usr/share/doc/libqscintilla2-qt5-dev/copyright
/usr/share/doc/libqscintilla2-qt5-l10n/changelog.Debian.gz
/usr/share/doc/libqscintilla2-qt5-l10n/copyright
/usr/share/qt5/translations/qscintilla_cs.qm
/usr/share/qt5/translations/qscintilla_de.qm
/usr/share/qt5/translations/qscintilla_es.qm
/usr/share/qt5/translations/qscintilla_fr.qm
/usr/share/qt5/translations/qscintilla_pt_br.qm

$ ldconfig -p | grep scintilla
    libqscintilla2_qt5.so.15 (libc6,x86-64) => /lib/libqscintilla2_qt5.so.15
    libqscintilla2_qt5.so (libc6,x86-64) => /lib/libqscintilla2_qt5.so

I thought it could be a naming problem so I created a symbolic link
qt5scintilla2 to ibqscintilla2_qt5 but still doesn't work.

Reply | Threaded
Open this post in threaded view
|

Re: [stable build from source] Ubuntu 20.04 scintilla not found

JuanPi
On Wed, Jun 17, 2020 at 12:11 PM JuanPi <[hidden email]> wrote:

>
> Dear all,
>
> I am still unable to compile stable, due to configure failing to
> detect Qscintiilla 2 (current hypothesis). The failing messages in
> config.log are
>
> $ grep scintilla config.log
> configure:71463: g++ -o conftest -fPIC -g -O2 -pthread -fopenmp
> -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtHelp
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtGui
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtSql
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtXml
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtCore
> -I/usr/include/x86_64-linux-gnu/qt5 -fPIC -I/usr/include/suitesparse
> conftest.cpp -lQt5Network -lQt5PrintSupport -lQt5Help -lQt5Widgets
> -lQt5Gui -lQt5Sql -lQt5Xml -lQt5Core -lqscintilla2-qt5 >&5
> /usr/bin/ld: cannot find -lqscintilla2-qt5
> configure:71463: g++ -o conftest -fPIC -g -O2 -pthread -fopenmp
> -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtHelp
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtGui
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtSql
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtXml
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtCore
> -I/usr/include/x86_64-linux-gnu/qt5 -fPIC -I/usr/include/suitesparse
> conftest.cpp -lQt5Network -lQt5PrintSupport -lQt5Help -lQt5Widgets
> -lQt5Gui -lQt5Sql -lQt5Xml -lQt5Core -lqscintilla2_qt5 >&5
> configure:71463: g++ -o conftest -fPIC -g -O2 -pthread -fopenmp
> -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtHelp
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtGui
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtSql
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtXml
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtCore
> -I/usr/include/x86_64-linux-gnu/qt5 -fPIC -I/usr/include/suitesparse
> conftest.cpp -lQt5Network -lQt5PrintSupport -lQt5Help -lQt5Widgets
> -lQt5Gui -lQt5Sql -lQt5Xml -lQt5Core -lqt5scintilla2 >&5
> /usr/bin/ld: cannot find -lqt5scintilla2
> octave_cv_lib_qscintilla=no
>
> My system has the library
>
> $ locate scintilla | grep /usr
> /usr/include/x86_64-linux-gnu/qt5/Qsci/qsciscintilla.h
> /usr/include/x86_64-linux-gnu/qt5/Qsci/qsciscintillabase.h
> /usr/lib/libqscintilla2_qt5.so
> /usr/lib/libqscintilla2_qt5.so.15
> /usr/lib/libqscintilla2_qt5.so.15.0
> /usr/lib/libqscintilla2_qt5.so.15.0.0
> /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qscintilla2.prf
> /usr/share/doc/libqscintilla2-qt5-15
> /usr/share/doc/libqscintilla2-qt5-dev
> /usr/share/doc/libqscintilla2-qt5-l10n
> /usr/share/doc/libqscintilla2-qt5-15/README
> /usr/share/doc/libqscintilla2-qt5-15/changelog.Debian.gz
> /usr/share/doc/libqscintilla2-qt5-15/copyright
> /usr/share/doc/libqscintilla2-qt5-dev/changelog.Debian.gz
> /usr/share/doc/libqscintilla2-qt5-dev/copyright
> /usr/share/doc/libqscintilla2-qt5-l10n/changelog.Debian.gz
> /usr/share/doc/libqscintilla2-qt5-l10n/copyright
> /usr/share/qt5/translations/qscintilla_cs.qm
> /usr/share/qt5/translations/qscintilla_de.qm
> /usr/share/qt5/translations/qscintilla_es.qm
> /usr/share/qt5/translations/qscintilla_fr.qm
> /usr/share/qt5/translations/qscintilla_pt_br.qm
>
> $ ldconfig -p | grep scintilla
>     libqscintilla2_qt5.so.15 (libc6,x86-64) => /lib/libqscintilla2_qt5.so.15
>     libqscintilla2_qt5.so (libc6,x86-64) => /lib/libqscintilla2_qt5.so
>
> I thought it could be a naming problem so I created a symbolic link
> qt5scintilla2 to ibqscintilla2_qt5 but still doesn't work.

I noticed that lpr is not installed because it conflicts with
cups-bsd. lpr is listed as build dependency for 19.10 [1]... can this
be the issue?
If it is then the error in the config log is very misleading.

[1] https://wiki.octave.org/Octave_for_Debian_systems#The_right_way

--
JuanPi Carbajal
https://goo.gl/ayiJzi

-----
“An article about computational result is advertising, not
scholarship. The actual scholarship is the full software environment,
code and data, that produced  the  result.”
- Buckheit and Donoho

Reply | Threaded
Open this post in threaded view
|

Re: [stable build from source] Ubuntu 20.04 scintilla not found

mmuetzel
Am 17. Juni 2020 um 12:36 Uhr schrieb "JuanPi":
> On Wed, Jun 17, 2020 at 12:11 PM JuanPi <[hidden email]> wrote:
> >
> > Dear all,
> >
> > I am still unable to compile stable, due to configure failing to
> > detect Qscintiilla 2 (current hypothesis). The failing messages in
> > config.log are
> >

I remember having had similar issues after upgrading to 20.04.
I don't remember which exact steps I took to resolve it. But it involved re-installing a few packages with
sudo apt-get --reinstall install PACKAGE_NAME

My guess back than was that something must have broken the packages during the upgrade.

Having written that, I'm not exactly sure what apt-get --reinstall involves. So you might want to backup your configuration files beforehand.

HTH,
Markus


Reply | Threaded
Open this post in threaded view
|

Re: [stable build from source] Ubuntu 20.04 scintilla not found

Nir Krakauer-3
I also get
/usr/bin/ld: cannot find -lqscintilla2-qt5
when configuring a build of Octave from the development repository in
Ubuntu 20.04, but it nevertheless compiles and tests fine, so while
there is a problem with detecting this library, that is likely not
what's causing your build to fail.
What error message do you get?

Reply | Threaded
Open this post in threaded view
|

Re: [stable build from source] Ubuntu 20.04 scintilla not found

mmuetzel
Am 17. Juni 2020 um 16:10 Uhr schrieb "Nir Krakauer":
> I also get
> /usr/bin/ld: cannot find -lqscintilla2-qt5
> when configuring a build of Octave from the development repository in
> Ubuntu 20.04, but it nevertheless compiles and tests fine, so while
> there is a problem with detecting this library, that is likely not
> what's causing your build to fail.
> What error message do you get?
>

I don't remember exactly which error message I got. It is working now (for default and stable as far as I remember).
I thought that it started working after reinstalling some packages.
I just wanted to share with JuanPi what I did to solve the issue here.

Or did you want to write to JuanPi?

Markus


Reply | Threaded
Open this post in threaded view
|

Re: [stable build from source] Ubuntu 20.04 scintilla not found

Nir Krakauer-3
> Or did you want to write to JuanPi?

Yes, I was responding to the original message.

Reply | Threaded
Open this post in threaded view
|

Re: [stable build from source] Ubuntu 20.04 scintilla not found

JuanPi
Hi all,

Thanks for the support. I have re-installed all the packages that were
listed for 19.10 (changed one texlive package, updated our wiki)[1].
This doesn't solve the issue.
The errors I get if I ignore the false negative detection of
qscintilla are below

/usr/bin/ld: cannot find -lQt5Network
/usr/bin/ld: cannot find -lQt5PrintSupport
/usr/bin/ld: cannot find -lQt5Help
/usr/bin/ld: cannot find -lQt5Widgets
/usr/bin/ld: cannot find -lQt5Gui
/usr/bin/ld: cannot find -lQt5Sql
/usr/bin/ld: cannot find -lQt5Xml
/usr/bin/ld: cannot find -lQt5Core
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:15710: src/octave-svgconvert] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/juanpi/Devel/octave/builds/stable'
make[1]: *** [Makefile:27451: all-recursive] Error 1
make[1]: Leaving directory '/home/juanpi/Devel/octave/builds/stable'
make: *** [Makefile:11076: all] Error 2

This is preceded by huge list of warnings similar to
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qstyleoption.h: In member
function ‘QStyleOptionSizeGrip& QStyleOptionSizeGrip::operator=(const
QStyleOptionSizeGrip&)’:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qstyleoption.h:645:24:
warning: implicitly-declared ‘QStyleOptionComplex&
QStyleOptionComplex::operator=(const QStyleOptionComplex&)’ is
deprecated [-Wdeprecated-copy]

[1]: https://wiki.octave.org/Octave_for_Debian_systems#The_right_way

--
JuanPi Carbajal
https://goo.gl/ayiJzi

-----
“An article about computational result is advertising, not
scholarship. The actual scholarship is the full software environment,
code and data, that produced  the  result.”
- Buckheit and Donoho

Reply | Threaded
Open this post in threaded view
|

Re: [stable build from source] Ubuntu 20.04 scintilla not found

mmuetzel
Am 17. Juni 2020 um 20:36 Uhr schrieb "JuanPi":

> Hi all,
>
> Thanks for the support. I have re-installed all the packages that were
> listed for 19.10 (changed one texlive package, updated our wiki)[1].
> This doesn't solve the issue.
> The errors I get if I ignore the false negative detection of
> qscintilla are below
>
> /usr/bin/ld: cannot find -lQt5Network
> /usr/bin/ld: cannot find -lQt5PrintSupport
> /usr/bin/ld: cannot find -lQt5Help
> /usr/bin/ld: cannot find -lQt5Widgets
> /usr/bin/ld: cannot find -lQt5Gui
> /usr/bin/ld: cannot find -lQt5Sql
> /usr/bin/ld: cannot find -lQt5Xml
> /usr/bin/ld: cannot find -lQt5Core
> collect2: error: ld returned 1 exit status
> make[2]: *** [Makefile:15710: src/octave-svgconvert] Error 1
> make[2]: *** Waiting for unfinished jobs....
> make[2]: Leaving directory '/home/juanpi/Devel/octave/builds/stable'
> make[1]: *** [Makefile:27451: all-recursive] Error 1
> make[1]: Leaving directory '/home/juanpi/Devel/octave/builds/stable'
> make: *** [Makefile:11076: all] Error 2
>
> This is preceded by huge list of warnings similar to
> /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qstyleoption.h: In member
> function ‘QStyleOptionSizeGrip& QStyleOptionSizeGrip::operator=(const
> QStyleOptionSizeGrip&)’:
> /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qstyleoption.h:645:24:
> warning: implicitly-declared ‘QStyleOptionComplex&
> QStyleOptionComplex::operator=(const QStyleOptionComplex&)’ is
> deprecated [-Wdeprecated-copy]
>
> [1]: https://wiki.octave.org/Octave_for_Debian_systems#The_right_way
>

The packages listed on the Wiki page draw in a bunch of dependencies afaik. Reinstalling only those doesn't reinstall all their dependencies.
I'd try to reinstall the packages that contain the libraries that cannot be found.
So start with
sudo apt-get --reinstall install libqt5network5

and check if that makes the first error disappear.

Than proceed with the other ones until the build is clear.

HTH,
Markus

Reply | Threaded
Open this post in threaded view
|

Re: [stable build from source] Ubuntu 20.04 scintilla not found

Nir Krakauer-3
In reply to this post by JuanPi
Interesting. As I mentioned, my build with Ubuntu 20.04 was
successful. Apparently the various qt5 modules are found:

> grep -i cannot config.log
/usr/bin/ld: cannot find -lpthreads
/usr/bin/ld: cannot find -llthread
/usr/bin/ld: cannot find -ldld
/usr/bin/ld: cannot find -lopenblas
/usr/bin/ld: cannot find -latlas
/usr/bin/ld: cannot find -ldgemm
/usr/bin/ld: cannot find -lmkl_intel_lp64
/usr/bin/ld: cannot find -lmkl_intel_lp64
/usr/bin/ld: cannot find -lmkl_sequential
/usr/bin/ld: cannot find -lmkl_core
/usr/bin/ld: cannot find -lmkl
/usr/bin/ld: cannot find -lguide
/usr/bin/ld: cannot find -lcxml
/usr/bin/ld: cannot find -ldxml
/usr/bin/ld: cannot find -lscs
/usr/bin/ld: cannot find -lcomplib.sgimath
/usr/bin/ld: cannot find -lessl
/usr/bin/ld: cannot find -lqscintilla2-qt5

Reply | Threaded
Open this post in threaded view
|

Re: [stable build from source] Ubuntu 20.04 scintilla not found

John W. Eaton
Administrator
In reply to this post by JuanPi
On 6/17/20 6:36 AM, JuanPi wrote:

> On Wed, Jun 17, 2020 at 12:11 PM JuanPi <[hidden email]> wrote:
>>
>> Dear all,
>>
>> I am still unable to compile stable, due to configure failing to
>> detect Qscintiilla 2 (current hypothesis). The failing messages in
>> config.log are
>>
>> $ grep scintilla config.log
>> configure:71463: g++ -o conftest -fPIC -g -O2 -pthread -fopenmp
>> -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork
>> -I/usr/include/x86_64-linux-gnu/qt5
>> -I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport
>> -I/usr/include/x86_64-linux-gnu/qt5
>> -I/usr/include/x86_64-linux-gnu/qt5/QtHelp
>> -I/usr/include/x86_64-linux-gnu/qt5
>> -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets
>> -I/usr/include/x86_64-linux-gnu/qt5
>> -I/usr/include/x86_64-linux-gnu/qt5/QtGui
>> -I/usr/include/x86_64-linux-gnu/qt5
>> -I/usr/include/x86_64-linux-gnu/qt5/QtSql
>> -I/usr/include/x86_64-linux-gnu/qt5
>> -I/usr/include/x86_64-linux-gnu/qt5/QtXml
>> -I/usr/include/x86_64-linux-gnu/qt5
>> -I/usr/include/x86_64-linux-gnu/qt5/QtCore
>> -I/usr/include/x86_64-linux-gnu/qt5 -fPIC -I/usr/include/suitesparse
>> conftest.cpp -lQt5Network -lQt5PrintSupport -lQt5Help -lQt5Widgets
>> -lQt5Gui -lQt5Sql -lQt5Xml -lQt5Core -lqscintilla2-qt5 >&5
>> /usr/bin/ld: cannot find -lqscintilla2-qt5
>> configure:71463: g++ -o conftest -fPIC -g -O2 -pthread -fopenmp
>> -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork
>> -I/usr/include/x86_64-linux-gnu/qt5
>> -I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport
>> -I/usr/include/x86_64-linux-gnu/qt5
>> -I/usr/include/x86_64-linux-gnu/qt5/QtHelp
>> -I/usr/include/x86_64-linux-gnu/qt5
>> -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets
>> -I/usr/include/x86_64-linux-gnu/qt5
>> -I/usr/include/x86_64-linux-gnu/qt5/QtGui
>> -I/usr/include/x86_64-linux-gnu/qt5
>> -I/usr/include/x86_64-linux-gnu/qt5/QtSql
>> -I/usr/include/x86_64-linux-gnu/qt5
>> -I/usr/include/x86_64-linux-gnu/qt5/QtXml
>> -I/usr/include/x86_64-linux-gnu/qt5
>> -I/usr/include/x86_64-linux-gnu/qt5/QtCore
>> -I/usr/include/x86_64-linux-gnu/qt5 -fPIC -I/usr/include/suitesparse
>> conftest.cpp -lQt5Network -lQt5PrintSupport -lQt5Help -lQt5Widgets
>> -lQt5Gui -lQt5Sql -lQt5Xml -lQt5Core -lqscintilla2_qt5 >&5
>> configure:71463: g++ -o conftest -fPIC -g -O2 -pthread -fopenmp
>> -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork
>> -I/usr/include/x86_64-linux-gnu/qt5
>> -I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport
>> -I/usr/include/x86_64-linux-gnu/qt5
>> -I/usr/include/x86_64-linux-gnu/qt5/QtHelp
>> -I/usr/include/x86_64-linux-gnu/qt5
>> -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets
>> -I/usr/include/x86_64-linux-gnu/qt5
>> -I/usr/include/x86_64-linux-gnu/qt5/QtGui
>> -I/usr/include/x86_64-linux-gnu/qt5
>> -I/usr/include/x86_64-linux-gnu/qt5/QtSql
>> -I/usr/include/x86_64-linux-gnu/qt5
>> -I/usr/include/x86_64-linux-gnu/qt5/QtXml
>> -I/usr/include/x86_64-linux-gnu/qt5
>> -I/usr/include/x86_64-linux-gnu/qt5/QtCore
>> -I/usr/include/x86_64-linux-gnu/qt5 -fPIC -I/usr/include/suitesparse
>> conftest.cpp -lQt5Network -lQt5PrintSupport -lQt5Help -lQt5Widgets
>> -lQt5Gui -lQt5Sql -lQt5Xml -lQt5Core -lqt5scintilla2 >&5
>> /usr/bin/ld: cannot find -lqt5scintilla2
>> octave_cv_lib_qscintilla=no
>>
>> My system has the library
>>
>> $ locate scintilla | grep /usr
>> /usr/include/x86_64-linux-gnu/qt5/Qsci/qsciscintilla.h
>> /usr/include/x86_64-linux-gnu/qt5/Qsci/qsciscintillabase.h
>> /usr/lib/libqscintilla2_qt5.so
>> /usr/lib/libqscintilla2_qt5.so.15
>> /usr/lib/libqscintilla2_qt5.so.15.0
>> /usr/lib/libqscintilla2_qt5.so.15.0.0
>> /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qscintilla2.prf
>> /usr/share/doc/libqscintilla2-qt5-15
>> /usr/share/doc/libqscintilla2-qt5-dev
>> /usr/share/doc/libqscintilla2-qt5-l10n
>> /usr/share/doc/libqscintilla2-qt5-15/README
>> /usr/share/doc/libqscintilla2-qt5-15/changelog.Debian.gz
>> /usr/share/doc/libqscintilla2-qt5-15/copyright
>> /usr/share/doc/libqscintilla2-qt5-dev/changelog.Debian.gz
>> /usr/share/doc/libqscintilla2-qt5-dev/copyright
>> /usr/share/doc/libqscintilla2-qt5-l10n/changelog.Debian.gz
>> /usr/share/doc/libqscintilla2-qt5-l10n/copyright
>> /usr/share/qt5/translations/qscintilla_cs.qm
>> /usr/share/qt5/translations/qscintilla_de.qm
>> /usr/share/qt5/translations/qscintilla_es.qm
>> /usr/share/qt5/translations/qscintilla_fr.qm
>> /usr/share/qt5/translations/qscintilla_pt_br.qm
>>
>> $ ldconfig -p | grep scintilla
>>      libqscintilla2_qt5.so.15 (libc6,x86-64) => /lib/libqscintilla2_qt5.so.15
>>      libqscintilla2_qt5.so (libc6,x86-64) => /lib/libqscintilla2_qt5.so
>>
>> I thought it could be a naming problem so I created a symbolic link
>> qt5scintilla2 to ibqscintilla2_qt5 but still doesn't work.
>
> I noticed that lpr is not installed because it conflicts with
> cups-bsd. lpr is listed as build dependency for 19.10 [1]... can this
> be the issue?
> If it is then the error in the config log is very misleading.
>
> [1] https://wiki.octave.org/Octave_for_Debian_systems#The_right_way

 From what you show above, it looks like -lqscintilla2_qt5 should be
found (you are not showing any error messages after the test for that
file) but then configure apparently goes on to check for the library
again with the name qt5scintilla2.  Are you omitting some info here?

Could you post the complete config.log file and also the complete
summary info that is printed to the terminal when you run configure?

jwe


Reply | Threaded
Open this post in threaded view
|

Re: [stable build from source] Ubuntu 20.04 scintilla not found

John W. Eaton
Administrator
In reply to this post by JuanPi
On 6/17/20 2:36 PM, JuanPi wrote:

> Hi all,
>
> Thanks for the support. I have re-installed all the packages that were
> listed for 19.10 (changed one texlive package, updated our wiki)[1].
> This doesn't solve the issue.
> The errors I get if I ignore the false negative detection of
> qscintilla are below
>
> /usr/bin/ld: cannot find -lQt5Network
> /usr/bin/ld: cannot find -lQt5PrintSupport
> /usr/bin/ld: cannot find -lQt5Help
> /usr/bin/ld: cannot find -lQt5Widgets
> /usr/bin/ld: cannot find -lQt5Gui
> /usr/bin/ld: cannot find -lQt5Sql
> /usr/bin/ld: cannot find -lQt5Xml
> /usr/bin/ld: cannot find -lQt5Core
> collect2: error: ld returned 1 exit status
> make[2]: *** [Makefile:15710: src/octave-svgconvert] Error 1
> make[2]: *** Waiting for unfinished jobs....
> make[2]: Leaving directory '/home/juanpi/Devel/octave/builds/stable'
> make[1]: *** [Makefile:27451: all-recursive] Error 1
> make[1]: Leaving directory '/home/juanpi/Devel/octave/builds/stable'
> make: *** [Makefile:11076: all] Error 2

This looks like it is failing to build octave-svgconvert?  Could you run

   make V=1

and show the context for the last failure?  The last 50 lines or so
should be enough, but I need to see the commands that were executed
along with the error messages.

> This is preceded by huge list of warnings similar to
> /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qstyleoption.h: In member
> function ‘QStyleOptionSizeGrip& QStyleOptionSizeGrip::operator=(const
> QStyleOptionSizeGrip&)’:
> /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qstyleoption.h:645:24:
> warning: implicitly-declared ‘QStyleOptionComplex&
> QStyleOptionComplex::operator=(const QStyleOptionComplex&)’ is
> deprecated [-Wdeprecated-copy]

Those are because GCC added some new warnings.  You can ignore them.
The Qt code is still valid, but should be updated to conform to current
C++ standards.

jwe



Reply | Threaded
Open this post in threaded view
|

Re: [stable build from source] Ubuntu 20.04 scintilla not found

JuanPi
In reply to this post by John W. Eaton
Here is the summary [1] and the complete config.log [2] (using drive
due to the size of the file)
The command is

configure JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/
CPPFLAGS=-I/usr/include/suitesparse --prefix=/opt/octave

as can be seen in the head of the config.log file

[1]: https://drive.google.com/file/d/1ZpD_JoE2V-_BALjy0E3GsDRAbKAB5HMY/view?usp=sharing
[2]: https://drive.google.com/file/d/1yVykQDy26s-ubUQLlPYkKy3jNp22SUvF/view?usp=sharing

Reply | Threaded
Open this post in threaded view
|

Re: [stable build from source] Ubuntu 20.04 scintilla not found

JuanPi
In reply to this post by John W. Eaton
> This looks like it is failing to build octave-svgconvert?  Could you run
>
>    make V=1
>
> and show the context for the last failure?  The last 50 lines or so
> should be enough, but I need to see the commands that were executed
> along with the error messages.
>

Hi jwe, sorry It was a parallel compilation. Here is the bottom result
of running make V=1
I assume the command that fails is shown in this case

libtool: link: g++  -fPIC -DPIC -shared -nostdlib
/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crti.o
/usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o
/usr/lib/gcc/x86_64-linux-gnu/9/crtoffloadbegin.o
libgui/.libs/liboctgui_la-liboctgui-build-info.o  -Wl,--whole-archive
libgui/qterminal/.libs/libqterminal.a
libgui/graphics/.libs/libgraphics.a libgui/src/.libs/libgui-src.a
-Wl,--no-whole-archive  -Wl,-rpath
-Wl,/home/juanpi/Devel/octave/builds/stable/libinterp/.libs -Wl,-rpath
-Wl,/home/juanpi/Devel/octave/builds/stable/liboctave/.libs -Wl,-rpath
-Wl,/opt/octave/lib/octave/6.0.1 libinterp/.libs/liboctinterp.so
liboctave/.libs/liboctave.so -lQt5Network -lQt5PrintSupport -lQt5Help
-lQt5Sql -lQt5Xml -lQt5OpenGL -lQt5Widgets -lQt5Gui -lQt5Core -lutil
-L/usr/lib/gcc/x86_64-linux-gnu/9
-L/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu
-L/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib
-L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu
-L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/9/../../.. -lstdc++
-lm -lgomp -lpthread -lc -lgcc_s
/usr/lib/gcc/x86_64-linux-gnu/9/crtendS.o
/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crtn.o
/usr/lib/gcc/x86_64-linux-gnu/9/crtoffloadend.o  -pthread -fopenmp -g
-O2   -pthread -fopenmp -Wl,-soname -Wl,liboctgui.so.6 -o
libgui/.libs/liboctgui.so.6.0.0
/usr/bin/ld: cannot find -lQt5Network
/usr/bin/ld: cannot find -lQt5PrintSupport
/usr/bin/ld: cannot find -lQt5Help
/usr/bin/ld: cannot find -lQt5Sql
/usr/bin/ld: cannot find -lQt5Xml
/usr/bin/ld: cannot find -lQt5OpenGL
/usr/bin/ld: cannot find -lQt5Widgets
/usr/bin/ld: cannot find -lQt5Gui
/usr/bin/ld: cannot find -lQt5Core
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:11478: libgui/liboctgui.la] Error 1
make[2]: Leaving directory '/home/juanpi/Devel/octave/builds/stable'
make[1]: *** [Makefile:27451: all-recursive] Error 1
make[1]: Leaving directory '/home/juanpi/Devel/octave/builds/stable'
make: *** [Makefile:11076: all] Error 2

As far as I understand these libraries are available, e.g.

$ ldconfig -p | grep Qt5Network
    libQt5Network.so.5 (libc6,x86-64) =>
/lib/x86_64-linux-gnu/libQt5Network.so.5

but configure is not finding them

$ grep cannot config.log
/usr/bin/ld: cannot find -lpthreads
/usr/bin/ld: cannot find -llthread
/usr/bin/ld: cannot find -ldld
/usr/bin/ld: cannot find -lopenblas
/usr/bin/ld: cannot find -latlas
/usr/bin/ld: cannot find -ldgemm
/usr/bin/ld: cannot find -lmkl_intel_lp64
/usr/bin/ld: cannot find -lmkl_intel_lp64
/usr/bin/ld: cannot find -lmkl_sequential
/usr/bin/ld: cannot find -lmkl_core
/usr/bin/ld: cannot find -lmkl
/usr/bin/ld: cannot find -lguide
/usr/bin/ld: cannot find -lcxml
/usr/bin/ld: cannot find -ldxml
/usr/bin/ld: cannot find -lscs
/usr/bin/ld: cannot find -lcomplib.sgimath
/usr/bin/ld: cannot find -lessl
/usr/bin/ld: cannot find -lQt5Network
/usr/bin/ld: cannot find -lQt5PrintSupport
/usr/bin/ld: cannot find -lQt5Help
/usr/bin/ld: cannot find -lQt5Widgets
/usr/bin/ld: cannot find -lQt5Gui
/usr/bin/ld: cannot find -lQt5Sql
/usr/bin/ld: cannot find -lQt5Xml
/usr/bin/ld: cannot find -lQt5Core
/usr/bin/ld: cannot find -lqscintilla2-qt5
/usr/bin/ld: cannot find -lQt5Network
/usr/bin/ld: cannot find -lQt5PrintSupport
/usr/bin/ld: cannot find -lQt5Help
/usr/bin/ld: cannot find -lQt5Widgets
/usr/bin/ld: cannot find -lQt5Gui
/usr/bin/ld: cannot find -lQt5Sql
/usr/bin/ld: cannot find -lQt5Xml
/usr/bin/ld: cannot find -lQt5Core
/usr/bin/ld: cannot find -lQt5Network
/usr/bin/ld: cannot find -lQt5PrintSupport
/usr/bin/ld: cannot find -lQt5Help
/usr/bin/ld: cannot find -lQt5Widgets
/usr/bin/ld: cannot find -lQt5Gui
/usr/bin/ld: cannot find -lQt5Sql
/usr/bin/ld: cannot find -lQt5Xml
/usr/bin/ld: cannot find -lQt5Core
/usr/bin/ld: cannot find -lqt5scintilla2

--
JuanPi Carbajal
https://goo.gl/ayiJzi

-----
“An article about computational result is advertising, not
scholarship. The actual scholarship is the full software environment,
code and data, that produced  the  result.”
- Buckheit and Donoho

Reply | Threaded
Open this post in threaded view
|

Re: [stable build from source] Ubuntu 20.04 scintilla not found

siko1056
On 6/18/20 9:13 PM, JuanPi wrote:

> As far as I understand these libraries are available, e.g.
>
> $ ldconfig -p | grep Qt5Network
>     libQt5Network.so.5 (libc6,x86-64) =>
> /lib/x86_64-linux-gnu/libQt5Network.so.5
>
> but configure is not finding them
>
> $ grep cannot config.log
> /usr/bin/ld: cannot find -lpthreads

Juan,

To me it looks a bit suspicious, that your libraries shall be deployed
in root "/lib", rather than "/usr/lib".  Can you check where they really
are?  On an Ubuntu 18.04 system of mine:

  ldconfig -p | grep libQt5Network
     libQt5Network.so.5 (libc6,x86-64) =>
     /usr/lib/x86_64-linux-gnu/libQt5Network.so.5

  find /usr -name libQt5Network.so.5
     /usr/lib/x86_64-linux-gnu/libQt5Network.so.5

Kai

Reply | Threaded
Open this post in threaded view
|

Re: [stable build from source] Ubuntu 20.04 scintilla not found

Nir Krakauer-3
In reply to this post by JuanPi
In my build on Ubuntu 20.04, it seems from the config.log file that
scintilla was at first not found, but then was found:

configure:70459: checking for the QScintilla library for Qt 5
configure:70504: g++ -o conftest -fPIC -g -O2 -pthread -fopenmp
-I/usr/include/x86_64-linux-gnu/qt5/QtNetwork
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtHelp
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtWidgets
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtGui
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtSql
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtXml
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtCore
-I/usr/include/x86_64-linux-gnu/qt5 -fPIC -I/usr/include/suitesparse
conftest.cpp -lQt5Network -lQt5PrintSupport -lQt5Help -lQt5Widgets
-lQt5Gui -lQt5Sql -lQt5Xml -lQt5Core -lqscintilla2-qt5 >&5
/usr/bin/ld: cannot find -lqscintilla2-qt5
collect2: error: ld returned 1 exit status
...
configure:70504: g++ -o conftest -fPIC -g -O2 -pthread -fopenmp
-I/usr/include/x86_64-linux-gnu/qt5/QtNetwork
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtHelp
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtWidgets
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtGui
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtSql
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtXml
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtCore
-I/usr/include/x86_64-linux-gnu/qt5 -fPIC -I/usr/include/suitesparse
conftest.cpp -lQt5Network -lQt5PrintSupport -lQt5Help -lQt5Widgets
-lQt5Gui -lQt5Sql -lQt5Xml -lQt5Core -lqscintilla2_qt5 >&5
configure:70504: $? = 0
configure:70527: result: -lqscintilla2_qt5
configure:70537: checking whether QScintilla has version 2.6.0 or later
configure:70575: g++ -E -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtHelp
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtWidgets
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtGui
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtSql
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtXml
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtCore
-I/usr/include/x86_64-linux-gnu/qt5 -fPIC -I/usr/include/suitesparse
conftest.cpp
configure:70575: $? = 0
configure:70590: result: yes
...
| #define HAVE_QT 1
| #define HAVE_QSTANDARDPATHS 1
| #define HAVE_QGUIAPPLICATION_SETDESKTOPFILENAME 1
| #define HAVE_QHELPSEARCHQUERYWIDGET_SEARCHINPUT 1
| #define HAVE_QSCREEN_DEVICEPIXELRATIO 1
| #define HAVE_QOPENGLWIDGET 1
| #define HAVE_QGLWIDGET 1
| #define HAVE_QT_GRAPHICS 1
| #define HAVE_QOFFSCREENSURFACE 1
| #define HAVE_QT_OFFSCREEN 1
| #define HAVE_QSCI_VERSION_2_6_0 1
| #define HAVE_QSCINTILLA 1
| #define HAVE_QSCI_QSCILEXEROCTAVE_H 1
| #define HAVE_QSCI_QSCILEXERMATLAB_H 1
| #define HAVE_QT5 1

Reply | Threaded
Open this post in threaded view
|

Re: [stable build from source] Ubuntu 20.04 scintilla not found

siko1056
On 6/18/20 10:01 PM, Nir Krakauer wrote:

> In my build on Ubuntu 20.04, it seems from the config.log file that
> scintilla was at first not found, but then was found:
>
> configure:70459: checking for the QScintilla library for Qt 5
> configure:70504: g++ -o conftest -fPIC -g -O2 -pthread -fopenmp
> -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtHelp
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtGui
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtSql
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtXml
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtCore
> -I/usr/include/x86_64-linux-gnu/qt5 -fPIC -I/usr/include/suitesparse
> conftest.cpp -lQt5Network -lQt5PrintSupport -lQt5Help -lQt5Widgets
> -lQt5Gui -lQt5Sql -lQt5Xml -lQt5Core -lqscintilla2-qt5 >&5
> /usr/bin/ld: cannot find -lqscintilla2-qt5
> collect2: error: ld returned 1 exit status
> ...
> configure:70504: g++ -o conftest -fPIC -g -O2 -pthread -fopenmp
> -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtHelp
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtGui
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtSql
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtXml
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtCore
> -I/usr/include/x86_64-linux-gnu/qt5 -fPIC -I/usr/include/suitesparse
> conftest.cpp -lQt5Network -lQt5PrintSupport -lQt5Help -lQt5Widgets
> -lQt5Gui -lQt5Sql -lQt5Xml -lQt5Core -lqscintilla2_qt5 >&5
> configure:70504: $? = 0
> configure:70527: result: -lqscintilla2_qt5
> configure:70537: checking whether QScintilla has version 2.6.0 or later
> configure:70575: g++ -E -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtHelp
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtGui
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtSql
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtXml
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtCore
> -I/usr/include/x86_64-linux-gnu/qt5 -fPIC -I/usr/include/suitesparse
> conftest.cpp
> configure:70575: $? = 0
> configure:70590: result: yes
> ...
> | #define HAVE_QT 1
> | #define HAVE_QSTANDARDPATHS 1
> | #define HAVE_QGUIAPPLICATION_SETDESKTOPFILENAME 1
> | #define HAVE_QHELPSEARCHQUERYWIDGET_SEARCHINPUT 1
> | #define HAVE_QSCREEN_DEVICEPIXELRATIO 1
> | #define HAVE_QOPENGLWIDGET 1
> | #define HAVE_QGLWIDGET 1
> | #define HAVE_QT_GRAPHICS 1
> | #define HAVE_QOFFSCREENSURFACE 1
> | #define HAVE_QT_OFFSCREEN 1
> | #define HAVE_QSCI_VERSION_2_6_0 1
> | #define HAVE_QSCINTILLA 1
> | #define HAVE_QSCI_QSCILEXEROCTAVE_H 1
> | #define HAVE_QSCI_QSCILEXERMATLAB_H 1
> | #define HAVE_QT5 1
>


This is quite normal.  Octave checks for both flags:

   -lqscintilla2-qt5 and
   -lqscintilla2_qt5

Note the "-" and "_" in the name.

Kai

Reply | Threaded
Open this post in threaded view
|

Re: [stable build from source] Ubuntu 20.04 scintilla not found

John W. Eaton
Administrator
In reply to this post by JuanPi
On 6/18/20 8:13 AM, JuanPi wrote:

> As far as I understand these libraries are available, e.g.
>
> $ ldconfig -p | grep Qt5Network
>      libQt5Network.so.5 (libc6,x86-64) =>
> /lib/x86_64-linux-gnu/libQt5Network.so.5

I'm kind of surprised that is /lib and not /usr/lib (my Debian system
has /usr/lib, I didn't know Ubuntu was different).  In any case, do you
also have

   /lib/x86_64-linux-gnu/libQt5Network.so

I think that's the file the linker expects to find, not the one with the
version number.  As I understand it, ldconfig is just telling you
whether the run-time library exists, not whether the library needed for
linking is present.

If that file is missing, why?  It and the others should be provided by
the qtbase5-dev (all except for Qt5Help) and qttools5-dev (Qt5Help)
packages.

If it is present, then why is the linker not finding it?  Also if it is
present, what is the output of

   ls -l /lib/x86_64-linux-gnu/libQt5Network.so

(or /usr/lib/... if that's where it is)?

The reason this is showing up as a problem with qscintilla and not Qt
generally is that we check for qscintilla by linking a program.  For the
Qt libraries, we rely on the result of a pkg-config command.  Maybe we
should have configure double check by actually attempting to link a
program instead of just trusting what pkg-config returns.

> but configure is not finding them
>
> $ grep cannot config.log
> /usr/bin/ld: cannot find -lpthreads

The config.log file reports the results of all tests.  Sometimes we
check several different ways until we find something that works.  So a
"cannot find" message in the log doesn't necessarily mean that the
feature is missing.

jwe