Page 3 of 5

Re: wxSQLite - how to build?

Posted: Fri Oct 02, 2015 3:02 pm
by evstevemd
Please follow instructions.
I said you should successfully compile wxWidgets before you get wxSQLite3 compile

Re: wxSQLite - how to build?

Posted: Fri Oct 02, 2015 3:08 pm
by sly_chandan
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.

Re: wxSQLite - how to build?

Posted: Fri Oct 02, 2015 3:14 pm
by evstevemd
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!

Re: wxSQLite - how to build?

Posted: Fri Oct 02, 2015 3:22 pm
by sly_chandan
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....
:)

Re: wxSQLite - how to build?

Posted: Fri Oct 02, 2015 3:44 pm
by sly_chandan
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

????

Re: wxSQLite - how to build?

Posted: Fri Oct 02, 2015 3:47 pm
by evstevemd
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

Re: wxSQLite - how to build?

Posted: Fri Oct 02, 2015 3:55 pm
by sly_chandan
Should I use the same command for wxSqlite3 library compilation as well:

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

????

Re: wxSQLite - how to build?

Posted: Fri Oct 02, 2015 4:04 pm
by evstevemd
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!

Re: wxSQLite - how to build?

Posted: Fri Oct 02, 2015 4:27 pm
by sly_chandan
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

Re: wxSQLite - how to build?

Posted: Fri Oct 02, 2015 4:29 pm
by evstevemd
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

Re: wxSQLite - how to build?

Posted: Fri Oct 02, 2015 4:30 pm
by sly_chandan
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.....

Re: wxSQLite - how to build?

Posted: Fri Oct 02, 2015 4:34 pm
by evstevemd
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

Re: wxSQLite - how to build?

Posted: Fri Oct 02, 2015 4:36 pm
by doublemax
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.

Re: wxSQLite - how to build?

Posted: Fri Oct 02, 2015 4:39 pm
by sly_chandan
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 ????

Re: wxSQLite - how to build?

Posted: Fri Oct 02, 2015 4:46 pm
by evstevemd
sly_chandan wrote: What should I do next ????
After what?