On Sat, Sep 25, 2010 at 10:47 PM, Brian Wang <brian.wang.0...@gmail.com> wrote:
> On Sat, Sep 25, 2010 at 9:58 PM, Vincent Torri <vto...@univ-evry.fr> wrote:
>>
>>
>> On Sat, 25 Sep 2010, Brian Wang wrote:
>>
>>> Hello list,
>>>
>>> I just svn'd up EFL and here's a new mingw32 cross compilation problem:
>>> --------------------------
>>> In file included from edje_module.c:35:
>>> edje_private.h:1420: warning: ÿÿ_edje_edd_initÿÿ redeclared without
>>> dllimport attribute: previous dllimport ignored
>>> edje_private.h:1421: warning: ÿÿ_edje_edd_shutdownÿÿ redeclared without
>>> dllimport attribute: previous dllimport ignored
>>> edje_module.c:53: warning: ÿÿedje_module_loadÿÿ already declared with
>>> dllexport attribute: dllimport ignored
>>> edje_module.c:90: warning: ÿÿ_edje_module_initÿÿ redeclared without
>>> dllimport attribute: previous dllimport ignored
>>> edje_module.c:123: warning: ÿÿ_edje_module_shutdownÿÿ redeclared without
>>> dllimport attribute: previous dllimport ignored
>>> edje_module.c:141: warning: ÿÿedje_available_modules_getÿÿ already
>>> declared with dllexport attribute: dllimport ignored
>>> --------------------------
>>>
>>> Any idea?  I totally have no clue of what the errors are related to.
>>
>> The problem is when compiling edje_convert, right ?
>
> I guess it's compiling edje_module.c of libedje.
> ------------------
>  CC     edje_textblock_styles.lo
>  CC     edje_edit.lo
>  CC     edje_script_only.lo
>  CC     edje_lua_script_only.lo
>  CC     edje_entry.lo
>  CC     edje_external.lo
>  CC     edje_module.lo
> In file included from edje_module.c:35:
> edje_private.h:1420: warning: ‘_edje_edd_init’ redeclared without
> dllimport attribute: previous dllimport ignored
> edje_private.h:1421: warning: ‘_edje_edd_shutdown’ redeclared without
> dllimport attribute: previous dllimport ignored
> edje_module.c:53: warning: ‘edje_module_load’ already declared with
> dllexport attribute: dllimport ignored
> edje_module.c:90: warning: ‘_edje_module_init’ redeclared without
> dllimport attribute: previous dllimport ignored
> edje_module.c:123: warning: ‘_edje_module_shutdown’ redeclared without
> dllimport attribute: previous dllimport ignored
> edje_module.c:141: warning: ‘edje_available_modules_get’ already
> declared with dllexport attribute: dllimport ignored
> make[3]: *** [edje_module.lo] Error 1
> make[3]: Leaving directory `/home/kma/development/EFLWindowsXP/edje/src/lib'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/kma/development/EFLWindowsXP/edje/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/kma/development/EFLWindowsXP/edje'
> make: *** [all] Error 2
> -------------------
>
> However, I only see 'warning's but not any error?!!

r52593 commit broke this.  Some header file definitions cause this
problem.  Please find below the patch (probably not the right fix?) or
as attached (if it goes through properly):
----------------------------
Index: src/lib/edje_private.h
===================================================================
--- src/lib/edje_private.h      (revision 52735)
+++ src/lib/edje_private.h      (working copy)
@@ -41,6 +41,19 @@
 #include <lauxlib.h>
 #include <setjmp.h>

+#ifdef _WIN32
+# ifdef EFL_EDJE_BUILD
+#  ifdef DLL_EXPORT
+#   undef EAPI
+#   define EAPI __declspec(dllexport)
+#  else
+#   define EAPI
+#  endif /* ! DLL_EXPORT */
+# else
+#  define EAPI __declspec(dllimport)
+# endif /* ! EFL_EDJE_BUILD */
+#endif
+
 EAPI extern int _edje_default_log_dom ;

 #ifdef EDJE_DEFAULT_LOG_COLOR

----------------------------


>
>>
>> Vincent
>
>
>
> --
> brian
> ------------------
>
> Cool-Karaoke - The smallest recording studio, in your palm, open-sourced
> http://cool-idea.com.tw/
>
> iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe
>



-- 
brian
------------------

Cool-Karaoke - The smallest recording studio, in your palm, open-sourced
http://cool-idea.com.tw/

iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe
Index: edje/src/lib/edje_private.h
===================================================================
--- edje/src/lib/edje_private.h	(revision 52735)
+++ edje/src/lib/edje_private.h	(working copy)
@@ -41,6 +41,19 @@
 #include <lauxlib.h>
 #include <setjmp.h>
 
+#ifdef _WIN32
+# ifdef EFL_EDJE_BUILD
+#  ifdef DLL_EXPORT
+#   undef EAPI
+#   define EAPI __declspec(dllexport)
+#  else
+#   define EAPI
+#  endif /* ! DLL_EXPORT */
+# else
+#  define EAPI __declspec(dllimport)
+# endif /* ! EFL_EDJE_BUILD */
+#endif
+
 EAPI extern int _edje_default_log_dom ; 
 
 #ifdef EDJE_DEFAULT_LOG_COLOR
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to