Bug 221056

Summary: expoblending.app causes digikam compile to fail
Product: [Applications] digikam Reporter: rishi.j.sanyal
Component: Portability-CompilationAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fink Packages   
OS: Other   
Latest Commit: Version Fixed In: 1.1.0
Sentry Crash Report:

Description rishi.j.sanyal 2010-01-03 04:07:16 UTC
Version:            (using KDE 4.3.4)
Compiler:          GCC 4.2.1 
OS:                OS X
Installed from:    Mac OS X (Fink) Packages

Dear Gilles et. al.,

I finally had some time this holiday to take a crack at re-compiling digiKam (SVN) on the newest OS X: Snow Leopard (10.6.2). After workarounds to get qt4 & openCV to compile properly, digiKam compilation went surprisingly smoothly, up to 97%. But then it failed when compiling the expoblending.app (your newest feature, I believe?). Here's the error:

[ 97%] Building CXX object kipi-plugins/expoblending/CMakeFiles/expoblending.dir/blendingdlg/enfusestack.o

Linking CXX executable expoblending.app/Contents/MacOS/expoblending
Undefined symbols:
  "_GOMP_critical_name_start", referenced from:
      __ZN22KIPIExpoBlendingPlugin12ActionThread18startPreProcessingERKN4KUrl4ListER4QMapIS1_NS_20ItemPreprocessedUrlsEEbRKN11KDcrawIface19RawDecodingSettingsER7QString.omp_fn.0 in actionthread.o
      __ZN22KIPIExpoBlendingPlugin12ActionThread18startPreProcessingERKN4KUrl4ListER4QMapIS1_NS_20ItemPreprocessedUrlsEEbRKN11KDcrawIface19RawDecodingSettingsER7QString.omp_fn.0 in actionthread.o
  "_GOMP_critical_name_end", referenced from:
      __ZN22KIPIExpoBlendingPlugin12ActionThread18startPreProcessingERKN4KUrl4ListER4QMapIS1_NS_20ItemPreprocessedUrlsEEbRKN11KDcrawIface19RawDecodingSettingsER7QString.omp_fn.0 in actionthread.o
      __ZN22KIPIExpoBlendingPlugin12ActionThread18startPreProcessingERKN4KUrl4ListER4QMapIS1_NS_20ItemPreprocessedUrlsEEbRKN11KDcrawIface19RawDecodingSettingsER7QString.omp_fn.0 in actionthread.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [kipi-plugins/expoblending/expoblending.app/Contents/MacOS/expoblending] Error 1
make[1]: *** [kipi-plugins/expoblending/CMakeFiles/expoblending.dir/all] Error 2
make: *** [all] Error 2

Seems to me like it's probably something trivial. Any ideas on a fix?

I'm excited to get this working again on the new OS. Since I've also finally put up a wordpress blog (http://rishisanyalphotography.com/blog), I'll also volunteer to maintain an updated blog entry on how to compile the latest digiKam on OS X!

Many thanks, as always,
Rishi
Comment 1 caulier.gilles 2010-01-03 09:45:20 UTC
Install libgomp (OpenMP library for GCC). It used to paralelize execution of Raw demosaicing into exposure blending plugin

Gilles Caulier
Comment 2 caulier.gilles 2010-01-03 09:49:20 UTC
SVN commit 1069269 by cgilles:

don"t forget to link expovlending stand alone program to libgomp
BUGS: 221056


 M  +9 -4      CMakeLists.txt  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1069269
Comment 3 caulier.gilles 2010-01-03 09:50:12 UTC
Checkout svn again and recompile. It must be fixed now.

Gilles