QT-Library-qwt (Linux)

0, problem

qwt is a library of QT, which is used in graphics. Usually, the problem of "can't find -lqwt" is encountered when compiling QT projects. The main reason is that the library is not installed. The details are as follows.

1 Introduction

qwt is a library of QT, which mainly provides graphics-related interfaces, including two-dimensional graphics, different types of sliders, etc.

Official website: http://qwt.sf.net

2. Installation

(1) Download from official website: the latest version 6.1.4

(2) Compilation script generation

qmake

(3) Compile

make

Compiled successfully:

(4) Installation

make install

Successful installation:

The default installation path: /usr/local/

3. Configuration

(1) Add environment variables

export LD_LIBRARY_PATH=/usr/local/qwt-6.1.2/lib:$LD_LIBRARY_PATH
export CPLUS_INCLUDE_PATH=/usr/local/qwt-6.1.2/include:$CPLUS_INCLUDE_PATH
export C_INCLUDE_PATH=/usr/local/qwt-6.1.2/include:$C_INCLUDE_PATH

Restart the system to take effect

reboot

So far, QT-library-qwt (Linux) has been installed and can be used normally in the project.

 

 

Guess you like

Origin blog.csdn.net/junzhu_beautifulpig/article/details/106896758