Hi Michael,
Thanks, adding the second line below to the Makefile fixed it.
PROD_SYS_LIBS += giomm-2.4
PROD_SYS_LIBS += gio-2.0 gobject-2.0 gthread-2.0 glib-2.0
I was puzzled why it worked previously when the Makefile contained only the first line, i.e. giomm=2.4.
I think I have figured it out. If I add this line to the Makefile it builds fine without the second line above:
STATIC_BUILD=NO
If it is building dynamically then libgiomm-2.4.so has the information it needs to know what other libraries are required. But if I build statically then I need to specify the other libraries. When this worked previously for me I must have been building dynamically. Does this make sense?
Thanks,
Mark
-----Original Message-----
From: Michael Davidsaver <[email protected]>
Sent: Friday, June 29, 2018 6:45 PM
To: Mark Rivers <[email protected]>; [email protected]
Subject: Re: Problem building aravisGigE on Centos 7
On 06/29/2018 03:44 PM, Mark Rivers wrote:
> ...
> /bin/ld: /home/epics/devel/areaDetector-3-3/aravisGigE/lib/linux-x86_64/libaravisCamera.a(aravisCamera.o): undefined reference to symbol 'g_signal_connect_data'
>
> /lib64/libgobject-2.0.so.0: error adding symbols: DSO missing from command line
This is the same issue once removed. -lgobject is missing.
pkg-config is your friend here.
aravis 0.3.8 lists it's dependencies as
> glib-2.0 gobject-2.0 gio-2.0 libxml-2.0 gthread-2.0
https://github.com/epicsdeb/aravis/blob/master/aravis.pc.in#L9
copy+paste these to pkg-config
> $ pkg-config --libs glib-2.0 gobject-2.0 gio-2.0 libxml-2.0 gthread-2.0
> -lgio-2.0 -lgobject-2.0 -lxml2 -lgthread-2.0 -pthread -lglib-2.0
So your
> -laravisCamera -laravis-0.4 -lNDPlugin -lADBase -lntndArrayConverter -lnt -lpvDatabase -lpvAccessIOC -lpvAccessCA -lpvAccess -lpvData -lnetCDF -lMagick++ -lcoders -lMagick -ljbig -ljp2 -lbzlib -lpng -lwebp -llcms -lttf -lwmf -lfilters -ltiff -ljpeg -lxml2 -lNeXus -lhdf5 -lblosc -lszip -lzlib -lasyn -lautosave -lbusy -lcalc -ldevIocStats -lsscan -lseq -lpv -ldbRecStd -ldbCore -lca -lCom -Wl,-Bdynamic -lgiomm-2.4 -lX11 -lXext -lpthread -lreadline -lm -lrt -ldl -lgcc
is missing gobject, gthread, and glib itself.
These results on debian 9 w/ glib 2.50.3-2, your mileage may vary.
- Replies:
- Re: Problem building aravisGigE on Centos 7 Michael Davidsaver
- References:
- Problem building aravisGigE on Centos 7 Mark Rivers
- Re: Problem building aravisGigE on Centos 7 Michael Davidsaver
- Navigate by Date:
- Prev:
Re: Problem building aravisGigE on Centos 7 Michael Davidsaver
- Next:
Re: Problem building aravisGigE on Centos 7 Michael Davidsaver
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
<2018>
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Problem building aravisGigE on Centos 7 Michael Davidsaver
- Next:
Re: Problem building aravisGigE on Centos 7 Michael Davidsaver
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
<2018>
2019
2020
2021
2022
2023
2024
|