Error when compiling iAlert on Ubuntu 10.04 LTS

164 views
Skip to first unread message

Per Frøysa

unread,
Jan 31, 2012, 7:00:52 AM1/31/12
to ialert
As far as I can see, handleSubscriptionOptions and
handleSubscriptionOptionsResult are defined in qxmpp.cpp.
But my experience with cpp is dated.

I would really like to use my Linux NAS-box to serve my Logitec Alert
Camera as this server is up and running at all time. My windows
computer is never left running when I am away. I really look forward
to get this software running.

Here is what make stops at:

logitechcameras.cpp: In constructor
‘Logitech700eCamera::Logitech700eCamera(QHostAddress, QString,
QString)’:
logitechcameras.cpp:22: error: cannot allocate an object of abstract
type ‘QXmpp’
qxmpp.h:109: note: because the following virtual functions are pure
within ‘QXmpp’:
/usr/local/include/gloox/pubsubresulthandler.h:168: note: virtual
void gloox::PubSub::ResultHandler::handleSubscriptionOptions(const
std::string&, const gloox::JID&, const gloox::JID&, const
std::string&, const gloox::DataForm*, const std::string&, const
gloox::Error*)
/usr/local/include/gloox/pubsubresulthandler.h:188: note: virtual
void
gloox::PubSub::ResultHandler::handleSubscriptionOptionsResult(const
std::string&, const gloox::JID&, const gloox::JID&, const
std::string&, const std::string&, const gloox::Error*)

Matthew Szatmary

unread,
Jan 31, 2012, 9:24:37 AM1/31/12
to ial...@googlegroups.com
gloox 1.0 is the version you want. I have just tried a fresh install on a kububtu 11.10 machine with no issues. I will download a 10.04 VM and test. Are you using the 32 or 64 bit distro?

Per Frøysa

unread,
Jan 31, 2012, 9:44:18 AM1/31/12
to ialert
Thanks for your attention!

gloox 1.0 is noted.

In my Oracle VM uname responds like this:
perf@ubcray:~$ uname -a
Linux ubcray 2.6.32-30-generic-pae #59-Ubuntu SMP Tue Mar 1 23:01:33
UTC 2011 i686 GNU/Linux
I believe this is a 32 bit system.
Gnome desktop.....

Regards Per

Matthew Szatmary

unread,
Jan 31, 2012, 10:54:28 AM1/31/12
to ial...@googlegroups.com
Ok, This is what I did.
First I installed a fresh copy of Ubuntu 10.04 LTS
I updated all packages to the latest version and rebooted.
Then, from the terminal I installed the necessary dependencies (minus gloox):
# sudo apt-get install git-core qt-sdk libupnp-dev gstreamer0.10-ffmpeg phonon-backend-gstreamer

lucid still uses gloox 0.9.9.5, uninstall if necessary
# sudo apt-get remove libgloox-dev

at this point you may want to check for (and remove) files at:
# sudo rm -r /usr/include/gloox
# sudo rm /usr/lib/libgloox*
# sudo rm -r /usr/local/include/gloox
# sudo rm /usr/local/lib/libgloox*

Install gloox manually:
# cd ~
# wget http://camaya.net/download/gloox-1.0.tar.bz2
# tar xvjf gloox-1.0.tar.bz2
# cd gloox-1.0.tar.bz2 && ./configure && make && sudo make install

Install iAlert from github:
# cd ~
# git clone git://github.com/szatmary/iAlert.git
# cd iAlert && qmake iAlert.pro && make

For some reason /usr/local/lib is not in the library search path so I had to run the application like this:
# LD_LIBRARY_PATH=/usr/local/lib ./iAlert

Per Frøysa

unread,
Jan 31, 2012, 2:35:06 PM1/31/12
to ialert
Yes! I followed your procedure and the compilation/linking was
successful!
I could start ./iAlert without any library path problems.
Then iAlert started to download recordings. I waited untill all clips
were downloaded before I start to learn the user interface of iAlert.

I have no playback in the iAlert playback window, it is black.
The downloaded video files are OK, I can watch the videos using the
Totem Movie Player.
Selecting a day in the calendar brings up the cliplist beneath it.
Clicking an entry in the cliplist causes just a text being written in
the console window where iAlert was started saying:
"156 Playing "path-to-file---.mp4" - but the playback window is still
black.

I cannot see live video. The text written to the terminal says:
152 Playing "rtsp://192.168.1.104/HighResolutionVideo"
iAlert(9209): couldn't create slave: "Unable to create io-slave:
klauncher said: Unknown protocol 'rtsp'.
"
My goal is to learn how to communicate with the camera for
transferring the events (clips) to my Excito B3 server running
Debian.
That server is head-less, no display. Then I would like to write a
dynamic web page to access the clips using an ordinary browser.
Hopefully, you will allow me to use your code to learn and as a
starting point.
At the age of 70 software writing is the best way of keeping my brain
alive...

Regards
Per

On 31 Jan, 16:54, Matthew Szatmary <szatm...@gmail.com> wrote:
> Ok, This is what I did.
> First I installed a fresh copy of Ubuntu 10.04 LTS
> I updated all packages to the latest version and rebooted.
> Then, from the terminal I installed the necessary dependencies (minus gloox):
> # sudo apt-get install git-core qt-sdk libupnp-dev gstreamer0.10-ffmpeg phonon-backend-gstreamer
>
> lucid still uses gloox 0.9.9.5, uninstall if necessary
> # sudo apt-get remove libgloox-dev
>
> at this point you may want to check for (and remove) files at:
> # sudo rm -r /usr/include/gloox
> # sudo rm /usr/lib/libgloox*
> # sudo rm -r /usr/local/include/gloox
> # sudo rm /usr/local/lib/libgloox*
>
> Install gloox manually:
> # cd ~
> # wgethttp://camaya.net/download/gloox-1.0.tar.bz2

Matthew Szatmary

unread,
Jan 31, 2012, 3:49:29 PM1/31/12
to ial...@googlegroups.com
Great, glad you got it working. If you are remoted in, or running in a VM, the video will not display (no hardware overlay support). But if you are on a physical box, then it is something with the phonon/gstreamer backend.

Feel free to use any code, Thats why I open sourced it.

Luke Andrew

unread,
Nov 26, 2012, 5:22:25 PM11/26/12
to ial...@googlegroups.com
I've been having trouble compiling this program, but followed the previous steps and it worked great (I ran into issues with my Qt 4.8.1 build, so I used an older library, which worked fine).  Thanks for your postings!

- Luke
Reply all
Reply to author
Forward
0 new messages