octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: octave mingw problem


From: Ben Abbott
Subject: Re: octave mingw problem
Date: Tue, 22 Nov 2011 18:44:58 -0500

On Nov 22, 2011, at 3:35 PM, Kai Habel wrote:

> On 21.11.2011 16:29, Ben Abbott wrote:
>> On Nov 21, 2011, at 9:08 AM, Michael Goffioul wrote:
>> 
>>> On Mon, Nov 21, 2011 at 1:52 PM, Ben Abbott<address@hidden>  wrote:
>>>> I'm happy to try on MacOS. What is the procedure for building the GUI?
>>> Assuming octave bin directory is in your PATH:
>>> cd gui
>>> qmake
>>> make
>>> ./start.sh
>>> 
>>> Now, depending on how Qt is packaged, you might need to use qmake-qt4 
>>> instead.
>>> 
>>> Michael.
>> 
>> I'm getting an error.
>> 
>> $ qmake
>> /Users/bpabbott/Development/mercurial/gui/gui/octave-gui.pro:102: Parse 
>> Error ('src/terminal/LinuxTerminalEmulation.cpp 
>> src/terminal/TerminalEmulation.cpp }')
>> Error processing project file: 
>> /Users/bpabbott/Development/mercurial/gui/gui/octave-gui.pro
>> 
>> Ben
> I see the same error on linux. I had to remove/add some backslashes. See 
> below:
> 
> To compile the gui you also need qscintilla2. Maybe there exist a package for 
> MacOS. For MinGW I have downloaded it from here:
> 
> http://www.riverbankcomputing.co.uk/software/qscintilla/download
> 
> Kai
> 
> diff -r 36f90899e058 -r d15274f9e542 gui/octave-gui.pro
> --- a/gui/octave-gui.pro        Mon Nov 21 09:38:45 2011 +0000
> +++ b/gui/octave-gui.pro        Tue Nov 22 21:30:34 2011 +0100
> @@ -96,9 +96,9 @@
>     src/TerminalHighlighter.cpp \
>     src/TerminalView.cpp \
>     src/terminal/KPty.cpp \
> -    src/terminal/KPtyDevice.cpp
> +    src/terminal/KPtyDevice.cpp \
>     src/terminal/LinuxTerminalEmulation.cpp \
> -    src/terminal/TerminalEmulation.cpp \
> +    src/terminal/TerminalEmulation.cpp
> }
> 
> win32 {
> @@ -135,7 +135,7 @@
>     src/TerminalHighlighter.h \
>     src/TerminalView.h \
>     src/terminal/KPtyDevice.h \
> -    src/terminal/KPty.h
> +    src/terminal/KPty.h \
>     src/terminal/LinuxTerminalEmulation.h \
>     src/terminal/TerminalEmulation.h \
> }

Ok. That fixed the problem with qmake. Now with make I get ....

$ make
/opt/local/bin/uic src/SettingsDialog.ui -o ui-files/ui_SettingsDialog.h
/opt/local/bin/uic src/WelcomeWizard.ui -o ui-files/ui_WelcomeWizard.h
/Developer/usr/bin/llvm-g++-4.2 -c -pipe 
-I/opt/local/include/octave-3.5.0+/octave/.. 
-I/opt/local/include/octave-3.5.0+/octave -I/opt/local-native/include -g 
-gdwarf-2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.7 -Wall -W 
-DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED 
-I/opt/local/share/qt4/mkspecs/macx-g++ -I. -Imoc-files -Isrc -Isrc/terminal 
-Isrc/qirc -Isrc/backend -I-I/opt/local/include/octave-3.5.0+/octave/.. 
-I-I/opt/local/include/octave-3.5.0+/octave -I-I/opt/local/include 
-I/opt/local/include/QtWebKit -I/opt/local/include/QtGui 
-I/opt/local/include/QtNetwork -I/opt/local/include/QtCore -I/opt/local/include 
-Iui-files -o object-files/lexeroctavegui.o src/lexer/lexeroctavegui.cpp
In file included from src/lexer/lexeroctavegui.cpp:18:
src/lexer/lexeroctavegui.h:24:29: error: Qsci/qsciglobal.h: No such file or 
directory
src/lexer/lexeroctavegui.h:25:28: error: Qsci/qscilexer.h: No such file or 
directory
In file included from src/lexer/lexeroctavegui.cpp:18:
src/lexer/lexeroctavegui.h:29: error: expected class-name before ‘{’ token
src/lexer/lexeroctavegui.cpp: In constructor 
‘LexerOctaveGui::LexerOctaveGui(QObject*)’:
src/lexer/lexeroctavegui.cpp:26: error: class ‘LexerOctaveGui’ does not have 
any field named ‘QsciLexer’
src/lexer/lexeroctavegui.cpp: In member function ‘QColor 
LexerOctaveGui::defaultColor(int) const’:
src/lexer/lexeroctavegui.cpp:68: error: ‘QsciLexer’ has not been declared
src/lexer/lexeroctavegui.cpp: In member function ‘QFont 
LexerOctaveGui::defaultFont(int) const’:
src/lexer/lexeroctavegui.cpp:82: error: ‘QsciLexer’ has not been declared
src/lexer/lexeroctavegui.cpp:86: error: ‘QsciLexer’ has not been declared
src/lexer/lexeroctavegui.cpp:89: error: ‘QsciLexer’ has not been declared
src/lexer/lexeroctavegui.cpp:92: error: ‘QsciLexer’ has not been declared
make: *** [object-files/lexeroctavegui.o] Error 1

So I istalled qscintilla via macports ...

        $ sudo port install qscintilla

"make" not runs without error, but ends with a warning ...

        ld: warning: directory not found for option '-L/opt/local-native/lib'

Running produces a lot of warnings and then a crash.

$ ./start.sh
objc[37537]: Class QCocoaColorPanelDelegate is implemented in both 
/opt/local/lib/libQtGui.4.dylib and /opt/local/lib/libQtGui_debug.4.dylib. One 
of the two will be used. Which one is undefined.
objc[37537]: Class QMacSoundDelegate is implemented in both 
/opt/local/lib/libQtGui.4.dylib and /opt/local/lib/libQtGui_debug.4.dylib. One 
of the two will be used. Which one is undefined.
objc[37537]: Class QCocoaPanel is implemented in both 
/opt/local/lib/libQtGui.4.dylib and /opt/local/lib/libQtGui_debug.4.dylib. One 
of the two will be used. Which one is undefined.
objc[37537]: Class QCocoaView is implemented in both 
/opt/local/lib/libQtGui.4.dylib and /opt/local/lib/libQtGui_debug.4.dylib. One 
of the two will be used. Which one is undefined.
objc[37537]: Class QCocoaWindow is implemented in both 
/opt/local/lib/libQtGui.4.dylib and /opt/local/lib/libQtGui_debug.4.dylib. One 
of the two will be used. Which one is undefined.
objc[37537]: Class QCocoaWindowDelegate is implemented in both 
/opt/local/lib/libQtGui.4.dylib and /opt/local/lib/libQtGui_debug.4.dylib. One 
of the two will be used. Which one is undefined.
objc[37537]: Class QCocoaMenuLoader is implemented in both 
/opt/local/lib/libQtGui.4.dylib and /opt/local/lib/libQtGui_debug.4.dylib. One 
of the two will be used. Which one is undefined.
objc[37537]: Class QNSApplication is implemented in both 
/opt/local/lib/libQtGui.4.dylib and /opt/local/lib/libQtGui_debug.4.dylib. One 
of the two will be used. Which one is undefined.
objc[37537]: Class QCocoaApplicationDelegate is implemented in both 
/opt/local/lib/libQtGui.4.dylib and /opt/local/lib/libQtGui_debug.4.dylib. One 
of the two will be used. Which one is undefined.
objc[37537]: Class QCocoaWindowCustomThemeFrame is implemented in both 
/opt/local/lib/libQtGui.4.dylib and /opt/local/lib/libQtGui_debug.4.dylib. One 
of the two will be used. Which one is undefined.
objc[37537]: Class QCocoaToolBarDelegate is implemented in both 
/opt/local/lib/libQtGui.4.dylib and /opt/local/lib/libQtGui_debug.4.dylib. One 
of the two will be used. Which one is undefined.
objc[37537]: Class QCocoaMenu is implemented in both 
/opt/local/lib/libQtGui.4.dylib and /opt/local/lib/libQtGui_debug.4.dylib. One 
of the two will be used. Which one is undefined.
objc[37537]: Class QNSOpenSavePanelDelegate is implemented in both 
/opt/local/lib/libQtGui.4.dylib and /opt/local/lib/libQtGui_debug.4.dylib. One 
of the two will be used. Which one is undefined.
objc[37537]: Class QCocoaFontPanelDelegate is implemented in both 
/opt/local/lib/libQtGui.4.dylib and /opt/local/lib/libQtGui_debug.4.dylib. One 
of the two will be used. Which one is undefined.
objc[37537]: Class QNSWindowProxy is implemented in both 
/opt/local/lib/libQtGui.4.dylib and /opt/local/lib/libQtGui_debug.4.dylib. One 
of the two will be used. Which one is undefined.
objc[37537]: Class QNSPanelProxy is implemented in both 
/opt/local/lib/libQtGui.4.dylib and /opt/local/lib/libQtGui_debug.4.dylib. One 
of the two will be used. Which one is undefined.
objc[37537]: Class QCocoaPageLayoutDelegate is implemented in both 
/opt/local/lib/libQtGui.4.dylib and /opt/local/lib/libQtGui_debug.4.dylib. One 
of the two will be used. Which one is undefined.
objc[37537]: Class QCocoaPrintPanelDelegate is implemented in both 
/opt/local/lib/libQtGui.4.dylib and /opt/local/lib/libQtGui_debug.4.dylib. One 
of the two will be used. Which one is undefined.
objc[37537]: Class QNSMenu is implemented in both 
/opt/local/lib/libQtGui.4.dylib and /opt/local/lib/libQtGui_debug.4.dylib. One 
of the two will be used. Which one is undefined.
objc[37537]: Class QNSStatusItem is implemented in both 
/opt/local/lib/libQtGui.4.dylib and /opt/local/lib/libQtGui_debug.4.dylib. One 
of the two will be used. Which one is undefined.
objc[37537]: Class QNSImageView is implemented in both 
/opt/local/lib/libQtGui.4.dylib and /opt/local/lib/libQtGui_debug.4.dylib. One 
of the two will be used. Which one is undefined.
./start.sh: line 20: 37537 Abort trap: 6           ./octave-gui

Ben

reply via email to

[Prev in Thread] Current Thread [Next in Thread]