Page 4 of 5
Re: wxSQLite - how to build?
Posted: Fri Oct 02, 2015 4:47 pm
by sly_chandan
After the compilation errors...
I just did a fresh compilation for wxWidgets3.0.2
Re: wxSQLite - how to build?
Posted: Fri Oct 02, 2015 4:53 pm
by evstevemd
sly_chandan wrote:After the compilation errors...
I just did a fresh compilation for wxWidgets3.0.2
Which errors?
Re: wxSQLite - how to build?
Posted: Fri Oct 02, 2015 4:55 pm
by evstevemd
AFAICS, your compilation was succesful and you should have libraries in wxDir\lib\gcc_dll or something like that.
Same to wxWidgets. Have you ever worked with C++ libraries?
Re: wxSQLite - how to build?
Posted: Fri Oct 02, 2015 4:58 pm
by sly_chandan
wxWidgets application isn't compiling....
wxmsw30u_gcc_custom.dll is missing from your computer.
Try reinstalling the program to fix this problem.
Shall I begin again?
I have made an application in MFC
Re: wxSQLite - how to build?
Posted: Fri Oct 02, 2015 5:08 pm
by evstevemd
Copy it from the said location unto your application folder same folder as your exe!
Re: wxSQLite - how to build?
Posted: Fri Oct 02, 2015 5:10 pm
by sly_chandan
Are you sure about the following command:
mingw32-make -j4 -f makefile.gcc BUILD=debug UNICODE=1 SHARED=1
The command that I use to successfully install wxWidgets is this:
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1
?????
Re: wxSQLite - how to build?
Posted: Fri Oct 02, 2015 5:19 pm
by evstevemd
sly_chandan wrote:Are you sure about the following command:
mingw32-make -j4 -f makefile.gcc BUILD=debug UNICODE=1 SHARED=1
The command that I use to successfully install wxWidgets is this:
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1
?????
BUILD=debug ==>Build libs as debug
UNICODE=1 =>Enable Unicode
SHARED=1 =>Build Share d library DLLs
USE_XRC=1 => Enable XRC
MONOLITHIC=1 => Compile as single library than default multilibs
So build to your flavour. You never said if dll are in the folder I pointed out so I cannot help on whether you succeeded or not!
Re: wxSQLite - how to build?
Posted: Fri Oct 02, 2015 5:21 pm
by sly_chandan
I am running the compilation again.
Lets see what happens this time.
Do you still have something we can do different ?
Re: wxSQLite - how to build?
Posted: Fri Oct 02, 2015 5:30 pm
by sly_chandan
what library do u use for database access with wxwidgets?
Re: wxSQLite - how to build?
Posted: Fri Oct 02, 2015 5:30 pm
by evstevemd
sly_chandan wrote:
Do you still have something we can do different ?
No!
Re: wxSQLite - how to build?
Posted: Fri Oct 02, 2015 5:34 pm
by sly_chandan
No problem buddy. Thanks for helping me out in this.
I will find a way to set this up.
Cheers!
Re: wxSQLite - how to build?
Posted: Fri Oct 02, 2015 5:36 pm
by doublemax
If wxSQlite3 is enough for you, there is also the option to just add all source files to your project instead of building an external library. That's what i always do.
From wxSQLite3 you need the following files:
wxsqlite3.cpp
wxsqlite3.h
wxsqlite3def.h
wxsqlite3dyn.h
wxsqlite3opt.h
Then download the SQLite Amalgamation source from here:
https://www.sqlite.org/download.html
From that archive you need the following files:
sqlite3.c
sqlite3.h
sqlite3ext.h
Add all source files to your project as if they your sources files.
Re: wxSQLite - how to build?
Posted: Fri Oct 02, 2015 5:39 pm
by sly_chandan
why didn't you tell me this?
I just want some way to use database access!!!!!!
I am building the library because I don't know how else can I use it...
U mean to say I just add the files in my desired project and database access is available?
Can I use the databaselayer as well in a similar fashion??
Re: wxSQLite - how to build?
Posted: Fri Oct 02, 2015 5:42 pm
by evstevemd
sly_chandan wrote:
Can I use the databaselayer as well in a similar fashion??
Yes but you need some preprocessors, include paths and Library paths
Check the Provided VS/CodeLite projects to get the clue!
Re: wxSQLite - how to build?
Posted: Fri Oct 02, 2015 5:46 pm
by doublemax
U mean to say I just add the files in my desired project and database access is available?
Yes. But as already mentioned, only to a local SQlite database.
Can I use the databaselayer as well in a similar fashion??
Theoretically it works with every library, but as it consists of over 120 files, it might get more complicated. I've never used wxDatabaseLayer myself.