[Quickfix-developers] QuickFIX + python
Brought to you by:
orenmnero
|
From: <Sco...@St...> - 2007-07-27 19:15:18
|
I'm new to QuickFIX and I'm trying to build with additional software into
QuickFIX, but it seems to be failing. Any successes would be great news.
I'm also hoping to build Windows binary with Python support.
./configure --with-python=/home/arb/software/python-2.5
--with-mysql=/home/arb/software/mysql-5.0.37
Python Build Error:
Making all in python
make[3]: Entering directory `/home/arb/software/quickfix/src/python'
if /bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I../.. -I. -I.. -I../.. -g -O2
-Wall -ansi -Wpointer-arith -Wwrite-strings -I/usr/include/libxml2
-I/home/arb/software/Python-2.
5.1 -MT QuickfixPython.lo -MD -MP -MF ".deps/QuickfixPython.Tpo" \
-c -o QuickfixPython.lo `test -f 'QuickfixPython.cpp' || echo
'./'`QuickfixPython.cpp; \
then mv ".deps/QuickfixPython.Tpo" ".deps/QuickfixPython.Plo"; \
else rm -f ".deps/QuickfixPython.Tpo"; exit 1; \
fi
mkdir .libs
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I.. -I../.. -g -O2 -Wall -ansi
-Wpointer-arith -Wwrite-string
s -I/usr/include/libxml2 -I/home/arb/software/Python- 2.5.1 -MT
QuickfixPython.lo -MD -MP -MF .deps/Quic
kfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/QuickfixPython.o
QuickfixPython.cpp:130:20: error: Python.h: No such file or directory
QuickfixPython.cpp :3560:4: error: #error "This python version requires to
use swig with the '-classic'
option"
QuickfixPython.cpp:737: error: expected initializer before '*' token
QuickfixPython.cpp:792: error: expected initializer before '*' token
QuickfixPython.cpp:805: error: expected initializer before '*' token
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/exception:40:
error: expected declar
ation before end of line
make[3]: *** [ QuickfixPython.lo] Error 1
make[3]: Leaving directory `/home/arb/software/quickfix/src/python'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/arb/software/quickfix/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/arb/software/quickfix'
make: *** [all] Error 2
Mysql build error:
g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I.. -g -O2 -Wall -ansi
-Wpointer-arith -Wwrite-strings -I/home
/arb/software/mysql-5.0.37/include/mysql
-I/home/arb/software/mysql-5.0.37/mysql/include -I/usr/include
/libxml2 -I/usr/lib/python2.5 -O0 -g -MT MySQLStoreTestCase.lo -MD -MP -MF
.deps/MySQLStoreTestCase.Tpo
-c MySQLStoreTestCase.cpp -fPIC -DPIC -o .libs/MySQLStoreTestCase.o
In file included from ../MySQLStore.h:37,
from MySQLStoreTestCase.h:28,
from MySQLStoreTestCase.cpp:29:
../MySQLConnection.h:35:19: error: mysql.h: No such file or directory
../MySQLConnection.h:36:20: error: errmsg.h: No such file or directory
../MySQLConnection.h:58: error: 'MYSQL' has not been declared
../MySQLConnection.h:110: error: ISO C++ forbids declaration of
'MYSQL_RES' with no type
../MySQLConnection.h:110: error: expected ';' before '*' token
../MySQLConnection.h:114: error: 'MYSQL_ROW' was not declared in this
scope
../MySQLConnection.h:114: error: template argument 1 is invalid
../MySQLConnection.h:114: error: template argument 2 is invalid
../MySQLConnection.h: In constructor 'FIX::MySQLQuery::MySQLQuery(const
std::string&)':
../MySQLConnection.h:49: error: class 'FIX::MySQLQuery' does not have any
field named 'm_result'
../MySQLConnection.h: In destructor 'FIX::MySQLQuery::~MySQLQuery()':
../MySQLConnection.h:54: error: 'm_result' was not declared in this scope
../MySQLConnection.h:55: error: 'mysql_free_result' was not declared in
this scope
../MySQLConnection.h: In member function 'bool
FIX::MySQLQuery::execute(int*)':
../MySQLConnection.h:54: error: 'm_result' was not declared in this scope
../MySQLConnection.h:55: error: 'mysql_free_result' was not declared in
this scope
../MySQLConnection.h: In member function 'bool
FIX::MySQLQuery::execute(int*)':
../MySQLConnection.h:64: error: 'm_result' was not declared in this scope
../MySQLConnection.h:64: error: 'mysql_free_result' was not declared in
this scope
../MySQLConnection.h:65: error: 'mysql_query' was not declared in this
scope
../MySQLConnection.h:66: error: 'm_result' was not declared in this scope
../MySQLConnection.h:66: error: 'mysql_store_result' was not declared in
this scope
../MySQLConnection.h:69: error: 'mysql_errno' was not declared in this
scope
../MySQLConnection.h:70: error: 'mysql_error' was not declared in this
scope
../MySQLConnection.h:71: error: 'mysql_ping' was not declared in this
scope
../MySQLConnection.h: In member function 'int FIX::MySQLQuery::rows()':
../MySQLConnection.h:84: error: 'm_result' was not declared in this scope
../MySQLConnection.h:84: error: 'mysql_num_rows' was not declared in this
scope
../MySQLConnection.h: In member function 'char*
FIX::MySQLQuery::getValue(int, int)':
../MySQLConnection.h:94: error: request for member 'empty' in
'((FIX::MySQLQuery*)this)->FIX::MySQLQuer
y::m_rows', which is of non-class type 'int'
../MySQLConnection.h:96: error: 'MYSQL_ROW' was not declared in this scope
../MySQLConnection.h:96: error: expected `;' before 'row'
../MySQLConnection.h:97: error: 'm_result' was not declared in this scope
../MySQLConnection.h:97: error: 'mysql_fetch_row' was not declared in this
scope
../MySQLConnection.h:98: error: request for member 'push_back' in
'((FIX::MySQLQuery*)this)->FIX::MySQL
Query::m_rows', which is of non-class type 'int'
../MySQLConnection.h:100: error: invalid types 'int[int]' for array
subscript
../MySQLConnection.h: At global scope:
../MySQLConnection.h:182: error: ISO C++ forbids declaration of 'MYSQL'
with no type
../MySQLConnection.h:182: error: expected ';' before '*' token
../MySQLConnection.h: In destructor
'FIX::MySQLConnection::~MySQLConnection()':
../MySQLConnection.h:137: error: 'm_pConnection' was not declared in this
scope
../MySQLConnection.h:138: error: 'mysql_close' was not declared in this
scope
../MySQLConnection.h: In member function 'bool
FIX::MySQLConnection::connected()':
../MySQLConnection.h:149: error: 'm_pConnection' was not declared in this
scope
../MySQLConnection.h:149: error: 'mysql_ping' was not declared in this
scope
../MySQLConnection.h: In member function 'bool
FIX::MySQLConnection::reconnect()':
../MySQLConnection.h:155: error: 'm_pConnection' was not declared in this
scope
../MySQLConnection.h:155: error: 'mysql_ping' was not declared in this
scope
../MySQLConnection.h: In member function 'bool
FIX::MySQLConnection::execute(FIX::MySQLQuery&)':
../MySQLConnection.h:161: error: 'm_pConnection' was not declared in this
scope
../MySQLConnection.h: In member function 'void
FIX::MySQLConnection::connect()':
../MySQLConnection.h:168: error: 'm_pConnection' was not declared in this
scope
../MySQLConnection.h:168: error: 'mysql_init' was not declared in this
scope
../MySQLConnection.h:171: error: 'mysql_real_connect' was not declared in
this scope
make[4]: *** [MySQLStoreTestCase.lo] Error 1
make[4]: Leaving directory `/home/arb/software/quickfix/src/C++/test'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/arb/software/quickfix/src/C++'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/arb/software/quickfix/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/arb/software/quickfix'
make: *** [all] Error 2
|