From graphics-request at octave dot org Wed Feb 15 09:42:24 2006 Subject: Re: Octave GUI MinGW first light & need help. From: David Bateman To: Sebastien Loisel Cc: octave maintainers mailing list , octave-graphics Date: Wed, 15 Feb 2006 16:38:02 +0100 Sebastien Loisel wrote: > David, > > Ok, I could track this down but it's probably easier for you. My > tarball is here: > http://www.cs.mcgill.ca/~mtakan1/octave-gui-beta.tar.gz > (about > 300KB.) > > Basically, it goes into octave_main() and returns 1. What I need to > know is why? Can you tell me what the failure is? > > Things you should know: > > 1) This is a Windows app. So it doesn't have an stdout and stderr. > Apologies for the added debugging difficulties. > > 2) Therefore, I stick the return value of octave_main() and the argc, > argv into some global variables. When the gui comes up, I print those > global variables in the output tab. So you can see exactly what the > parameters to octave_main() are and that it returns 1. > > 3) Trolltech decided, in its infinite wisdom, that they weren't going > to play game with msys. Therefore, it is not possible to do make if > msys is in the path. Therefore, when you want to *build*, you have to > open a clean cmd.exe and add *only* c:\octave\MinGW\bin to its path, > nothing else. Then you type make. This is summarized in compileenv.bat. > > Warning: Don't try to use qmake. It'll fubar everything. Ok, here I have a problem. Firstly the install of QT4 stated that it couldn't find MinGW when it was clearly there. Then I had to copy mingw32-make.exe to make.exe, while msys' installer explicitly stated that this is a bad idea. Finally I had to take msys' /bin/sh.exe. Then I still get an error as sh.exe is looking for the msys dll... What shell did you use if not msys' one? > > 4) On the other hand, when you run octave-gui.exe presumably you'll > need the environment to be set up as with octave.exe. So I made an > octave-gui.bat by copying your octave.bat and changing the executable. > Since it will munge your environment, I usually start it from the > windows explorer (file manager), not from the prompt. > > Let me know, > > Sébastien Loisel > -- David Bateman David dot Bateman at motorola dot com Motorola Labs - Paris +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob) 91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax) The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary