forth32 / qhuaweiflash

Графическая утилита для прошивки модемов и роутеров фирмы HUAWEI и редактирования файлов прошивок
57 stars 44 forks source link

ERROR IN COMPILING #5

Open satyamisme opened 6 years ago

satyamisme commented 6 years ago

E:\hu\learn\qpr\qhuaweiflash-master\main.cpp:-1: In member function 'void MainWindow::Menu_Part_Store()':

E:\hu\learn\qpr\qhuaweiflash-master\main.cpp:461: error: 'bzero' was not declared in this scope bzero(hdr,sizeof(hdr)); ^

E:\hu\learn\qpr\qhuaweiflash-master\main.cpp:-1: In member function 'void MainWindow::DataChanged()':

E:\hu\learn\qpr\qhuaweiflash-master\main.cpp:680: error: 'bzero' was not declared in this scope bzero(tdata,ptable->psize(hrow)); ^

forth32 commented 6 years ago

Программа собирается только под linux. Сборка под windows не предусмотрена и не планируется в будущем.

vishnus555 commented 5 years ago

g++ -c -m64 -pipe -Wno-unused-result -std=c++11 -g -Wno-write-strings -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o main.o main.cpp main.cpp:1:10: fatal error: QtWidgets: No such file or directory

include

      ^~~~~~~~~~~

compilation terminated. Makefile:373: recipe for target 'main.o' failed make: *** [main.o] Error 1

AliRazaManzoor commented 5 years ago

sudo apt-get install qt5* ; qmake qhuaweiflash.pro ; make

sysoleg commented 5 years ago

Force qmake to use qt5. $ export QT_SELECT=qt5