I am getting crashes in all RunExposrtXXX() methods, even if I comment the inner code.
The problem is wxMenuItems generate wxEVT_MENU events, not wxEVT_COMMAND_TOOL_CLICKED, and the connected method receives a reference to wxCommandEvent.
Connect(ID_Menu_AutotoolsExport, wxEVT_MENU, (wxObjectEventFunction)&ProjectExporter::RunExportAutotools);
...
void ProjectExporter::RunExportAutotools(wxCommandEvent& event)
(repeat for all methods)
Using a small project, for autotools I get:
AM_OPTIONS_WXCONFIG
AM_PATH_WXCONFIG(3.1.0, wxWin=1)
if test "$wxWin" != 1; then
AC_MSG_ERROR([
wxWidgets must be installed on your system.
Please check that wx-config is in path, the directory
where wxWidgets libraries are installed (returned by
'wx-config --libs' or 'wx-config --static --libs' command)
is in LD_LIBRARY_PATH or equivalent variable and
wxWindows version is 3.1.0 or above.
])
fi
Autotools build system created
For Bakefile I get 4 identical asserts:
arrstr(558) iIndex != -1 failed in Remove()
and then a .bkl file is created in the project's home page (but there should be an informative message).
EDIT: this asserts are generated in EmitFlags(), calling wxArrayString::Remove() asserts if the string does not exist.
Premake shows two messages:
Premake script exported
Premake script exported
and a .lua file is created in the project's home page (but there should be an informative message).
CMake shows this:
RunExportCMake started
RunExportCMake started completed
but does not create anything.