|
From: | Steph Bredenhann |
Subject: | Re: How can I compile Octave GUI from sources? |
Date: | Wed, 21 Nov 2012 22:10:35 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121028 Thunderbird/16.0.2 |
Steph Bredenhann PrEng,
PrCPM
On 13/11/2012 08:53, Juan Pablo Carbajal wrote:(sent from SJB-Linux) I would like to please join this discussion, I have now reached the point where I can't go further (After having built Octave many times before.On Mon, Nov 12, 2012 at 11:49 PM, Pedro <address@hidden> wrote:On Mon, Nov 12, 2012 at 9:36 PM, Juan Pablo Carbajal <address@hidden> wrote:On Mon, Nov 12, 2012 at 9:01 PM, Pedro <address@hidden> wrote:On Mon, Nov 12, 2012 at 8:55 PM, Juan Pablo Carbajal <address@hidden> wrote:On Mon, Nov 12, 2012 at 8:51 PM, Pedro <address@hidden> wrote:On Mon, Nov 12, 2012 at 4:24 PM, Juan Pablo Carbajal <address@hidden> wrote:On Sun, Nov 11, 2012 at 7:02 PM, Pedro <address@hidden> wrote:On Wed, Nov 7, 2012 at 2:50 PM, Juan Pablo Carbajal <address@hidden> wrote:On Wed, Nov 7, 2012 at 2:42 PM, Pedro <address@hidden> wrote:Hi list, I would like to test Octave GUI but it's difficult to find a tutorial in google (GUI Octave, ... ) Any help? References? Howto? I know that Octave GUI is unstable. Could be these included in FAQ? The response now is not enough for me :/ http://wiki.octave.org/FAQ#GUI I'm in Lubuntu 12.10 and I have Octave version 3.6.2 from official repositories. Greetings, PedroHi Pedro, I think this mail should go to the help mailing list. You need to checkout the default repository and compile it from source. Follow the instructions here http://www.gnu.org/software/octave/get-involved.html Once you go the code do $ hg update default $ ./bootstrap $ ./configure $ make $ ./run-octave Make sure that ./configure tell that you are OK to compile. Also when making you can pass the -j<n> option, where <n> is the number of processors/cores you have in your machine. I do not know what kind of update system you have in Lubuntu, just run the equivalent to $ sudo apt-get install buildessential $ sudo apt-get builddep octave before you start compiling to get all the dependencies. You will also need libqscintilla2 and qt4Ok, I have an make error. But first, I make a description to arrive here: ./bootstrap says: "build-aux/bootstrap_gnulib: one of these is required: glibtoolize libtoolize" => you have to install "sudo apt-get install libtool" => (and) "sudo apt-get install automake autoconf" ./configure sudo apt-get install libpcre3-dev sudo apt-get install libblas-dev liblapack-dev make here's the error [1] I tried to resolve installing: sudo apt-get install flex flexc++ flexbackup libfl-dev flexloader flexml (also flex-old, and this remove flex and libfl-dev) information flex version: 2.5.35-10 libfl-dev version: 2.5.35-10 flex-old version: 2.5.4a-10 [1] Error in make Making all in libinterp make[2]: Entering directory `/home/papatupf/Sources/octave/libinterp' /bin/bash ../build-aux/ylwrap parse-tree/lex.ll lex.octave_.c parse-tree/lex.cc -- ../build-aux/missing flex WARNING: `flex' is missing on your system. You should only need it if you modified a `.l' file. You may need the `Flex' package in order for those modifications to take effect. You can get `Flex' from any GNU archive site. make[2]: *** [parse-tree/lex.cc] Error 1 make[2]: Leaving directory `/home/<user>/octave/libinterp' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/<user>/Sources/octave' make: *** [all] Error 2Try first getting the dependencies $ sudo apt-get build-dep octave if you are in a Ubuntu older than 12.10 you need to do $ sudo apt-get build-dep octave3.2 Also notice that bootstrap is telling you that there are some programs missing.Thanks for your reply. About depmode. I was thinking that was a program... aplying incorrectly sudo apt-get install build-dep octave So I did: # sudo apt-get build-dep octave # make clean && ./bootstrap && ./configure && make and here's the ouput error: http://pastebin.com/yhm4NcmK Something bad with lex.cc & lex.ll Seems to be missing a library Now I will try a new hg clone of sources and try again (instead of using make clean)Try manually installing lex $ sudo apt-get install flex What GNU/Linux are you using?Lubuntu 12.10 (quantal) $ sudo apt-get install flex (...) flex is already the newest version. $ flex -V flex 2.5.35 An alternative is to use: "flex-old" with: 2.5.4a-10 but it will remove: libfl-dev version: 2.5.35-10 don't know if affectsOk, I had to ask help to jwe for this one. Make sure bison is installed $ sudo apt-get install bison If that doesn't do the trick then 09:12:21 PM) jwe: what is in the generated libinterp/parse-tree/oct-parse.h file? That's where things like DO, END, ELSE, etc. should be defined.$ sudo apt-get install bison It wasn't installed, thanks $ make clean && ./bootstrap && ./configure && make It seems that generate the same error: http://pastebin.com/4hRT6s73 ./libinterp/parse-tree/oct-parse.h not found /octave/libinterp$ ls http://pastebin.com/2kExw14R (This night I will do a fresh build with new sources: hg clone. Perhaps too much "make clean")Hi Pedro, Could you pastebin the result of the configure script? I am CC the maintainers list, there is more people here that compiles the sources often and they may have a better idea what is the problem. @Maintainer: Pedro is trying to compile the default branch to test the GUI. He has installed (apparently) all dependencies. He is using Lubuntu 12.10 (quantal) . Does anybody has a clue why he can't compile? My system is X86-64 with *Gb RAM running Ubuntu 12.04 $ ./run-octave gives perfect results, I could open a .m file (actually the project consists of several .m files) hitting the run button gives all my graphs! So, I thought success. Now I do $ make check results in; Summary: PASS 10570 FAIL 2 XFAIL 3 See the file test/fntests.log for additional details. Expected failures (listed as XFAIL above) are known bugs. Please help improve Octave by contributing fixes for them. 355 (of 937) .m files have no tests. 0 (of 122) .cc files have no tests. Please help improve Octave by contributing tests for these files (see the list in the file fntests.log). panic: Segmentation fault -- stopping myself... panic: Segmentation fault -- stopping myself... panic: attempted clean up apparently failed -- aborting... attempting to save variables to 'octave-workspace'... make[1]: *** [check] Aborted (core dumped) make[1]: Leaving directory `/home/steph/octave/test' make: *** [check] Error 2 Any suggestions on how to proceed from here? Steph Bredenhann |
[Prev in Thread] | Current Thread | [Next in Thread] |