Thanks John.
Zen
-----Original Message-----
From: John Sinclair [mailto:[email protected]]
Sent: Tuesday, November 06, 2007 12:39 PM
To: Szalata, Zenon M.
Cc: [email protected]
Subject: Re: Qt edm code
Zen,
My mistake. The mysql piece should have been commented out.
So, in makefile.pv, comment out the lines near the end of the file that
read:
FLAGS4 = -g -O0 -I.
libDb.so : db_pv_factory.o regDb.o
g++ $(LDFLAGS) -shared -Wl \
-o libDb.so \
-L ./ \
-L/usr/lib/mysql \
-lPvSupport \
-lmysqlclient_r \
-lm \
db_pv_factory.o regDb.o
db_pv_factory.o : db_pv_factory.cc
g++ $(FLAGS4) -o db_pv_factory.o -c db_pv_factory.cc
regDb.o : regDb.cc
g++ $(FLAGS4) -o regDb.o -c regDb.cc
John Sinclair
Szalata, Zenon M. wrote:
> After a bit of a struggle (in addition to EPICS_TOP, EPICS_HOST_TYPE env also needs to be defined) this is what I get and I do not know where the file mysql.h is supposed to come from:
>
> ----------------------------------------------------
> g++ -g -O0 -I. -o db_pv_factory.o -c db_pv_factory.cc
> In file included from db_pv_factory.cc:9:
> db_pv_factory.h:11:25: mysql/mysql.h: No such file or directory
> db_pv_factory.cc: In function `int doSelect(char*, char*, char*, char*, int)':
> db_pv_factory.cc:55: error: `MYSQL' was not declared in this scope
> db_pv_factory.cc:55: error: `m' was not declared in this scope
> db_pv_factory.cc:56: error: `MYSQL_RES' was not declared in this scope
> db_pv_factory.cc:56: error: `result' was not declared in this scope
> db_pv_factory.cc:57: error: `MYSQL_ROW' was not declared in this scope
> db_pv_factory.cc:57: error: expected `;' before "row"
> db_pv_factory.cc:58: error: `MYSQL_FIELD' was not declared in this
> scope
> db_pv_factory.cc:58: error: `fields' was not declared in this scope
> -----------------------------------------------------
>
> I have qt-4.3.2 open source installed. I find that there is a file:
> Qt-4.3.2/include/QtSql/qsql_mysql.h
> Is this the file that should be include?
> Am I in trouble because I have Qt-4.3.2?
> Thanks,
> Zen
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of John Sinclair
> Sent: Tuesday, November 06, 2007 7:18 AM
> To: [email protected]
> Subject: Qt edm code
>
> All,
>
> Qt edm pre-alpha code is now available at
> http://ics-web1.sns.ornl.gov/edm/info/show.php?mon=Nov&theDay=6&year=2
> 007
>
> John Sinclair
>
>
>
- References:
- Qt edm code John Sinclair
- RE: Qt edm code Szalata, Zenon M.
- Re: Qt edm code John Sinclair
- Navigate by Date:
- Prev:
Re: Qt edm code John Sinclair
- Next:
RE: Stream device Szalata, Zenon M.
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
<2007>
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Qt edm code John Sinclair
- Next:
Re: EPICS IOC startup scripts... Ralph Lange
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
<2007>
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|