wxSQLite - how to build? Topic is solved

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
sly_chandan
Earned some good credits
Earned some good credits
Posts: 116
Joined: Fri Sep 25, 2015 2:33 pm

Re: wxSQLite - how to build?

Post by sly_chandan »

After the compilation errors...

I just did a fresh compilation for wxWidgets3.0.2
User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2408
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania

Re: wxSQLite - how to build?

Post by evstevemd »

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?
User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2408
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania

Re: wxSQLite - how to build?

Post 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?
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?
sly_chandan
Earned some good credits
Earned some good credits
Posts: 116
Joined: Fri Sep 25, 2015 2:33 pm

Re: wxSQLite - how to build?

Post 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
User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2408
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania

Re: wxSQLite - how to build?

Post by evstevemd »

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?
sly_chandan
Earned some good credits
Earned some good credits
Posts: 116
Joined: Fri Sep 25, 2015 2:33 pm

Re: wxSQLite - how to build?

Post 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

?????
User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2408
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania

Re: wxSQLite - how to build?

Post 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!
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?
sly_chandan
Earned some good credits
Earned some good credits
Posts: 116
Joined: Fri Sep 25, 2015 2:33 pm

Re: wxSQLite - how to build?

Post by sly_chandan »

I am running the compilation again.

Lets see what happens this time.

Do you still have something we can do different ?
sly_chandan
Earned some good credits
Earned some good credits
Posts: 116
Joined: Fri Sep 25, 2015 2:33 pm

Re: wxSQLite - how to build?

Post by sly_chandan »

what library do u use for database access with wxwidgets?
User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2408
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania

Re: wxSQLite - how to build?

Post by evstevemd »

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?
sly_chandan
Earned some good credits
Earned some good credits
Posts: 116
Joined: Fri Sep 25, 2015 2:33 pm

Re: wxSQLite - how to build?

Post by sly_chandan »

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: 19102
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxSQLite - how to build?

Post 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.
Use the source, Luke!
sly_chandan
Earned some good credits
Earned some good credits
Posts: 116
Joined: Fri Sep 25, 2015 2:33 pm

Re: wxSQLite - how to build?

Post by sly_chandan »

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??
User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2408
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania

Re: wxSQLite - how to build?

Post 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!
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?
User avatar
doublemax
Moderator
Moderator
Posts: 19102
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxSQLite - how to build?

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