Th3Ya0vi / vdrift-ogre

Automatically exported from code.google.com/p/vdrift-ogre
0 stars 0 forks source link

undefined reference to `clock_gettime' during linktime #43

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi! I cannot build it on openSUSE 11.4 with the following error:

Linking CXX executable CMakeFiles/CMakeRelink.dir/sr-editor
CMakeFiles/sr-editor.dir/ogre/QTimer.cpp.o: In function `QTimer::update()':
/usr/src/packages/BUILD/StuntRally/source/ogre/QTimer.cpp:46: undefined 
reference to `clock_gettime'
CMakeFiles/sr-editor.dir/ogre/QTimer.cpp.o: In function `QTimer':
/usr/src/packages/BUILD/StuntRally/source/ogre/QTimer.cpp:16: undefined 
reference to `clock_gettime'
collect2: ld returned 1 exit status

Original issue reported on code.google.com by neptu...@mail.ru on 6 Apr 2011 at 3:22

GoogleCodeExporter commented 8 years ago
Hi. It looks like this issue had it too:
http://code.google.com/p/vdrift-ogre/issues/detail?id=38
Need to add librt to linker input.

Original comment by Cry...@gmail.com on 6 Apr 2011 at 4:15

GoogleCodeExporter commented 8 years ago
Yes, this should be fixed in 1.1.1, please download the freshly released source 
package, or update your Mercurial clone. I'm marking this as solved, but leave 
it open for you to verify the fix.

Original comment by tapiovie...@gmail.com on 6 Apr 2011 at 4:27

GoogleCodeExporter commented 8 years ago
Yes. It builds well now.

Original comment by neptu...@mail.ru on 6 Apr 2011 at 8:33

GoogleCodeExporter commented 8 years ago

Original comment by tapiovie...@gmail.com on 7 Apr 2011 at 8:00