wxSqlite3 + mingw32 + static lib
Posted: Wed Jul 01, 2009 2:26 pm
Hello!
I have a problem compiling the wxSqlite3 library as an static one to be able to use it in my projects without a DLL.
There is no tutorial but im doing this.
1. Download sqlite-source-3_6_16 (to be able to use encryption) and build it with C::B as an static library.
2. I get an libSqlite3.a (~800 kb), I copy and put it under
C:\wxsqlite3-1.9.5\sqlite3\lib.
3. I change in the C:\wxsqlite3-1.9.5\build\makefile.gcc so it fits my wxWidgets build and use USE_DYNAMIC_SQLITE3_LOAD = 0.
4. Then open cmd and compile: mingw32-make -f makefile.gcc
5. I get an libwxcode_msw28u_wxsqlite3.a (~270 kb) and a dll (~3.5 MB) with the same name, In C:\wxsqlite3-1.9.5\lib\gcc_lib.
6. I copy that file to C:\wxWidgets-2.8.10\lib\gcc_lib and add the file name in my Project->Build Option->Linker Settings
After all this when I compile the sample in wxSqlite3 i get
"wx/wxsqlite3.h: No such file or directory" and alot other errors.
So what im I doing wrong? why is this not working?
Thanks
I have a problem compiling the wxSqlite3 library as an static one to be able to use it in my projects without a DLL.
There is no tutorial but im doing this.
1. Download sqlite-source-3_6_16 (to be able to use encryption) and build it with C::B as an static library.
2. I get an libSqlite3.a (~800 kb), I copy and put it under
C:\wxsqlite3-1.9.5\sqlite3\lib.
3. I change in the C:\wxsqlite3-1.9.5\build\makefile.gcc so it fits my wxWidgets build and use USE_DYNAMIC_SQLITE3_LOAD = 0.
4. Then open cmd and compile: mingw32-make -f makefile.gcc
5. I get an libwxcode_msw28u_wxsqlite3.a (~270 kb) and a dll (~3.5 MB) with the same name, In C:\wxsqlite3-1.9.5\lib\gcc_lib.
6. I copy that file to C:\wxWidgets-2.8.10\lib\gcc_lib and add the file name in my Project->Build Option->Linker Settings
After all this when I compile the sample in wxSqlite3 i get
"wx/wxsqlite3.h: No such file or directory" and alot other errors.
So what im I doing wrong? why is this not working?
Thanks