trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: May 2011

Re: [trinity-devel] Qt3 (svn) - qinputcontextfactory.h link missing in src/include

From: "David C. Rankin" <drankinatty@...>
Date: Fri, 13 May 2011 11:38:00 -0500
On 05/13/2011 09:52 AM, David C. Rankin wrote:
> <snip>
>
> Final report for this am. Qt3 from svn builds almost to completion. Which is
> good progress. The build error I encountered was:
>
> ../../../../src/kernel/qpngio.cpp:165:27: error: 'png_info' has no member
> named 'trans_color'
> ../../../../src/kernel/qpngio.cpp:193:17: error: 'png_info' has no member
> named 'trans_alpha'
>
>    I have no idea where to start looking for that problem. It may be a patch
> issue. We will have more time to look at this later. I have backed out some of
> the patches that were already applied to the qt3 svn code. Right now I'm
> building with the following patches (attached):
>
> gcc46-arch.diff
> qt-odbc.patch
> qt-patches.dcr.tar.bz2
> qt3-png14.patch

I removed the qt3-png14.patch and it seems to have either made things better 
or worse :) The next build error encountered is with odbc. I have tried both 
with and without the odbc patch -- it's definitely needed. The problem I run 
into is the linker can't find -liodbc?  Maybe we are missing another link that 
isn't just a header link. The full error is:

g++ -c -pipe -g -fno-exceptions -Wall -W -march=x86-64 -mtune=generic -O2 
-pipe -D_REENTRANT -fPIC  -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN 
-DQT_SHARED -I/build/src/qt3/mkspecs/linux-g++ -I. -I/usr/include/freetype2 
-I../../../../include -I/usr/X11R6/include -I/usr/X11R6/include 
-I.moc/release-shared-mt/ -o .obj/qsql_odbc.o 
../../../../src/sql/drivers/odbc/qsql_odbc.cpp
../../../../src/sql/drivers/odbc/qsql_odbc.cpp: In member function 'bool 
QODBCPrivate::setConnectionOptions(const QString&)':
../../../../src/sql/drivers/odbc/qsql_odbc.cpp:546:67: warning: cast to 
pointer from integer of different size [-Wint-to-pointer-cast]
../../../../src/sql/drivers/odbc/qsql_odbc.cpp:549:74: warning: cast to 
pointer from integer of different size [-Wint-to-pointer-cast]
../../../../src/sql/drivers/odbc/qsql_odbc.cpp:552:69: warning: cast to 
pointer from integer of different size [-Wint-to-pointer-cast]
../../../../src/sql/drivers/odbc/qsql_odbc.cpp:571:67: warning: cast to 
pointer from integer of different size [-Wint-to-pointer-cast]
../../../../src/sql/drivers/odbc/qsql_odbc.cpp:574:67: warning: cast to 
pointer from integer of different size [-Wint-to-pointer-cast]
../../../../src/sql/drivers/odbc/qsql_odbc.cpp:593:61: warning: cast to 
pointer from integer of different size [-Wint-to-pointer-cast]
../../../../src/sql/drivers/odbc/qsql_odbc.cpp: In member function 'virtual 
bool QODBCDriver::beginTransaction()':
../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1666:23: warning: cast to 
pointer from integer of different size [-Wint-to-pointer-cast]
../../../../src/sql/drivers/odbc/qsql_odbc.cpp: In member function 'bool 
QODBCDriver::endTrans()':
../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1716:23: warning: cast to 
pointer from integer of different size [-Wint-to-pointer-cast]
test -d ../../../sqldrivers/ || mkdir -p ../../../sqldrivers/
rm -f libqsqlodbc.so
g++ -fno-exceptions -shared -o libqsqlodbc.so .obj/main.o .obj/qsql_odbc.o 
-L/build/src/qt3/lib -L/usr/X11R6/lib -L/usr/X11R6/lib -liodbc -lqt-mt -lz 
-lGLU -lGL -lXmu -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype 
-lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl -lpthread
/usr/bin/ld: cannot find -liodbc
collect2: ld returned 1 exit status
make[4]: *** [../../../sqldrivers/libqsqlodbc.so] Error 1
make[4]: Leaving directory `/build/src/qt3/plugins/src/sqldrivers/odbc'
make[3]: *** [sub-odbc] Error 2
make[3]: Leaving directory `/build/src/qt3/plugins/src/sqldrivers'
make[2]: *** [sub-sqldrivers] Error 2
make[2]: Leaving directory `/build/src/qt3/plugins/src'
make[1]: *** [sub-plugins] Error 2
make[1]: Leaving directory `/build/src/qt3'
make: *** [init] Error 2
==> ERROR: A failure occurred in build().
     Aborting...

I'm thinking we probably need to extract the qt-x11-free-3.3.8b.tar.gz code 
next to the Qt3 (svn) code and run a diff to see what is there and what isn't. 
I'll try and give that a go later this weekend unless somebody beats me to it...


-- 
David C. Rankin, J.D.,P.E.