On Fri, Apr 13, 2012 at 5:53 PM, klaas.holwerda <n...@klaasholwerda.nl> wrote:

> [ 33%] Building CXX object 
> modules/luamodule/CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_gdi.cpp.o
> /home/klaas/soft/wxlua/trunk/wxLua/modules/wxbind/src/wxcore_gdi.cpp: In 
> function ‘int
> wxLua_wxIconBundle_AddIcon(lua_State*)’:
> /home/klaas/soft/wxlua/trunk/wxLua/modules/wxbind/src/wxcore_gdi.cpp:7356:29: 
> warning: ‘void
> wxIconBundle::AddIcon(const wxString&, long int)’ is deprecated (declared at
> /usr/local/include/wx-2.9/wx/iconbndl.h:91) [-Wdeprecated-declarations]
> /home/klaas/soft/wxlua/trunk/wxLua/modules/wxbind/src/wxcore_gdi.cpp: In 
> function ‘int
> wxLua_wxIconBundle_GetIcon1(lua_State*)’:
> /home/klaas/soft/wxlua/trunk/wxLua/modules/wxbind/src/wxcore_gdi.cpp:7374:48: 
> error: taking address
> of temporary [-fpermissive]
> /home/klaas/soft/wxlua/trunk/wxLua/modules/wxbind/src/wxcore_gdi.cpp: In 
> function ‘int
> wxLua_wxIconBundle_GetIcon(lua_State*)’:
> /home/klaas/soft/wxlua/trunk/wxLua/modules/wxbind/src/wxcore_gdi.cpp:7394:49: 
> error: taking address
> of temporary [-fpermissive]
> /home/klaas/soft/wxlua/trunk/wxLua/modules/wxbind/src/wxcore_gdi.cpp: In 
> function ‘int
> wxLua_wxDC_SetClippingRegion1(lua_State*)’:
> /home/klaas/soft/wxlua/trunk/wxLua/modules/wxbind/src/wxcore_gdi.cpp:10677:36:
>  warning: ‘void
> wxDC::SetClippingRegion(const wxRegion&)’ is deprecated (declared at
> /usr/local/include/wx-2.9/wx/dc.h:981) [-Wdeprecated-declarations]

Hopefully fixed. I believe that this is an issue with your newer GCC
being a little too aggressive about warning/erroring about getting a
pointer to a returned reference to a member variable. On line
7374/7394 we call
const wxIcon& wxIconBundle::GetIcon(...) const
which returns a wxIcon from an array member of the wxIconBundle, so
it's no more temporary then the wxIconBundle itself.

> if (IS_64_BIT)
> add_definitions( -fPIC )
> add_definitions( -fpermissive )

Shouldn't need this anymore.

> All in all i now get to this:
...
> Indeed i do not have libwx_gtk2u_media-2.9.a.
> But if i add --enable-mediactrl to wxWidgets compile, i get
>
> checking for GST... configure: WARNING: GStreamer 0.10 not available, falling 
> back to 0.8
> checking for GST... configure: WARNING: GStreamer 0.8/0.10 not available.
> configure: error: GStreamer not available
>
> But i have Gstreamer stuff installed it looks, don't know what is missing yet.

If you look at wxWidget's config.log you can find out what else is
missing. If I remember correctly, it's a little cryptic.

> So i think you best make it optional or detect it??

It will hopefully be detected now, but I don't have time to test it
now. Adjust the CMake variable wxLuaBind_COMPONENTS to match
wxWidgets_COMPONENTS.

Regards,
    John

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to