Laurent,

1 ­ I'm using OSX 10.5 server, 32-bit, with Xcode 3.1.4, Qt 4.7.4, Cmake
2.6.4, with everything else (boost, gnutls, glib, ffmpeg) from macports. To
build, I:

cd qutecom-2.2.1
mkdir builddir
cd builddir
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS=-D__STDC_CONSTANT_MACROS ..
make
make QuteCom-install

This configuration creates an executable from the first make that works ok.
After the make QuteCom-install, it crashes with thread errors.

2 -

ebug/QuteCom.app/Contents/MacOS/QuteCom
objc[54094]: Class QCocoaColorPanelDelegate is implemented in both
/Library/Frameworks/QtGui.framework/Versions/4/QtGui and
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui. Using implementation from
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui.
objc[54094]: Class QMacSoundDelegate is implemented in both
/Library/Frameworks/QtGui.framework/Versions/4/QtGui and
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui. Using implementation from
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui.
objc[54094]: Class QCocoaPanel is implemented in both
/Library/Frameworks/QtGui.framework/Versions/4/QtGui and
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui. Using implementation from
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui.
objc[54094]: Class QCocoaView is implemented in both
/Library/Frameworks/QtGui.framework/Versions/4/QtGui and
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui. Using implementation from
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui.
objc[54094]: Class QCocoaWindow is implemented in both
/Library/Frameworks/QtGui.framework/Versions/4/QtGui and
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui. Using implementation from
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui.
objc[54094]: Class QCocoaWindowDelegate is implemented in both
/Library/Frameworks/QtGui.framework/Versions/4/QtGui and
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui. Using implementation from
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui.
objc[54094]: Class QCocoaMenuLoader is implemented in both
/Library/Frameworks/QtGui.framework/Versions/4/QtGui and
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui. Using implementation from
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui.
objc[54094]: Class QNSApplication is implemented in both
/Library/Frameworks/QtGui.framework/Versions/4/QtGui and
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui. Using implementation from
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui.
objc[54094]: Class QCocoaApplicationDelegate is implemented in both
/Library/Frameworks/QtGui.framework/Versions/4/QtGui and
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui. Using implementation from
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui.
objc[54094]: Class QCocoaWindowCustomThemeFrame is implemented in both
/Library/Frameworks/QtGui.framework/Versions/4/QtGui and
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui. Using implementation from
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui.
objc[54094]: Class QCocoaToolBarDelegate is implemented in both
/Library/Frameworks/QtGui.framework/Versions/4/QtGui and
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui. Using implementation from
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui.
objc[54094]: Class QCocoaMenu is implemented in both
/Library/Frameworks/QtGui.framework/Versions/4/QtGui and
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui. Using implementation from
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui.
objc[54094]: Class QNSOpenSavePanelDelegate is implemented in both
/Library/Frameworks/QtGui.framework/Versions/4/QtGui and
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui. Using implementation from
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui.
objc[54094]: Class QCocoaFontPanelDelegate is implemented in both
/Library/Frameworks/QtGui.framework/Versions/4/QtGui and
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui. Using implementation from
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui.
objc[54094]: Class QNSWindowProxy is implemented in both
/Library/Frameworks/QtGui.framework/Versions/4/QtGui and
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui. Using implementation from
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui.
objc[54094]: Class QNSPanelProxy is implemented in both
/Library/Frameworks/QtGui.framework/Versions/4/QtGui and
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui. Using implementation from
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui.
objc[54094]: Class QCocoaPageLayoutDelegate is implemented in both
/Library/Frameworks/QtGui.framework/Versions/4/QtGui and
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui. Using implementation from
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui.
objc[54094]: Class QCocoaPrintPanelDelegate is implemented in both
/Library/Frameworks/QtGui.framework/Versions/4/QtGui and
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui. Using implementation from
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui.
objc[54094]: Class QNSMenu is implemented in both
/Library/Frameworks/QtGui.framework/Versions/4/QtGui and
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui. Using implementation from
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui.
objc[54094]: Class QNSStatusItem is implemented in both
/Library/Frameworks/QtGui.framework/Versions/4/QtGui and
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui. Using implementation from
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui.
objc[54094]: Class QNSImageView is implemented in both
/Library/Frameworks/QtGui.framework/Versions/4/QtGui and
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui. Using implementation from
/Users/admin/Desktop/qutecom-2.2.1/builddir/debug/QuteCom.app/Contents/MacOS
/../Frameworks/QtGui.framework/Versions/4/QtGui.
QObject::installEventFilter(): Cannot filter events for objects in a
different thread.
QCoreApplication::applicationDirPath: Please instantiate the QApplication
object first
QObject::startTimer: QTimer can only be used with threads started with
QThread
Bus error

Gdb only gives a little more information:
QObject::installEventFilter(): Cannot filter events for objects in a
different thread.
QCoreApplication::applicationDirPath: Please instantiate the QApplication
object first
QObject::startTimer: QTimer can only be used with threads started with
QThread

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000004
0x02aeee66 in QObject::thread ()

3 ­ I am becoming more familiar with tool and install_name_tool, but I feel
that if I can't even get unmodified 2.2.1 source to compile on a fairly
basic system, I must be doing something wrong somewhereŠ

Thanks!
Scott



From:  Laurent Tarrisse <[email protected]>
Date:  Wed, 14 Sep 2011 17:27:47 +0200
To:  Scott Miles <[email protected]>
Cc:  qutecom <[email protected]>
Subject:  Re: Proper OSX build environment for 2.2.1?

Hello Scott,

I use macports on leopard (32 bits)

1/ how do you create qutecom package ?

2/ 
open /Applications/Utilities/Terminal.app
launch qutecom with something like
/Application/QuteCom.app/Contents/MacOS/QuteCom
post output

3/ read doc about otool and install_name_tool

Laurent

Le 14 sept. 2011 à 17:18, Scott Miles a écrit :

> Can anyone provide the details of an OSX environment that can be used to build
> the 2.2.1 source and package it into a dmg that works from 10.5-10.7 on 32 and
> 64 bits? I.e. What version of OSX to use, what versions and source of
> libraries (Qt, cmake, etc from pkg, macports, fink, etc), and any special
> compile flags?
> 
> I'm new to compiling on OSX and have not had much luck getting a working
> build. I've been trying to use a 10.5 32bit server as a shortcut to avoid the
> 32/64 bit issues with various libraries, and am actually able to build QuteCom
> that works fine locally, but can't seem to create a package that doesn't crash
> and has the correct libraries included.
> 
> Rather than spending more time trying to figure out why my environment is so
> wonky, it'd be great if I could just start from scratch with the best possible
> setup.
> 
> Thanks!
> Scott
> 
> scott101010 at gmail
> _______________________________________________
> QuteCom-dev mailing list
> [email protected]
> http://lists.qutecom.org/mailman/listinfo/qutecom-dev



_______________________________________________
QuteCom-dev mailing list
[email protected]
http://lists.qutecom.org/mailman/listinfo/qutecom-dev

Reply via email to