EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Qt edm code
From: "Szalata, Zenon M." <[email protected]>
To: "John Sinclair" <[email protected]>
Cc: [email protected]
Date: Tue, 6 Nov 2007 13:09:18 -0800
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  <20072008  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  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·