Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wxwidgets fails to build on OSX #16066

Closed
epipping opened this issue Jun 8, 2016 · 12 comments
Closed

wxwidgets fails to build on OSX #16066

epipping opened this issue Jun 8, 2016 · 12 comments

Comments

@epipping
Copy link

epipping commented Jun 8, 2016

Issue description

Here's the output that I get:

In file included from ./include/wx/osx/private.h:4:
./include/wx/osx/core/private.h:55:10: fatal error: 'Carbon/Carbon.h' file not found
#include <Carbon/Carbon.h>
         ^
4 warnings and 1 error generated.
Makefile:28754: recipe for target 'basedll_filefn.o' failed
make: *** [basedll_filefn.o] Error 1
builder for ‘/nix/store/ab4il1siki6x8vbr8lmjr0mp472674bi-wxwidgets-3.0.2.drv’ failed with exit code 2

Steps to reproduce

E.g. nix-env -i wxmaxima.

Technical details

  • System: OS X 10.11.6 Beta (15G7b)
  • Nix version: nix-env (Nix) 1.11.2
  • Nixpkgs version: "16.09pre83147.df89584"
@FRidh
Copy link
Member

FRidh commented Jun 8, 2016

Do you know whether wxPython 3.0 functioned before #15764 ?

@FRidh
Copy link
Member

FRidh commented Jun 8, 2016

It seems like it should just be a matter of adding some dependencies for Darwin/OSX.
@copumpkin were you using Nix on Darwin?

@epipping
Copy link
Author

epipping commented Jun 8, 2016

@FRidh I don't, unfortunately. I've only tried this today, for the first time.

@mbucc
Copy link

mbucc commented Aug 28, 2016

Same error here:

  • System: OS X 10.9.5
  • Nix version: nix-env (Nix) 1.11.2
  • Nixpkgs version: "16.09pre-git"

Pulled from github.com/nixpkgs this morning.

@FRidh
Copy link
Member

FRidh commented Aug 28, 2016

I guess darwin.Carbon needs to be added (or darwin.apple_sdk.frameworks.Carbon)

@mbucc
Copy link

mbucc commented Aug 28, 2016

@FRidh Dunno. @matthewbauer pull request says it fixes this issue; I'm trying that now.

@FRidh
Copy link
Member

FRidh commented Aug 28, 2016

@mbucc
Copy link

mbucc commented Aug 28, 2016

Had wxmac installed and got this error message after building @matthewbauer's patch:

collision between ‘/nix/store/v937kg1xdjjdnr9pk2hn79jvqs9d12hk-wxwidgets-3.1.0/bin/wx-config’ and ‘/nix/store/8abyzj37rfxk82bdbmq48zsqsyc8in8k-wxmac-3.0.2/bin/wx-config’; use ‘nix-env --set-flag priority NUMBER PKGNAME’ to change the priority of one of the conflicting packages
builder for ‘/nix/store/gw8cigzlbmyj56a91hmvsvqiim8y2bs1-user-environment.drv’ failed with exit code 255
error: build of ‘/nix/store/gw8cigzlbmyj56a91hmvsvqiim8y2bs1-user-environment.drv’ failed

uninstalling wxmac worked

~/src/nixpkgs$ nix-env --uninstall wxmac
uninstalling ‘wxmac-3.0.2’
~/src/nixpkgs$ nix-env -i wxwidgets-3.1.0
warning: there are multiple derivations named ‘wxwidgets-3.1.0’; using the first one
installing ‘wxwidgets-3.1.0’
building path(s) ‘/nix/store/nsmdkv3bl1cias1y9qdg2dxl17fxryqc-user-environment’
created 513 symlinks in user environment
~/src/nixpkgs$ 

matthewbauer added a commit to matthewbauer/nixpkgs that referenced this issue Sep 5, 2016
- removes wxmac
- removes wxGTK28, wxGTK29, wxGTK30
- adds "compat28" and "compat30" flags
- add aliases for wxmac, wxGTK28, wxGTK29, wxGTK30
- resolves NixOS#16066
@mdaiter
Copy link
Contributor

mdaiter commented Dec 25, 2016

This still fails when building 2.8 (default version) due to wxGTK being unable to find specific framework versions (10.6) of Carbon. The default go-to is to download the 10.6 Carbon version and pass the argument to the configure script. How should we go about fixing this?

I have a PR-ready version of the package which pulls in all appropriate frameworks (Carbon, Cocoa, CoreServices) listed here: #21410 .

@veprbl
Copy link
Member

veprbl commented Feb 15, 2017

(triage) Steps to reproduce from this ticket doesn't fail currently (probably because it uses wxMac30 now). Is there still a problem?

@matthewbauer
Copy link
Member

Looks like we can close this.

@vcunat
Copy link
Member

vcunat commented Nov 5, 2017

Yes, seems OK on Hydra.

@vcunat vcunat closed this as completed Nov 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants