On 12-4-2012 6:16, John Labenski wrote:
>      MESSAGE(WARNING "Oops, unable to determine if using 32 or 64 bit
> compilation.")
> endif()
>
> What are the values of these variables so I can fix it for systems like yours?
I did get the Oops, but somehow it works now.
Did an svn update, maybe it was that??

>
>> And do:
>>
>>      if (IS_64_BIT)v
>>          add_definitions( -fPIC )
>>          #set(CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} -fPIC)
>>      endif()
>>
>> If not i get an error that -fPIC file is not found.
> I think this is right, but why do you get an error and I don't? I'm
> guessing you have a newer compiler?
> I use Fedora 13 : gcc version 4.4.5 20101112 (Red Hat 4.4.5-2) (GCC)
Right.
gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1

>
>> Next comes wxLua.
>> Setting:  export wxStEdit_ROOT_DIR=/home/klaas/soft/buildwxsteditdeb
>> did not help, so it put it straight into cmake-gui, and it can generate the 
>> make files using stedit.
> Yes, this is the way to do it. Either that or run :
> $cmake -DwxStEdit_ROOT_DIR=/home/klaas/soft/buildwxsteditdeb
>
>> Now i got stuck here, and i am lost.
>>
>> [ 15%] Building C object modules/lua/CMakeFiles/LuaLibShared.dir/src/lapi.c.o
>> cd /home/klaas/soft/buildwxluadeb29/modules/lua&&  /usr/bin/gcc  
>> -DLUA_BUILD_AS_DLL
>> -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -DwxLUA_USEBINDING_WXGL=0 
>> -DwxLUA_USEBINDING_WXSTC=1
>> -DwxLUA_USEBINDING_WXXRC=1 -DwxLUA_USEBINDING_WXRICHTEXT=1 
>> -DwxLUA_USEBINDING_WXHTML=1
>> -DwxLUA_USEBINDING_WXMEDIA=1 -DwxLUA_USEBINDING_WXAUI=1 
>> -DwxLUA_USEBINDING_WXADV=1
>> -DwxLUA_USEBINDING_WXCORE=1 -DwxLUA_USEBINDING_WXXML=1 
>> -DwxLUA_USEBINDING_WXNET=1
>> -DwxLUA_USEBINDING_WXBASE=1 -DLUA_USE_LINUX -g -fPIC -isystem
>> /usr/local/lib/wx/include/gtk2-unicode-static-2.9 -isystem 
>> /usr/local/include/wx-2.9
>> -I/home/klaas/soft/wxlua/trunk/wxLua/modules/wxbind/setup
>> -I/home/klaas/soft/wxlua/trunk/wxLua/modules/..
>> -I/home/klaas/soft/wxlua/trunk/wxLua/modules/../modules
>> -I/home/klaas/soft/wxlua/trunk/wxLua/modules/../modules/lua/src    -Wall 
>> -fPIC -o
>> CMakeFiles/LuaLibShared.dir/src/lapi.c.o   -c 
>> /home/klaas/soft/wxlua/trunk/wxLua/modules/lua/src/lapi.c
>> In file included from 
>> /home/klaas/soft/wxlua/trunk/wxLua/modules/lua/src/lapi.c:16:0:
>> /home/klaas/soft/wxlua/trunk/wxLua/modules/lua/src/lua.h:110:1: warning: 
>> return type defaults to
>> 'int' [-Wreturn-type]
>> /home/klaas/soft/wxlua/trunk/wxLua/modules/lua/src/lua.h: In function 
>> '__declspec':
>> /home/klaas/soft/wxlua/trunk/wxLua/modules/lua/src/lua.h:111:1: error: 
>> expected declaration
>> specifiers before '__declspec'
>> etc. etc.
> This is really strange, I think I found the problem though.

I think you did.


>   I had set
> the compiler define LUA_BUILD_AS_DLL by accident. This doesn't explain
> why I didn't get any errors/warnings in Fedora though.
>
> Please try again, hopefully this time it'll work better.

Yes and no :-)

[ 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]

if (IS_64_BIT)
add_definitions( -fPIC )
add_definitions( -fpermissive )
#set(CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} -fPIC)
endif()

About the -fPIC is not out commented. i get:

gcc: error: ;-fPIC: No such file or directory
make[2]: *** [modules/lua/lua] Error 1
make[1]: *** [modules/lua/CMakeFiles/lua.dir/all] Error 2
make: *** [all] Error 2

All in all i now get to this:

[ 59%] Building CXX object 
modules/luamodule/CMakeFiles/wxLuaModule.dir/__/wxlua/src/wxlua_bind.cpp.o
make[2]: *** No rule to make target `/usr/local/lib/libwx_gtk2u_media-2.9.a', 
needed by 
`modules/luamodule/libwx.so'. Stop.
make[1]: *** [modules/luamodule/CMakeFiles/wxLuaModule.dir/all] Error 2
make: *** [all] Error 2

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.

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

Thanks,

Klaas









------------------------------------------------------------------------------
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