Compiling on Ubuntu 12.10 x86_64

Archive of the non-categorized posts related to the QLC+ technical support.
Please do not create new threads here, instead, use the categories above !
Post Reply
Daniel Nyström

(sorry for posting here, but there seems to be no support forum)

Trying to build on Ubuntu 12.10 x86_64 using Qt 4.8.3 and got this.

cd hid/ && make -f Makefile
make[2]: Entering directory `/home/daniel/tmp/qlcplus-code/plugins/hid'
g++ -c -m64 -pipe -Werror -g -Wall -W -D_REENTRANT -fPIC -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.8.3/mkspecs/linux-g++-64 -I. -I/usr/local/Trolltech/Qt-4.8.3/include/QtCore -I/usr/local/Trolltech/Qt-4.8.3/include/QtGui -I/usr/local/Trolltech/Qt-4.8.3/include -I../interfaces -I. -I. -o hideventdevice.o hideventdevice.cpp
hideventdevice.cpp: In member function ‘virtual bool HIDEventDevice::readEvent()’:
hideventdevice.cpp:245:62: error: ‘read’ was not declared in this scope
make[2]: *** [hideventdevice.o] Error 1
make[2]: Leaving directory `/home/daniel/tmp/qlcplus-code/plugins/hid'
make[1]: *** [sub-hid-make_default] Error 2
make[1]: Leaving directory `/home/daniel/tmp/qlcplus-code/plugins'
make: *** [sub-plugins-make_default-ordered] Error 2

And while I'm at it; how do you work on the software? Are you using Qt Creator? Or any other IDE?

I'm an old C non-GUI programmer, but Qt and IDE's are pretty new to me (used to Emacs mostly). Would really like to get into the QLC+ software and contribute. :)
Massimo Callegari

I develop with QT Creator and compile from a shell on Ubuntu 12.04 64bit and Ubuntu 10.04 32bit.

It seems you're missing some -dev package.
Have you tried
sudo apt-get install g++ make libqt4-dev qt4-dev-tools libasound2-dev libusb-dev debhelper devscripts fakeroot libftdi-dev pkg-config libudev-dev
Daniel Nyström

It was two missing #include , found help in this thread:
https://sourceforge.net/mailarchive/for ... hange+View

Attaching a patch to fix it. Why don't you have this issue? Weird.
Attachments
fix-missing-unistd-include.patch
(645 Bytes) Downloaded 75 times
Massimo Callegari

I guess 12.04 and 12.10 use different gcc versions so everything might be possible.
Have the build gone fine after that ?
By the way, thanks for the patch
Daniel Nyström

Yes, it now compile flawlessly. :)
Post Reply