Fixed 64bit LIBPATH 38/93138/2
authorTae-Young Chung <ty83.chung@samsung.com>
Thu, 20 Oct 2016 11:30:09 +0000 (20:30 +0900)
committerTae-Young Chung <ty83.chung@samsung.com>
Thu, 20 Oct 2016 11:39:53 +0000 (20:39 +0900)
- In 64bit, g_module_open() try to open a shared library from /usr/lib and it results in failrue of loading of the library.

Change-Id: I23754f83252734c3f999fa618f40996ca3e8dcc8
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
include/mobile/image_util_private.h
packaging/capi-media-image-util.spec

index ac4ee09..a339aa7 100644 (file)
@@ -68,7 +68,7 @@ extern "C"
        } while (0)
 
 #define IMGCV_FUNC_NAME "mm_util_cv_extract_representative_color"
-#define PATH_MMUTIL_IMGCV_LIB "/usr/lib/libmmutil_imgcv.so"
+#define PATH_MMUTIL_IMGCV_LIB PATH_LIBDIR"/libmmutil_imgcv.so"
 typedef gboolean(*ModuleFunc)(void *, int, int, unsigned char *, unsigned char *, unsigned char *);
 
 typedef struct {
index 15dc696..3c03c86 100755 (executable)
@@ -1,7 +1,7 @@
 Name:       capi-media-image-util
 Summary:    A Image Utility library in Tizen Native API
 Version:    0.1.13
-Release:    1
+Release:    2
 Group:      Multimedia/API
 License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
@@ -57,6 +57,7 @@ cp %{SOURCE1001} .
 export CFLAGS+=" -Wextra -Wno-array-bounds"
 export CFLAGS+=" -Wno-ignored-qualifiers -Wno-unused-parameter -Wshadow"
 export CFLAGS+=" -Wwrite-strings -Wswitch-default"
+export CFLAGS+=" -DPATH_LIBDIR=\\\"%{_libdir}\\\""
 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
 %cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER} \
 %if "%{?profile}"=="wearable"