On Sun 26-Sep-2010 at 12:38 +0200, Kornel Benko wrote:
Am Sonntag 26 September 2010 schrieb Bruno Postle:
The Hugin 2010.2.0 branch doesn't build on fedora f14 (gcc-4.5.1
glibc-2.12.90), because some libraries need to be explicitly linked
with vigra_impex.

set(EXTRA_LIBS)
find_library(RT_LIB rt)
find_library(PTHREAD_LIB pthread)
if(RT_LIB)
 LIST(ADD EXTRA_LIBS ${RT_LIB})
endif()
if(PTHREAD_LIB)
 LIST(ADD EXTRA_LIBS ${PTHREAD_LIB})
endif()
...
TARGET_LINK_LIBRARIES(huginvigraimpex ${EXTRA_LIBS} ${JPEG_LIBRARIES} ...)

Thanks, I've committed something like this, -lrt wasn't actually needed, just -lpthread.

--
Bruno

--
You received this message because you are subscribed to the Google Groups "Hugin and 
other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/hugin-ptx

Reply via email to