wxSQLite - how to build?  [SOLVED]

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
sly_chandan
Knows some wx things
Knows some wx things
Posts: 41
Joined: Fri Sep 25, 2015 2:33 pm

Re: wxSQLite - how to build?

Postby sly_chandan » Fri Oct 02, 2015 4:47 pm

After the compilation errors...

I just did a fresh compilation for wxWidgets3.0.2

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

Re: wxSQLite - how to build?

Postby evstevemd » Fri Oct 02, 2015 4:53 pm

sly_chandan wrote:After the compilation errors...

I just did a fresh compilation for wxWidgets3.0.2

Which errors?
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: 2072
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania
Contact:

Re: wxSQLite - how to build?

Postby evstevemd » Fri Oct 02, 2015 4:55 pm

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?
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]

sly_chandan
Knows some wx things
Knows some wx things
Posts: 41
Joined: Fri Sep 25, 2015 2:33 pm

Re: wxSQLite - how to build?

Postby sly_chandan » Fri Oct 02, 2015 4:58 pm

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

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

Re: wxSQLite - how to build?

Postby evstevemd » Fri Oct 02, 2015 5:08 pm

Copy it from the said location unto your application folder same folder as your exe!
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]

sly_chandan
Knows some wx things
Knows some wx things
Posts: 41
Joined: Fri Sep 25, 2015 2:33 pm

Re: wxSQLite - how to build?

Postby sly_chandan » Fri Oct 02, 2015 5:10 pm

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

?????

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

Re: wxSQLite - how to build?

Postby evstevemd » Fri Oct 02, 2015 5:19 pm

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!
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]

sly_chandan
Knows some wx things
Knows some wx things
Posts: 41
Joined: Fri Sep 25, 2015 2:33 pm

Re: wxSQLite - how to build?

Postby sly_chandan » Fri Oct 02, 2015 5:21 pm

I am running the compilation again.

Lets see what happens this time.

Do you still have something we can do different ?

sly_chandan
Knows some wx things
Knows some wx things
Posts: 41
Joined: Fri Sep 25, 2015 2:33 pm

Re: wxSQLite - how to build?

Postby sly_chandan » Fri Oct 02, 2015 5:30 pm

what library do u use for database access with wxwidgets?

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

Re: wxSQLite - how to build?

Postby evstevemd » Fri Oct 02, 2015 5:30 pm

sly_chandan wrote:Do you still have something we can do different ?

No!
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]

sly_chandan
Knows some wx things
Knows some wx things
Posts: 41
Joined: Fri Sep 25, 2015 2:33 pm

Re: wxSQLite - how to build?

Postby sly_chandan » Fri Oct 02, 2015 5:34 pm

No problem buddy. Thanks for helping me out in this.
I will find a way to set this up.

=D> Cheers!

User avatar
doublemax
Moderator
Moderator
Posts: 11472
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxSQLite - how to build?

Postby doublemax » Fri Oct 02, 2015 5:36 pm

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.
Use the source, Luke!

sly_chandan
Knows some wx things
Knows some wx things
Posts: 41
Joined: Fri Sep 25, 2015 2:33 pm

Re: wxSQLite - how to build?

Postby sly_chandan » Fri Oct 02, 2015 5:39 pm

why didn't you tell me this?

I just want some way to use database access!!!!!!
:lol:
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??

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

Re: wxSQLite - how to build?

Postby evstevemd » Fri Oct 02, 2015 5:42 pm

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!
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]

User avatar
doublemax
Moderator
Moderator
Posts: 11472
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxSQLite - how to build?

Postby doublemax » Fri Oct 02, 2015 5:46 pm

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.
Use the source, Luke!


Return to “wxCode”

Who is online

Users browsing this forum: No registered users and 1 guest