Unable to build on 10.9 Mac with lzma installed through homebrew

Bug #1285317 reported by Adam Wolf on 2014-02-26
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
KiCad
Undecided
Marco Serantoni

Bug Description

I am on a 10.9 Mac.

I checked out kicad. I am at revno 4719. I run the following commands:

cd kicad
cmake -DKICAD_BUILD_DYNAMIC=ON .
make swig
cmake -DKICAD_SCRIPTING=ON -DKICAD_SCRIPTING_WXPYTHON=ON .
make

During the last make, I get the following error:

/Users/wolf/projects/kicad/home/kicad/.downloads-by-cmake/libwxpython/src/libwxpython/src/tiff/libtiff/tif_lzma.c:38:10: fatal error:
      'lzma.h' file not found
#include "lzma.h"
         ^
1 error generated.
make[3]: *** [wxtiff_tif_lzma.o] Error 1

I have attached the config.log for .downloads-by-cmake/libwxpython/src/libwxpython/wxpy-bld/cocoa/src/tiff/config.log

Please let me know if there is anything I can do to help. Thanks!

Tags: osx Edit Tag help
Adam Wolf (adamwolf) wrote :
Changed in kicad:
assignee: nobody → Marco Serantoni (marco-serantoni)
status: New → Triaged
Martin Errenst (imp-d) on 2014-02-26
tags: added: osx

configure:18047: checking for lzma_code in -llzma
configure:18072: gcc -o conftest -g -O2 -Wall -W conftest.c -llzma -ljpeg -lz >&5
configure:18072: $? = 0
configure:18081: result: yes

configure:18096: checking lzma.h usability
configure:18096: gcc -c -g -O2 -Wall -W conftest.c >&5
configure:18096: $? = 0
configure:18096: result: yes

configure:18096: checking lzma.h presence
configure:18096: gcc -E conftest.c
configure:18096: $? = 0
configure:18096: result: yes
configure:18096: checking for lzma.h

Could you re-issue an
make V=1
and paste the all command line of the compiler..

Moreover could you show the paths where library and the lzma.h are located ?

sorry
make VERBOSE=1

Based on https://github.com/Homebrew/homebrew/issues/22732, I removed xz
(which contains lzma.h) with

brew uninstall xz

and reinstalled as a "universal binary" (which "shouldn't" fix anything but
multiple people said it did...)

brew install --universal

I'm retrying the build now.

On Wed, Feb 26, 2014 at 1:48 PM, Marco Serantoni <<email address hidden>
> wrote:

> ** Changed in: kicad
> Assignee: (unassigned) => Marco Serantoni (marco-serantoni)
>
> ** Changed in: kicad
> Status: New => Triaged
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1285317
>
> Title:
> Unable to build on 10.9 Mac with lzma installed through homebrew
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/kicad/+bug/1285317/+subscriptions
>

Please remember that is lzma is not needed.
Just uninstall..

** NOTE **
That library will be not included in the bundle and leave you with a missing dependency that library will be uninstalled or ported on a system that doesn't provide it from brew.

brew uninstall xz
Is enough

... "when" that library will be uninstalled..

You can reinstall it when the build is ended.

OSX kicad's building system is made to make those binaries "portable" between systems without the need of brew.
The last step of the building system will migrate and relocate in the bundle all the builded libraries.

There isn't a standard way to exclude lzma from wxpython command line sadly..

Adam Wolf (adamwolf) wrote :

It looks like wxwidgets may be moving away from having this issue
altogether...

http://comments.gmane.org/gmane.comp.lib.wxwidgets.devel/149306

On Wed, Feb 26, 2014 at 2:26 PM, Marco Serantoni <<email address hidden>
> wrote:

> ... "when" that library will be uninstalled..
>
> You can reinstall it when the build is ended.
>
> OSX kicad's building system is made to make those binaries "portable"
> between systems without the need of brew.
> The last step of the building system will migrate and relocate in the
> bundle all the builded libraries.
>
> There isn't a standard way to exclude lzma from wxpython command line
> sadly..
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1285317
>
> Title:
> Unable to build on 10.9 Mac with lzma installed through homebrew
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/kicad/+bug/1285317/+subscriptions
>

I see, but there is no way to pass that via switches to wxPython..

Please:
brew uninstall xz

Just to confirm if that fixes and could be added to Documents/compiling/mac-osx.txt
The effort is to make a knowledge base and a solution.

I need a confirmation.

Adam Wolf (adamwolf) wrote :

Oh, the build is going and has been for a while. It certainly got past
that point, but it isn't quite done yet. I will let you know.

Adam Wolf

On Wed, Feb 26, 2014 at 3:04 PM, Marco Serantoni <<email address hidden>
> wrote:

> I see, but there is no way to pass that via switches to wxPython..
>
> Please:
> brew uninstall xz
>
> Just to confirm if that fixes and could be added to
> Documents/compiling/mac-osx.txt
> The effort is to make a knowledge base and a solution.
>
> I need a confirmation.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1285317
>
> Title:
> Unable to build on 10.9 Mac with lzma installed through homebrew
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/kicad/+bug/1285317/+subscriptions
>

Adam Wolf (adamwolf) wrote :

It got quite a bit further, but now I have the following issue:

In file included from
/Users/wolf/projects/kicad/home/kicad/pcbnew/router/pns_router.cpp:48:
In file included from
/Users/wolf/projects/kicad/home/kicad/pcbnew/router/../class_board.h:44:
/Users/wolf/projects/kicad/home/kicad/pcbnew/router/../pcb_plot_params.h:27:10:
fatal error: 'pcb_plot_params_lexer.h' file not found
#include <pcb_plot_params_lexer.h>
         ^

Thanks Marco for all your help!

On Wed, Feb 26, 2014 at 3:13 PM, Adam Wolf <email address hidden>wrote:

> Oh, the build is going and has been for a while. It certainly got past
> that point, but it isn't quite done yet. I will let you know.
>
> Adam Wolf
>
>
> On Wed, Feb 26, 2014 at 3:04 PM, Marco Serantoni <
> <email address hidden>> wrote:
>
>> I see, but there is no way to pass that via switches to wxPython..
>>
>> Please:
>> brew uninstall xz
>>
>> Just to confirm if that fixes and could be added to
>> Documents/compiling/mac-osx.txt
>> The effort is to make a knowledge base and a solution.
>>
>> I need a confirmation.
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https://bugs.launchpad.net/bugs/1285317
>>
>> Title:
>> Unable to build on 10.9 Mac with lzma installed through homebrew
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/kicad/+bug/1285317/+subscriptions
>>
>
>

Uh i've to fix that too.. this is another ticket..
Happens when you build with parallelism .. those files are made in common..
enter common build all..
then go in the root and launch again with parallelism..

Open another ticket..

Changed in kicad:
status: Triaged → Fix Released

SOLVED just
brew uninstall xz

At least for the time of the building..

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers