First, open the makefile file to see if the value of the incpath variable contains the header file path involved in the program
MAKEFILE = Makefile
####### Compiler, tools and options
CC = /work/tools/usr/local/arm/4.3.2/bin/arm-linux-gcc -lts -ldl
CXX = /work/tools/usr/local/arm/4.3.2/bin/arm-linux-g++ -lts -ldl
DEFINES = -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB
CFLAGS = -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv7-a -mtune=cortex-a8 -pipe -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
CXXFLAGS = -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv7-a -mtune=cortex-a8 -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv7-a -mtune=cortex-a8 -pipe -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
INCPATH = -I. -I. -I/Qt5/include -I/Qt5/include/QtWidgets -I/Qt5/include/QtGui -I/Qt5/include/QtCore -I. -I/Qt5/mkspecs/linux-arm-gnueabi-g++
QMAKE = /Qt5/bin/qmake
DEL_FILE = rm -f
CHK_DIR_EXISTS= test -d
MKDIR = mkdir -p
COPY = cp -f
COPY_FILE = cp -f
COPY_DIR = cp -f -R
INSTALL_FILE = install -m 644 -p
INSTALL_PROGRAM = install -m 755 -p
INSTALL_DIR = cp -f -R
DEL_FILE = rm -f
SYMLINK = ln -f -s
DEL_DIR = rmdir
If it does not exist, check whether the file is imported into the. Pro file. You can add it in the form of QT + = XXX, for example:
Prompt “no QApplication…”, then add QT + = widgets, re qmake and then make
Similar Posts:
- [Solved] CentOS7 failed to install psutil: module command’gcc’ failed with exit status 1
- Error reporting on data type and matrix dimension of eigen
- Compilation error during the installation of htslib library, libz. A: could not read symbols: bad value
- C++ Project Error: C Undefined symbols for architecture x86_64: “char_width(char)”
- caffe35793;- 38382;- 39064;src/caffe/net. cpp:8 :18: fatal error: hdf5.h: No such file or directory compilation term…
- [Solved] Ruby cannot load such file — zlib, openssl(LoadError), gem No rule to make target `/include/ruby.h’
- Python OpenCV TypeError: integer argument expected, got float
- Unit delay methods: invoke and invokerepeating
- Python TypeError: not all arguments converted during string formatting
- Limit the range of axial movement in unity mathf.clamp