kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #04675
Re: Croscompilling for Windows
Milan Horák a écrit :
Fresh build of wxWidgets with --enable-aui option did not work :-(
Still getting these errors:
CMakeFiles/eeschema.dir/hotkeys.cpp.obj:hotkeys.cpp:(.text+0x1e22):
undefined reference to `__imp__EVT_COMMAND_FIND_DRC_MARKER'
CMakeFiles/eeschema.dir/schframe.cpp.obj:schframe.cpp:(.text+0x208f):
undefined reference to `__imp__EVT_COMMAND_FIND_DRC_MARKER'
collect2: ld returned 1 exit status
make[2]: *** [eeschema/eeschema.exe] Error 1
make[1]: *** [eeschema/CMakeFiles/eeschema.dir/all] Error 2
make: *** [all] Error 2
CMakeFiles/eeschema.dir/hotkeys.cpp.obj:hotkeys.cpp:(.text+0x1e22):
undefined reference to `__imp__EVT_COMMAND_FIND_DRC_MARKER'
CMakeFiles/eeschema.dir/schframe.cpp.obj:schframe.cpp:(.text+0x208f):
undefined reference to `__imp__EVT_COMMAND_FIND_DRC_MARKER'
collect2: ld returned 1 exit status
make[2]: *** [eeschema/eeschema.exe] Error 1
make[1]: *** [eeschema/CMakeFiles/eeschema.dir/all] Error 2
make: *** [all] Error 2
I am now able to reproduce the problem.
Happens only when using the shared wxWidgets version.
(I am using a static version that does not create this error)
Edit dialog_schematic_find.h, lines 77 and 78:
BEGIN_DECLARE_EVENT_TYPES()
DECLARE_EVENT_TYPE( EVT_COMMAND_FIND_DRC_MARKER, wxID_HIGHEST + 5000 )
DECLARE_EVENT_TYPE( EVT_COMMAND_FIND_COMPONENT_IN_LIB, wxID_HIGHEST
+ 5001 )
END_DECLARE_EVENT_TYPES()
must be:
BEGIN_DECLARE_EVENT_TYPES()
DECLARE_LOCAL_EVENT_TYPE( EVT_COMMAND_FIND_DRC_MARKER, -1 )
DECLARE_LOCAL_EVENT_TYPE( EVT_COMMAND_FIND_COMPONENT_IN_LIB, -1 )
END_DECLARE_EVENT_TYPES()
Wayne, can you confirm this change and upload it on Launchpad, when it
is ready.
Jean-Pierre Charras
Follow ups
References