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: bpabbott
Subject: Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support
Date: Tue, 11 Oct 2011 14:17:36 +0000 (GMT)

On Oct 11, 2011, at 03:56 AM, Michael Goffioul <address@hidden> wrote:

On Tue, Oct 11, 2011 at 1:45 AM, Ben Abbott <address@hidden> wrote:
> On Oct 10, 2011, at 1:15 PM, Michael Goffioul wrote:
>
>> On Mon, Oct 10, 2011 at 4:58 PM, bpabbott <address@hidden> wrote:
>>>
>>> Can this be done from a mercurial development directory? What about the
>>> include path?
>>
>> I don't think so. You should provide a specific --prefix arguments
>> when configuring
>> octave from dev sources, such that you can install it in parallel with another
>> octave install. Then you can do the same as Martin.
>>
>> Michael.
>
> Ok. I installed an octave built from today's sources. Now I'm able to build octave-qt (without the debug libs).
>
> Unfortunately, it crashes when I try to run it.

If possible, can you generate a backtrace. Of course, in your case,
I guess it's gonna be tricky as you didn't compile with debug enabled.

For other reasons, I also have to compile QtHandles in release mode,
that is, I need to link it against release versions of Qt libs. However,
I still want to compile QtHandles itself with debug enabled and that's
the reason of all the win32-specific tricky things in common.pri
(use debug flags in release qmake variables)

If you manage to do something similar for mac, you might be able
to generate a useful backtrace.

Michael.

I tried replaced the debug libs you've linked to with the Qt debug lib I have (libQtUiTools_debug.dylib), but I get many undefined symbols ...


$ make

/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 -lQtUiTools_debug

Undefined symbols for architecture x86_64:

"QApplication::QApplication(int&, char**, int)", referenced from:

   _main in octave-qt.o

"QThread::QThread(QObject*)", referenced from:

   _main in octave-qt.o

"QApplication::setQuitOnLastWindowClosed(bool)", referenced from:

   _main in octave-qt.o

"QThread::start(QThread::Priority)", referenced from:

   _main in octave-qt.o

"QApplication::exec()", referenced from:

   _main in octave-qt.o

"QThread::~QThread()", referenced from:

   _main in octave-qt.o

   OctaveThread::~OctaveThread()in octave-qt.o

   OctaveThread::~OctaveThread()in octave-qt.o

"QApplication::~QApplication()", referenced from:

   _main in octave-qt.o

"QCoreApplication::exit(int)", referenced from:

   OctaveThread::run()      in octave-qt.o

"QThread::metaObject() const", referenced from:

   vtable for OctaveThreadin octave-qt.o

"QThread::qt_metacast(char const*)", referenced from:

   vtable for OctaveThreadin octave-qt.o

"QThread::qt_metacall(QMetaObject::Call, int, void**)", referenced from:

   vtable for OctaveThreadin octave-qto

"QObject::event(QEvent*)", referenced from:

   vtable for OctaveThreadin octave-qt.o

"QObject::eventFilter(QObject*, QEvent*)", referenced from:

   vtable for OctaveThreadin octave-qt.o

"QObject::timerEvent(QTimerEvent*)", referenced from:

   vtable for OctaveThreadin octave-qt.o

"QObject::childEvent(QChildEvent*)", referenced from:

   vtable for OctaveThreadin octave-qt.o

"QObject::customEvent(QEvent*)", referenced from:

   vtable for OctaveThreadin octave-qt.o

"QObject::connectNotify(char const*)", referenced from:

   vtable for OctaveThreadin octave-qt.o

"QObject::disconnectNotify(char const*)", referenced from:

   vtable for OctaveThreadin octave-qt.o

"typeinfo for QThread", referenced from:

   typeinfo for OctaveThreadin octave-qt.o

ld: symbol(s) not found for architecture x86_64

collect2: ld returned 1 exit status

make: *** [octave-qt.app/Contents/MacOS/octave-qt] Error 1


Perhaps there are other libs I need to link to? What I have for Qt libs is ...


$ ls -1 /opt/local/lib/libQt*[a-z].dylib

/opt/local/lib/libQt3Support.dylib

/opt/local/lib/libQtCLucene.dylib

/opt/local/lib/libQtCore.dylib

/opt/local/lib/libQtDBus.dylib

/opt/local/lib/libQtDeclarative.dylib

/opt/local/lib/libQtDesigner.dylib

/opt/local/lib/libQtDesignerComponents.dylib

/opt/local/lib/libQtGui.dylib

/opt/local/lib/libQtHelp.dylib

/opt/local/lib/libQtMultimedia.dylib

/opt/local/lib/libQtNetwork.dylib

/opt/local/lib/libQtScript.dylib

/opt/local/lib/libQtScriptTools.dylib

/opt/local/lib/libQtSql.dylib

/opt/local/lib/libQtSvg.dylib

/opt/local/lib/libQtTest.dylib

/opt/local/lib/libQtWebKit.dylib

/opt/local/lib/libQtXml.dylib

/opt/local/lib/libQtXmlPatterns.dylib


$ ls -1 /opt/local/lib/libQt*[a-z].a

/opt/local/lib/libQtUiTools.a

/opt/local/lib/libQtUiTools_debug.a


... or maybe there are some developers libs that I don't have installed. I'll experiment with other package options from MacPorts and see what I can find.


Ben


reply via email to

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