← Back to team overview

kicad-developers team mailing list archive

Re: Croscompilling for Windows

 

On 4/12/2010 5:01 AM, jp.charras@xxxxxxxxxx wrote:
> 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)

I'm using shared libraries on Linux and I don't get this error.  Is
Milan building on Windows with MinGW?  If so I will have to rebuild
wxWidgets as a shared library to confirm this.

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

Yes but it may take me a while to get to the point where I can verify
this.  Also, I just saw Dick's message about the repos not being
writable yet so it may be some time before I can commit the changes.

Wayne

> 
> Jean-Pierre Charras
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp



Follow ups

References