Tim, Darrell,
This is my first attempt a building tqt3 from the git tree and I've run into a problem. The good news it the build continued for quite some time. I wasn't timing, but is estimate 60+% of the build completed. The errors at the end of the build were:
../../../../src/sql/drivers/odbc/qsql_odbc.cpp: In member function 'virtual int TQODBCResult::numRowsAffected()': ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:983:60: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '2' to 'SQLRETURN SQLRowCount(SQLHSTMT, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp: In member function 'bool TQODBCResult::exec()': ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1109:43: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to 'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1127:50: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to 'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1149:43: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to 'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1163:43: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to 'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1177:43: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to 'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1192:12: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to 'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1210:16: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to 'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1227:12: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to 'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp: In member function 'virtual bool TQODBCDriver::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 TQODBCDriver::endTrans()': ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1716:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] make[3]: *** [.obj/qsql_odbc.o] Error 1 make[3]: Leaving directory `/build/src/tqt3/plugins/src/sqldrivers/odbc' make[2]: *** [sub-odbc] Error 2 make[2]: Leaving directory `/build/src/tqt3/plugins/src/sqldrivers' make[1]: *** [sub-sqldrivers] Error 2 make[1]: Leaving directory `/build/src/tqt3/plugins/src' make: *** [sub-plugins] Error 2
This looks liek issues with the odbc driver type definitions. Is this something that you are familiar with and can help me with it? Or, is this something you don't recognize and need me to send more to help narrow it down?
Looks like the src/sql/drivers/odbc/qsql_odbc.cpp code is not happy. The good news, is that I've got the Arch build script developed to get (or should I say git) it this for :) Let me know. Thanks!
This is my first attempt a building tqt3 from the git tree and I've run into a problem. The good news it the build continued for quite some time. I wasn't timing, but is estimate 60+% of the build completed. The errors at the end of the build were:
Tim just posted that he discovered some new but nasty build failures related to tqt3.
If you want to practice building from GIT, reset to GIT hash 975cc10f8bfcab94ff4e641775473095af0e778a. That would be Feb. 25, the patch pushed by Tim to close bug report 874. Read the Commit Patches web page. that page has the first 8 digits of the hash (975cc10f).
Reset like this:
cd $GIT_DIR git log (review the log to actually see the hashes and read the specific one I am referring) git reset --hard 975cc10f8bfcab94ff4e641775473095af0e778a
That was the most recent GIT that I built a complete main suite set of packages against TQt3.
Darrell
On 02/28/2012 11:53 PM, Darrell Anderson wrote:
This is my first attempt a building tqt3 from the git tree and I've run into a problem. The good news it the build continued for quite some time. I wasn't timing, but is estimate 60+% of the build completed. The errors at the end of the build were:
Tim just posted that he discovered some new but nasty build failures related to tqt3.
If you want to practice building from GIT, reset to GIT hash 975cc10f8bfcab94ff4e641775473095af0e778a. That would be Feb. 25, the patch pushed by Tim to close bug report 874. Read the Commit Patches web page. that page has the first 8 digits of the hash (975cc10f).
Reset like this:
cd $GIT_DIR git log (review the log to actually see the hashes and read the specific one I am referring) git reset --hard 975cc10f8bfcab94ff4e641775473095af0e778a
That was the most recent GIT that I built a complete main suite set of packages against TQt3.
Darrell
Thanks!
I'll give Tim a bit more time so I can work on the auto logic that either updated and existing copy of the tree and then uses cp -a to get the source to the build dir, if nothing currently existing, then git clone it :) Sort of like this:
## GIT repository variables and location _gitlocal="/home/david/tde/tde/main" _gitname="${pkgname#*-}" _gitdir="${_gitlocal}/dependencies/${_gitname}" _giturl="$url"
_prefix="/opt/tqt3"
build() {
cd ${srcdir}
## update or clone tqt3 from GIT msg "Checking for existing GIT source: $_gitname" if [ -d $_gitname ] ; then msg "Using existing source in: ${srcdir}/${_gitname}" else if [ -d /home/david/tde/tde/main/dependencies/ ] ; then # if [ -d $_gitdir ] ; then msg "Updating local tree: $_gitdir" cd $_gitdir && { git pull git submodule init git submodule update --recursive git submodule foreach --recursive "git checkout master" git submodule foreach --recursive "git pull" } cd ${srcdir} && cp -a "$_gitdir" . msg "The local files are updated." else msg "Connecting to GIT server...." msg "Cloning new source from: $url" # git clone --depth 1 $_giturl git clone $_giturl fi msg "GIT checkout done or server timeout" fi
On 02/28/2012 11:39 PM, David C. Rankin wrote:
Tim, Darrell,
This is my first attempt a building tqt3 from the git tree and I've run into a problem. The good news it the build continued for quite some time. I wasn't timing, but is estimate 60+% of the build completed. The errors at the end of the build were:
../../../../src/sql/drivers/odbc/qsql_odbc.cpp: In member function 'virtual int TQODBCResult::numRowsAffected()': ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:983:60: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '2' to 'SQLRETURN SQLRowCount(SQLHSTMT, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp: In member function 'bool TQODBCResult::exec()': ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1109:43: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to 'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1127:50: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to 'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1149:43: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to 'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1163:43: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to 'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1177:43: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to 'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1192:12: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to 'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1210:16: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to 'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1227:12: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to 'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp: In member function 'virtual bool TQODBCDriver::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 TQODBCDriver::endTrans()': ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1716:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] make[3]: *** [.obj/qsql_odbc.o] Error 1 make[3]: Leaving directory `/build/src/tqt3/plugins/src/sqldrivers/odbc' make[2]: *** [sub-odbc] Error 2 make[2]: Leaving directory `/build/src/tqt3/plugins/src/sqldrivers' make[1]: *** [sub-sqldrivers] Error 2 make[1]: Leaving directory `/build/src/tqt3/plugins/src' make: *** [sub-plugins] Error 2
This looks liek issues with the odbc driver type definitions. Is this something that you are familiar with and can help me with it? Or, is this something you don't recognize and need me to send more to help narrow it down?
Looks like the src/sql/drivers/odbc/qsql_odbc.cpp code is not happy. The good news, is that I've got the Arch build script developed to get (or should I say git) it this for :) Let me know. Thanks!
Looks like the build still fails in the same place with odbc:
cd odbc && make -f Makefile make[3]: Entering directory `/build/src/tqt3/plugins/src/sqldrivers/odbc' g++ -c -pipe -I/usr/include/mysql -I/usr/include/postgresql/server -fno-exceptions -Wall -W -O2 -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED -I/build/src/tqt3/mkspecs/linux-g++-64 -I. -I/usr/include/freetype2 -I../../../../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/main.o main.cpp g++ -c -pipe -I/usr/include/mysql -I/usr/include/postgresql/server -fno-exceptions -Wall -W -O2 -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED -I/build/src/tqt3/mkspecs/linux-g++-64 -I. -I/usr/include/freetype2 -I../../../../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 function 'TQString qGetStringData(SQLHANDLE, int, int, bool&, bool)': ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:285:21: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '6' to 'SQLRETURN SQLGetData(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp: In function 'TQByteArray qGetBinaryData(SQLHANDLE, int, SQLINTEGER&, bool&)': ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:341:14: error: cannot convert 'SQLUINTEGER* {aka unsigned int*}' to 'SQLULEN* {aka long unsigned int*}' for argument '7' to 'SQLRETURN SQLDescribeCol(SQLHSTMT, SQLUSMALLINT, SQLCHAR*, SQLSMALLINT, SQLSMALLINT*, SQLSMALLINT*, SQLULEN*, SQLSMALLINT*, SQLSMALLINT*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:360:21: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '6' to 'SQLRETURN SQLGetData(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp: In function 'int qGetIntData(SQLHANDLE, int, bool&)': ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:402:27: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '6' to 'SQLRETURN SQLGetData(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp: In function 'double qGetDoubleData(SQLHANDLE, int, bool&)': ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:420:27: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '6' to 'SQLRETURN SQLGetData(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp: In function 'SQLBIGINT qGetBigIntData(SQLHANDLE, int, bool&)': ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:439:27: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '6' to 'SQLRETURN SQLGetData(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp: In function 'TQSqlFieldInfo qMakeFieldInfo(const TQODBCPrivate*, int)': ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:484:13: error: cannot convert 'SQLUINTEGER* {aka unsigned int*}' to 'SQLULEN* {aka long unsigned int*}' for argument '7' to 'SQLRETURN SQLDescribeCol(SQLHSTMT, SQLUSMALLINT, SQLCHAR*, SQLSMALLINT, SQLSMALLINT*, SQLSMALLINT*, SQLULEN*, SQLSMALLINT*, SQLSMALLINT*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp: In member function 'bool TQODBCPrivate::setConnectionOptions(const TQString&)': ../../../../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 TQVariant TQODBCResult::data(int)': ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:890:25: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '6' to 'SQLRETURN SQLGetData(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:906:25: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '6' to 'SQLRETURN SQLGetData(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:922:25: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '6' to 'SQLRETURN SQLGetData(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp: In member function 'virtual int TQODBCResult::numRowsAffected()': ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:983:60: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '2' to 'SQLRETURN SQLRowCount(SQLHSTMT, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp: In member function 'bool TQODBCResult::exec()': ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1109:43: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to 'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1127:50: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to 'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1149:43: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to 'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1163:43: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to 'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1177:43: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to 'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1192:12: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to 'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1210:16: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to 'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1227:12: error: cannot convert 'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to 'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)' ../../../../src/sql/drivers/odbc/qsql_odbc.cpp: In member function 'virtual bool TQODBCDriver::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 TQODBCDriver::endTrans()': ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1716:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] make[3]: *** [.obj/qsql_odbc.o] Error 1 make[3]: Leaving directory `/build/src/tqt3/plugins/src/sqldrivers/odbc' make[2]: *** [sub-odbc] Error 2 make[2]: Leaving directory `/build/src/tqt3/plugins/src/sqldrivers' make[1]: *** [sub-sqldrivers] Error 2 make[1]: Leaving directory `/build/src/tqt3/plugins/src' make: *** [sub-plugins] Error 2
I'm double checking on my end. Any idea what's causing this? I have put up the full build log here:
http://www.3111skyline.com/dl/dt/trinity/err/bld/tqt3/tde-tqt3-3.8.8.d_git-1...
On 02/29/2012 08:35 AM, David C. Rankin wrote:
On 02/28/2012 11:39 PM, David C. Rankin wrote:
Tim, Darrell,
This is my first attempt a building tqt3 from the git tree and I've run into a problem. The good news it the build continued for quite some time. I wasn't timing, but is estimate 60+% of the build completed. The errors at the end of the build were:
caused by needing to explicitly require libiodbc as a build dependency and add custom include location for the files. I have successfully compiled tqt3 on arch! But, now I need to successfully package it :)
make[3]: Entering directory `/build/src/tqt3/plugins/src/styles' make[3]: Nothing to be done for `install'. make[3]: Leaving directory `/build/src/tqt3/plugins/src/styles' make[2]: Leaving directory `/build/src/tqt3/plugins/src' make[1]: Leaving directory `/build/src/tqt3'
(Build Completed!, Now to package it...)
==> Cleaning package... sed: can't read /build/pkg/opt/tqt3/lib/*.prl: No such file or directory
Bummer :)
The configure options for tqt3 on arch that I used were:
./configure \ -prefix ${_prefix} \ -sysconfdir /etc/tqt \ -I/usr/include/mysql \ -I/usr/include/postgresql/server \ -I/usr/include/libiodbc \ -lpq \ -lmysqlclient \ -L/usr/lib/mysql \ -qt-gif \ -system-zlib \ -system-libpng \ -system-libjpeg \ -system-libmng \ -plugin-imgfmt-png \ -plugin-imgfmt-jpeg \ -plugin-imgfmt-mng \ -plugin-sql-mysql \ -plugin-sql-psql \ -plugin-sql-sqlite \ -plugin-sql-odbc \ -platform linux-g++${ARCH} \ -no-exceptions \ -thread \ -dlopen-opengl \ -no-ipv6
arch! But, now I need to successfully package it :)
make[3]: Entering directory `/build/src/tqt3/plugins/src/styles' make[3]: Nothing to be done for `install'. make[3]: Leaving directory `/build/src/tqt3/plugins/src/styles' make[2]: Leaving directory `/build/src/tqt3/plugins/src' make[1]: Leaving directory `/build/src/tqt3'
(Build Completed!, Now to package it...)
==> Cleaning package... sed: can't read /build/pkg/opt/tqt3/lib/*.prl: No such file or directory
Bummer :)
The configure options affect how the package is built. Your build script should define elsewhere where to install with something like this:
make install DESTDIR=$PKG || exit 1
Figure out where $PKG is located and verify files are there. Then your distro (Arch) will have a command that takes those files to build a distributable package. In Slackware that is makepkg, but I don't know the equivalent in Arch.
If the files are not in $PKG then figure out why not.
As you were interested in mimicking your TQt3 build script from your Qt3 build script, look for transposition errors. For example, possibly your build script is performing make install to $TMP/tqt3 but the build script's "makepkg" command is looking in $TMP/qt3.
Darrell
On 02/29/2012 09:56 AM, Darrell Anderson wrote:
arch! But, now I need to successfully package it :)
make[3]: Entering directory `/build/src/tqt3/plugins/src/styles' make[3]: Nothing to be done for `install'. make[3]: Leaving directory `/build/src/tqt3/plugins/src/styles' make[2]: Leaving directory `/build/src/tqt3/plugins/src' make[1]: Leaving directory `/build/src/tqt3'
(Build Completed!, Now to package it...)
==> Cleaning package... sed: can't read /build/pkg/opt/tqt3/lib/*.prl: No such file or directory
Bummer :)
The configure options affect how the package is built. Your build script should define elsewhere where to install with something like this:
make install DESTDIR=$PKG || exit 1
Figure out where $PKG is located and verify files are there. Then your distro (Arch) will have a command that takes those files to build a distributable package. In Slackware that is makepkg, but I don't know the equivalent in Arch.
If the files are not in $PKG then figure out why not.
As you were interested in mimicking your TQt3 build script from your Qt3 build script, look for transposition errors. For example, possibly your build script is performing make install to $TMP/tqt3 but the build script's "makepkg" command is looking in $TMP/qt3.
Darrell
Got it! I had left a qt3 typo in the mix. All rebuilt. The question is will it work? How are all the 'nt_oldfilename.h' files going to work in the system?
At least the build is done :)
==> Finished making: tde-tqt3 3.8.8.d_git-1 (Wed Feb 29 16:18:42 UTC 2012)
-rw-r--r-- 1 nobody nobody 17478460 Feb 29 10:18 tde-tqt3-3.8.8.d_git-1-x86_64.pkg.tar.xz
For those interested, a copy of the PKGBUILD for tqt3 is here:
http://www.3111skyline.com/dl/dt/trinity/arch/pkgbuild/PKGBUILD-tde-tqt3
Just:
cd tde/main/dependencies tar -czf dependencies-tqt3.tar.gz tqt3
to create the source from the current git tree.
Got it! I had left a qt3 typo in the mix. All rebuilt. The question is will it work? How are all the 'nt_oldfilename.h' files going to work in the system?
Look at the tqtinterface sources. You'll see that when tqtinterface builds, the code detects whether qt3 or tqt3 is installed. Likewise with all other packages. Check the cmake log and you'll see checks for both.
Darrell