[vtkusers] [Snapshot-users] How to compile Qt-4.5.x for Mac OS X 10.5.5 to use 64-bits and Cocoa bindings

Elvis Dowson elvis.dowson at mac.com
Fri Sep 26 14:33:14 EDT 2008


Hi Mike,
		I'm passing an explicit command to build Cocoa as follows:

./configure -platform macx-g++ -prefix /Developer/Applications/ 
Qt-4.5.0  -arch -cocoa -qt-gif

Best regards,

Elvis Dowson

On Sep 26, 2008, at 10:12 PM, Michael Jackson wrote:

> I think what they are doing is FORCING a Cocoa build if one selects  
> a 64 bit build of Qt. Just guessing but that does kinda make sense.  
> You still could build Qt 4.5 with Carbon support for 32 Bit systems.
>
> You will probably have to follow the flow of the code to get a  
> better feel for the context that that bit of code is executed in.
>
> Mike Jackson
>
> On Sep 26, 2008, at 1:39 PM, Elvis Dowson wrote:
>
>> Hi Trenton,
>> 			In the file qglobal.h, I found a definition called  
>> QT_MAC_USE_COCOA.
>>
>> Upon closer investigation, I find that it is only enable in  
>> Qt-4.5.x if 64-bit support is turned on.
>>
>> #ifdef AUTODETECT_COCOA
>> #  ifdef Q_OS_MAC64
>> #    define QT_MAC_USE_COCOA 1
>> #  endif
>> #endif			
>>
>> So, this means that Cocoa support in Qt-4.5.x is only enabled if I  
>> enable 64-bits.
>>
>> Could you please clarify if indeed, Qt-4.5.x will work for Cocoa 32- 
>> bits?
>>
>> Best regards,
>>
>> Elvis Dowson
>>
>>
>> On Sep 26, 2008, at 8:49 PM, Trenton Schulz wrote:
>>
>>>
>>> On Sep 26, 2008, at 17:48 , Elvis Dowson wrote:
>>>
>>>> Hi,
>>>>     I tried running
>>>>
>>>> make clean
>>>> make distclean
>>>> and re-running the configure command, but I got the same error as  
>>>> before.
>>>>
>>>> What should I do? If Cocoa bindings work only for 64-bits,  
>>>> shouldn't Qt-4.5.x automatically force and set it to 64-bits?
>>>
>>> No, Cocoa works for both 32-bit and 64-bit.
>>>
>>> What I suggested was to remove the entire qt-mac-... directory and  
>>> untar it from scratch. Then you have a clean setup.
>>>
>>> -- Trenton
>>>
>>
>> _______________________________________________
>> This is the private VTK discussion list.
>> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080926/679227e1/attachment.htm>


More information about the vtkusers mailing list