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.