<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Mike,<div><span class="Apple-tab-span" style="white-space:pre">                </span>I'm passing an explicit command to build Cocoa as follows:</div><div><br></div><div><span class="Apple-style-span" style="color: rgb(153, 102, 51); font-family: Monaco; font-size: 10px; ">./configure -platform macx-g++ -prefix /Developer/Applications/Qt-4.5.0&nbsp;&nbsp;-arch -cocoa -qt-gif&nbsp;</span></div><div><div><br></div><div>Best regards,</div><div><br></div><div>Elvis Dowson</div><div><br><div><div>On Sep 26, 2008, at 10:12 PM, Michael Jackson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>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.<br><br>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.<br><br>Mike Jackson<br><br>On Sep 26, 2008, at 1:39 PM, Elvis Dowson wrote:<br><br><blockquote type="cite">Hi Trenton,<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>In the file qglobal.h, I found a definition called QT_MAC_USE_COCOA.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Upon closer investigation, I find that it is only enable in Qt-4.5.x if 64-bit support is turned on.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">#ifdef AUTODETECT_COCOA<br></blockquote><blockquote type="cite"># &nbsp;ifdef Q_OS_MAC64<br></blockquote><blockquote type="cite"># &nbsp;&nbsp;&nbsp;define QT_MAC_USE_COCOA 1<br></blockquote><blockquote type="cite"># &nbsp;endif<br></blockquote><blockquote type="cite">#endif<span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">So, this means that Cocoa support in Qt-4.5.x is only enabled if I enable 64-bits.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Could you please clarify if indeed, Qt-4.5.x will work for Cocoa 32-bits?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Best regards,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Elvis Dowson<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Sep 26, 2008, at 8:49 PM, Trenton Schulz wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">On Sep 26, 2008, at 17:48 , Elvis Dowson wrote:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Hi,<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;I tried running<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">make clean<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">make distclean<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">and re-running the configure command, but I got the same error as before.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">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?<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">No, Cocoa works for both 32-bit and 64-bit.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">What I suggested was to remove the entire qt-mac-... directory and untar it from scratch. Then you have a clean setup.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">-- Trenton<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">This is the private VTK discussion list.<br></blockquote><blockquote type="cite">Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br></blockquote><blockquote type="cite">Follow this link to subscribe/unsubscribe:<br></blockquote><blockquote type="cite"><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote><br></div></blockquote></div><br></div></div></body></html>