kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #04678
Re: Croscompilling for Windows
On 4/12/2010 8:51 AM, jp.charras@xxxxxxxxxx wrote:
> Wayne Stambaugh a écrit :
>> 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.
>>
>>
> Milan is building on Linux using mingw and cross-compilation mingw tool.
> I built wxWidgets+kicad under Windows with MinGW.
> When using shared libraries wxMSW build option, I had the same error
> under Windows.
I just confirmed this myself on Windows using MinGW as well. Are we now
going to support building Kicad on Windows using wxWidgets as a shared
library? The current build instructions in COMPILING.txt state that
wxWidgets should be built with the --disable-shared flag. If we now
support using wxWidgets as a shared library on Windows, then
COMPILING.txt will need to updated as well. If this is the consensus
among the group, I will update COMPILING.txt. I still have to confirm
that this fix doesn't break anything on Linux.
Wayne
>
> But usually I use wxWidgets under Linux or Windows in static version and
> I did not have any problem.
>>> 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
>>
>
> We are not in a hurry.
>
> --
> 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