Ha, I made it.
Took me just 5-6 hours, but I managed to build qtoctave-0.9.1-win32 machine on my windows XP.
I try to document my changes, for those who do not want to download the binaries.
In qtoctave_pkg \ src \ main.cpp uncomment the following lines (60-68):
if(getuid() == 0)
{
QMessageBox msgBox(QMessageBox::Warning, msgBox.tr("Superuser privileges"),
msgBox.tr("It is not recommended to run this program as root."
"Do it only if you know what are you doing."),
QMessageBox::Ok | QMessageBox::Close);
if(msgBox.exec() == QMessageBox::Close)
return 0;
}
create a build subdirectory like octave-0.9.1 \ qtbuild
Run the following command in a "Qt Command Prompt" in this directory:
X:\the\path\qtoctave-0.9.1\qtbuild> cmake -G"MinGW Makefiles" "-DCMAKE_CXX_FLAGS_RELE
ASE:STRING=-O2 -s -march=native -mtune=native -Wall -pipe" "-DCMAKE_INSTALL_PREF
IX:PATH=X:\the\path\qtoctaveinstall" "-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON" "-DCMAKE_BUILD_
TYPE=Release" ..
Edit .... \ qtjs \ src \ CMakeFiles \ qtjs.dir \ link.txt in your subdirectory that it looks like that (The change is to place before libQtUiTools.a libQtCore4.a):
X:\Qt\2010.02.1\mingw\bin\g++.exe -O2 -s -march=native -mtune=native -Wall -pipe CMakeFiles\qtjs.dir\main.obj -o qtjs.exe -Wl,--out-implib,libqtjs.dll.a -Wl,--major-image-version,0,--minor-image-version,0 X:\Qt\2010.02.1\qt\lib\libQtUiTools.a X:\Qt\2010.02.1\qt\lib\libQtCore4.a X:\Qt\2010.02.1\qt\lib\libQtGui4.a X:\Qt\2010.02.1\qt\lib\libQtXml4.a X:\Qt\2010.02.1\qt\lib\libQtScript4.a -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32
The file X: \ the \ path \ qtoctave-0.9.1 \ qtoctave \ src \ configure.h should be edited to use relative paths:
#ifndef __CONFIGURE_H__
#define __CONFIGURE_H__
#define CONFIG_PATH "..\\share\\qtoctave"
#define HELP_PATH "..\\share\\doc\\octave-html\\octave_doc\\index.html"
#define ICON_PATH "..\\share\\qtoctave\\images"
#define LANG_PATH "..\\share\\qtoctave\\lang"
#define QTOCTAVE_HELP_PATH "..\\share\\doc\\qtoctave\\qtoctave_doc\\index.html"
# Define PKG_CMD_PATH ".. \ \ share \ \ qtoctave \ \ pkg commands.list"
# Endif
Now it should be possible to run mingw32-make and mingw32-make install

# 1 of selairi on 05/04/2010 - 18:13:05
Thanks for your work.
# 2 of Ch on 06/11/2010 - 18:37:38
Can you upload the complete folder modified. I tried to follow but could not figure out how to build it. thank you