octave-maintainers
[Top][All Lists]
Advanced

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

Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support


From: Ben Abbott
Subject: Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support
Date: Mon, 10 Oct 2011 10:54:50 -0400

On Oct 10, 2011, at 10:37 AM, Michael Goffioul wrote:

> On Mon, Oct 10, 2011 at 1:21 PM, Ben Abbott <address@hidden> wrote:
>> I had to run "make" twice. The first time, I got an error complaining that 
>> the directory QtHandles/octave-qt.app/Contents/MacOS/octave-q does not 
>> exist. I didn't create this directory structure, and it still is not there, 
>> but when I ran make the second time, I got no error.  So the part of 
>> tools/Makefile below doesn't work for me.
>> 
>>        @$(CHK_DIR_EXISTS) octave-qt.app/Contents/MacOS/ || $(MKDIR) 
>> octave-qt.app/Contents/MacOS/
> 
> Note sure why this doesn't work. This is generated by qmake, so I
> can't do much about it...

I just noticed this being run in QtHandles/tool, and  not in QtHandles.  Can 
the following be included?

       @$(CHK_DIR_EXISTS) ../octave-qt.app/Contents/MacOS/ || $(MKDIR) 
../octave-qt.app/Contents/MacOS/

That fixes the error for me.

> 
>> $ qmake
>> $ make
>> cd tool/ && make -f Makefile
>> /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/include/freetype2 
>> -pipe -O2 -m64 -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.7 
>> -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED 
>> -I/opt/local/share/qt4/mkspecs/macx-g++ -I. -I. -I/opt/local/include/QtGui 
>> -I/opt/local/include/QtCore -I/opt/local/include -o octave-qt.o octave-qt.cpp
>> /Developer/usr/bin/llvm-g++-4.2 -headerpad_max_install_names -arch x86_64 
>> -Xarch_x86_64 -mmacosx-version-min=10.7 -o 
>> octave-qt.app/Contents/MacOS/octave-qt octave-qt.o    
>> -L/opt/local/lib/octave/3.5.0+ -loctinterp -loctave -lcruft -L/opt/local/lib 
>> -lQtGui -lQtCore
>> cp -f octave-qt.app/Contents/MacOS/octave-qt 
>> ../octave-qt.app/Contents/MacOS/octave-qt
>> cp: ../octave-qt.app/Contents/MacOS/octave-qt: No such file or directory
> 
> This is a simple post-build step that I used to copy all targets into
> the top-level directory, so you can directly run everything from there
> without playing with PATH and octave path. This is of course not
> mandatory. What do you have in octave-qt.app/Contents/MacOS/ ?

Nothing.

$ ls tool/octave-qt.app/Contents/MacOS/
octave-qt

Should I put something there?

>> make[1]: *** [octave-qt.app/Contents/MacOS/octave-qt] Error 1
>> make: *** [sub-tool-make_default] Error 2
>> Bens-MacBook-Pro:QtHandles bpabbott$ make
>> cd tool/ && make -f Makefile
>> make[1]: Nothing to be done for `first'.
>> cd src/ && make -f Makefile
>> /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/include/freetype2 
>> -pipe -O2 -m64 -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.7 
>> -Wall -W -fPIC -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB 
>> -DQT_SHARED -I/opt/local/share/qt4/mkspecs/macx-g++ -I. -I. 
>> -I/opt/local/include/QtOpenGL -I/opt/local/include/QtGui 
>> -I/opt/local/include/QtCore -I/opt/local/include 
>> -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers 
>> -I/System/Library/Frameworks/AGL.framework/Headers -o __init_qt__.o 
>> __init_qt__.cpp
>> In file included from __init_qt__.cpp:30:
>> Backend.h:58: error: conflicting return type specified for ‘virtual bool 
>> QtHandles::Backend::initialize(const graphics_object&)’
>> /opt/local/include/octave-3.5.0+/octave/../octave/graphics.h:2033: error:   
>> overriding ‘virtual void base_graphics_toolkit::initialize(const 
>> graphics_object&)’
> 
> It seems you don't use the latest dev sources. You need a change I
> submitted last week:
> http://hg.savannah.gnu.org/hgweb/octave/rev/834f904a3dcb
> 
> Michael.

My tip is ...

$ hg tip
changeset:   13308:9a83ec29aec9
tag:         tip
user:        Ben Abbott  <address@hidden>
date:        Mon Oct 10 08:22:25 2011 -0400
summary:     Fix regression introduced by e9f6a6edec42.

Perhaps the problem is that I'm clueless? ;-)

How can I have this link to my development build as opposed to the installed 
version of Octave?

Ben





reply via email to

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