Hi again Filip,

have you set the correct sdk in generator.pro, juic.pro, and qtjambi_base.pri?

-    QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.5.sdk
+    QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.7.sdk

Tiziano

2012/10/23 Filip Jonckers <filip.jonck...@ivao.aero>:
> Darryl, Tiziano,
>
> Together with my colleague we checked the c++ code and most probably
> found the issue / solution ...
>
> The newer OS X build environment requires the explicit usage of the
> std::string.c_str() method
>
> for example in generator/parser/binder.cpp:
>
> void binder_default_message_handler(const std::string &str) {
>      std::cerr << str;
> }
>
> should be replaced by:
>
> void binder_default_message_handler(const std::string &str) {
>      std::cerr << str.c_str();
> }
>
>
> to avoid replacing maybe a few hundreds of these a workaround is available:
>
> in /usr/local/Trolltech/Qt-4.8.3/mkspecs/common/g++-macx.conf
>
> change:
>
> QMAKE_CFLAGS_X86_64 += -Xarch_x86_64 -mmacosx-version-min=10.5
>
> to:
>
> QMAKE_CFLAGS_X86_64 += -Xarch_x86_64 -mmacosx-version-min=10.7
>
>
> The build appears to proceed ...
>
>
> and we have a full build ;-)
>
> now I will do the same from scratch just to make sure .. will post my
> findings later on.
>
>
> Filip
>
>
>
> On 23/10/12 01:17, Darryl Miles wrote:
>>
>> # What version of gcc are they shipping with?
>> gcc -v
>>
>>
>> 10.8 SDK (I don't think this is a teir 1 platform for Qt itself, i.e.
>> building with older SDKs and targetting older versions of MacOSX would
>> support a larger range of MacOSX devices)
>>
>>
>> Was Qt built -no-stl ?  This will have been in the configure log (when
>> builing Qt) maybe set in QT_NO_STL define.  There is a patch
>> concerning this.
>>
>>
>>
>> Take a look at these two patches currently on their way to master
>> (most likely fix first, least likely fix second):
>>
>>
>> http://gerrit.smar.fi/#/c/77/
>> I2be3559a78577766a67af9f5a4e86d1d34d2cbb5
>> generator: missing #include <string> when using std::string in decl
>> http://git.smar.fi/?p=qtjambi-community.git;a=commit;h=2be3559a78577766a67af9f5a4e86d1d34d2cbb5
>>
>>
>>
>>
>> http://gerrit.smar.fi/#/c/75/
>> Id9e3a0d1130d3ec318e1c0d51472a76946972455
>> Support QT_NO_STL builds of generator (the QtJambi project doesn't
>> need it itself)
>> http://git.smar.fi/?p=qtjambi-community.git;a=commit;h=d9e3a0d1130d3ec318e1c0d51472a76946972455
>>
>>
>>
>>
>> Darryl
>>
>>
>> Filip Jonckers wrote:
>>> But getting the same build error as before :-/
>>> Most probably a stupid detail I'm missing - would appreciate a helping
>>> hand ..
>>>
>>> [make] g++ -c -pipe -O2 -arch x86_64 -Xarch_x86_64
>>> -mmacosx-version-min=10.5 -Wall -W -isysroot
>>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
>>>
>>> -DRXX_ALLOCATOR_INIT_0 -DQT_NO_DEBUG -DQT_XML_LIB -DQT_CORE_LIB
>>> -DQT_SHARED -I/usr/local/Trolltech/Qt-4.8.3/mkspecs/macx-g++
>>> -I../../generator -I/usr/local/Trolltech/Qt-4.8.3/include/QtCore
>>> -I/usr/local/Trolltech/Qt-4.8.3/include/QtXml
>>> -I/usr/local/Trolltech/Qt-4.8.3/include -I../../generator
>>> -I../../generator -I../../src/cpp/common -I../../generator/parser
>>> -I../../generator/parser/rpp -I../../generator/parser/rpp -I.
>>> -I../../generator -I. -o binder.o ../../generator/parser/binder.cpp
>>> [make] ../../generator/parser/binder.cpp: In instantiation of
>>> ‘std::basic_ostream<_CharT, _Traits>&
>>> std::operator<<(std::basic_ostream<_CharT, _Traits>&, const
>>> std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char,
>>> _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’:
>>> [make] ../../generator/parser/binder.cpp:61: instantiated from here
>>> [make] ../../generator/parser/binder.cpp:61: error: explicit
>>> instantiation of ‘std::basic_ostream<_CharT, _Traits>&
>>> std::operator<<(std::basic_ostream<_CharT, _Traits>&, const
>>> std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char,
>>> _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’ but no
>>> definition available
>>> [make] ../../generator/parser/binder.cpp: In instantiation of
>>> ‘std::basic_ostream<_CharT, _Traits>&
>>> std::operator<<(std::basic_ostream<_CharT, _Traits>&, const
>>> std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char,
>>> _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’:
>>> [make] ../../generator/parser/binder.cpp:61: instantiated from here
>>> [make] ../../generator/parser/binder.cpp:61: error: explicit
>>> instantiation of ‘std::basic_ostream<_CharT, _Traits>&
>>> std::operator<<(std::basic_ostream<_CharT, _Traits>&, const
>>> std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char,
>>> _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’ but no
>>> definition available
>>> [make] ../../generator/parser/binder.cpp: In instantiation of
>>> ‘std::basic_ostream<_CharT, _Traits>&
>>> std::operator<<(std::basic_ostream<_CharT, _Traits>&, const
>>> std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char,
>>> _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’:
>>> [make] ../../generator/parser/binder.cpp:61: instantiated from here
>>> [make] ../../generator/parser/binder.cpp:61: error: explicit
>>> instantiation of ‘std::basic_ostream<_CharT, _Traits>&
>>> std::operator<<(std::basic_ostream<_CharT, _Traits>&, const
>>> std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char,
>>> _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’ but no
>>> definition available
>>> [make] make: *** [binder.o] Error 1
>>>
>>> BUILD FAILED
>>> /Users/filip/src-qtjambi/qtjambi-community/antfiles/generator.xml:41:
>>> Running: '[make]' in
>>> /Users/filip/src-qtjambi/qtjambi-community/build/qmake-generator failed.
>>> exitStatus=2 (0x00000002)
>>>
>>> Total time: 22 seconds
>>
>
> _______________________________________________
> Qt-jambi-interest mailing list
> Qt-jambi-interest@qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-jambi-interest



-- 
-- Tiziano Lattisi
http://lattisi.blogspot.it/
http://www.pypapi.org
_______________________________________________
Qt-jambi-interest mailing list
Qt-jambi-interest@qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-jambi-interest

Reply via email to