<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Tried adding</div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; "> -DCMAKE_OSX_ARCHITECTURES=x86_64</span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; ">to the cmake call. No luck.</span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; "><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; ">Finally search for the string 'i386' in all files below marble-build/src and replaced the string with 'x86_64' in all flags and link files.</span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; ">(A 'file' command on one of the QT include files showed that x86_64 was the architecture they were compiled for.)</span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; "><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; ">Now the build process can link to the QT libraries. Something seems to be broken not only in the way cmake detects the current architecture</span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; ">and the arch the libs are build for, it also ignores the command line option to override it.</span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; ">Someone with more understanding of cmake needs to fix this.</span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; "><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; ">Now hunting down the next error, further down  the line:</span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; "><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; "><div>[ 74%] Building CXX object src/plugins/declarative/CMakeFiles/MarbleDeclarativePlugin.dir/Coordinate.o</div><div>In file included from /usr/local/Trolltech/Qt-4.7.0/include/QtDeclarative/QtDeclarative:8,</div><div>                 from /Users/chaos/Projektdaten/marble/marble/src/plugins/declarative/Coordinate.h:17,</div><div>                 from /Users/chaos/Projektdaten/marble/marble/src/plugins/declarative/Coordinate.cpp:11:</div><div>/usr/local/Trolltech/Qt-4.7.0/include/QtDeclarative/qdeclarativeitem.h:45:26: error: qdeclarative.h: No such file or directory</div><div>/usr/local/Trolltech/Qt-4.7.0/include/QtDeclarative/qdeclarativeitem.h:46:35: error: qdeclarativecomponent.h: No such file or directory</div><div><br></div></span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; ">Best regards</span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; "><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; ">chaos</span></div><div><br></div><div><br></div><br><div><div>Am 22.09.2011 um 19:05 schrieb Stefan Aschenbach:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Back at my machine.</div><div><br></div><div>cmake went through with two warnings:</div><div><br></div><div><div>CMake Warning (dev) at src/CMakeLists.txt:132 (INSTALL):</div><div>  Policy CMP0006 is not set: Installing MACOSX_BUNDLE targets requires a</div><div>  BUNDLE DESTINATION.  Run "cmake --help-policy CMP0006" for policy details.</div><div>  Use the cmake_policy command to set the policy and suppress this warning.</div><div>This warning is for project developers.  Use -Wno-dev to suppress it.</div><div><br></div><div>CMake Warning at /Applications/CMake 2.8-5.app/Contents/share/cmake-2.8/Modules/CPack.cmake:236 (MESSAGE):</div><div>  CPack.cmake has already been included!!</div><div>Call Stack (most recent call first):</div><div>  CMakeLists.txt:328 (include)</div></div><div><br></div><div><br></div><div>After that, the build fails at make with:</div><div><br></div><div><div>RoutingInputWidget.cpp:100</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(128, 72, 31); ">#if QT_VERSION >= <span style="color: rgb(77, 0, 229); ">0x40700</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(0, 141, 0); ">    setPlaceholderText( "Address or search term..." );</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(128, 72, 31); ">#endif</div></div><div><br></div><div><br></div><div>After commenting this out, it fails with</div></div><div><br></div><div><div>[ 69%] Building CXX object src/lib/CMakeFiles/marblewidget.dir/qrc_marble.o</div><div>Linking CXX shared library libmarblewidget.dylib</div><div>ld: warning: in /usr/local/Trolltech/Qt-4.7.0/lib/QtCore.framework/QtCore, file was built for unsupported file format which is not the architecture being linked (i386)</div><div>ld: warning: in /usr/local/Trolltech/Qt-4.7.0/lib/QtGui.framework/QtGui, file was built for unsupported file format which is not the architecture being linked (i386)</div><div>ld: warning: in /usr/local/Trolltech/Qt-4.7.0/lib/QtXml.framework/QtXml, file was built for unsupported file format which is not the architecture being linked (i386)</div><div>ld: warning: in /usr/local/Trolltech/Qt-4.7.0/lib/QtSvg.framework/QtSvg, file was built for unsupported file format which is not the architecture being linked (i386)</div><div>ld: warning: in /usr/local/Trolltech/Qt-4.7.0/lib/QtNetwork.framework/QtNetwork, file was built for unsupported file format which is not the architecture being linked (i386)</div><div>ld: warning: in /usr/local/Trolltech/Qt-4.7.0/lib/QtScript.framework/QtScript, file was built for unsupported file format which is not the architecture being linked (i386)</div><div>ld: warning: in /usr/local/Trolltech/Qt-4.7.0/lib/QtWebKit.framework/QtWebKit, file was built for unsupported file format which is not the architecture being linked (i386)</div><div>Undefined symbols:</div><div>  "QStyleOptionButton::QStyleOptionButton()", referenced from:</div><div>      Marble::MarbleLegendBrowser::loadResource(int, QUrl const&)in MarbleLegendBrowser.o</div><div>      Marble::PluginItemDelegate::buttonOption(QStyleOptionViewItem const&, QModelIndex const&, Marble::PluginItemDelegate::ButtonType, int, Qt::AlignmentFlag) constin PluginItemDelegate.o</div><div>      Marble::PluginItemDelegate::checkboxOption(QStyleOptionViewItem const&, QModelIndex const&, int, Qt::AlignmentFlag) constin PluginItemDelegate.o</div></div><div><br></div><div>and continues with about 50000 lines of more undefined symbols</div><div>(<a href="http://pastebin.com/">pastebin.com</a> or <a href="http://github.com/">github.com</a> both won't save such a snippet)</div><div><br></div><div><br></div><div><br></div><div>Switching to Marble1.2, I get the same first error, then another one of the same kind in</div><div>goToDialog:358</div><div><br></div><div>then the second error again:</div><div><br></div><div><div>Linking CXX shared library libmarblewidget.dylib</div><div>ld: warning: in /usr/local/Trolltech/Qt-4.7.0/lib/QtCore.framework/QtCore, file was built for unsupported file format which is not the architecture being linked (i386)</div><div>ld: warning: in /usr/local/Trolltech/Qt-4.7.0/lib/QtGui.framework/QtGui, file was built for unsupported file format which is not the architecture being linked (i386)</div><div>ld: warning: in /usr/local/Trolltech/Qt-4.7.0/lib/QtXml.framework/QtXml, file was built for unsupported file format which is not the architecture being linked (i386)</div><div>ld: warning: in /usr/local/Trolltech/Qt-4.7.0/lib/QtSvg.framework/QtSvg, file was built for unsupported file format which is not the architecture being linked (i386)</div><div>ld: warning: in /usr/local/Trolltech/Qt-4.7.0/lib/QtNetwork.framework/QtNetwork, file was built for unsupported file format which is not the architecture being linked (i386)</div><div>ld: warning: in /usr/local/Trolltech/Qt-4.7.0/lib/QtScript.framework/QtScript, file was built for unsupported file format which is not the architecture being linked (i386)</div><div>ld: warning: in /usr/local/Trolltech/Qt-4.7.0/lib/QtWebKit.framework/QtWebKit, file was built for unsupported file format which is not the architecture being linked (i386)</div><div>Undefined symbols:</div><div>  "QMenu::addAction(QString const&)", referenced from:</div><div>      Marble::AbstractFloatItem::contextMenu()      in AbstractFloatItem.o</div><div>      Marble::AbstractFloatItem::contextMenu()      in AbstractFloatItem.o</div><div>      Marble::AbstractFloatItem::contextMenu()      in AbstractFloatItem.o</div></div><div><br></div><div>and so on.</div><div><br></div><div>Any ideas? I suppose there is no error in the QT libraries being built for the wrong architecture.</div><div>Maybe a wrong build target inside some build scripts?</div><div><br></div><div><br></div><div>Best regards,</div><div><br></div><div>chaos</div><br><div><div>Am 22.09.2011 um 09:55 schrieb Dennis Nienhüser:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi,<br><br>I just updated the website to point to our current release (1.2). Marble 1.1 is some months old. You can switch to the current release by doing a<br><br>git checkout -b marble-1.2 origin/KDE/4.7<br><br>I don't remember any Mac related commits, so the same issue will likely pop up. Please post the error message here so that we can trace it down further then.<br><br>If you can reproduce the error relating to the #ifdef block I'd be happy to see the error message as well.<br><br>Thanks,<br>Dennis<br><br>On 22.09.2011 08:50, <a href="mailto:stefan@binaervarianz.de">stefan@binaervarianz.de</a> wrote:<br><blockquote type="cite">Hello valued developers,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I've tried to download and build Marble as a QT widget yesterday, and<br></blockquote><blockquote type="cite">failed.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">What I did:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">sudo /Developer/Tools/uninstall-qt.py<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">downloaded and installed QT 4.7.4 libs for Mac<br></blockquote><blockquote type="cite">downloaded and installed cmake (Mac binary package)<br></blockquote><blockquote type="cite">downloaded Marble 1.1 via git clone -b marble-1.1<br></blockquote><blockquote type="cite"><a href="git://anongit.kde.org/marble">git://anongit.kde.org/marble</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">mkdir marble-build<br></blockquote><blockquote type="cite">cd marble-build<br></blockquote><blockquote type="cite">cmake -DQTONLY=ON -DWITH_DESIGNER_PLUGIN=ON ..<br></blockquote><blockquote type="cite">make<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">at first this failed due to an undefined function in an #ifdef block<br></blockquote><blockquote type="cite">testing for QT>= 4.7<br></blockquote><blockquote type="cite">I took a bold move and commented that line out. This should be<br></blockquote><blockquote type="cite">backwards-compatible after all.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">make clean<br></blockquote><blockquote type="cite">make<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Got until 69%, then just after a linking step the<br></blockquote><blockquote type="cite">build failed with tens of thousands of output lines to my console.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I'm away from my dev machine right now, so I can't report on the actual<br></blockquote><blockquote type="cite">error<br></blockquote><blockquote type="cite">(will do that in a few hours). So my question for now is:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Has anyone successfully built the QT Widget of Marbel with this setup?<br></blockquote><blockquote type="cite">Are there any general known workarounds needed (for Mac/for QT 4.7)?<br></blockquote><blockquote type="cite">Is something wrong with my initial attempts?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Sorry for the fuzzy details. I promise to deliver all the hard facts soon.<br></blockquote><blockquote type="cite">It's just that this one kept me up last night and I'm eager to get some<br></blockquote><blockquote type="cite">kind<br></blockquote><blockquote type="cite">of comment on this.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Best regards,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Chaos<br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">Marble-devel mailing list<br></blockquote><blockquote type="cite"><a href="mailto:Marble-devel@kde.org">Marble-devel@kde.org</a><br></blockquote><blockquote type="cite"><a href="https://mail.kde.org/mailman/listinfo/marble-devel">https://mail.kde.org/mailman/listinfo/marble-devel</a><br></blockquote><blockquote type="cite"><br></blockquote><br></div></blockquote></div><br></div></blockquote></div><br></body></html>