Octave & QtOctave

Discussion in 'Electronics Resources' started by swty_todd, Aug 1, 2009.

  1. swty_todd

    Thread Starter Active Member

    Aug 3, 2008
    82
    0
    This year we are studying how to use QtOctave for designing of filters. I am trying to download Octave & QtOctave from the net on my PC. But so far I havent been sucessful. I have both Ubuntu & XP and I am hoping to get it installed on at least one of them. Maybe you guys could help me!
    btw I am not too good with computers!
     
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    It looks as if there are several files necessary for the app to work. Have you tried this link? -
    http://qtoctave.wordpress.com/what-is-qtoctave/

    It points to another that is supposed to have the Windows files.

    It is not a Matlab add-on, but I use Filterlab form Microchip Technologies.
     
  3. swty_todd

    Thread Starter Active Member

    Aug 3, 2008
    82
    0
    Yes I have tried the link that you mentioned but I am unable to make it work.
     
  4. bertus

    Administrator

    Apr 5, 2008
    15,648
    2,346
    Hello,

    Did you read teh "readme.txt"?

    Code ( (Unknown Language)):
    1. INSTALL.
    2.  
    3. QtOctave requires:
    4. * Qt4 library and Qt4 devel packages. Version 4.5.0 or better.
    5. * Octave program. Version 3.2.0 or better. (http://www.gnu.org/software/octave/)
    6. * cmake program. (http://www.cmake.org/)
    7. * a C++ - compiler, eg. the GNU compiler (http://gcc.gnu.org/)
    8.  
    9. For building QtOctave from source execute:
    10.  
    11. tar xvzf qtoctave-xxx.tar.gz
    12. cd qtoctave-xxx
    13. mkdir build
    14. cd build
    15. cmake ..
    16. # if you want a specific install-path (for example your $HOME directory, if you are not root),
    17. # you can do "cmake ..  -DCMAKE_INSTALL_PREFIX:PATH=/some/path"
    18. make
    19. make install
    20.  
    21. Maybe you should be root user when installing (it depends on install path).
    22.  
    23.  
    24.  
    You need the octave program to run the Qtoctave program.
    And the QT4 devel libraries.

    Greetings,
    Bertus
     
  5. swty_todd

    Thread Starter Active Member

    Aug 3, 2008
    82
    0
    Yes I read it but I like i said i am not to good with computers. Its totally confusing me.I have downloaded octave but it is not working properly.I am trying.
     
    Last edited: Aug 1, 2009
  6. bertus

    Administrator

    Apr 5, 2008
    15,648
    2,346
    Hello,

    I am using OpenSuse 10.3.
    In the package manager of OpenSuse I could find and install qtoctave.

    It needs the following packages:
    qtoctave
    gcc42-fortran
    gcc-fortran
    gnuplot
    libfortran42
    mpfr
    octave
    plotutils
    texinfo

    All are automaticaly selected in OpenSuse for installation.

    Greetings,
    Bertus
     
  7. Federico.Zenith

    New Member

    Jul 28, 2009
    5
    0
    In Ubuntu, run:
    Code ( (Unknown Language)):
    1. sudo apt-get install qtoctave
    and you are set.
    Just run "qtoctave" to start the program.
     
  8. Federico.Zenith

    New Member

    Jul 28, 2009
    5
    0
    Hi Bertus,
    You are posting the compilation instructions. As instructive as it is, it is probably not what swty_todd wanted. Given that he has Ubuntu, he can install the qtoctave package with apt-get (see my other post), and the system will take care of all dependencies.
     
  9. swty_todd

    Thread Starter Active Member

    Aug 3, 2008
    82
    0
    Federico, i typed what you asked me to at the terminal but it said"[sudo] password for myaccountname" but then it wouldn't accept any key. So I replaced qtoctave with octave in the instruction that you gave me (since i don't have octave installed in ubuntu), but again it asked for password & then wouldn't take any input. I also typed "octave" in ubuntu help but it didn't return anything & I also tried at the package manager but it wasn't of any help. Maybe,the ubuntu I have doesn't have octave in it.
    I have openSuse 9 cd.I think i'll have to check that.
     
  10. Federico.Zenith

    New Member

    Jul 28, 2009
    5
    0
    So you are a Linux n00b... Well I was too once upon a time :)
    When you run sudo, the system asks your password to make sure that you are actually you, not someone else who happened to find your computer with your account logged in.

    When sudo asks for your password, it is actually listening even if it is not showing anything. Just type your password and then Enter, as you would from a login screen.
     
  11. swty_todd

    Thread Starter Active Member

    Aug 3, 2008
    82
    0
    NO, I am not only a Linux n00b but a n00b regarding almost everything! ;)
    I did as you said and then it said package not found (for both octave & qtoctave). So I guess that confirms that my ubuntu doesn't have an inbuilt octave package (I presumed that the instruction that you gave me were to install an inbuilt octave package).
     
  12. Federico.Zenith

    New Member

    Jul 28, 2009
    5
    0
    That could be because you have not activated the unsupported package repositories (so-called universe and multiverse). Ubuntu does not activate them by default because, well, they are unsupported (definitions here: http://www.ubuntu.com/community/ubuntustory/components).

    It's pretty easy to activate them though: a nice walkthrough is at https://help.ubuntu.com/community/Repositories/Ubuntu
    Don't be scared by the length of the document, it's actually pretty easy-they just went out of their way with the details.

    After that, you run again that apt-get command (or search for Octave through the Synaptic package manager, maybe you prefer using the interface), and then it should work.
     
Loading...