UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Contributor
Contributor
1,035 Views
Registered: ‎01-11-2018

error of Building the Zynq SW application (XSDK) of zynq pcie TRD

Hi:

I tried to build the SW app in XSDK of zynq pcie TRD.

I have followed the steps of zynq_PCIe_TRD_2015.4 and Qt & Qwt Build Instructions(Qt 5.4.2,Qwt6.1.2).

But when build the zynq_pcie_qt project I got the error from xsdk  as this :

 

6:23:55 **** Build of configuration Default for project zynq_pcie_qt ****
make all
arm-xilinx-linux-gnueabi-g++ -c -pipe -O3 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/opt/QT/include/QtGui -I/opt/QT/include/QtCore -Imoc -I/opt/QT/mkspecs/arm-xilinx-linux-gnueabi-g++ -o obj/mainwindow.o qt_app/mainwindow.cpp
In file included from qt_app/mainwindow.cpp:29:0:
qt_app/mainwindow.h:28:23: fatal error: QMainWindow: No such file or directory
#include <QMainWindow>
^
compilation terminated.
make: *** [obj/mainwindow.o] 错误 1

16:23:55 Build Finished (took 111ms)

 

 

And when I tried to fix the makefile of zynq_pcie_qt to find QMainWindow I got another "No such file or directory".

I am sure I have forgot something important, but I don't know!

 

0 Kudos
4 Replies
Contributor
Contributor
1,001 Views
Registered: ‎01-11-2018

Re: error of Building the Zynq SW application (XSDK) of zynq pcie TRD

One thing that I am not sure is that I use the arm-xilinx-linux-XXX tools of petalinux, not the XSDK, to build QT5 and qwt6.1.4 , should this cause problem?  If use XSDK's tools I don't know which folder should I export in linux?

0 Kudos
Contributor
Contributor
977 Views
Registered: ‎01-11-2018

Re: error of Building the Zynq SW application (XSDK) of zynq pcie TRD

Anything should be very helpful!

0 Kudos
Moderator
Moderator
954 Views
Registered: ‎12-04-2016

Re: error of Building the Zynq SW application (XSDK) of zynq pcie TRD

Hi @fujiajun

 

Could you please confirm if you are using 

 

 

Best Regards
Shabbir

0 Kudos
Contributor
Contributor
930 Views
Registered: ‎01-11-2018

Re: error of Building the Zynq SW application (XSDK) of zynq pcie TRD

Thank you for your reply.

I build and install the qt and qwt following this one:

Qt & Qwt Build Instructions (Qt 5.4.2, Qwt 6.1.2)

 

just because I use Qt5.4.2 and qwt6.1.2. 

 

And I gedit the make of zynq_pcie_qt project, I found Qwt lib is not included, it seems qmake does not know the qwt has been installed.

 

0 Kudos