Webissues - Client on mac os x

Submitted by ferriswheel on 2007-08-31

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

It looks like a compiler bug, it's somehow misinterpreting this line... try rewriting it this way:

QFileInfo fileInfo = QFileInfo( QDir( dir ), name );

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.

grey:/opt/local/webissues/client thechief$ sudo make
Password:
[  1%] Built target resources
[ 14%] Built target views
[ 33%] Built target dialogs
[ 52%] Built target models
[ 61%] Built target attributes
[ 75%] Built target data
[ 82%] Built target widgets
[ 87%] Built target commands
[ 89%] Built target xmlui
[ 91%] Built target rdb
[ 92%] Built target icons
Linking CXX executable webissues
ld: /usr/lib/crt1.o illegal reference to symbol: __objcInit defined in indirectly referenced dynamic library /usr/lib/libobjc.A.dylib
make[2]: *** [src/webissues] Error 1
make[1]: *** [src/CMakeFiles/webissues.dir/all] Error 2
make: *** [all] Error 2

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

> The error is:

> /usr/bin/ld: /usr/lib/crt1.o illegal reference to symbol: __objcInit
> defined in indirectly referenced dynamic library /usr/lib/libobjc.A.dylib

you need to link to libobjc (-lobjc on the command line, in PB i guess
you use Project->Add Files or Project->Add Frameworks or something.
libobjc.dylib is in /usr/lib.

regards