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 7:35 pm

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?

evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 1981
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 7:39 pm

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?
[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 10:27 pm

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
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 » Sat Oct 03, 2015 12:39 am

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
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 » Sat Oct 03, 2015 2:33 am

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.

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

Re: wxSQLite - how to build?

Postby evstevemd » Sat Oct 03, 2015 6:46 am

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?
[Ubuntu 15.04/Windows 10 Pro - GCC/MinGW, CodeLite IDE et al]

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

Re: wxSQLite - how to build?

Postby doublemax » Sat Oct 03, 2015 11:07 am

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
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 » Sat Oct 03, 2015 1:23 pm

SQLite Solution.png
SQLite Solution.png (14.28 KiB) Viewed 625 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>

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

Re: wxSQLite - how to build?

Postby evstevemd » Thu Oct 08, 2015 8:09 pm

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?
[Ubuntu 15.04/Windows 10 Pro - GCC/MinGW, CodeLite IDE et al]


Return to “wxCode”

Who is online

Users browsing this forum: No registered users and 1 guest