Hi John,

Some progress, or maybe not, i am not sure ?

The problem came back, both vars are empty:

if ((CMAKE_SIZEOF_VOID_P MATCHES 4) OR (CMAKE_CL_64 MATCHES 0))
     set(IS_32_BIT TRUE)
     set(IS_64_BIT FALSE)
elseif((CMAKE_SIZEOF_VOID_P MATCHES 8) OR (CMAKE_CL_64 MATCHES 1))
     set(IS_32_BIT FALSE)
     set(IS_64_BIT TRUE)
else()
     MESSAGE(WARNING "Oops, unable to determine if using 32 or 64 bit 
compilation.")
     MESSAGE(WARNING "CMAKE_SIZEOF_VOID_P ${CMAKE_SIZEOF_VOID_P} CMAKE_CL_64 
${CMAKE_CL_64}" )
endif()


The next is still needed:

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


>> if (IS_64_BIT)
>> add_definitions( -fPIC )
>> add_definitions( -fpermissive )
> Shouldn't need this anymore.
>
> But i have Gstreamer stuff installed it looks, don't know what is missing yet.
I installed libgstreamer0.10-dev and enabled it in wxWidgets.

[ 19%] 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:63: 
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:64: 
error: taking address 
of temporary [-fpermissive]

No id added this again ( -Wdeprecated-declarations does not seem to help, but i 
do get an enormous 
amount of warning about it):

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

I am now here:

Linking CXX shared library libwx.so
/usr/bin/ld: /usr/local/lib/libwx_gtk2u_stc-2.9.a(stclib_stc.o): relocation 
R_X86_64_32 against 
`wxStyledTextCtrl::sm_eventTable' can not be used when making a shared object; 
recompile with -fPIC
/usr/local/lib/libwx_gtk2u_stc-2.9.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [modules/luamodule/libwx.so] Error 1
make[1]: *** [modules/luamodule/CMakeFiles/wxLuaModule.dir/all] Error 2
make: *** [all] Error 2

No idea what this is all about. I believe -fPIC was used.
And libwx.so is that a wxLua lib?

Now i found BUILD_SHARED_LIBS as one of the Cmake options.

Linking CXX shared library libwx.so
cd /home/klaas/soft/buildwxluadeb29/modules/luamodule && /usr/bin/cmake -E 
cmake_link_script 
CMakeFiles/wxLuaModule.dir/link.txt --verbose=1
/usr/bin/c++  -fPIC  -pthread -g   -shared -Wl,-soname,libwx.so -o libwx.so 
CMakeFiles/wxLuaModule.dir/src/luamodule.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxstc_bind.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxxrc_bind.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxrichtext_bind.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxhtml_wxlhtml.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxhtml_bind.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxmedia_bind.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxaui_bind.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxadv_bind.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxadv_wxladv.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_dialogs.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_help.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_gdi.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_sizer.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_image.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_windows.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_print.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_geometry.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_bind.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_picker.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_clipdrag.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_core.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_appframe.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_menutool.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_mdi.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_wxlcore.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_controls.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_event.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_defsutils.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxxml_bind.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxnet_bind.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxbase_datetime.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxbase_bind.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxbase_data.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxbase_config.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxbase_file.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxbase_base.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxluasocket/src/dummy.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxluasocket/src/wxldserv.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxluasocket/src/wxldtarg.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxluasocket/src/wxlsock.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxluasocket/src/wxluasocket_bind.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxluadebug/src/dummy.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxluadebug/src/wxldebug.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxluadebug/src/wxlstack.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxlua/src/dummy.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxlua/src/wxlbind.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxlua/src/wxlcallb.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxlua/src/wxlstate.cpp.o 
CMakeFiles/wxLuaModule.dir/__/wxlua/src/wxlua_bind.cpp.o -L/usr/local/lib 
../lua/libLuaLibShared.so 
-L/usr/local/lib -pthread /usr/local/lib/libwx_gtk2u_stc-2.9.a 
/usr/local/lib/libwx_gtk2u_xrc-2.9.a 
/usr/local/lib/libwx_baseu_net-2.9.a /usr/local/lib/libwx_gtk2u_media-2.9.a 
/usr/local/lib/libwx_gtk2u_propgrid-2.9.a 
/usr/local/lib/libwx_gtk2u_richtext-2.9.a 
/usr/local/lib/libwx_gtk2u_aui-2.9.a /usr/local/lib/libwx_gtk2u_html-2.9.a 
/usr/local/lib/libwx_gtk2u_adv-2.9.a /usr/local/lib/libwx_gtk2u_core-2.9.a 
/usr/local/lib/libwx_baseu_xml-2.9.a /usr/local/lib/libwx_baseu-2.9.a 
-lwxscintilla-2.9 -pthread 
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 
-lgdk_pixbuf-2.0 
-lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 
-lgthread-2.0 -lrt 
-lglib-2.0 -lX11 -lSM -lpng -ljpeg -lexpat -lwxregexu-2.9 -lwxtiff-2.9 -lz -ldl 
-lm 
-Wl,-rpath,/usr/local/lib:/home/klaas/soft/buildwxluadeb29/modules/lua:
/usr/bin/ld: /usr/local/lib/libwx_gtk2u_stc-2.9.a(stclib_stc.o): relocation 
R_X86_64_32 against 
`wxStyledTextCtrl::sm_eventTable' can not be used when making a shared object; 
recompile with -fPIC
/usr/local/lib/libwx_gtk2u_stc-2.9.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [modules/luamodule/libwx.so] Error 1
make[2]: Leaving directory `/home/klaas/soft/buildwxluadeb29'
make[1]: *** [modules/luamodule/CMakeFiles/wxLuaModule.dir/all] Error 2
make[1]: Leaving directory `/home/klaas/soft/buildwxluadeb29'
make: *** [all] Error 2


Still see -shared in there :-(
Copy paste the line and removing -shared, does not give the same errors. Looks 
like mediactrl is 
giving me problems now. But wxWidgets compiled ok.
And the saple mediaplayer also, so i think that is not a ubuntu issue.

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 0 has invalid 
symbol index 10

/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/crt1.o: In 
function `_start':
(.text+0x20): undefined reference to `main'
/usr/local/lib/libwx_gtk2u_media-2.9.a(medialib_unix_mediactrl.o): In function 
`gst_message_unref':
/usr/include/gstreamer-0.10/gst/gstmessage.h:347: undefined reference to 
`gst_mini_object_unref'
/usr/local/lib/libwx_gtk2u_media-2.9.a(medialib_unix_mediactrl.o): In function 
`gtk_window_expose_callback':
/home/klaas/soft/buildwx29statdeb/../wxWidgets-2.9.3/src/unix/mediactrl.cpp:280:
 undefined reference 
to `gst_x_overlay_expose'
/usr/local/lib/libwx_gtk2u_media-2.9.a(medialib_unix_mediactrl.o): In function 
`gtk_window_realize_callback':







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