CENTOS7 Installation Wxwidgets Error resolution

Source: Internet
Author: User
Tags gtk wxwidgets

To compile a gadget Pyuv-player, discover that you need wxwidgets support, error messages:

Source/playuvapp.h:31:23:fatal error:wx/wxprec.h:no such file or directory

So search online, find the official website https://www.wxwidgets.org/

Follow the prompts to download the source code,./configure found errors at compile time, missing gtk+2.

Checking for GTK + version ... checking for pkg-config .../usr/bin/pkg-config checking for GTK +-version >= 2.6.0 ... NO * * * * could not run GTK + test program, checking why ... * * * * The test program failed to compile or link. The file Config.log for the * * * exact error that occurred.
This usually means GTK + is incorrectly installed. Checking for pkg-config ... (cached)/usr/bin/pkg-config checking for GTK +-version >= 3.0.0 ... NO * * * * could not run GTK + test program, checking why ... * * * * The test program failed to compile or link. The file Config.log for the * * * exact error that occured.
This usually means GTK + is incorrectly installed. Checking for gtk-config ... no checking for gtk-version >= 1.2.7 ... NO * * * * * * Gtk-config script installed by GTK could is not to found * * * If GTK is installed in PREFIX, make sure Prefix/bin
IS in * * * your path, or set the GTK_CONFIG environment variable to the * * * full path to gtk-config. Checking for gtk-config ... (cached) No checking for GTK-version >= 1.2.3 ... NO * * * * * * Gtk-config script installed by GTK could is not to found * * * If GTK is installed in PREFIX, make sure Prefix/bin
IS in * * * your path, or set the GTK_CONFIG environment variable to the * * * full path to gtk-config. Configure:error:The Development files for GTK + were not found. For GTK + 2, please ensure that pkg-config are in the path and the GTK+-2.0.PC is installed. For GTK + 1.2 Please check this gtk-config is in the path, and this version is 1.2.3 or above. Also Check that this libraries returned by ' Pkg-config gtk+-2.0--libs ' or ' gtk-config--libs ' are in the Ld_library_path O
 R equivalent.

So install Gtk2-devel and binutils first.

Yum-y Install Gtk2-devel Binutils-devel

Then./configure && make && sudo make install.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.