Game Development Community

SQLite in TBE (Windows) integration problem

by starwize · in Torque Game Engine · 05/06/2005 (10:26 am) · 3 replies

Sorry about the double post. I need some help integrating SQLite into Torque. I'm using 1.3 and building it under TBE (Eclipse) in WindowsXP and have successfully compiled other project in this environment. I started with Dreamers excellent post about integrating SQLite with Linux:

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=7281

I made all the necessary changes in my ~/Torque/engine/targets.torque.mk file. When I build, it won't make a new exe file, showing the following error in console:

--> Compiling platformWin32/winWindow.cc
--> Linking out.GCC3.RELEASE/synapseGaming.exe
g++.exe: ../lib/out.GCC3.RELEASE/sqlite.a: No such file or directory
make[1]: *** [out.GCC3.RELEASE/synapseGaming.exe] Error 1
make[1]: Target 'synapseGaming' not remade because of errors.
make: *** [default] Error 2


As I said, I made all the changes to targets.torque.mk listed in Dreamers post. I didn't, though, do all of the step listed in the post. First, Dreamer says to do this:

mkdir ~/Torque/lib/sqlite
cp /usr/include/sqlite.h ~/Torque/engine/console
cp /usr/lib/sqlite.a ~/Torque/lib/sqlite/sqlite_DEBUG.a

How do I do this in Windows (using TBE)? Also, towards the end of the post, it says to do this:

cp ~/Torque/lib/sqlite/sqlite_DEBUG.a ~/Torque/lib/out.GCC3.DEBUG
make

Obviously, considering the error console gave when compiling, it isn't making sqlite.a. How can I make it do this under Windows?

#1
05/06/2005 (1:47 pm)
I have also tried this and it didn't link:

drop the precompiled sqlite .lib file in the /lib/GCC.OUT and rename it sqlite_DEBUG.a.
#2
05/07/2005 (9:16 am)
Did I post this in the wrong forum? Also, I surmised cp is copy (I know nothing about console commands in Linux, just guessing), yet there is no sqlite.a file in the resource I downloaded. Could anyone tell me where I could download sqlite.a?
#3
05/07/2005 (11:28 am)
Interesting topic. I'd suggest installing sqlite either from your distro or from the SQLite home page. (Should be easy to google for it.) My preference would be to use the library and headers from their system location, and note the version for revision tracking purposes. Then you just need to add the appropriate directories to your -I and -L directives in the makefiles.

Oh, and cp is indeed the Linux copy command. Within Linux, type "man cp" to get its documentation. Type "man man" to see more on how to use the manual page viewer. "man -k keyword" will find man pages about that keyword.

--> Compiling platformWin32/winWindow.cc
--> Linking out.GCC3.RELEASE/synapseGaming.exe

This is probably wrong. Since you're building on Win32, you should be using its make config, not the one for GCC3. Unless you're using gcc on Win32 (eg. the mingw tools).