The webkit library errors out when building Qt 4.5.0 tp1 Carbon along with 
MySQL driver support. We are building against MySQL 5.0.18 and passing the 
following as a configure parameter:

-I/usr/local/mysql/include/mysql

There exists a conflict, the mysql includes have a history.h include file and 
when the build compiles

src/3rdparty/webkit/WebCore/bindings/js/JSHistoryCustom.cpp

it tries to include "History.h" from src/3rdparty/webkit/WebCore/page/ , but 
the CXXFLAGS/CFLAGS includes are placed first as parameters to g++ therefore it 
fails to build since Mac OS X is not case sensitive by default.

Below is the exact error:

In file included from bindings/js/JSHistoryCustom.cpp:33:
/usr/local/mysql/include/mysql/History.h:35:31: In file included from 
bindings/js/JSHistoryCustom.cpp:33error: readline/rlstdc.h: No such file or 
directory:

/usr/local/mysql/include/mysql/History.h:35:31: error: readline/rlstdc.h: No 
such file or directory
/usr/local/mysql/include/mysql/History.h:36:35: error: readline/rltypedefs.h: 
No such file or directory
/usr/local/mysql/include/mysql/History.h:36:35: error: readline/rltypedefs.h: 
No such file or directory
/usr/local/mysql/include/mysql/History.h:71: error: expected initializer before 
'PARAMS'
...
...
...

Readline is not installed on the machine. The quick workaround at this time is 
to also pass -Ipage before the -I/usr/local/mysql/include/mysql in which case 
it works. I wanted to pass this along to you so you are aware of this issue.

Yan Shapochnik


_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback

Reply via email to