← Back to team overview

kicad-developers team mailing list archive

Re: Croscompilling for Windows

 

Milan Horák a écrit :
Hallo gentlemen,

can anyone please help me with the subject?

Compilling under Kubuntu 9.10.

For about ten revisions I get following errors compilling for Windows (
gcc 4.4.1, wxWidgets 2.8.10):

source/common/gr_basic.cpp:159: warning: ‘bool clipLine(EDA_Rect*, int&, int&, int&, int&)’ defined but not used

Do not worry about this warning.
source/eeschema/dialog_schematic_find.cpp:4: warning: ‘EVT_COMMAND_FIND_DRC_MARKER’ redeclared without dllimport attribute: previous dllimport ignored

source/eeschema/dialog_schematic_find.cpp:5: warning: ‘EVT_COMMAND_FIND_COMPONENT_IN_LIB’ redeclared without dllimport attribute: previous dllimport ignored

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

Thank for any help, Milan
I do not have this kind of warning.
Could be incompatibility between object files previously created with different compil options or/and wxWidgets version.
(Can happen after an update)

Try to:
- clean and rebuild wxWidgets
and/or
- clean and rebuild Kicad (including makefiles)

JP Charras










References