← Back to team overview

kicad-developers team mailing list archive

Re: Crosscompilling again - no luck

 

On 03/14/2011 11:36 AM, Milan Horák wrote:
> Hi,
>
> that'll be lot of work.

No, its not.

I forgot to mention the most important point, which is that if CMakeList.txt
is used to build wxWidgets, then it can know where that library is since it
build each external project such as wxWidgets, etc.  This is true of each
external project, so you can craft flawless builds.

Dick


> For now I need cmake to detect my wxWidgets ;-)
>
> For compiling wxWidgets I use this configure command:
>
> ../configure --enable-unicode --enable-monolithic --enable-shared 
> --enable-aui --with-msw --with-opengl 
> --prefix=/home/milan/Development/toolchain-mingw --host=i586-mingw32msvc 
> --build=x86_64-linux
>
> Is this the right one?
>
> Milan
>
> Dne 14.3.2011 16:38, Dick Hollenbeck napsal(a):
>> On 03/10/2011 01:53 PM, Milan Horák wrote:
>>> Hi gentlemen,
>>>
>>> I'm trying again to crosscompile Kicad for Windows on Linux.
>>>
>>> My problem is, that cmake ends with "wxWidgets bot found" message.
>>>
>>> I ran cmake through strace but everything seems to be the right way.
>>>
>>> wx is 2.8.11, Kubuntu 10.10
>>>
>>> What should I focus on now?
>>>
>>> Thanks for any advice.
>>>
>>> Milan
>>
>> Last week I needed to build a MinGW application, and it needed to link to
>> zlib (i.e. zip library).  I was able to trick out the CMakeList.txt file for
>> the parent program to download and build the zlib using the "external
>> project" mechanism within CMake.    Moreover, I did this from Linux for a
>> Windows executable.
>>
>>
>> The CMake External Project mechanism is quite powerful and customizable.
>> It can build external projects.   The only weakness is Windows itself, where
>> perhaps the project you want to build, cannot be built on Windows (without
>> say Cygwin or Msys).
>>
>>
>> But if you are building on Linux for Windows, then this limitation might not
>> present itself, if say, all external projects can be cross compiled from
>> Linux for Windows.
>>
>>
>> On Linux, I think it would be possible to build everything needed for
>> Windows Kicad using CMake's *external project* mechanism.
>>
>>
>> This might be a good way for a contributor to step up and help Milan.
>>
>> I can post the CMake lines I used for zlib, and that may serve as an example
>> for someone to take this to all the external projects required by Windows Kicad.
>>
>>
>> Note that zlib now has a CMakeLists.txt file that was used within the
>> external project (chain loaded, so to speak), so this is one way to build an
>> external project.  But from Kicad's CMakeList.txt file you can also build
>> any external project that might use Autotools, or whatever, as long as those
>> tools are present on your linux box.   ANd if they are not, CMake could even
>> be used to download and build those.
>>
>> There is almost nothing that cannot be done by CMake if you write the
>> correct scripts for it, since it can:
>>
>> A) download files from the internet,
>> B) Compile and link external projects.
>> C) has a simple general purpose programming language built in.
>>
>>
>> Again, executive summary:
>>
>> On Linux, I think it would be possible to build everything needed for
>> Windows Kicad using CMake's *external project* mechanism.
>>
>>
>> Dick
>>
>>
>> _______________________________________________
>> 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




References