These instructions apply to all GNU/Linux systems. Requirements: - Python - Download here.
- Python development files.
That is, you either need python installed from the official source tarball or the package from your distribution that provides Python header files. Specifically, Python.h, which should be located at /usr/include/python2.2/ - PyQT 3.5 - Download here.
- QT 3.x
- QT development files or ImageMagick and development files.
Optional requirements (but highly recommended): - ImageMagick library and development files - Download here.
If detected during installation, imgSeek will support over 87 image formats. - Python Imaging Library - Download here.
If detected during installation, IPTC metadata extraction and Transform tools will be enabled.
All GNU/Linux distributions provide these requirements. Use your distribution's .deb/.rpm/.ebuild/etc... If you have any problem installing imgSeek, feel free to email me or the users mailing list. Source InstallUntar the downloaded archive: $ tar -zxvf imgSeek-0.6.tar.gz The contents will be placed on a directory called "imgSeek". If you have ImageMagick library and development files, make sure you also have "Magick++-config" (this is installed by ImageMagick, and is used to determine compile flags and header files location) If you don't have or don't want to install ImageMagick, then you will need QT 3.x development files installed. If this is the case, make sure the QTDIR environment variable is properly set to the correct location where QT was installed to. Type "echo $QTDIR" to see what it is pointing to. You can set it with "export QTDIR=/usr/lib/qt", where you should change /usr/lib/qt to the proper location. To install, enter the imgSeek directory where archive contents were extracted to and type, as root: # python setup.py install Install problemsIf the error message you keep getting is related to PyQt, please check this entry on the FAQ doc.
If your errors are related to compile errors while building the extension module: Make sure that you also have QT development files or ImageMagick development files installed. Also make sure you have the python-dev package on your distribution and try the install step above again. If you don't succeed, you may have to compile the extension module manually: To do so, get into the imgSeek-0.6.1/imgSeekLib/ directory. If you have QT development files on your machine, enter these commands: - g++ -DNDEBUG -fPIC -I/usr/qt/3/include -I/usr/include/python2.2/ -c imgdb.cpp -o imgdb.o
- g++ -DNDEBUG -fPIC -I/usr/qt/3/include -I/usr/include/python2.2 -c haar.cpp -o haar.o
- g++ -shared imgdb.o haar.o -L/usr/qt/3/lib -lqt-mt -o imgdb.so
Making sure that you change the following to suit your system: "/usr/qt/3/include" should be replaced with the proper place where qt header files (*.h) are installed which could be /usr/share/qt/include on some distributions. "/usr/qt/3/lib" with the place where QT libraries are and; "/usr/include/python2.2/" with the directory where Python development header files (Python.h) are. If you have ImageMagick development files on your machine, enter these commands: - g++ -DNDEBUG -fPIC -DImMagick `Magick++-config --cxxflags --cppflags` -I/usr/include/python2.2/ -c imgdb.cpp -o imgdb.o
- g++ -DNDEBUG -fPIC -DImMagick `Magick++-config --cxxflags --cppflags` -I/usr/include/python2.2 -c haar.cpp -o haar.o
- g++ -shared imgdb.o haar.o `Magick++-config --ldflags --libs` -o imgdb.so
Making sure that you change the following to suit your system: "/usr/include/python2.2/" with the directory where Python development header files (Python.h) are. Also make sure that the program "Magick++-config" is available After building the module, you will have a file "imgdb.so" on the imgSeekLib dir, which you should copy to /usr/lib/python2.2/site-packages/imgSeekLib/ or if /usr/lib/python2.2 doesn't exist: /usr/local/lib/python2.2/site-packages/imgSeekLib/ (you will have to become root to do so) RunningTo run imgSeek type: $ imgSeek
imgSeek executables will be installed to /usr/bin/ by default. |