diff --git a/configure.ac b/configure.ac index fc5e5a52e..c12172764 100644 --- a/configure.ac +++ b/configure.ac @@ -491,7 +491,14 @@ if test "$relativeprefix" = "yes" ; then fi dnl Set PACKAGE_LOCALE_DIR in config.h. -DATADIRNAME=share +case "$target_os" in + *qnx*) + DATADIRNAME=app/native/assets + ;; + *) + DATADIRNAME=share + ;; +esac AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${package_prefix}/${DATADIRNAME}/locale",[Defines the place where locales can be found]) AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${package_prefix}/${DATADIRNAME}",[Defines the place where data are found]) diff --git a/tester/liblinphone_tester.c b/tester/liblinphone_tester.c index dc844e539..9f654542c 100644 --- a/tester/liblinphone_tester.c +++ b/tester/liblinphone_tester.c @@ -46,8 +46,12 @@ const char* test_route="sip2.linphone.org"; #if WINAPI_FAMILY_PHONE_APP const char *liblinphone_tester_file_prefix="Assets"; #else +#ifdef __QNX__ +const char *liblinphone_tester_file_prefix="./app/native/assets/"; +#else const char *liblinphone_tester_file_prefix="."; #endif +#endif const char *userhostsfile = "tester_hosts";