Thread: PQescapeStringConn in C:\Program Files\PostgreSQL\8.3\lib not found"
Dear Sir,
I try to make gammu-svn2643. I run Cmakesetup.exe and then change
the following setting:
where is the source code: d:\gammu-svn2643
where to build the binaries: d:\gammu-svn2643\win32\gammu-library\bcc06.mak
GETTEXT_MSGFMT_EXECUTABLE: C:\GETGNUWIN32\bin
GETTEXT_MSGMERGE_EXECUTABLE: C:\GETGNUWIN32\bin
MYSQL_ADD_INCLUDE_DIR: C:\Program Files\MySQL\MySQL Server 5.0\include
MYSQL_ADD_LIBRARY_PATH: C:\Program Files\MySQL\MySQL Server 5.0\lib\opt
MYSQL_LIBRARIES_mysql: C:\Program Files\MySQL\MySQL Server 5.0\lib\opt
POSTGRES_INCLUDE_DIR: C:\Program Files\PostgreSQL\8.3\include
POSTGRES_LIBRARY: C:\Program Files\PostgreSQL\8.3\lib
the following setting:
where is the source code: d:\gammu-svn2643
where to build the binaries: d:\gammu-svn2643\win32\gammu-library\bcc06.mak
GETTEXT_MSGFMT_EXECUTABLE: C:\GETGNUWIN32\bin
GETTEXT_MSGMERGE_EXECUTABLE: C:\GETGNUWIN32\bin
MYSQL_ADD_INCLUDE_DIR: C:\Program Files\MySQL\MySQL Server 5.0\include
MYSQL_ADD_LIBRARY_PATH: C:\Program Files\MySQL\MySQL Server 5.0\lib\opt
MYSQL_LIBRARIES_mysql: C:\Program Files\MySQL\MySQL Server 5.0\lib\opt
POSTGRES_INCLUDE_DIR: C:\Program Files\PostgreSQL\8.3\include
POSTGRES_LIBRARY: C:\Program Files\PostgreSQL\8.3\lib
And then I click [config] button. But Cmakesetup.exe shows
"Cmake error: invalid escape sequence \p"
"Syntax error in cmake code at D:/gammu-svn2643/cmake/FindPostgres.cmake:73: syntax error,
unexpected cal_ERRO, expecting $end (38), when parsing string Looking
for PQescapeStringConn in C:\Program Files\PostgreSQL\8.3\lib not found"
"Cmake error: invalid escape sequence \p"
"Syntax error in cmake code at D:/gammu-svn2643/cmake/FindPostgres.cmake:73: syntax error,
unexpected cal_ERRO, expecting $end (4), when parsing string "Looking
for PQescapeStringConn in C:\Program Files\PostgreSQL\8.3\lib"
"WARNING: Target "cmTryComileExec" requests linking to directory "Syntax error in cmake code at D:/gammu-svn2643/cmake/FindPostgres.cmake:73: syntax error,
unexpected cal_ERRO, expecting $end (38), when parsing string "Looking
for PQescapeStringConn in C:\Program Files\PostgreSQL\8.3\lib". Targets may link
only to libraries. Cmake is dropping the item."
"Cmake error: invalid escape sequence \p"
"Syntax error in cmake code at D:/gammu-svn2643/cmake/FindPostgres.cmake:73: syntax error,
unexpected cal_ERRO, expecting $end (38), when parsing string 'Looking
for PQescapeStringConn in C:\Program Files\PostgreSQL\8.3\lib not found'"
"WARING: Target 'gammu' request linking to directory 'C:\Program Files\PostgreSQL\8.3\lib'.
Targets may link only ot libraries. CMake is dropping the item.
"Cmake error: invalid escape sequence \p"
"Syntax error in cmake code at D:/gammu-svn2643/cmake/FindPostgres.cmake:73: syntax error,
unexpected cal_ERRO, expecting $end (38), when parsing string Looking
for PQescapeStringConn in C:\Program Files\PostgreSQL\8.3\lib not found"
"Cmake error: invalid escape sequence \p"
"Syntax error in cmake code at D:/gammu-svn2643/cmake/FindPostgres.cmake:73: syntax error,
unexpected cal_ERRO, expecting $end (4), when parsing string "Looking
for PQescapeStringConn in C:\Program Files\PostgreSQL\8.3\lib"
"WARNING: Target "cmTryComileExec" requests linking to directory "Syntax error in cmake code at D:/gammu-svn2643/cmake/FindPostgres.cmake:73: syntax error,
unexpected cal_ERRO, expecting $end (38), when parsing string "Looking
for PQescapeStringConn in C:\Program Files\PostgreSQL\8.3\lib". Targets may link
only to libraries. Cmake is dropping the item."
"Cmake error: invalid escape sequence \p"
"Syntax error in cmake code at D:/gammu-svn2643/cmake/FindPostgres.cmake:73: syntax error,
unexpected cal_ERRO, expecting $end (38), when parsing string 'Looking
for PQescapeStringConn in C:\Program Files\PostgreSQL\8.3\lib not found'"
"WARING: Target 'gammu' request linking to directory 'C:\Program Files\PostgreSQL\8.3\lib'.
Targets may link only ot libraries. CMake is dropping the item.
Then I type make on cmd
D:\gammu-svn2643\win32\gammu-binary\bcc06.mak>make
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
Scanning dependencies of target libGammu
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
[ 1%] Building C object common/CMakeFiles/libGammu.dir/gsmcomon.obj
Borland C++ 5.6 for Win32 Copyright (c) 1993, 2002 Borland
D:\gammu-svn2643\common\gsmcomon.c:
Warning W8057 D:\gammu-svn2643\common\gsmcomon.c 73: Parameter 'path' is never u
sed in function GSM_InitLocales
[ 1%] Building C object common/CMakeFiles/libGammu.dir/gsmphones.obj
Borland C++ 5.6 for Win32 Copyright (c) 1993, 2002 Borland
D:\gammu-svn2643\common\gsmphones.c:
[ 2%] Building C object common/CMakeFiles/libGammu.dir/gsmstate.obj
Borland C++ 5.6 for Win32 Copyright (c) 1993, 2002 Borland
D:\gammu-svn2643\common\gsmstate.c:
Warning W8066 D:\gammu-svn2643\common\gsmstate.c 1350: Unreachable code in funct
ion GSM_OSErrorInfo
[ 3%] Building C object common/CMakeFiles/libGammu.dir/api.obj
Borland C++ 5.6 for Win32 Copyright (c) 1993, 2002 Borland
D:\gammu-svn2643\common\api.c:
Assertion failed D:\gammu-svn2643\common\api.c(46) : CompilingCPP at c:\helena\b
cc\indep\cpperror.c(1571)
D:\gammu-svn2643\win32\gammu-binary\bcc06.mak>make
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
Scanning dependencies of target libGammu
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
[ 1%] Building C object common/CMakeFiles/libGammu.dir/gsmcomon.obj
Borland C++ 5.6 for Win32 Copyright (c) 1993, 2002 Borland
D:\gammu-svn2643\common\gsmcomon.c:
Warning W8057 D:\gammu-svn2643\common\gsmcomon.c 73: Parameter 'path' is never u
sed in function GSM_InitLocales
[ 1%] Building C object common/CMakeFiles/libGammu.dir/gsmphones.obj
Borland C++ 5.6 for Win32 Copyright (c) 1993, 2002 Borland
D:\gammu-svn2643\common\gsmphones.c:
[ 2%] Building C object common/CMakeFiles/libGammu.dir/gsmstate.obj
Borland C++ 5.6 for Win32 Copyright (c) 1993, 2002 Borland
D:\gammu-svn2643\common\gsmstate.c:
Warning W8066 D:\gammu-svn2643\common\gsmstate.c 1350: Unreachable code in funct
ion GSM_OSErrorInfo
[ 3%] Building C object common/CMakeFiles/libGammu.dir/api.obj
Borland C++ 5.6 for Win32 Copyright (c) 1993, 2002 Borland
D:\gammu-svn2643\common\api.c:
Assertion failed D:\gammu-svn2643\common\api.c(46) : CompilingCPP at c:\helena\b
cc\indep\cpperror.c(1571)
** error 3 ** deleting common\CMakeFiles\libGammu.dir\api.obj
** error 1 ** deleting common\CMakeFiles\libGammu.dir\all
** error 1 ** deleting all
D:\gammu-svn2643\win32\gammu-binary\bcc06.mak>
Please help to check it.
Thanks!
Best Regards,
sunshine_uyl
åå¤§ç¶ wrote: > Dear Sir, > > I try to make gammu-svn2643. You're having issues with `cmake' configuration of a project other than PostgreSQL. This is unlikely to be a PostgreSQL bug. > "Cmake error: invalid escape sequence \p" > "Syntax error in cmake code at > D:/gammu-svn2643/cmake/FindPostgres.cmake:73: syntax error, > unexpected cal_ERRO, expecting $end (38), when parsing string Looking > for PQescapeStringConn in C:\Program Files\PostgreSQL\8.3\lib not found" FindPostgres.cmake is part of the gammu project. You need to contact them and inform them that their CMake code to detect PostgreSQL is broken. Make sure to tell them your cmake version, because that is the first thing they will ask, and also send them your CMakeCache.txt . This is not a problem with PostgreSQL. > Then I type make on cmd That won't work, because CMake configuration didn't work properly. CMake shouldn't have even generated a Makefile; the fact that it did suggests that the error handling in the gammu cmake code is far from ideal. -- Craig Ringer