Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install wxWidgets-3.1.3 in Ubuntu20.04

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces Ubuntu20.04 how to install wxWidgets-3.1.3, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

1. Install wxWidgets dependent sudo apt install pkg-configsudo apt install libgtk2.0-devsudo apt-get install libwxgtk3.0-gtk3-devsudo apt-get install build-essentialsudo apt-get install mesa*sudo apt-get install mesa-common-devsudo apt-get install libgl1-mesa-dev libglu1-mesa-dev2. download

Since erlang depends on wxWidgets, we need to download the wxWidgets installation package. The wxWidgets version is 2.8.4 or higher. Here we download the latest version 3.1.3 and suggest to download it using Xunlei.

Download address of wxWidgets official website

Wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.3/wxWidgets-3.1.3.tar.bz23. Create the installation path folder sudo mkdir-p / usr/local/wxWidgets4 for wxWidgets. Decompress wxWidgetstar-xvf wxWidgets-3.1.3.tar.bz25. Enter the wxWidgets directory cd wxWidgets-3.1.3/6. Compile wxWidgets./configure-- with-regex=builtin-- with-gtk-- enable-unicode-- disable-shared-- prefix=/usr/local/wxWidgets7. Start installing wxWidgetssudo make & & make install

The compilation process has been very long. I once thought that there was an exception message (in fact, there was no exception message at all, just compiling the file). Anyway, we must wait patiently for the file to be compiled, and any exception will stop halfway. The following figure indicates that the installation is successful.

8. Ready to set up its dynamic library cd / etc/ld.so.conf.d/

Create a file

Sudo touch wxWidgets.conf

Open a file

Sudo vim wxWidgets.conf

Add the following

/ usr/local/lib

Reload dynamic library configuration information

Sudo ldconfig9. Configure the wxWidgets environment variable sudo vim / etc/profile

Save the following to the profile file, save and exit

# wxWidgetsexport WXPATH=/usr/local/wxWidgets/export PATH=$WXPATH/bin:$PATH

Make the environment variable refresh and take effect

Source / etc/profile10. Check the wx version number wx-config-- version

Thank you for reading this article carefully. I hope the article "how to install Ubuntu20.04 wxWidgets-3.1.3" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report