Here are some common problems users have encountered while running or compiling CamStream. You may find the answer to your question here if you are having trouble.
Note! The daily snapshot of CamStream may not build or work at all! Do not expect me to support it fully; of course you can mail me a report so that I am aware of the problem, but don't expect me to fix it overnight. In stead, you are invited to fix it yourself and tell me how you did it.
RedHat users: check if qt3-devel is installed!
A common problem is that Linux distributors place the Qt libraries at the weirdest places... The configure script checks the most common directories, but can't really test them all. So, if configure complains it can't locate the Qt libraries, you must first set the QTDIR environment variable (this is a requirement anyhow). So, if your Qt libraries are placed in, for example, /usr/lib/qt-2.3.0, try this:
# QTDIR=/usr/lib/qt-2.3.0 # export QTDIR # ./configure [options]
This is also the location where the uic User Interface Compiler and moc pre-processor are supposed to be. If not, make sure these can be found in your PATH!
Another source of confusion is that often the library is present, but not the header files. It turns out that some distributors (Red Hat, SuSe) split the Qt package in two parts: just the library, and the header files and development tools. On your system only the library is installed (this appears to be the default), which is enough to run programs but not to compile them!
In that case you have to install the 'qt-dev' package as well. For example, if you installed the qt-3.0.3 rpm on Red Hat, you must install qt-devel-3.0.3 too. Of course the version numbers have to match! The package name may be slightly different for different systems.
Compilation fails under Qt 3.* with the following error:
c++ -I/usr/include/qt -g -Wall -I. -I.. -I../devices -I../video -DHAVE_CONFIG_H -c -o SnapshotSettingsDlg.moc.o SnapshotSettingsDlg.moc.cc In file included from SnapshotSettingsDlg.h:8, from SnapshotSettingsDlg.moc.cc:11: ../VideoOptions.h:17: syntax error before ;' make: *** [SnapshotSettingsDlg.moc.o] Error 1 make: Leaving directory /usr/src/camstream-0.25/src/gui' make: *** [subdirs] Error 2
This is due to incompatibilities in the header files. You should use Qt 2.2.* or 2.3.*; you can install this Qt library parallel to Qt 1.* and Qt 3.*; just make sure your QTDIR environment variable points to the correct path.
I do not intend to port CamStream to Qt 3 yet. The reason is that it involves upgrading the .ui files (used for dialog design), and once I've done that, there is no way back. In other words, I would force users to upgrade/install Qt 3 and I don't want to do that now.
Occasionally I get report where ./configure runs okay, but make fails like follows:
make: Entering directory `/home/trevor/camstream-0.26.2/lib/ccvt' make: Nothing to be done for `all'. make: Leaving directory `/home/trevor/camstream-0.26.2/lib/ccvt' make: Entering directory `/home/trevor/camstream-0.26.2/camstream' make -C gui make: Entering directory `/home/trevor/camstream-0.26.2/camstream/gui' /usr/local/bin/uic -o ChannelSelector.h ChannelSelector.ui make: /usr/local/bin/uic: Command not found make: *** [ChannelSelector.h] Error 127 make: Leaving directory `/home/trevor/camstream-0.26.2/camstream/gui' make: *** [gui] Error 2 make: Leaving directory `/home/trevor/camstream-0.26.2/camstream' make: *** [all] Error 2
The line highlighted in red means one of two things. Either haven't installed the Qt library at all (this varies greatly between distro's so I cannot tell you how), or you have installed the Qt library, but it's not in one of it's default locations and you haven't set your QTDIR environment variable. You must locate this directory, then set QTDIR:
Alternatively, you can make a symlink in /usr/lib/ or /usr/local/lib (BTW, uic isn't really installed in /usr/local/bin, but a default choosen by ./configure).
This sections lists problems and bugs that are encountered when running the program.
(This applies to CamStream 0.25)
After 10-15 minutes of FTP-ing images to the server, the program may crash. This is due to a bug in the Qt libraries, when the first FTP connection to the server times out and gets closed remotely. I mailed Trolltech about it and they are aware of the problem, but basicly they tell me they are much more busy with other bugs :-(. I am not satisfied with their FTP class anyway. It lacks a number of features and their implementation is quite braindead (it opens a new connection for every FTP session, even to the same computer and account). This problem has been reported in Qt 2.2.2, 2.2.4 and 2.3.0.