title: Qt - undefined reference to... (Ubuntu 14.04 LTS 64 bits)
body: <p>I try to compile one of my project I made with windows 7 64 bits using Qt5.3.1 MSVC2012, by using now Qt5.4 gcc 64 bits with Unbuntu 14.04 LTS.</p>
  
  <p>But I have some "undefined reference to" errors :</p>
  
  <blockquote>
    <p>/home/innocore/Software/CES_2015/trunk/MainProgram/../bin//libSmartphoneController.a(smartphonecontroller.o): In function <code>SmartphoneController::init()':
    /home/innocore/Software/CES_2015/trunk/bin/../LibSmartphoneController/smartphonecontroller.cpp:11: undefined reference to</code>RemoteADBInterface::RemoteADBInterface(QString, QString, int, QObject*)'
    /home/innocore/Software/CES_2015/trunk/bin/../LibSmartphoneController/smartphonecontroller.cpp:13: undefined reference to <code>RemoteADBInterface::newMessage(RemoteADBInterface::Message const&amp;, QVariant const&amp;)'
    /home/innocore/Software/CES_2015/trunk/MainProgram/../bin//libSmartphoneController.a(smartphonecontroller.o): In function</code>QMetaObject::Connection QObject::connect(QtPrivate::FunctionPointer::Object const*, void (RemoteADBInterface::<em>)(RemoteADBInterface::Message const&amp;, QVariant const&amp;), QtPrivate::FunctionPointer::Object const</em>, void (SmartphoneController::*)(RemoteADBInterface::Message const&amp;, QVariant const&amp;), Qt::ConnectionType)':
    /opt/5.4/gcc_64/include/QtCore/qobject.h:239: undefined reference to `RemoteADBInterface::staticMetaObject'
    collect2: error: ld returned 1 exit status</p>
  </blockquote>
  
  <p>my project is composed of one exe and several libraries like libSmartphoneController.a or libRemoteADB.a.</p>
  
  <p>All the libraries compile correctly and are created in the right directory. The problem occurs when I compile my exe program (MainProgram).
  In the .pro, I'm sure I include the right dependencies :</p>
  
  <pre><code>unix:!macx {
  CONFIG(release, release|debug) {
  LIBS += -L$$PWD/../Lib/ -lAudioPlayer -lDisplay -lSWCom -lRemoteADB -lDMS -lTVRemote \
                          -lHDMIMixer -lSmartphoneController -lRemoteServer
  }
  CONFIG(debug, release|debug) {
  LIBS += -L$$PWD/../bin/ -lAudioPlayer -lDisplay -lSWCom -lRemoteADB -lDMS -lTVRemote \
                          -lHDMIMixer -lSmartphoneController -lRemoteServer
  } }
  </code></pre>
  
  <p>The lib SmartphoneController also have two dependencies :</p>
  
  <p>in SmartphoneController.pro :</p>
  
  <pre><code>unix:!macx {
  CONFIG(release, release|debug) {
  LIBS += -L$$PWD/../Lib/ -lRemoteADB -lRemoteServer
  }
  CONFIG(debug, release|debug) {
  LIBS += -L$$PWD/../bin/ -lRemoteADB -lRemoteServer
  } }
  </code></pre>
  
  <p>The problem is that it does not find the definition of some function in the lib RemoteADB (contructor, signal readMessage...). I don't have any problem with all other libs + it compiles perfectly on windows...</p>
  
  <p>Any idea ?</p>
  
  <p>Thanks in advance for your help</p>