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 »

Just out of curiosity..

I did everything what you said and nothing worked steve....

Is this how open source libraries are going to be?

Or do I have to get used to this hard way...why is no one there to guide us?
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:Just out of curiosity..

I did everything what you said and nothing worked steve....

Is this how open source libraries are going to be?

Or do I have to get used to this hard way...why is no one there to guide us?
its not hard. but you are doing something wrong. I can't tell what it is.
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 »

Do I have to build all these possibilities:

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 RUNTIME_LIBS=static BUILD=release
mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 RUNTIME_LIBS=static BUILD=debug
mingw32-make -f makefile.gcc SHARED=0 UNICODE=1 RUNTIME_LIBS=static BUILD=release
mingw32-make -f makefile.gcc SHARED=0 UNICODE=1 RUNTIME_LIBS=static BUILD=debug

mingw32-make -f makefile.gcc SHARED=1 UNICODE=0 BUILD=release
mingw32-make -f makefile.gcc SHARED=1 UNICODE=0 BUILD=debug
mingw32-make -f makefile.gcc SHARED=0 UNICODE=0 BUILD=release
mingw32-make -f makefile.gcc SHARED=0 UNICODE=0 BUILD=debug
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 have done the wxsqlite3 steve.......

wxSqlite3 is installed.....

I had to do some changes apart from what you told me...

Changing the wxsqlite3 parameters you said were required to do.

How do I know I have setup wxsqlite3 correctly.
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 »

How to install sqlite3 or rather how to get it up running...

When I run my wxWidgets app says sqlite3.dll is missing from your computer. Try reinstalling the program.
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 »

Add it to your project libraries in CB and then copy it ti same directory 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?
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 »

When I run my wxWidgets app says sqlite3.dll is missing from your computer. Try reinstalling the program.
Note that wxSQLite3 still requires SQLite3. If you don't link it statically, you need the DLLs from the SQLite download page: https://www.sqlite.org/download.html
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 »

SQLite Solution.png
SQLite Solution.png (14.28 KiB) Viewed 3266 times
This finally has solved the issue for me....

I would recommend this solution to everyone....

No need to compile the wxsqlite library.....

I have tried the way and it messes up the project.....

Thaaaaaaaaaaaaannnnnnnnkkkkkkkkkksssssssssssssssss Steve....

Marvelous!!!!!

=D>
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 »

I have added CMake for compiling MySQL and SQLite3. Other databases will follow (help is appreciated here)
There is sample that is using SQLite3 (but interface i almost the same)
I will appreciate tests and inputs

Basicall
=======
1. CD to build subdir
2. Run Command cmake ../
3. run Make

Remember to setup correct wxWidgets path in CMakeList.txt file

With MySQL you need it installed
with SQLite3 you need nothing. Everything is included
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?
Post Reply