Code::Blocks Forums

User forums => Help => Topic started by: dkaip on July 04, 2013, 08:19:18 am

Title: insert a dsp file wxsqlite3
Post by: dkaip on July 04, 2013, 08:19:18 am
On Windows XP i am trying to compile wxSQLite3
-----------------------------------------------------------
From http://wxcode.sourceforge.net/components/wxsqlite3/ i download wxsqlite3-3.0.3.zip and extract to c:\
From http://www.codeblocks.org/ instal C::B from codeblocks-12.11mingw-setup.exe
From http://www.wxwidgets.org/ download and extract to c:\ the wxWidgets-2.9.4.zip
Adding to Path the C:\Program Files\CodeBlocks\MinGW\bin
making bat file.
------------------
cd C:\wxWidgets-2.9.4\build\msw\
mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release clean
mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=debug clean
mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release
mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=debug
mingw32-make -f makefile.gcc SHARED=0 UNICODE=1 BUILD=release
mingw32-make -f makefile.gcc SHARED=0 UNICODE=1 BUILD=debug
mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 MONOLITHIC=1 BUILD=release
mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 MONOLITHIC=1 BUILD=debug
mingw32-make -f makefile.gcc SHARED=0 UNICODE=1 MONOLITHIC=1 BUILD=release
mingw32-make -f makefile.gcc SHARED=0 UNICODE=1 MONOLITHIC=1 BUILD=debug
-----------------
and run it i have the libraries.

All are OK until now. wxWidgets framework works fine.

Opening C::B and insert C:\wxsqlite3-3.0.3\build\wxsqlite3_vc6.dsw  and try to compile the MSVC workspace i have the problem.
C:\wxWidgets-2.9.4\include\wx\platform.h|154|fatal error: wx/setup.h: No such file or directory|

The same when try to compile the C:\wxWidgets-2.9.4\build\msw\wx.dsw

Any idea to solve problem?





Title: Re: insert a dsp file wxsqlite3
Post by: ollydbg on July 04, 2013, 10:33:12 am
Opening C::B and insert C:\wxsqlite3-3.0.3\build\wxsqlite3_vc6.dsw  and try to compile the MSVC workspace i have the problem.
C:\wxWidgets-2.9.4\include\wx\platform.h|154|fatal error: wx/setup.h: No such file or directory|
The same when try to compile the C:\wxWidgets-2.9.4\build\msw\wx.dsw
Any idea to solve problem?
Why do you use dsw files? The dsw project files were used for VC6 compiler, but you are currently use MinGW/GCC compiler.
There are sub-folder named "build29" under wxSqlite3, then you should use the makefile.gcc to build this library.
Note: You can manually edit the makefile.gcc
E.g.
Code
# The directory where wxWidgets library is installed 
WX_DIR ?= put your wx2.9.x path here
You may need other adjusts, but I can't remember more.
Title: Re: insert a dsp file wxsqlite3
Post by: dkaip on July 04, 2013, 10:39:52 am
Not only makefile.gcc there is in build29, but also in build sub-folder. Why in build29?
Title: Re: insert a dsp file wxsqlite3
Post by: ollydbg on July 04, 2013, 11:07:28 am
Not only makefile.gcc there is in build29, but also in build sub-folder. Why in build29?
I have build wxsqlite3 library several months ago, but I link agains wx2.8.12, so I use the makefile.gcc under "build" sub-folder. I believe the sub-folder "build29" is used for wx 2.9.x.
Title: Re: insert a dsp file wxsqlite3
Post by: dkaip on July 04, 2013, 01:03:01 pm
Thank you ollydbg for your response.
I just did ...
cd C:\wxsqlite3-3.0.3\build29
mingw32-make -f makefile.gcc

in C:\wxsqlite3-3.0.3\lib\gcc_lib\   gives  libwxcode_msw29ud_wxsqlite3.a
Is that the static lib finally?

In readme file write.
SQLite version 3.7.16 DLL is included. The included link library was built with MS Visual C++ 6. For other compilers it can be necessary to regenerate the link library based on the sqlite.def file in the LIB folder.


Must compile sqlite3 folder with mingw before produce libwxcode_msw29ud_wxsqlite3.a? (1003106 butes)

Must use preprocessor symbol for makefile.gcc like SQLITE_ENABLE_COLUMN_METADATA in line?
mingw32-make -f makefile.gcc SQLITE_ENABLE_COLUMN_METADATA etc?