qt5-qtbase-mysql.x86_64 : MySQL driver for Qt5's SQL classes
qt5-qtbase-mysql.i686 : MySQL driver for Qt5's SQL classes
make: *** Нет правила для сборки цели «sub-mysql». Останов.
конфигурация sh скрипта
BASE_DIR=$(dirname "$(readlink -f "$0")")
export PATH="$BASE_DIR"/bin/:$PATH
export LD_LIBRARY_PATH="$BASE_DIR"/lib/:"$BASE_DIR":$LD_LIBRARY_PATH
export QML_IMPORT_PATH="$BASE_DIR"/qml/:$QML_IMPORT_PATH
export QML2_IMPORT_PATH="$BASE_DIR"/qml/:$QML2_IMPORT_PATH
export QT_PLUGIN_PATH="$BASE_DIR"/plugins/:$QT_PLUGIN_PATH
export QTWEBENGINEPROCESS_PATH="$BASE_DIR"/bin//QtWebEngineProcess
export QTDIR="$BASE_DIR"
export CQT_PKG_ROOT="$BASE_DIR"
export CQT_RUN_FILE="$BASE_DIR/ComTcpClient.sh"
export QT_QPA_PLATFORM_PLUGIN_PATH="$BASE_DIR"/plugins//platforms:$QT_QPA_PLATFORM_PLUGIN_PATH
[root@localhost bin]# ldd ComTcpClient
ldd: предупреждение: у вас нет прав на выполнение `./ComTcpClient'
linux-vdso.so.1 (0x00007ffe1aadb000)
libQt5Widgets.so.5 => not found
libQt5Gui.so.5 => not found
libQt5SerialPort.so.5 => not found
libQt5Core.so.5 => not found
libGL.so.1 => /usr/lib64/libglvnd/libGL.so.1 (0x00007fccb2e97000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fccb2c79000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fccb28ef000)
libm.so.6 => /lib64/libm.so.6 (0x00007fccb25dd000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fccb23c6000)
libc.so.6 => /lib64/libc.so.6 (0x00007fccb2021000)
libGLX.so.0 => /usr/lib64/libglvnd/libGLX.so.0 (0x00007fccb1def000)
libX11.so.6 => /lib64/libX11.so.6 (0x00007fccb1ab0000)
libXext.so.6 => /lib64/libXext.so.6 (0x00007fccb189e000)
libGLdispatch.so.0 => /lib64/libGLdispatch.so.0 (0x00007fccb15e8000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fccb13e4000)
/lib64/ld-linux-x86-64.so.2 (0x00007fccb3123000)
libxcb.so.1 => /lib64/libxcb.so.1 (0x00007fccb11bb000)
libXau.so.6 => /lib64/libXau.so.6 (0x00007fccb0fb7000)
ainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
const auto infos=QSerialPortInfo::availablePorts();
QStringList list;
list<<"21323"<<"213123";
qDebug()<<list;
ui->comboBoxPorts->addItems(list);
foreach(const QSerialPortInfo &info, QSerialPortInfo::availablePorts()){
qDebug()<<info.portName();
}
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
ui->comboBoxPorts->addItems(list);
find -name "libqsqlite.so"
Не помогло! Qt все также пишет: