Menu

Compiling on Ubuntu 12.10 x86_64

2012-11-23
2012-11-23
  • Daniel Nyström

    Daniel Nyström - 2012-11-23

    (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

    Daniel Nyström - 2012-11-23

    It was two missing #include <unistd.h>, found help in this thread:
    https://sourceforge.net/mailarchive/forum.php?set=custom&viewmonth=&viewday=&forum_name=qlc-devel&style=nested&max_rows=25&submit=Change+View

    Attaching a patch to fix it. Why don't you have this issue? Weird.

     
    • 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

       

      Last edit: Massimo Callegari 2012-11-23
      • Daniel Nyström

        Daniel Nyström - 2012-11-23

        Yes, it now compile flawlessly. :)

         
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.