Hi everyone,

 

My compilation problems seem to be eternal with vgui and wxWidgets on MinGW…

 

Anyway I progress and now that I solved many trouble using the following parameters in CMAKE:

 

CMAKE_CXX_FLAGS = -I/usr/local/lib/wx/include/msw-ansi-release-static-2.8 -I/usr/local/include/wx-2.8 -D_IODBC_ -D__WXMSW__ -mthreads

CMAKE_EXE_LINKER_FLAGS = -L/usr/local/lib  -mthreads  -Wl,--subsystem,windows -mwindows /usr/local/lib/libwx_msw_aui-2.8.a /usr/local/lib/libwx_msw_xrc-2.8.a /usr/local/lib/libwx_msw_qa-2.8.a /usr/local/lib/libwx_msw_html-2.8.a /usr/local/lib/libwx_msw_dbgrid-2.8.a /usr/local/lib/libwx_msw_adv-2.8.a /usr/local/lib/libwx_msw_core-2.8.a /usr/local/lib/libwx_base_odbc-2.8.a /usr/local/lib/libwx_base_xml-2.8.a /usr/local/lib/libwx_base_net-2.8.a /usr/local/lib/libwx_base-2.8.a -lwxregex-2.8 -lwxexpat-2.8 -lwxtiff-2.8 -lwxjpeg-2.8 -lwxpng-2.8 -lwxzlib-2.8 -lrpcrt4 -luuid -lodbc32 -lole32 -loleaut32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32

 

Now I use the new file “FindwxWidgets.cmake” and with CMAKE 2.5 (nigthly build).

 

I got rid of the wx/fram.h file not found problem…But it seems that all this stuff was not that easy to solve. Another problem occurred and I could not find any reference of it on the net (makes me feel alone).

 

The problem is again with vgui and now I have this message:

 

c:/lib/vxl/vxl-1.9.0/core/vgui/impl/wx/vgui_wx.cxx: In member function `virtual void vgui_wx::init(int&, char**)':

c:/lib/vxl/vxl-1.9.0/core/vgui/impl/wx/vgui_wx.cxx:87: error: `wxSetInstance' was not declared in this scope

make[2]: *** [core/vgui/CMakeFiles/vgui.dir/impl/wx/vgui_wx.obj] Error 1

make[1]: *** [core/vgui/CMakeFiles/vgui.dir/all] Error 2

make: *** [all] Error 2

 

I still need a little help. Please.

 

Thank you

 

 

Yves Lemay