From: Miguel C. <mig...@gm...> - 2007-05-03 23:32:04
|
On 5/3/07, Ulrich Telle <Ulr...@gm...> wrote: > > Hi Miguel, > > > I just installed wxSQLite3 library > > Which version of wxSQLite3? For which version of wxWidgets? On which > platform? Sorry, I forgot all this information. I'm under Ubuntu 7.06 (kernel 2.6.20-15-generic), wxWidgets 2.8.1.1, Sqlite 3 with the last version of wxSQLite3, 2.7.3 (released on 05/01) I guess you are using a Linux system. In that case a suitable version of > SQLite > needs to installed prior to building wxSQLite3. Which version is needed > depends > on the version wxSQLite3 you plan to use. > > > (with some problems: the script to check aclocal version fails, > > What error messages are shown? My aclocal version: aclocal (GNU automake) 1.9.6 First message: ./acregen.sh: 15: Syntax error: "(" unexpected A bash error. Removing the 'function' the script works. After error appears on 'if' verifications, to fixed this, the "ifs" had been thus (poor, but works for me): if [ "$majok" = "0" ]; then aclocalold fi if [ "$majok" = "1" ]; then if [ "$minok" = "0" ]; then aclocalold fi fi if [ "$majok" = "1" ]; then if [ "$minok" = "1" ]; then if [ "$relok" = 0 ]; then aclocalold fi fi fi Second (with fixed script): configure.ac:22: file `../../../build/autoconf/wxcode.m4' does not exist > then I exclude the check), and when I try to use the lib, the following > > error occurs: > > undefined reference to `wxSQLite3Database::Open(wxString const&)' > > Starting with version 1.7.0 of wxSQLite3 the signature of the Open method > changed. There is now an additional optional parameter 'password'. Do you > have > an older version of wxSQLite3 installed on your system? No, it's my the first time with wXSQLite3. > I using the wxsqlite3u lib. The stranger is that on 'make' command the > > sample mininal is compiled and linked. > > If that works without problems there has to be an installed version of > wxSQLite3 somewhere. No, on make the minimal sample is build reference the just compiled lib. Here is the command line: g++ -c -o minimal_minimal.o -DWXUSINGDLL -I./include -I./sqlite3/include -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -g0 -O2 ././samples/minimal.cpp g++ -o samples/minimal minimal_minimal.o -L./lib -L./lib -L./sqlite3/lib -pthread -lwx_gtk2u_core-2.8 -lwx_baseu-2.8 -lwxsqlite3u -lsqlite3 The libraty path (-L) is ./lib, so the linker search for libs in wxsqlite3/lib, and the just compiled wxsqlite3 library is there. > I try to use the not installed lib (wxsqlite3/lib/libwxsqlite3u.so) > > with no success. > > Maybe you have two different versions of wxSQLite3 on your system and the > include paths are somehow mixed up. > > > Someone have the same error?? > > It's the first time such an error is reported to me. > > Regards, > > Ulrich > -- > E-Mail privat: Ulr...@gm... > E-Mail Studium: Ulr...@Fe... > World Wide Web: http://www.stud.fernuni-hagen.de/q1471341 > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > wxCode-users mailing list > wxC...@li... > https://lists.sourceforge.net/lists/listinfo/wxcode-users > Thanks for reply, Regards -- Miguel Cartagena |