wxSQLite - how to build?  [SOLVED]

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2077
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 3:02 pm

Please follow instructions.
I said you should successfully compile wxWidgets before you get wxSQLite3 compile
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 3:08 pm

wxWidgets has been installed successfully......the wxSQLite library is not compiling....

Should I clean and compile it again?

This is so frustrating I cant enable the data access library in any way... I just don't understand why is it so complicated...

Thanks for the patience but you're the only one who is helping me....there is no one else responding to the questions in this forum...

If you could help me with any other database library, I would be deeply grateful to you.
Last edited by sly_chandan on Fri Oct 02, 2015 3:16 pm, edited 1 time in total.

evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2077
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 3:14 pm

sly_chandan wrote:wxWidgets has been installed successfully......the wxSQLite library is not compiling....


Code: Select all

s-3.0.2 \lib\gcc_dll\mswud -IC:\wxWidgets-3.0.2 \include -O0 -g -W -Wall -I..\ing++: error: \lib\gcc_dll\mswud: No such

Here it shows you are compiling as unicode debug but your wx was not compiled as debug!

sly_chandan wrote:Should I clean and compile it again?

Yes. And you should use the command I gave there with build=debug shared=1 and unicode=1

The best is deleting wxWidgets folder and start afresh!
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 3:22 pm

I will start all over again.....please don't go away ..

I need to get this fixed.....you are very helpful..

Thanks for the patience...


I am starting all over again....
:)

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 3:44 pm

wxWidgets did not run successfully.......


g++: error: gcc_mswuddll\coredllbuttonbar.o: No such file or directory
makefile.gcc:5263: recipe for target '..\..\lib\gcc_dll\wxmsw30ud_core_gcc_custom.dll' failed
mingw32-make: *** [..\..\lib\gcc_dll\wxmsw30ud_core_gcc_custom.dll] Error 1

:(

Is the following command right:

mingw32-make SHELL=CMD.exe -j4 -f makefile.gcc BUILD=debug UNICODE=1 SHARED=1

????

evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2077
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 3:47 pm

sly_chandan wrote:wxWidgets did not run successfully.......

:(

Is the following command right:

mingw32-make SHELL=CMD.exe -j4 -f makefile.gcc BUILD=debug UNICODE=1 SHARED=1

????

this should be enough. Without error message no help!

Code: Select all

mingw32-make   -j4 -f makefile.gcc BUILD=debug UNICODE=1 SHARED=1
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 3:55 pm

Should I use the same command for wxSqlite3 library compilation as well:

mingw32-make -j4 -f makefile.gcc BUILD=debug UNICODE=1 SHARED=1

????

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

sly_chandan wrote:Should I use the same command for wxSqlite3 library compilation as well:

mingw32-make -j4 -f makefile.gcc BUILD=debug UNICODE=1 SHARED=1

????

Yes!
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:27 pm

wxWidgets ended with this


g++ -shared -fPIC -o ..\..\lib\gcc_dll\wxmsw30ud_richtext_gcc_custom.dll gcc_mswuddll\richtextdll_dummy.o gcc_mswuddll\r
ichtextdll_version_rc.o gcc_mswuddll\richtextdll_richtextbuffer.o gcc_mswuddll\richtextdll_richtextctrl.o gcc_mswuddll\r
ichtextdll_richtextformatdlg.o gcc_mswuddll\richtextdll_richtexthtml.o gcc_mswuddll\richtextdll_richtextimagedlg.o gcc_m
swuddll\richtextdll_richtextprint.o gcc_mswuddll\richtextdll_richtextstyledlg.o gcc_mswuddll\richtextdll_richtextstyles.
o gcc_mswuddll\richtextdll_richtextsymboldlg.o gcc_mswuddll\richtextdll_richtextxml.o gcc_mswuddll\richtextdll_xh_richte
xt.o -g -mthreads -L..\..\lib\gcc_dll -Wl,--out-implib=..\..\lib\gcc_dll\libwxmsw30ud_richtext.a -lwxtiffd -lwxjpegd
-lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lco
mctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet ..\..\lib\gcc_dll\libwxmsw30ud_adv.a ..\..\lib\
gcc_dll\libwxmsw30ud_html.a ..\..\lib\gcc_dll\libwxbase30ud_xml.a ..\..\lib\gcc_dll\libwxmsw30ud_core.a ..\..\lib\gcc_dl
l\libwxbase30ud.a
Last edited by sly_chandan on Fri Oct 02, 2015 4:29 pm, edited 1 time in total.

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

sly_chandan wrote:Ok I have done both the compilations....

How do I know it all went right???

Where is the dll located?

Use windows Explorer to seach them. But there should be lib or something there
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:30 pm

Its not gone well....


g++ -shared -fPIC -o ..\..\lib\gcc_dll\wxmsw30ud_richtext_gcc_custom.dll gcc_mswuddll\richtextdll_dummy.o gcc_mswuddll\r
ichtextdll_version_rc.o gcc_mswuddll\richtextdll_richtextbuffer.o gcc_mswuddll\richtextdll_richtextctrl.o gcc_mswuddll\r
ichtextdll_richtextformatdlg.o gcc_mswuddll\richtextdll_richtexthtml.o gcc_mswuddll\richtextdll_richtextimagedlg.o gcc_m
swuddll\richtextdll_richtextprint.o gcc_mswuddll\richtextdll_richtextstyledlg.o gcc_mswuddll\richtextdll_richtextstyles.
o gcc_mswuddll\richtextdll_richtextsymboldlg.o gcc_mswuddll\richtextdll_richtextxml.o gcc_mswuddll\richtextdll_xh_richte
xt.o -g -mthreads -L..\..\lib\gcc_dll -Wl,--out-implib=..\..\lib\gcc_dll\libwxmsw30ud_richtext.a -lwxtiffd -lwxjpegd
-lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lco
mctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet ..\..\lib\gcc_dll\libwxmsw30ud_adv.a ..\..\lib\
gcc_dll\libwxmsw30ud_html.a ..\..\lib\gcc_dll\libwxbase30ud_xml.a ..\..\lib\gcc_dll\libwxmsw30ud_core.a ..\..\lib\gcc_dl
l\libwxbase30ud.a


This is a fresh compilation.....

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

sly_chandan wrote:Its not gone well....


g++ -shared -fPIC -o ..\..\lib\gcc_dll\wxmsw30ud_richtext_gcc_custom.dll gcc_mswuddll\richtextdll_dummy.o gcc_mswuddll\r
ichtextdll_version_rc.o gcc_mswuddll\richtextdll_richtextbuffer.o gcc_mswuddll\richtextdll_richtextctrl.o gcc_mswuddll\r
ichtextdll_richtextformatdlg.o gcc_mswuddll\richtextdll_richtexthtml.o gcc_mswuddll\richtextdll_richtextimagedlg.o gcc_m
swuddll\richtextdll_richtextprint.o gcc_mswuddll\richtextdll_richtextstyledlg.o gcc_mswuddll\richtextdll_richtextstyles.
o gcc_mswuddll\richtextdll_richtextsymboldlg.o gcc_mswuddll\richtextdll_richtextxml.o gcc_mswuddll\richtextdll_xh_richte
xt.o -g -mthreads -L..\..\lib\gcc_dll -Wl,--out-implib=..\..\lib\gcc_dll\libwxmsw30ud_richtext.a -lwxtiffd -lwxjpegd
-lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lco
mctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet ..\..\lib\gcc_dll\libwxmsw30ud_adv.a ..\..\lib\
gcc_dll\libwxmsw30ud_html.a ..\..\lib\gcc_dll\libwxbase30ud_xml.a ..\..\lib\gcc_dll\libwxmsw30ud_core.a ..\..\lib\gcc_dl
l\libwxbase30ud.a


This is a fresh compilation.....

Check in lib\gcc_dll
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: 11536
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxSQLite - how to build?

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

Just for the record: In your first post you wrote you wanted to connect to an ODBC database.

wxSQlite3 requires sqlite and it uses a local database file. You can't connect to remote databases with it.
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 4:39 pm

That's alright...I am ok with wxSQLite3 as local db.....


I will also be trying to get DatabaseLayer working for ODBC connectivity...

I am not going to give up so easily....I will set it up sooner or later...

What should I do next ????

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

sly_chandan wrote:What should I do next ????

After what?
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 3 guests