[CMake] [vtk-developers] python, postgreSQL, VTK build
Darren Weber
darren.weber.lists at gmail.com
Fri Aug 29 18:51:25 EDT 2008
I downloaded libpqxx-2.6.9.tar.gz and build in /usr/src/libpqxx-2.6.9
Before doing anything, we have /usr/src/pqxx-2.6.9/include/pqxx/config.h.inwith:
/* Define if the compiler supports the standard "long double" type */
#undef PQXX_HAVE_LONG_DOUBLE
/* Define if the compiler supports "long long" types */
#undef PQXX_HAVE_LONG_LONG
I then prepare to run 'configure' to ensure it can find pg_config, as:
# export PATH=${PATH}:/Library/PostgreSQL/8.3/bin
# which pg_config
/Library/PostgreSQL/8.3/bin/pg_config
I then run configure:
After 'configure --enable-shared' there is include/pqxx/config.h
/* Define if the compiler supports the standard "long double" type */
#define PQXX_HAVE_LONG_DOUBLE 1
/* Define if the compiler supports "long long" types */
#define PQXX_HAVE_LONG_LONG 1
So it looks like it's enabled. I then run:
# make
# make install
That takes care of the shared library for pqxx:
[ root at elegans /usr/src/libpqxx-2.6.9 ]# ll /usr/local/lib/libpqxx*
-rwxr-xr-x 1 root wheel 464K 2008-08-29 15:49
/usr/local/lib/libpqxx-2.6.9.dylib*
-rwxr-xr-x 1 root wheel 475K 2008-08-28 15:37
/usr/local/lib/libpqxx-3.0.0.dylib*
-rw-r--r-- 1 root wheel 3.8M 2008-08-29 15:49 /usr/local/lib/libpqxx.a
lrwxr-xr-x 1 root wheel 19 2008-08-29 15:49 /usr/local/lib/libpqxx.dylib
-> libpqxx-2.6.9.dylib*
-rwxr-xr-x 1 root wheel 863 2008-08-29 15:49 /usr/local/lib/libpqxx.la*
[ root at elegans /usr/src/libpqxx-2.6.9 ]#
I still have a 3.0 dylib, but the default symlink points to the 2.6.9
version, so that should be fine.
A thousand thanks! (What's next? Oh yea, back to building VTK with PGSQL!)
On Fri, Aug 29, 2008 at 3:13 PM, David C Thompson <dcthomp at sandia.gov>wrote:
>
> > My prior build for libpqxx was:
> >
> > ./configure --enable-shared
> > make
> > sudo make install
> >
> > So now I have pqxx 2.6.9, but how do I enable the LONG_LONG support?
>
> Just make sure that the configure script reported "checking for long
> long: yes" instead of "checking for long long: no". If your pqxx build
> directory contains include/pqxx/config.h with this line in it:
> #define PQXX_HAVE_LONG_LONG 1
> then your libpqxx build should be OK.
>
> David
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080829/1f159764/attachment-0001.htm>
More information about the CMake
mailing list