QtOctave 0.9.1 Windows Build


Ha, I made it.

Took me just 5-6 hours, but I managed to build qtoctave-0.9.1-win32 on my windows XP machine.

I try to document my changes, for those who don’t 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 libQtUiTools.a before 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. #1 von selairi am 05.04.2010 - 18:13:05

    Thanks for your work.

  2. #2 von Ch am 06.11.2010 - 18:37:38

    Can you upload the complete modified folder. I tried to follow but could not figure out how to build it. thank you

(wird nicht veröffentlicht)