hello,
trying to compile the client on mac osx 10.3.9.
cmake is 2.4-patch 7
Qt version is qt-mac-opensource-src-4.3.1
the error condition is as follows.
grey:/opt/local/webissues/client thechief$ sudo cmake .
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Found Qt-Version 4.3.1
-- Looking for doxygen...
-- Looking for doxygen... - NOT found
-- Looking for dot tool...
-- Looking for dot tool... - NOT found
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/local/webissues/client
grey:/opt/local/webissues/client thechief$ sudo make
[ 0%] Generating qrc_resources.cxx
Scanning dependencies of target resources
[ 1%] Building CXX object src/resources/CMakeFiles/resources.dir/qrc_resources.o
Linking CXX static library libresources.a
[ 1%] Built target resources
[ 2%] Generating view.moc
[ 3%] Generating commentview.moc
[ 3%] Generating dashboardview.moc
[ 4%] Generating folderview.moc
[ 5%] Generating issueview.moc
[ 5%] Generating membersview.moc
[ 6%] Generating projectsview.moc
[ 6%] Generating typesview.moc
[ 7%] Generating usersview.moc
Scanning dependencies of target views
[ 8%] Building CXX object src/views/CMakeFiles/views.dir/commentview.o
[ 9%] Building CXX object src/views/CMakeFiles/views.dir/dashboardview.o
[ 9%] Building CXX object src/views/CMakeFiles/views.dir/folderview.o
[ 10%] Building CXX object src/views/CMakeFiles/views.dir/issueview.o
/opt/local/webissues/client/src/views/issueview.cpp: In member function `void
WebIssues::IssueView::handleAttachment(int, WebIssues::AttachmentAction)':
/opt/local/webissues/client/src/views/issueview.cpp:931: error: type specifier
omitted for parameter `name'
/opt/local/webissues/client/src/views/issueview.cpp:933: error: request for
member `absoluteFilePath' in `fileInfo(QDir)', which is of non-aggregate
type `QFileInfo ()(QDir)'
/opt/local/webissues/client/src/views/issueview.cpp:937: error: request for
member `setFile' in `fileInfo(QDir)', which is of non-aggregate type `
QFileInfo ()(QDir)'
/opt/local/webissues/client/src/views/issueview.cpp:938: error: request for
member `absoluteDir' in `fileInfo(QDir)', which is of non-aggregate type `
QFileInfo ()(QDir)'
make[2]: *** [src/views/CMakeFiles/views.dir/issueview.o] Error 1
make[1]: *** [src/views/CMakeFiles/views.dir/all] Error 2
make: *** [all] Error 2
should i use an earlier version of qt e.g. qt3
any suggestions will be appreciated
regards
- Log in to post comments
It looks like a compiler bug, it's somehow misinterpreting this line... try rewriting it this way:
Of course there may be much more errors like that.
Keep in mind that Mac OS X is not officially supported by WebIssues, I never tested it, and cannot guarantee it will work. For example, there are some platform specific ifdefs in the code which may or may not work.
Qt3 won't work, because Qt 4.2 or newer is required.
Regards,
Michał
after making the suggested change the following error occurred.
a search on the google found a few references to other projects/applications with similar errors.
this forum
http://groups.google.com.au/group/comp.sys.mac.programmer.help/browse_thread/thread/c86c4...
has this answer
regards
The easiest solution would be probably to pass
-DCMAKE_CXX_FLAGS="-lobjc"
to cmake.Regards,
Michał
Ferris,
Did you ever sort out a version for OSX?