QtOctave 0.9.1 Win32 Bugfix


To version 0.10.1.

I found a bug in my windows version.  So I patched the source, to fix it.
The problem was, that qtoctave changes it’s own cwd when a file is loaded, and then the share directory isn’t in place anymore.

A fresh build of qtoctave-win32-0.9.1-2 qtoctave-win32-0.9.1-3

The new version qtoctave-win32-0.10.1 should fix these problems.

[Update]
Thx Dan for the report. I forgot a “\\”+ in octave_connection.cpp line 118. I uploaded version 0.9.1-3.

  1. #1 von Dan am 06.04.2010 - 08:21:33

    Great job on the build, how ever I can having the following errors. the first one complains about the path. but it does seem to work after that.

    then it keeps complaining that

    _ide_reload_variables_list' undefined near line 5 column 1

    and it can't use the variable window. This doesn't do that in the linux version.

    and also: I had to download mingwm10.dll and drop it in the bin folder to get it to even start up.

    Any getting this to work would be greatly appreciated.

    bellow are some of the errors I am getting.

    Is it possible you missed a relative path in the build???

    warning: mark_as_command is obsolete and will be removed from a future version
    of Octave
    warning: addpath: C:/Documents and Settings/Dingles/Desktop/qtoctave-win32-0.9.
    1-2/qtoctave/bin..\share\qtoctave\scripts_octave\: No such file or directory
    >>>error:
    _ide_reload_variables_list’ undefined near line 4 column 1
    plot(rand(1,10))
    warning: isstr is obsolete and will be removed from a future version of Octave,
    please use ischar instead
    >>>error: `_ide_reload_variables_list’ undefined near line 5 column 1

  2. #2 von Dan am 06.04.2010 - 08:46:31

    OK, with a bit of poking around i found _ide_reload_variables_list.m

    and this sorted out that error

    addpath(‘C:\Documents and Settings\Dingles\Desktop\qtoctave-win32-0.9.1-2\qtoc
    tave\share\qtoctave\scripts_octave’)

    But it didn’t find it by default. I would like to pass this on to students. do you know how I can change this without having to do the addpath? Is there a config file somewhere? I don’t mind having to do this, but I would like to pass this on to some first years and would be better if I could patch for them. So there first look at octave isn’t a broken one.

    Cheers

    Dan

  3. #3 von mfn am 06.04.2010 - 17:48:21

    I hope 0.9.1-3 fixes the problem with _ide_reload_variables_list

  4. #4 von Dan am 07.04.2010 - 09:22:09

    Works fantastic! Thanks heaps!!!

  5. #5 von edifice am 08.04.2010 - 13:49:14

    hi, i had to copy mingwm10.dll from an older installation to run qtoctave.exe

  6. #6 von mfn am 08.04.2010 - 14:00:23

    I added mingwm10.dll to the archive

  7. #7 von computerfreaker am 08.04.2010 - 23:34:02

    I’m getting lots of errors, all related to Octave scripts.

    First, in the Command Prompt window,
    [PkgBind::loadCommandList] ‘..\share\qtoctave\pkg-commands.list’ can not be loaded

    Then, within QtOctave itself, lots and lots of errors like these every time I enter a command:
    error: `int2str’ undefined near line 10 column 36
    error: evaluating argument list element number 1
    error: evaluating argument list element number 1

    Is it possible pkg-commands.list contains the definitions of int2str & other erroring functions? (I tried to find pkg-commands.list so I could test my theory, but it doesn’t seem to be included in this release or the 0.6.8 release)

    Thanks for the Windows build!

  8. #8 von mfn am 09.04.2010 - 17:24:17

    computerfreaker :

    I’m getting lots of errors, all related to Octave scripts.
    First, in the Command Prompt window,
    [PkgBind::loadCommandList] ‘..\share\qtoctave\pkg-commands.list’ can not be loaded …

    Can you give me a short list fo steps to reproduce the bug?

  9. #9 von computerfreaker am 09.04.2010 - 17:38:48

    mfn :

    Can you give me a short list fo steps to reproduce the bug?

    Sure, no problem.

    * Download your Win32 0.9.1 build (the bugfix build) and extract it to a folder
    * Download Octave (I got version 3.2.4), install it, copy the files from Octave\bin to QtOctave\bin (there were a couple of duplicate DLL files; I left the originals intact)
    * Run QtOctave
    * A Command Prompt window will show up; it contains the first error I mentioned
    * Execute any command in QtOctave (I did 4+5)
    * A plethora of error messages show up (the ones I mentioned)

    Would a screen video be helpful?

  10. #10 von mfn am 18.04.2010 - 13:45:45

    The only difference between mine setup and yours is, that I installed octave in a different directory and set the path to it in the options.
    Perhaps you can try this too.

  11. #11 von Tony am 23.04.2010 - 15:00:19

    Selecting “Help of Octave” from the Help menu was not working for me. I got it to work by modifying the qtinfo.m file in the qtoctave/share/qtoctave/scripts_octave directory.
    The new version is:

    function qtinfo()
    prefix = “cmd /c c:/Octave/qtoctave/bin/”;
    command=sprintf(“qtinfo %s > nul”, info_file);
    printf(“Starting info: %s\n”, command);
    system([prefix command], 1, “async”);
    endfunction

    Depending on where you installed qtoctave you may need to modify the directory path to the qtinfo.exe file in the “prefix” variable.

  12. #12 von Roberto am 30.04.2010 - 14:23:42

    Hey, great work on the compilation of QtOctave package. I wonder if you might be interested in working together to create a Nullsoft Installer file (NSIS) to provide people a installer/uninstaller package for Windows systems? I believe, talking to the QtOctave author and even to the packagers of Octave, we could provide an all-in-one Math product on the Windows platform that through ease-of-use might achieve widespread adoption. What do you reckon?

  13. #13 von ciccio am 05.05.2010 - 16:21:04

    Hello,
    nice program.
    Anyway when the editor creates a new variable without echo on the terminal, this is not shown on the “Local user variables” until the variable is not recalled on the terminal or a who command is executed.

  14. #14 von Tatsuro Matsuoka am 11.05.2010 - 13:02:38

    When using the octave-forge packages on octave-3.2.4 mingw32, please care the oct2mat issue.

    http://wiki.octave.org/wiki.pl?OctaveForWindows

    1. Standalone ports
    1.1. Octave 3.2.4 for Windows MinGW32
    Additional important topics found after the release:

    Regards

    Tatsuro

  15. #15 von Pascal Grandeau am 23.05.2010 - 18:34:56

    I tried your QtOctave 0.9.1.3 with octave-forge packages on octave-3.2.4 mingw32. I have a problem with graphs : the gnuplot windows is behind QtOctave and when I move QtOctave I cannot see the graph. I tried easyplot but it does not work. What can I do ?
    Thank you.

    Pascal Grandeau

  16. #16 von Sapien2 am 26.06.2010 - 13:53:03

    When i try to execute simplest protting script like
    x = linspace(0, 2*pi, 100);
    y = sin(x);
    plot(x, y);
    easyplot window just hangs and shows no graphics.
    What am i doing wrong?

  17. #17 von Stefan am 06.07.2010 - 12:30:13

    Hi,
    I also wanted to use easyplot and it didnt work. Any idea what I could do? Below is what i got so far.
    Sunny regards,

    Stefan

    >>> h=[1 2 3]
    h =

    1 2 3

    >>> plot(h,h)
    >>>error: you must have gnuplot installed to display graphics; if you have gnup
    lot installed in a non-standard location, see the ‘gnuplot_binary’ function
    >>> gnuplot_binary(“C:\\gnuplot\\bin\\wgnuplot.exe”)
    >>> plot(h,h)
    >>>error: compare_versions: version numbers must be a single row
    error: called from:
    error: C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\miscellaneous\compare_v
    ersions.m at line 81, column 5
    error: C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\plot\__gnuplot_has_feat
    ure__.m at line 43, column 23
    error: C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\plot\gnuplot_drawnow.m
    at line 229, column 11
    error: C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\plot\gnuplot_drawnow.m
    at line 97, column 16
    >>>

  18. #18 von Oliver am 21.07.2010 - 11:48:10

    Hi
    I tried too the 2dplots didnt work.

    regards

    Oliver

  19. #19 von Bob am 05.08.2010 - 21:14:25

    @12 I have a little experience putting together Nullsoft installers using HM NIS Edit to generate the initial template. I agree that simplifying the installation process would really help make the system more popular.

    I’ve been using Scilab with good results; the only problem is the graphs are aliased and unnecessarily ugly. Scilab’s editor is very nice however. Conversely, Octave’s plot engine is Gnuplot which produces very nice output, but Octave’s default console input is harder to use.

  20. #20 von Serge am 06.08.2010 - 16:48:32

    Hi,
    2Dplots didn’t work:
    parameters are not passed from the form to the “Octave Terminal”:
    >>> plot();
    usage: plot (y)
    plot (x, y, …)
    plot (x, y, fmt, …) plot (x, y, property, value, …)
    error: C:\Octave\3.2.0_gcc-4.3.0\share\octave\3.2.0\m\plot\__plt__.m at line
    116, column 5

    Regards

    Serge

  21. #21 von Ekkehard am 18.08.2010 - 19:16:42

    Great work – Thanks!!

    The png-style icon that comes with it won’t work as an icon. I created an icon that will work out of it. How can I upload it?

    Cheers

  22. #22 von Idleryan am 25.10.2010 - 12:19:14

    Hi
    i use the pached file qtoctave-win32-0.9.1-3
    but however i still show the issue below

    warning: mark_as_command is obsolete and will be removed from a future version
    of Octave
    >>>error: C:\Documents and Settings\hsun.ouyang\My Documents\Qtoctave\bin: No s
    uch file or directory

    but the error will not show up everytime

    Best Regards

  23. #23 von Serge am 27.10.2010 - 10:48:29

    Hi,

    Is this project dead???

    Best regards

  24. #24 von Baptiste am 29.10.2010 - 15:53:27

    Hi,

    i also have the problem using easyplot.

    when i write for exampe “plot(x,y)”
    i get the message:

    error: compare_versions: version numbers must be a single row

    i’m using octave 3.2.4 and qtoctave 0.9.1
    on Windows7

    Thanks

  25. #25 von Christopher am 31.10.2010 - 13:24:31

    Serge :
    Hi,
    Is this project dead???
    Best regards

    I’ve never seen this as a seperate project. I just built qtoctave for Windows.

  26. #26 von Serge am 08.11.2010 - 08:24:15

    OK, but there are issues not corrected and there is no release for some month. Thanks for all contributors, but today, without correct plot, this product is not usable.
    Regards

  27. #27 von Nate am 17.11.2010 - 21:53:57

    I have been using QtOctave for a while and think it is a great program – the best front end for Octave. However there are some things that would make it much easier to use and efficient. Here are my suggestions for improvements (in order of importance):

    Copy, cut, paste between the terminal window, Command line >> bar and the editor with Ctrl C, Ctrl X, Ctrl V and not only with right click
    Do not resize the Editor (make narrower) when restarting program or switching terminal window items. (workaround: unmaxemize terminal, then make the terminal wider)
    Quicker viewing of large arrays with the spreadsheet viewer
    Shortcuts keys for comment/uncomment and indent/unindent
    Opening variables in Navigator window (in tabs) and not terminal, as an option
    In variable editor, option to select another variable (to display its values without opening it from the Variables list, resizing and positioning the window, etc)
    Gnuplot not freezing (hourglass) every time you click on the window title bar, maxemize, close box, etc (probably unrelated to QtOctave).
    Show values of variables that aren’t arrays in Variables’ list, such as cell arrays, strings, structures
    Allow esc to clear the command line
    Ability to change all font sizes (even octave functions) in editor
    Allow viewing of variables with data types such as strings, structures, etc.
    When you select text in editor and drag it, it runs that piece of code and deletes it. Fix this
    Maximize octave terminal on program startup, if it was previously maximized

    I would be very grateful to anyone who could implement any of the above!
    -Nate

    BTW, I am using Windows XP SP3

  28. #28 von Don am 04.01.2011 - 17:02:10

    How do you install this program?

  29. #29 von Kny am 17.01.2011 - 12:25:17

    The error, where Gnuplot hangs is related to the oct2mat package of OctaveForge. It is easily fixed, as described here under “additional notes” section:

    http://wiki.octave.org/wiki.pl?OctaveForWindows

    short version:

    Run from octave prompt either directly or from within QtOctave:
    “pkg rebuild -noauto oct2mat”

    Restart QtOctave. After this, plotting should work as usual.

  30. #30 von Bill Eaton am 21.01.2011 - 21:56:39

    Thank you so much for this binary build for Windows. It’s quite nice.

    I have noticed that a 0.10.1 version is out now. Do you have any plans to make a Windows build?

  31. #31 von mfn am 21.01.2011 - 22:43:45

    Bill Eaton :

    Thank you so much for this binary build for Windows. It’s quite nice.

    I have noticed that a 0.10.1 version is out now. Do you have any plans to make a Windows build?

    Hi, saw the announcement too, and I have the plan to make a windows build. But currently I don’t have much spare time. I hope to get it finished in the first week of February.

  32. #32 von Vladimir am 27.01.2011 - 23:26:56

    Hello everybody!

    Would anybody know how to change the color of the commented text. It is sort of grayish now, but I would like to make ti something else. It would improve clarity of the code. Thanks a lot in advance.

  33. #33 von mfn am 29.01.2011 - 16:53:09

    I finished the build for 0.10.1. Link is at the top of this post.

  34. #34 von tv am 30.01.2011 - 21:44:36

    Hi,

    easy_plot seems still not to work. There
    are 2 windows coming up and they are empty.
    Version: octave mingw 3.2.4, qtoctave 0.10.1

    All described workarounds in the notes of
    http://wiki.octave.org/wiki.pl?OctaveForWindows
    don’t change anything.

    Has anybody running this feature ?

  35. #35 von mfn am 30.01.2011 - 23:36:29

    I just tested the

    pkg rebuild -noauto oct2mat

    command with the new qtoctave 0.10.1 build and it’s working for me with the following example:
    x = linspace(0, 2*pi, 100);
    y = sin(x);
    plot(x, y);

  36. #36 von tv am 31.01.2011 - 01:27:35

    I get on two different PC’s with a freshly installed
    octave 3.2.4 the same:

    two empty easy_plot windows and one not reacting.
    Do I miss something. Is there some configuration missing ?

    tv

  37. #37 von tv am 31.01.2011 - 01:29:06

    Sorry I forgot the expample:

    x=-2:2
    y=x.^2
    plot(x,y)

    easy enough

    tv

  38. #38 von mfn am 31.01.2011 - 14:52:52

    Try the “pkg rebuild –noauto oct2mat”
    and then:
    x=-2:2;
    y=x.^2;
    plot(x,y);
    the semicolons seem to be important, don’t know why.

  39. #39 von tv am 07.02.2011 - 20:20:56

    Thanks again for your fast replies.

    I tried your proposal, but easy_plot doesn’t want to work.
    Allways 2 windows are coming up, one blocked, both empty.

    gnuplot is working now for me without any problem.

    If I have some time I try to debug the problem as I can compile the source.

    Thanks so far.

    tv

(wird nicht veröffentlicht)