Compiling wxSQLite3 with another wxwidgets

In this forum you can discuss database related issues which can be wxWidgets related, but also generic in nature.
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2051
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania
Contact:

Compiling wxSQLite3 with another wxwidgets

Postby evstevemd » Tue Aug 30, 2011 7:58 pm

I have two wxWidgets, one installed (2.8) and another in Home dir (29 SVN). I want to compile wxSQLite3 agains 2.9
I have tried:
./configure --with-wx-prefix=/home/xxxx/svn/wxwidgets
but it gives me incorrect version

---------------------------------------------------------------
Configuration for wxSqlite3 2.1.1 successfully completed.
Summary of main configuration settings for wxSqlite3:
- RELEASE build
- UNICODE mode
- SHARED mode
- dynamic load disabled
- meta data support disabled
- CODEC support disabled
- loadable extension support disabled

The wxWidgets build which will be used by wxSqlite3 2.1.1
has the following settings:
- RELEASE build
- UNICODE mode
- SHARED mode
- VERSION: 2.8.12
- PORT: gtk2

Now, just run make.
----------------------------------------------------------------

If I run make I get error below which is fine, because it cannot find wxwidgets. I'm stuck!
__ -pthread -O2 ./src/wxsqlite3.cpp
./src/wxsqlite3.cpp:18:23: fatal error: wx/wxprec.h: No such file or directory
compilation terminated.
make: *** [wxsqlite3_dll_wxsqlite3.o] Error 1

Please help!
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
[Ubuntu 15.04/Windows 10 Pro - GCC/MinGW, CodeLite IDE et al]

utelle
Moderator
Moderator
Posts: 758
Joined: Tue Jul 05, 2005 10:00 pm
Location: Cologne, Germany
Contact:

Re: Compiling wxSQLite3 with another wxwidgets

Postby utelle » Tue Aug 30, 2011 9:33 pm

evstevemd wrote:I have two wxWidgets, one installed (2.8) and another in Home dir (29 SVN). I want to compile wxSQLite3 agains 2.9
I have tried:
./configure --with-wx-prefix=/home/xxxx/svn/wxwidgets
but it gives me incorrect version

Well, ./configure --help is your friend. To set a specific version of wxWidgets you have to use the option --with-wxversion.

Regards,

Ulrich

evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2051
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania
Contact:

Re: Compiling wxSQLite3 with another wxwidgets

Postby evstevemd » Wed Aug 31, 2011 12:57 pm

I tried to supply wx-config script path to wx29 and version 2.9 and it compiles fine but then I cannot launch either dbadmin or minimal. They both complain error below even if I copy all files from ../lib directory to the executables. I don't know what else to do!

Code: Select all

./minimal: error while loading shared libraries: libwxcode_gtk2u_wxsqlite3-2.8.so.0: cannot open shared object file: No such file or directory

files I copied in lib directory:

Code: Select all

libwxcode_gtk2u_wxsqlite3-2.8.so        libwxcode_gtk2u_wxsqlite3-2.9.so.0
libwxcode_gtk2u_wxsqlite3-2.8.so.0      libwxcode_gtk2u_wxsqlite3-2.9.so.0.0.0
libwxcode_gtk2u_wxsqlite3-2.8.so.0.0.0  Readme.txt
libwxcode_gtk2u_wxsqlite3-2.9.so
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
[Ubuntu 15.04/Windows 10 Pro - GCC/MinGW, CodeLite IDE et al]

utelle
Moderator
Moderator
Posts: 758
Joined: Tue Jul 05, 2005 10:00 pm
Location: Cologne, Germany
Contact:

Re: Compiling wxSQLite3 with another wxwidgets

Postby utelle » Wed Aug 31, 2011 7:00 pm

evstevemd wrote:I tried to supply wx-config script path to wx29 and version 2.9 and it compiles fine but then I cannot launch either dbadmin or minimal. They both complain error below even if I copy all files from ../lib directory to the executables. I don't know what else to do!

Code: Select all

./minimal: error while loading shared libraries: libwxcode_gtk2u_wxsqlite3-2.8.so.0: cannot open shared object file: No such file or directory

Obviously the executable was built against version 2.8 of wxWidgets and therefore requires still that same library version. From the information you provided I can't tell what and when went wrong. Maybe you passed incomplete wxWidgets version information to configure. You should inspect all configure options which relate to wxWidgets itself.

evstevemd wrote:files I copied in lib directory:

Code: Select all

libwxcode_gtk2u_wxsqlite3-2.8.so        libwxcode_gtk2u_wxsqlite3-2.9.so.0
libwxcode_gtk2u_wxsqlite3-2.8.so.0      libwxcode_gtk2u_wxsqlite3-2.9.so.0.0.0
libwxcode_gtk2u_wxsqlite3-2.8.so.0.0.0  Readme.txt
libwxcode_gtk2u_wxsqlite3-2.9.so

I'm no Linux expert. I myself use the environment variable LD_LIBRARY_PATH to specify the search path for shared objects and I never experienced difficulties to get the samples working.

Regards,

Ulrich

evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2051
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania
Contact:

Re: Compiling wxSQLite3 with another wxwidgets

Postby evstevemd » Wed Aug 31, 2011 8:10 pm

utelle wrote: Maybe you passed incomplete wxWidgets version information to configure. You should inspect all configure options which relate to wxWidgets itself.

I think this is the culprit. But then I use SVN version!
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
[Ubuntu 15.04/Windows 10 Pro - GCC/MinGW, CodeLite IDE et al]

utelle
Moderator
Moderator
Posts: 758
Joined: Tue Jul 05, 2005 10:00 pm
Location: Cologne, Germany
Contact:

Re: Compiling wxSQLite3 with another wxwidgets

Postby utelle » Wed Aug 31, 2011 8:40 pm

evstevemd wrote:
utelle wrote: Maybe you passed incomplete wxWidgets version information to configure. You should inspect all configure options which relate to wxWidgets itself.

I think this is the culprit. But then I use SVN version!

So what? It should work with the SVN version just as well as with any other version. Did you call "make install" for the SVN version? If not it might be necessary to specify more options for configure.

Without seeing the output from configure and then the output from make I can't guess what's going on.

Regards,

Ulrich

evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2051
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania
Contact:

Re: Compiling wxSQLite3 with another wxwidgets

Postby evstevemd » Thu Sep 01, 2011 9:05 pm

utelle wrote:
evstevemd wrote:
utelle wrote:Without seeing the output from configure and then the output from make I can't guess what's going on.

Regards,

Ulrich

Hi Ulrich,
here are two logs, the configure and make
make.txt
(11.24 KiB) Downloaded 149 times
configure.txt
(2.96 KiB) Downloaded 138 times
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
[Ubuntu 15.04/Windows 10 Pro - GCC/MinGW, CodeLite IDE et al]

evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2051
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania
Contact:

Re: Compiling wxSQLite3 with another wxwidgets

Postby evstevemd » Thu Sep 01, 2011 9:22 pm

Also I tried to compile using IDE and it worked with AES128 preprocessor but not AES256 which throws:

Code: Select all

----------Build Started--------
/bin/sh -c '"make"  -j 2 -f "Neno_wsp.mk"'
----------Building project:[ sqlite3 - Debug ]----------
make[1]: Entering directory `/home/xxx/Hosanna/Neno/lib/sqlite3'
gcc -c  "/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sqlite3secure.c" -g -DSQLITE_CORE -DTHREADSAFE=1 -DSQLITE_HAS_CODEC -DCODEC_TYPE=CODEC_TYPE_AES256 -DSQLITE_SECURE_DELETE -DSQLITE_SOUNDEX -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_RTREE  -o ../../working/codec-c_sqlite3secure.o -I. -I"/home/xxx/Hosanna/Neno/lib/sqlite3"/include
In file included from /home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/codec.c:43:0,
                 from /home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sqlite3secure.c:49:
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.h:112:5: error: expected specifier-qualifier-list before ‘uint64’
In file included from /home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/codec.c:44:0,
                 from /home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sqlite3secure.c:49:
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:138:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sha384_h0’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:139:45: error: invalid suffix "a292a367cd507" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:140:20: error: invalid suffix "a3070dd17" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:140:45: error: invalid suffix "fecd8f70e5939" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:141:20: error: invalid suffix "ffc00b31" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:141:45: error: exponent has no digits
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:142:45: error: invalid suffix "b5481dbefa4fa4" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:144:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sha512_h0’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:145:20: error: invalid suffix "a09e667f3bcc908" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:146:20: error: invalid suffix "c6ef372fe94f82b" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:147:20: error: invalid suffix "fade682d1" on floating constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:147:45: error: invalid suffix "b05688c2b3e6c1f" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:148:20: error: invalid suffix "f83d9abfb41bd6b" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:148:45: error: invalid suffix "be0cd19137e2179" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:168:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sha512_k’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:169:20: error: invalid suffix "a2f98d728ae22" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:169:45: error: exponent has no digits
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:171:20: error: invalid suffix "c25bf348b538" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:171:45: error: invalid suffix "f111f1b605d019" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:172:20: error: invalid suffix "f82a4af194f9b" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:173:45: error: invalid suffix "b0145706fbe" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:174:20: error: invalid suffix "be4ee4b28c" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:174:45: error: invalid suffix "c7dc3d5ffb4e2" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:175:20: error: invalid suffix "be5d74f27b896f" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:175:45: error: invalid suffix "deb1fe3b1696b1" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:176:20: error: invalid suffix "bdc06a725c71235" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:178:20: error: invalid suffix "fc19dc68b8cd5b5" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:178:45: error: invalid suffix "ca1cc77ac9c65" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:179:20: error: invalid suffix "de92c6f592b0275" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:179:45: error: invalid suffix "a7484aa6ea6e483" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:180:20: error: invalid suffix "cb0a9dcbd41fbd4" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:180:45: error: invalid suffix "f988da831153b5" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:181:20: error: invalid suffix "ee66dfab" on floating constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:184:20: error: invalid suffix "ca6351e003826f" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:184:45: error: invalid suffix "a0e6e70" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:185:20: error: invalid suffix "b70a8546d22ffc" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:185:45: error: invalid suffix "b21385c26c926" on floating constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:186:20: error: invalid suffix "d2c6dfc5ac42aed" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:186:45: error: invalid suffix "d139d95b3df" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:187:20: error: invalid suffix "a73548baf63de" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:187:45: error: invalid suffix "a0abb3c77b2a8" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:188:20: error: invalid suffix "c2c92e47edaee6" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:188:45: error: invalid suffix "c851482353b" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:192:45: error: invalid suffix "aa07032bbd1b8" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:193:20: error: invalid suffix "a4c116b8d2d0c8" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:193:45: error: invalid suffix "c085141ab53" on floating constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:194:20: error: invalid suffix "cdf8eeb99" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:194:45: error: invalid suffix "b0bcb5e19b48a8" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:195:20: error: invalid suffix "c0cb3c5c95a63" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:195:45: error: exponent has no digits
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:196:20: error: invalid suffix "b9cca4f7763e373" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:196:45: error: invalid suffix "ff3d6b2b8a3" on floating constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:197:20: error: invalid suffix "f82ee5defb2fc" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:197:45: error: invalid suffix "a5636f43172f60" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:198:20: error: invalid suffix "c87814a1f0ab72" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:198:45: error: invalid suffix "cc702081a6439ec" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:199:20: error: invalid suffix "befffa23631e28" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:203:20: error: invalid suffix "f067aa72176fba" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:203:45: error: invalid suffix "a637dc5a2c898a6" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:204:20: error: invalid suffix "f9804bef90dae" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:204:45: error: invalid suffix "b710b35131c471b" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:205:20: error: invalid suffix "db77f523047d84" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:205:45: error: invalid suffix "caab7b40c72493" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:206:20: error: invalid suffix "c9ebe0a15c9bebc" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:206:45: error: invalid suffix "d67c49c100d4c" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:207:20: error: invalid suffix "cc5d4becb3e42b6" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:207:45: error: invalid suffix "f299cfc657e2a" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:208:20: error: invalid suffix "fcb6fab3ad6faec" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:208:45: error: invalid suffix "c44198c4a475817" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c: In function ‘sha512_transf’:
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:431:5: error: ‘uint64’ undeclared (first use in this function)
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:431:5: note: each undeclared identifier is reported only once for each function it appears in
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:431:12: error: expected ‘;’ before ‘w’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:432:12: error: expected ‘;’ before ‘wv’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:433:12: error: expected ‘;’ before ‘t1’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:442:13: error: ‘w’ undeclared (first use in this function)
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:450:13: error: ‘wv’ undeclared (first use in this function)
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:450:24: error: ‘sha512_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:454:13: error: ‘t1’ undeclared (first use in this function)
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:455:19: error: ‘sha512_k’ undeclared (first use in this function)
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:456:13: error: ‘t2’ undeclared (first use in this function)
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:468:16: error: ‘sha512_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c: In function ‘sha512_init’:
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:538:12: error: ‘sha512_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:538:21: error: ‘sha512_h0’ undeclared (first use in this function)
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c: In function ‘sha512_final’:
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:609:9: error: ‘sha512_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:609:9: error: ‘sha512_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:609:9: error: ‘sha512_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:609:9: error: ‘sha512_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:609:9: error: ‘sha512_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:609:9: error: ‘sha512_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:609:9: error: ‘sha512_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:609:9: error: ‘sha512_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c: In function ‘sha384_init’:
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:640:12: error: ‘sha384_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:640:21: error: ‘sha384_h0’ undeclared (first use in this function)
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c: In function ‘sha384_final’:
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:711:9: error: ‘sha384_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:711:9: error: ‘sha384_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:711:9: error: ‘sha384_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:711:9: error: ‘sha384_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:711:9: error: ‘sha384_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:711:9: error: ‘sha384_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:711:9: error: ‘sha384_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:711:9: error: ‘sha384_ctx’ has no member named ‘h’
make[1]: *** [../../working/codec-c_sqlite3secure.o] Error 1
make[1]: Leaving directory `/home/xxx/Hosanna/Neno/lib/sqlite3'
make: *** [All] Error 2
----------Build Ended----------
101 errors, 1 warnings
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
[Ubuntu 15.04/Windows 10 Pro - GCC/MinGW, CodeLite IDE et al]

utelle
Moderator
Moderator
Posts: 758
Joined: Tue Jul 05, 2005 10:00 pm
Location: Cologne, Germany
Contact:

Re: Compiling wxSQLite3 with another wxwidgets

Postby utelle » Thu Sep 01, 2011 9:41 pm

evstevemd wrote:
utelle wrote:Without seeing the output from configure and then the output from make I can't guess what's going on.

Hi Ulrich,
here are two logs, the configure and make
make.txt
configure.txt

Both seem to be quite alright. That is I would expect the minimal sample to work.

On my own Linux system entering "LD_LIBRARY_PATH=../lib:$LD_LIBRARY_PATH ./minimal" works. Specifiying the library search path might be different on your system. And it might be necessary to add the path the wxWidgets libraries as well, if that svm version wasn't properly installed.

Regards,

Ulrich

utelle
Moderator
Moderator
Posts: 758
Joined: Tue Jul 05, 2005 10:00 pm
Location: Cologne, Germany
Contact:

Re: Compiling wxSQLite3 with another wxwidgets

Postby utelle » Thu Sep 01, 2011 9:58 pm

evstevemd wrote:Also I tried to compile using IDE and it worked with AES128 preprocessor but not AES256 which throws:

Code: Select all

----------Build Started--------
/bin/sh -c '"make"  -j 2 -f "Neno_wsp.mk"'
----------Building project:[ sqlite3 - Debug ]----------
make[1]: Entering directory `/home/xxx/Hosanna/Neno/lib/sqlite3'
gcc -c  "/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sqlite3secure.c" -g -DSQLITE_CORE -DTHREADSAFE=1 -DSQLITE_HAS_CODEC -DCODEC_TYPE=CODEC_TYPE_AES256 -DSQLITE_SECURE_DELETE -DSQLITE_SOUNDEX -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_RTREE  -o ../../working/codec-c_sqlite3secure.o -I. -I"/home/xxx/Hosanna/Neno/lib/sqlite3"/include
In file included from /home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/codec.c:43:0,
                 from /home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sqlite3secure.c:49:
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.h:112:5: error: expected specifier-qualifier-list before ‘uint64’
In file included from /home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/codec.c:44:0,
                 from /home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sqlite3secure.c:49:
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:138:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sha384_h0’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:139:45: error: invalid suffix "a292a367cd507" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:140:20: error: invalid suffix "a3070dd17" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:140:45: error: invalid suffix "fecd8f70e5939" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:141:20: error: invalid suffix "ffc00b31" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:141:45: error: exponent has no digits
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:142:45: error: invalid suffix "b5481dbefa4fa4" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:144:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sha512_h0’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:145:20: error: invalid suffix "a09e667f3bcc908" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:146:20: error: invalid suffix "c6ef372fe94f82b" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:147:20: error: invalid suffix "fade682d1" on floating constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:147:45: error: invalid suffix "b05688c2b3e6c1f" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:148:20: error: invalid suffix "f83d9abfb41bd6b" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:148:45: error: invalid suffix "be0cd19137e2179" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:168:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sha512_k’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:169:20: error: invalid suffix "a2f98d728ae22" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:169:45: error: exponent has no digits
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:171:20: error: invalid suffix "c25bf348b538" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:171:45: error: invalid suffix "f111f1b605d019" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:172:20: error: invalid suffix "f82a4af194f9b" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:173:45: error: invalid suffix "b0145706fbe" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:174:20: error: invalid suffix "be4ee4b28c" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:174:45: error: invalid suffix "c7dc3d5ffb4e2" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:175:20: error: invalid suffix "be5d74f27b896f" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:175:45: error: invalid suffix "deb1fe3b1696b1" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:176:20: error: invalid suffix "bdc06a725c71235" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:178:20: error: invalid suffix "fc19dc68b8cd5b5" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:178:45: error: invalid suffix "ca1cc77ac9c65" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:179:20: error: invalid suffix "de92c6f592b0275" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:179:45: error: invalid suffix "a7484aa6ea6e483" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:180:20: error: invalid suffix "cb0a9dcbd41fbd4" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:180:45: error: invalid suffix "f988da831153b5" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:181:20: error: invalid suffix "ee66dfab" on floating constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:184:20: error: invalid suffix "ca6351e003826f" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:184:45: error: invalid suffix "a0e6e70" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:185:20: error: invalid suffix "b70a8546d22ffc" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:185:45: error: invalid suffix "b21385c26c926" on floating constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:186:20: error: invalid suffix "d2c6dfc5ac42aed" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:186:45: error: invalid suffix "d139d95b3df" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:187:20: error: invalid suffix "a73548baf63de" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:187:45: error: invalid suffix "a0abb3c77b2a8" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:188:20: error: invalid suffix "c2c92e47edaee6" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:188:45: error: invalid suffix "c851482353b" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:192:45: error: invalid suffix "aa07032bbd1b8" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:193:20: error: invalid suffix "a4c116b8d2d0c8" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:193:45: error: invalid suffix "c085141ab53" on floating constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:194:20: error: invalid suffix "cdf8eeb99" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:194:45: error: invalid suffix "b0bcb5e19b48a8" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:195:20: error: invalid suffix "c0cb3c5c95a63" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:195:45: error: exponent has no digits
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:196:20: error: invalid suffix "b9cca4f7763e373" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:196:45: error: invalid suffix "ff3d6b2b8a3" on floating constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:197:20: error: invalid suffix "f82ee5defb2fc" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:197:45: error: invalid suffix "a5636f43172f60" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:198:20: error: invalid suffix "c87814a1f0ab72" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:198:45: error: invalid suffix "cc702081a6439ec" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:199:20: error: invalid suffix "befffa23631e28" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:203:20: error: invalid suffix "f067aa72176fba" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:203:45: error: invalid suffix "a637dc5a2c898a6" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:204:20: error: invalid suffix "f9804bef90dae" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:204:45: error: invalid suffix "b710b35131c471b" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:205:20: error: invalid suffix "db77f523047d84" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:205:45: error: invalid suffix "caab7b40c72493" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:206:20: error: invalid suffix "c9ebe0a15c9bebc" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:206:45: error: invalid suffix "d67c49c100d4c" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:207:20: error: invalid suffix "cc5d4becb3e42b6" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:207:45: error: invalid suffix "f299cfc657e2a" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:208:20: error: invalid suffix "fcb6fab3ad6faec" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:208:45: error: invalid suffix "c44198c4a475817" on integer constant
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c: In function ‘sha512_transf’:
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:431:5: error: ‘uint64’ undeclared (first use in this function)
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:431:5: note: each undeclared identifier is reported only once for each function it appears in
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:431:12: error: expected ‘;’ before ‘w’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:432:12: error: expected ‘;’ before ‘wv’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:433:12: error: expected ‘;’ before ‘t1’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:442:13: error: ‘w’ undeclared (first use in this function)
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:450:13: error: ‘wv’ undeclared (first use in this function)
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:450:24: error: ‘sha512_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:454:13: error: ‘t1’ undeclared (first use in this function)
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:455:19: error: ‘sha512_k’ undeclared (first use in this function)
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:456:13: error: ‘t2’ undeclared (first use in this function)
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:468:16: error: ‘sha512_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c: In function ‘sha512_init’:
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:538:12: error: ‘sha512_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:538:21: error: ‘sha512_h0’ undeclared (first use in this function)
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c: In function ‘sha512_final’:
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:609:9: error: ‘sha512_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:609:9: error: ‘sha512_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:609:9: error: ‘sha512_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:609:9: error: ‘sha512_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:609:9: error: ‘sha512_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:609:9: error: ‘sha512_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:609:9: error: ‘sha512_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:609:9: error: ‘sha512_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c: In function ‘sha384_init’:
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:640:12: error: ‘sha384_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:640:21: error: ‘sha384_h0’ undeclared (first use in this function)
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c: In function ‘sha384_final’:
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:711:9: error: ‘sha384_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:711:9: error: ‘sha384_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:711:9: error: ‘sha384_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:711:9: error: ‘sha384_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:711:9: error: ‘sha384_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:711:9: error: ‘sha384_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:711:9: error: ‘sha384_ctx’ has no member named ‘h’
/home/xxx/Hosanna/Neno/lib/sqlite3/secure/src/codec-c/sha2.c:711:9: error: ‘sha384_ctx’ has no member named ‘h’
make[1]: *** [../../working/codec-c_sqlite3secure.o] Error 1
make[1]: Leaving directory `/home/xxx/Hosanna/Neno/lib/sqlite3'
make: *** [All] Error 2
----------Build Ended----------
101 errors, 1 warnings

Obviously the preprocessor code in sha2.c where the uint64 datatype should be defined fails for your compiler/system. All error messages result from the missing typedef for uint64. You have to inspect the code and to probably make adjustments to ensure the uint64 type is defined properly for your system.

Regards,

Ulrich

evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2051
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania
Contact:

Re: Compiling wxSQLite3 with another wxwidgets

Postby evstevemd » Fri Sep 02, 2011 10:40 pm

utelle wrote:Obviously the preprocessor code in sha2.c where the uint64 datatype should be defined fails for your compiler/system. All error messages result from the missing typedef for uint64. You have to inspect the code and to probably make adjustments to ensure the uint64 type is defined properly for your system.

Regards,

Ulrich

Hi Ulrich,
I think I will have to move to using IDE instead of using configure/make as I cannot find why it does not load the library.
Concerning the second question, here is GCC version of __int64===>uint64_t
I'm not sure where to replace in ifdefs

Code: Select all

//=============GCC==================
#include <stdint.h>
#if defined(__GCC__)
typedef uint64_t uint64;
#endif
//================================
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
[Ubuntu 15.04/Windows 10 Pro - GCC/MinGW, CodeLite IDE et al]

utelle
Moderator
Moderator
Posts: 758
Joined: Tue Jul 05, 2005 10:00 pm
Location: Cologne, Germany
Contact:

Re: Compiling wxSQLite3 with another wxwidgets

Postby utelle » Sat Sep 03, 2011 10:32 am

evstevemd wrote:I think I will have to move to using IDE instead of using configure/make as I cannot find why it does not load the library.

Unfortunately I have no idea why configure is not working for you. Up to now I haven't received complains from other users of wxSQLite3.

evstevemd wrote:Concerning the second question, here is GCC version of __int64===>uint64_t
I'm not sure where to replace in ifdefs

Code: Select all

//=============GCC==================
#include <stdint.h>
#if defined(__GCC__)
typedef uint64_t uint64;
#endif
//================================

As a quick (and dirty) fix add the following lines in front of line 94 of sha2.h:

Code: Select all

#endif // line 93

#else 
  #define li_64(h) 0x##h##llu
  typedef unsigned long long uint64;

#endif // line 94
#endif // line 95


The SHA code wasn't written by me. For the next version of wxSQLite3 I'll try to find out whether there is a better way to reliably detect the right 64 bit integer type.

Regards,

Ulrich

evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2051
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania
Contact:

Re: Compiling wxSQLite3 with another wxwidgets

Postby evstevemd » Sat Sep 03, 2011 9:00 pm

thaks Ulrich,
it compiles fine now.
I will leave the configure thing for now.
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
[Ubuntu 15.04/Windows 10 Pro - GCC/MinGW, CodeLite IDE et al]


Return to “Database Related”

Who is online

Users browsing this forum: No registered users and 1 guest