octave-maintainers
[Top][All Lists]
Advanced

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

Help in Building octave on ubuntu 12.04


From: Abhinav Tripathi
Subject: Help in Building octave on ubuntu 12.04
Date: Wed, 25 May 2016 08:06:39 +0000

Hi,
I have successfully built octave from source on ubuntu 16.04 using the same steps. But when I issue the 'make' command on ubuntu 12.04 then I get the following error:
.
  CXX    libinterp/dldfcn/libinterp_dldfcn___delaunayn___la-__delaunayn__.lo
In file included from ../liboctave/array/Array.h:38:0,
                 from ../libinterp/corefcn/Cell.h:31,
                 from ../libinterp/dldfcn/__delaunayn__.cc:50:
../liboctave/array/idx-vector.h:68:55: error: 'unique_ptr' in namespace 'std' does not name a type
In file included from ../libinterp/corefcn/error.h:31:0,
                 from ../libinterp/octave-value/ov-base.h:40,
                 from ../libinterp/octave-value/ov.h:57,
                 from ../libinterp/corefcn/Cell.h:33,
                 from ../libinterp/dldfcn/__delaunayn__.cc:50:
../liboctave/util/unwind-prot.h: In member function 'virtual void octave::unwind_protect::run_first()':
../liboctave/util/unwind-prot.h:73:11: error: 'unique_ptr' is not a member of 'std'
.
.
I can't update the ubuntu 12.04 for some reasons. And it would help if I could work on this machine too..
The gcc version is 4.6.3
.
I have already tried using unique_ptr successfully on my programs on the same compiler set. I had to pass -std=c++0x flag.  [-std=c++11 is not supported]
I guess that octave is not using this flag? (Although as seen from some of the outputs, it checks automatically for the flag to support c++11)
.
Is there a way to tell make to use the -std=c++0x flag?
.
.
Just in case, I follow the following list to build octave: (a mix of octave wiki and this site)
.
hg clone http://www.octave.org/hg/octave
cd octave
hg -v pull
hg -v update
./bootstrap
mkdir my_build
cd my_build

# 1) get necessary dev-tools sudo apt-get install g++ gcc gfortran make autoconf automake bison flex gperf gzip icoutils librsvg2-bin libtool perl rsync tar # 2) get necessary packages sudo apt-get install libblas-dev liblapack-dev libpcre3-dev libarpack2-dev libcurl4-gnutls-dev epstool libfftw3-dev transfig libfltk1.3-dev libfontconfig1-dev libfreetype6-dev libgl2ps-dev libglpk-dev libreadline-dev gnuplot libgraphicsmagick++-dev libhdf5-serial-dev openjdk-7-jdk libsndfile1-dev llvm-dev lpr texinfo libgl1-mesa-dev libosmesa6-dev pstoedit portaudio19-dev libqhull-dev libqrupdate-dev libqscintilla2-dev libqt4-dev libqtcore4 libqtwebkit4 libqt4-network libqtgui4 libsuitesparse-dev libxft-dev zlib1g-dev
../configure --prefix=/opt/octave_dev
make
make check
sudo make install
.
.
Abhinav

reply via email to

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