Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index


On Fri, 2014-05-16 at 21:12 +0100, Tamas Zolnai wrote:
 On Friday, May 16, 2014 20:38 BST, Terrence Enger <tenger@iseries-guru.com> wrote: 
 
On Fri, 2014-05-16 at 15:19 +0100, Tamas Zolnai wrote:
On Friday, May 16, 2014 15:00 BST, Terrence Enger <tenger@iseries-guru.com> wrote: 
[snip]
    
/home/terry/lo_hacking/git/libo2/workdir/UnpackedTarball/collada2gltf/dependencies/o3dgc/src/o3dgc_common_lib/inc/o3dgcTimer.h:115:
 undefined reference to `clock_gettime'
[snip]

Hi Terry,

I didn't get the same error while building.

Hmm.  My system is debian-wheezy, which perhaps is more conservative
than most Linux distros.

I google it and find that:
http://stackoverflow.com/questions/2418157/ubuntu-linux-c-error-undefined-reference-to-clock-gettime-and-clock-settim
It suggests to link -lrt library.
So you can try to add these lines:
ifeq ($(OS),LINUX)
$(eval $(call gb_Library_add_libs,collada2gltf,\
  -lrt \
))
endif
to the external/collada2gltf/StaticLibrary_collada2gltf.mk file.

I hope it helps.

That did the job.  My build is continuing.

Uh-oh.  I do not know what I was looking at when I wrote that.  The
link just failed the same way.  And that was after `make clean`. 
OTOH, I see that you added those lines earlier in the file than I did

Meanwhile I accomplished the link by typing the command at the command
line, including -lrt.

I am sorry for having given you false encouragement.
Terry.

Great, then I push it to master to avoid this problem.

Regards,
Tamás
 





Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.