help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

compiling octave


From: Ugo Tomei
Subject: compiling octave
Date: Mon, 13 Nov 2023 21:34:33 +0100
User-agent: Mozilla Thunderbird

Hi octave team,

i have try to compile octave on my ubuntu mantic but i receive this on configure:

configure: WARNING: RapidJSON library found, but some features do not seem to work properly.  The "PrettyWriter" option in jsonencode will be disabled.
configure: WARNING: QScintilla library not found; disabling built-in Qt GUI editor
configure: WARNING: Include file <jni.h> not found.  Octave will not be able to call Java methods.
configure:
configure: NOTE: Libraries or auxiliary programs may be skipped if they are not found
configure: NOTE: OR if they are missing required features on your system.

why octave not found QScintilla library? i have installed both: libqscintilla2-qt6-dev and libqscintilla2-qt5-dev

and running make -j$(nproc) i receive this error:

  GEN      scripts/+matlab/+net/PKG_ADD
  GEN      scripts/+matlab/+lang/PKG_ADD
  GEN      scripts/audio/PKG_ADD
  GEN      scripts/deprecated/PKG_ADD
  GEN      scripts/elfun/PKG_ADD
  GEN      scripts/general/PKG_ADD
  GEN      scripts/geometry/PKG_ADD
./../src/octave-svgconvert.cc:39:10: fatal error: QtCore: File o directory non esistente
   39 | #include <QtCore>
      |          ^~~~~~~~
compilation terminated.
make[2]: *** [Makefile:25434: src/octave_svgconvert-octave-svgconvert.o] Errore 1
make[2]: *** Attesa per i processi non terminati....
make[2]: uscita dalla directory «/app/octave/.build»
make[1]: *** [Makefile:28006: all-recursive] Errore 1
make[1]: uscita dalla directory «/app/octave/.build»
make: *** [Makefile:11139: all] Errore 2

can  you help me?

i have installed qt6 from the original installer in :

/home/dacorsa/Qt/6.5.3/gcc_64

All the commands i use are:

sudo apt install libqscintilla2-qt6-dev gcc g++ autoconf automake bison dvipng epstool fig2dev flex gfortran gnuplot-x11 gperf gzip icoutils libarpack2-dev libbison-dev libopenblas-dev libcurl4-gnutls-dev libfftw3-dev libfltk1.3-dev libfontconfig1-dev libfreetype6-dev libgl1-mesa-dev libgl2ps-dev libglpk-dev libgraphicsmagick++1-dev libhdf5-dev liblapack-dev libosmesa6-dev libpcre3-dev libqhull-dev libqscintilla2-qt5-dev libqrupdate-dev libreadline-dev librsvg2-bin libsndfile1-dev libsuitesparse-dev libsundials-dev libtool libxft-dev make openjdk-8-jdk perl portaudio19-dev pstoedit qtbase5-dev qttools5-dev qttools5-dev-tools rapidjson-dev rsync tar texinfo texlive-latex-extra zlib1g-dev
cd /app
sudo hg clone https://www.octave.org/hg/octave
cd octave
sudo mkdir /app/octave_bin
./bootstrap
sudo mkdir /app/octave/.build/
cd /app/octave/.build/
export CMAKE_PREFIX_PATH="/home/dacorsa/Qt/6.5.3/gcc_64/:${CMAKE_PREFIX_PATH}"
export PATH="/home/dacorsa/Qt/6.5.3/gcc_64/bin:/home/dacorsa/bin/dotnet:/home/dacorsa/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/root/.gem/ruby/2.7.0/bin:/home/dacorsa/.cargo/bin:/home/dacorsa/.local/bin:/root/.local/bin/:${PATH}"
export PKG_CONFIG_PATH="/home/dacorsa/Qt/6.5.3/gcc_64/lib/pkgconfig/:${PKG_CONFIG_PATH}"
export LD_LIBRARY_PATH="/home/dacorsa/Qt/6.5.3/gcc_64/lib:/lib:/lib32:/lib64:libx32:/usr/include:/usr/lib:/lib/x86_64-linux-gnu:/snap/bin:/usr/local/lib:/usr/lib/x86_64-linux-gnu:/usr/local/sbin/wxWidgets/lib:/usr/local/sbin/libupnp/lib:/usr/lib/libreoffice/program/:${LD_LIBRARY_PATH}"
./../configure --prefix=/app/octave_bin
make -j$(nproc)
make check -j$(nproc)
sudo make install
ls -la /app/octave_bin/bin/octave*
exit 0

Thanks , best regards.

ugo


reply via email to

[Prev in Thread] Current Thread [Next in Thread]