Trolltech Home | Qtopia-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qtopia-interest Archive, January 2008
Compiling Qtopia on Mac OS X 10.5


Message 1 in thread

I am trying to build qtopia-core-4.4.0-snapshot-20080120 on my macbook 
with Leopard (Mac OS X 10.5). During configuration there are some errors:

c++ -c -o pbuilder_pbx.o -pipe -DQT_NO_QWS_TRANSFORMED 
-DQMAKE_OPENSOURCE_EDITION -I. -Igenerators -Igenerators/unix 
-Igenerators/win32 -Igenerators/mac 
-I/Users/cepera/development/qt/qtopia-core-opensource-src-4.4.0-snapshot-20080120/include 
-I/Users/cepera/development/qt/qtopia-core-opensource-src-4.4.0-snapshot-20080120/include/QtCore 
-I/Users/cepera/development/qt/qtopia-core-opensource-src-4.4.0-snapshot-20080120/include 
-I/Users/cepera/development/qt/qtopia-core-opensource-src-4.4.0-snapshot-20080120/include/QtCore 
-I/Users/cepera/development/qt/qtopia-core-opensource-src-4.4.0-snapshot-20080120/src/corelib/global 
-I/Users/cepera/development/qt/qtopia-core-opensource-src-4.4.0-snapshot-20080120/src/script 
-DQT_NO_PCRE -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT 
-DQT_NO_STL -DQT_BUILD_QMAKE -DQT_NO_COMPRESS 
-I/Users/cepera/development/qt/qtopia-core-opensource-src-4.4.0-snapshot-20080120/mkspecs/qws/macx-generic-g++ 
-DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT 
generators/mac/pbuilder_pbx.cpp
generators/mac/pbuilder_pbx.cpp:59:33: error: private/qcore_mac_p.h: No 
such file or directory
generators/mac/pbuilder_pbx.cpp: In member function ‘int 
ProjectBuilderMakefileGenerator::pbuilderVersion() const’:
generators/mac/pbuilder_pbx.cpp:1688: error: ‘QCFType’ was not declared 
in this scope
generators/mac/pbuilder_pbx.cpp:1688: error: expected primary-expression 
before ‘>’ token
generators/mac/pbuilder_pbx.cpp:1688: error: ‘cfurl’ was not declared in 
this scope
generators/mac/pbuilder_pbx.cpp:1691: error: expected primary-expression 
before ‘>’ token
generators/mac/pbuilder_pbx.cpp:1691: error: ‘bundle’ was not declared 
in this scope
generators/mac/pbuilder_pbx.cpp:1696: error: ‘QCFString’ has not been 
declared
generators/mac/pbuilder_pbx.cpp:1696: error: ‘toQString’ was not 
declared in this scope

I just copy missed files from Qt/mac:
include/QtCore/private/qcore_mac_p.h
src/corelib/kernel/qcore_mac_p.h
src/corelib/kernel/qcore_mac_p.cpp

During linking there are other errors. Some of unresolved external 
symbols I solve by appending "LFLAGS += -framework CoreFoundation" into 
qmake makefile, but other unresolved external symbols I could not solve:

Creating qmake. Please wait...
c++ -o 
"/Users/cepera/development/qt/qtopia-core-opensource-src-4.4.0-snapshot-20080120/bin/qmake" 
project.o property.o main.o makefile.o unixmake2.o unixmake.o 
mingw_make.o option.o winmakefile.o projectgenerator.o meta.o 
makefiledeps.o metamakefile.o xmloutput.o pbuilder_pbx.o borland_bmake.o 
msvc_dsp.o msvc_vcproj.o msvc_nmake.o msvc_objectmodel.o qstring.o 
qtextstream.o qiodevice.o qglobal.o qbytearray.o qbytearraymatcher.o 
qdatastream.o qbuffer.o qlistdata.o qfile.o qfsfileengine_unix.o 
qfsfileengine_iterator_unix.o qfsfileengine.o qfsfileengine_iterator.o 
qregexp.o qvector.o qbitarray.o qdir.o qdiriterator.o quuid.o qhash.o 
qfileinfo.o qdatetime.o qstringlist.o qabstractfileengine.o 
qtemporaryfile.o qmap.o qmetatype.o qsettings.o qlibraryinfo.o 
qvariant.o qvsnprintf.o qlocale.o qlinkedlist.o qurl.o qnumeric.o 
qcryptographichash.o qscriptasm.o qscriptast.o qscriptastvisitor.o 
qscriptcompiler.o qscriptecmaarray.o qscriptecmaboolean.o 
qscriptecmacore.o qscriptecmadate.o qscriptecmafunction.o 
qscriptecmaglobal.o qscriptecmamath.o qscriptecmanumber.o 
qscriptecmaobject.o qscriptecmaregexp.o qscriptecmastring.o 
qscriptecmaerror.o qscriptcontext_p.o qscriptengine.o qscriptengine_p.o 
qscriptextenumeration.o qscriptextvariant.o qscriptcontext.o 
qscriptfunction.o qscriptgrammar.o qscriptlexer.o qscriptclassdata.o 
qscriptparser.o qscriptprettypretty.o qscriptsyntaxchecker.o 
qscriptvalue.o qscriptvalueimpl.o qscriptvalueiterator.o 
qscriptvalueiteratorimpl.o qscriptclass.o qscriptclasspropertyiterator.o 
qscriptengineagent.o qscriptcontextinfo.o qscriptstring.o   -framework 
CoreFoundation
Undefined symbols:
   "_FSCopyAliasInfo", referenced from:
       QFSFileEngine::fileName(QAbstractFileEngine::FileName) const   in 
qfsfileengine_unix.o
   "_FSPathMakeRefWithOptions", referenced from:
       _q_isMacHidden(QString const&)in qfsfileengine_unix.o
   "_LSFindApplicationForInfo", referenced from:
       ProjectBuilderMakefileGenerator::pbuilderVersion() const  in 
pbuilder_pbx.o
   "QConfFileSettingsPrivate::writePlistFile(QString const&, 
QMap<QSettingsKey, QVariant> const&) const", referenced from:
       QConfFileSettingsPrivate::syncConfFile(int)    in qsettings.o
   "_FSIsAliasFile", referenced from:
       QFSFileEngine::fileFlags(QFlags<QAbstractFileEngine::FileFlag>) 
const    in qfsfileengine_unix.o
   "QCFString::toQString(__CFString const*)", referenced from:
       ProjectBuilderMakefileGenerator::pbuilderVersion() const  in 
pbuilder_pbx.o
       QFSFileEngine::fileName(QAbstractFileEngine::FileName) const   in 
qfsfileengine_unix.o
       QFSFileEngine::fileName(QAbstractFileEngine::FileName) const   in 
qfsfileengine_unix.o
       getCFLocaleValue(__CFString const*) in qlocale.o
       macMeasurementSystem()     in qlocale.o
       getMacLocaleName()     in qlocale.o
       getMacTimeFormat(long) in qlocale.o
       getMacDateFormat(long) in qlocale.o
       macDayName(int, bool)in qlocale.o
       macMonthName(int, bool)in qlocale.o
   "_FSResolveAliasFile", referenced from:
       QFSFileEngine::fileName(QAbstractFileEngine::FileName) const   in 
qfsfileengine_unix.o
   "_Gestalt", referenced from:
       macVersion()     in qglobal.o
   "_FSMakeFSRefUnicode", referenced from:
       _q_isMacHidden(QString const&)in qfsfileengine_unix.o
   "QCFString::operator QString() const", referenced from:
       qt_mac_from_pascal_string(unsigned char const*)in qglobal.o
       macDateToString(QDate const&, bool)in qlocale.o
       macTimeToString(QTime const&, bool)in qlocale.o
   "_FSNewAlias", referenced from:
       QFSFileEngine::fileName(QAbstractFileEngine::FileName) const   in 
qfsfileengine_unix.o
   "QCFString::operator __CFString const*() const", referenced from:
       qt_mac_to_pascal_string(QString, unsigned char*, unsigned long, 
int)in qglobal.o
       QFSFileEngine::fileName(QAbstractFileEngine::FileName) const   in 
qfsfileengine_unix.o
       QFSFileEngine::fileFlags(QFlags<QAbstractFileEngine::FileFlag>) 
const    in qfsfileengine_unix.o
   "QSettingsPrivate::create(QSettings::Format, QSettings::Scope, 
QString const&, QString const&)", referenced from:
       QSettings::QSettings(QString const&, QString const&)in qsettings.o
       QSettings::QSettings(QSettings::Scope, QString const&, QString 
const&)in qsettings.o
       QSettings::QSettings(QSettings::Format, QSettings::Scope, QString 
const&, QString const&)in qsettings.o
   "_FSPathMakeRef", referenced from:
       qt_mac_create_fsref(QString const&, FSRef*)in qglobal.o
       _q_isMacHidden(QString const&)in qfsfileengine_unix.o
       QFSFileEngine::fileName(QAbstractFileEngine::FileName) const   in 
qfsfileengine_unix.o
       QFSFileEngine::fileFlags(QFlags<QAbstractFileEngine::FileFlag>) 
const    in qfsfileengine_unix.o
   "QConfFileSettingsPrivate::readPlistFile(QString const&, 
QMap<QSettingsKey, QVariant>*) const", referenced from:
       QConfFileSettingsPrivate::syncConfFile(int)    in qsettings.o
   "_FSGetCatalogInfo", referenced from:
       qt_mac_create_fsspec(QString const&, FSSpec*)in qglobal.o
       _q_isMacHidden(QString const&)in qfsfileengine_unix.o
ld: symbol(s) not found
collect2: ld returned 1 exit status


How can I solve this errors?

--
 [ signature omitted ] 

Message 2 in thread

On Thursday 24 January 2008 18:48, Sergey Pozdeev wrote:
> I am trying to build qtopia-core-4.4.0-snapshot-20080120 on my macbook
> with Leopard (Mac OS X 10.5). During configuration there are some errors:

Neat.  But that isn't really supported.

As for your errors below.  My recommendation is to start with the configure 
script.  Currently a lot of configuration information is based of the host 
machine, even if it isn't relavant for Qtopia core.  Building Qtopia core on 
a mac is going to result on a split configuration, where half of it is set up 
for qtopia core, and the other half is for OS-X.  The errors below I feel are 
examples of this issue.  Once you sorted out the configuration, you will no 
longer be getting parts of the build failing that are not actually needed for 
Qtopia Core anyway.

If you are doing this for some reason other than just "climbing the mountain", 
I'd suggest using a virtual machine with Linux instead.  I'm sure its 
possible to get it native on OS-X, but I'm also sure it isn't worth the 
investment or resources (e.g. time).  And I speak this as someone who would 
love to use mac as my work machine over the Linux one I've got.

Good luck all the same though.

--
 [ signature omitted ] 

Message 3 in thread

Ian Walters wrote:
> On Thursday 24 January 2008 18:48, Sergey Pozdeev wrote:
>> I am trying to build qtopia-core-4.4.0-snapshot-20080120 on my macbook
>> with Leopard (Mac OS X 10.5). During configuration there are some errors:
> 
> Neat.  But that isn't really supported.

I know, but old version (I think 1.7) was supported on mac. Why 
Trolltech doesn't support Qtopia development on mac now?

> As for your errors below.  My recommendation is to start with the configure 
> script.  Currently a lot of configuration information is based of the host 
> machine, even if it isn't relavant for Qtopia core.  Building Qtopia core on 
> a mac is going to result on a split configuration, where half of it is set up 
> for qtopia core, and the other half is for OS-X.  The errors below I feel are 
> examples of this issue.  Once you sorted out the configuration, you will no 
> longer be getting parts of the build failing that are not actually needed for 
> Qtopia Core anyway.

How do you think how mach time it may take?

> If you are doing this for some reason other than just "climbing the mountain", 
> I'd suggest using a virtual machine with Linux instead.  I'm sure its 
> possible to get it native on OS-X, but I'm also sure it isn't worth the 
> investment or resources (e.g. time).  And I speak this as someone who would 
> love to use mac as my work machine over the Linux one I've got.

I know about vm, but native way is better.

> Good luck all the same though.


Thanx a lot for help

--
 [ signature omitted ] 

Message 4 in thread

On 25/01/2008, at 6:30 PM, Sergey Pozdeev wrote:

> Ian Walters wrote:
>> On Thursday 24 January 2008 18:48, Sergey Pozdeev wrote:
>>> I am trying to build qtopia-core-4.4.0-snapshot-20080120 on my  
>>> macbook
>>> with Leopard (Mac OS X 10.5). During configuration there are some  
>>> errors:
>> Neat.  But that isn't really supported.
>
> I know, but old version (I think 1.7) was supported on mac. Why  
> Trolltech doesn't support Qtopia development on mac now?

Speaking as someone who has personally been involved in Qtopia since  
1.5, its never been supported on the mac, not natively.  As for why,  
it is a matter of allocation of resources.  We only have so many  
developers, and hence we have to prioritize.

>> As for your errors below.  My recommendation is to start with the  
>> configure script.  Currently a lot of configuration information is  
>> based of the host machine, even if it isn't relavant for Qtopia  
>> core.  Building Qtopia core on a mac is going to result on a split  
>> configuration, where half of it is set up for qtopia core, and the  
>> other half is for OS-X.  The errors below I feel are examples of  
>> this issue.  Once you sorted out the configuration, you will no  
>> longer be getting parts of the build failing that are not actually  
>> needed for Qtopia Core anyway.
>
> How do you think how mach time it may take?

Its not something that has risen high enough in priorities to get an  
estimate.  Its one of those things you pretty much have to do (or at  
least make a significant start on) to get an estimate that resembles  
reality.

--
 [ signature omitted ]