I am using Netbeans C/C++ IDE ver. 7.1.2 and SQLite ver. 3.7.13 and Windows 7 OS.
Download links for:
- Cygwin: (http://cygwin.com/install.html)
- Netbeans: (http://netbeans.org/downloads/index.html)
- Sqlite: (http://www.sqlite.org/download.html/)
- Source Code: sqlite-autoconf-3071300.tar.gz
- Precompiled Binaries For Windows: sqlite-shell-win32-x86-3071300.zip is command line shell.
- For those who are not interested in command line shell:
- SQLite Database Browser: (http://sqlitebrowser.sourceforge.net/ ) Apparently, there is not download link but at the bottom of mentioned webpage there is SourceForge.net link. By searching SQLite Database Browser in http://sourceforge.net/, we can download this tool.
Installation Procedure:
Installation of Cygwin, Netbeans, and SQLite Database browser is straight forward, hopefully for everyone. But in order to install SQLite source code that we downloaded before, need procedure given below.
Compile SQLite using Cygwin:
Open Cygwin Terminal, then;
Open Cygwin Terminal, then;
- Locate Z:\Cygwin\home\your_name. 'Z' is the drive name where Cygwin is installed, and 'your_name' is YOUR NAME :P.
- Copy source code file 'sqlite-autoconf-3071300.tar.gz' to directory mentioned in point 1.
- Start Cygwin.
- Enter into Z:\Cygwin\home\your_name. By default, Cygwin terminal is in home\your_name directory. You can check using 'pwd' command, if response is negative then use 'cd' to change directory.
- tar -xzvf sqlite-autoconf-3071300.tar.gz (To unzip)
- Enter sqlite-autoconf-3071300, e.g. cd sqlite-autoconf-3071300. Then
- ./configure
- make
- make install
- sqlite3.h
- libsqlite3.a
- libsqlite3.dll.a
- Include header file; #include <sqlite3.h>
- Go to project settings of your Netbeans project. Then 'build->linker->libraries', and give reference to above two libraries.
Hello Bryan!
ReplyDeleteThanks for your compliment. I don't think, I'm good in writing. I wish to learn this skill.
Have good day :)
Thanks for starting this up. This blog is something that is needed on the web someone with a little originality. Good job for bringing something new to the internet!
ReplyDeletehttp://www.xtremerctoys.com/
Great instructions! I use MinGW (MSYS) C++ on my system with Netbeans, and your instructions work ok with that environment also. The only change I had to make was the $HOME directory, which is different than CYGWIN (i.e. C:\MinGW\msys\1.0\home\yourname).
ReplyDeleteI copied the sqlite3.h, libsqlite3.a, libsqlite3.dll.a and libsqlite3-0.dll files into my netbeans project, added the .a files as library files, and my program was able to use sqlite ok.
Good one :)
Delete