【问题标题】:wxPerl install on MacwxPerl 在 Mac 上安装
【发布时间】:2018-10-12 22:44:33
【问题描述】:

我已经能够在我的 Mac 上安装 wxWidgets 并很好地使用 wxPython,但是现在我正在尝试使用 Perl,我需要下载 wxPerl。我尝试安装但安装失败,我不确定出了什么问题或如何修复它。你能帮我吗?这是终端输出。如果需要,我可以分享错误日志,但它很长。还值得注意的是,我在使用 cpan 和下载 .tar 文件并从中构建时仍然存在这个问题。

dhcp86-242:214_Final_project cat$ cpanm Wx
--> Working on Wx
Fetching http://www.cpan.org/authors/id/M/MD/MDOOTSON/Wx-0.9932.tar.gz ... OK
==> Found dependencies: Alien::wxWidgets
--> Working on Alien::wxWidgets
Fetching http://www.cpan.org/authors/id/M/MD/MDOOTSON/Alien-wxWidgets-0.69.tar.gz ... OK
Configuring Alien-wxWidgets-0.69 ... OK
Building and testing Alien-wxWidgets-0.69 ... FAIL
! Installing Alien::wxWidgets failed. See /Users/cat/.cpanm/work/1525284354.35567/build.log for details. Retry with --force to force install it.
! Installing the dependencies failed: Module 'Alien::wxWidgets' is not installed
! Bailing out the installation for Wx-0.9932.

“致命错误”

../src/osx/core/bitmap.cpp:39:10: fatal error: 'QuickTime/QuickTime.h' file not found

一个常见的警告

../include/wx/any.h:611:5: warning: expression with side effects will be evaluated despite being used as an operand to 'typeid' [-Wpotentially-evaluated-expression]
WX_DECLARE_ANY_VALUE_TYPE(wxAnyValueTypeImplVariantData)
^

日志结束

10 warnings and 1 error generated.
make: *** [coredll_core_bitmap.o] Error 1
system: make all: 512 at ./Build line 67.
-> FAIL Installing Alien::wxWidgets failed. See /Users/cat/.cpanm/work/1525284354.35567/build.log for details. Retry with --force to force install it.
-> FAIL Installing the dependencies failed: Module 'Alien::wxWidgets' is not installed
-> FAIL Bailing out the installation for Wx-0.9932.

如果有帮助,我可以分享更多警告。

【问题讨论】:

  • 您使用哪个版本的 OSX?也很高兴看到日志,至少有错误的部分......
  • 我正在运行 MacOS Sierra 版本 10.12.6。我会添加日志。
  • 日志在顶部被切断。您可以在顶部添加更多行吗?还有什么版本的 wx wxPerl 是基于什么构建的?您可能需要自己构建它。
  • 日志有 14874 行。你想要哪些?
  • 版本方面,貌似wxPerl支持wxWidgets 2.8.12和2.9.4。我不确定我下载了哪个版本的 wxWidgets,但我认为 wxPerl 的安装程序应该注意先决条件。但显然它搞砸了。我确实尝试过手动构建,但我遇到了同样的问题。

标签: installation wxwidgets cpan cpanm wxperl


【解决方案1】:

看起来这里使用的任何版本的 wxWidgets 都不包含来自this commit(大约 4 年前)的修复,这是使用 macOS Sierra 或更高版本构建所需的。

AFAIR,你应该能够获得 3.0.4 版本,自己构建它,然后将 Alien 指向它。

【讨论】:

  • 谢谢!我下载了 wxWidgets 3.0.4,那么如何构建它并将 Alien 指向它?
  • @CatherineD,建造很容易:cd wxWidgets-3.0.4 && mkdir buildMac && cd buildMac && ../configure --with-cocoa --macosx-version-min=10.8 && make。完成后检查 Alien 的文档,了解如何将工具指向生成的库。
  • 如何将 Alien 指向图书馆?我找不到这方面的任何部分。
猜你喜欢
  • 2012-06-29
  • 2018-05-15
  • 2014-05-20
  • 2014-06-05
  • 2013-02-18
  • 2019-08-17
  • 2017-05-09
  • 2013-07-09
  • 2015-07-25
相关资源
最近更新 更多