<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 17, 2015 at 7:57 PM, Pedro Neves <span dir="ltr"><<a href="mailto:nevesdiver@gmail.com" target="_blank">nevesdiver@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <font face="Arial">Hi:<br>
      <br>
      I've upgraded the qt on my system to version 5.4.1. When trying to
      build subsurface, I get the following error:<br>
      <br>
      linking subsurface<br>
      .obj/qthelper.o: In function `getUserAgent()':<br>
      -------------------------/subsurface/qthelper.cpp:458: undefined
      reference to `SubsurfaceSysInfo::buildCpuArchitecture()'<br>
    </font><font face="Arial"><font face="Arial">-------------------------</font>/subsurface/qthelper.cpp:461:
      undefined reference to
      `SubsurfaceSysInfo::currentCpuArchitecture()'<br>
      .obj/usersurvey.o: In function `UserSurvey::UserSurvey(QWidget*)':<br>
    </font><font face="Arial"><font face="Arial">-------------------------</font>/subsurface/qt-ui/usersurvey.cpp:27:
      undefined reference to `SubsurfaceSysInfo::buildCpuArchitecture()'<br>
    </font><font face="Arial"><font face="Arial">-------------------------</font>/subsurface/qt-ui/usersurvey.cpp:30:
      undefined reference to
      `SubsurfaceSysInfo::currentCpuArchitecture()'<br>
      .obj/usersurvey.o: In function `UserSurvey::getVersion()':<br>
    </font><font face="Arial"><font face="Arial">-------------------------/</font>subsurface/qt-ui/usersurvey.cpp:44:
      undefined reference to `SubsurfaceSysInfo::buildCpuArchitecture()'<br>
    </font><font face="Arial"><font face="Arial">-------------------------/</font>subsurface/qt-ui/usersurvey.cpp:47:
      undefined reference to
      `SubsurfaceSysInfo::currentCpuArchitecture()'<br>
      collect2: error: ld returned 1 exit status<br>
      Makefile:625: recipe for target 'subsurface' failed<br>
      make: *** [subsurface] Error 1<br></font></div></blockquote><div><br></div><div>As you can see, this is a Subsurface class issue, not related to Qt.<br></div><div>are you compilling from qmake, from cmake?<br></div><div>From your command below, it seems that it's cmake, I just want to be sure.<br><br></div><div>1 - make sure you are in the latest master<br></div><div>2 - do a grep -rIs SybsyrfaceSysInfo and check that those functions do exist in the source code ( hint, they do. )<br></div><div>3 - try to fix qmake if necessary<br><br></div><div>if all that fails, you also have a script that should download everything and compile it correctly in the scripts folder.<br><br></div><div>Tomaz<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF"><font face="Arial">
      <br>
      -------------------------------------<br>
      qmake -v<br>
      <br>
      QMake version 3.0<br>
      Using Qt version 5.4.1 in /usr/lib/x86_64-linux-gnu  on Debian/Sid<br>
      <br>
      Any hints?<br>
      <br>
      Cheers:<br>
      <br>
      Pedro<br>
    </font>
  </div>

<br>_______________________________________________<br>
subsurface mailing list<br>
<a href="mailto:subsurface@subsurface-divelog.org">subsurface@subsurface-divelog.org</a><br>
<a href="http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface" target="_blank">http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface</a><br>
<br></blockquote></div><br></div></div>