View Single Post
Posts: 24 | Thanked: 12 times | Joined on Mar 2010
#3
Hi Daniel,

I have run those commands, it is when I run mad make that I get the output as above.

Let me check if I have this right:

1. My output from Qt is basically just my source files - (a couple of .cpp files, a .h file, a .ui file and a .pro file) along with all the .o files and a couple of makefiles.

2. I have to create a skeleton project in my MADDE terminal using "mad pscreate -t qt_simple <projectname>

3. I copy my .cpp and .h files to the src directory in the newly created project (removing the created main.cpp and replacing with my own) and copy my .ui file to the uis directory

4. I open the created .pro file and edit it to include the names of my source, header and form (ui) files

5. I cd to the project directory and run mad qmake - works fine

6. run mad make - I get the output as below with an error at the end:

Code:
mark.mcdonnell $ mad make
c:/MADDE/0.6.14/targets/fremantle-qt-0951/bin/uic uis/dialog.ui -o build/ui_dial                                                       og.h
g++ -c -pipe -O0 -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I                                                       ../../../sysroots/fremantle-arm-sysroot-2.2009-51-1-qt453/usr/share/qt4/mkspecs/                                                       default -I. -I../../../sysroots/fremantle-arm-sysroot-2.2009-51-1-qt453/usr/incl                                                       ude/qt4/QtCore -I../../../sysroots/fremantle-arm-sysroot-2.2009-51-1-qt453/usr/i                                                       nclude/qt4/QtGui -I../../../sysroots/fremantle-arm-sysroot-2.2009-51-1-qt453/usr                                                       /include/qt4 -Ibuild -Ibuild -o build/main.o src/main.cpp
gcc -c -pipe -O0 -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I                                                       ../../../sysroots/fremantle-arm-sysroot-2.2009-51-1-qt453/usr/share/qt4/mkspecs/                                                       default -I. -I../../../sysroots/fremantle-arm-sysroot-2.2009-51-1-qt453/usr/incl                                                       ude/qt4/QtCore -I../../../sysroots/fremantle-arm-sysroot-2.2009-51-1-qt453/usr/i                                                       nclude/qt4/QtGui -I../../../sysroots/fremantle-arm-sysroot-2.2009-51-1-qt453/usr                                                       /include/qt4 -Ibuild -Ibuild -o build/.o c:/
arm-none-linux-gnueabi-gcc.exe: c:/: linker input file unused because linking no                                                       t done
g++ -c -pipe -O0 -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I                                                       ../../../sysroots/fremantle-arm-sysroot-2.2009-51-1-qt453/usr/share/qt4/mkspecs/                                                       default -I. -I../../../sysroots/fremantle-arm-sysroot-2.2009-51-1-qt453/usr/incl                                                       ude/qt4/QtCore -I../../../sysroots/fremantle-arm-sysroot-2.2009-51-1-qt453/usr/i                                                       nclude/qt4/QtGui -I../../../sysroots/fremantle-arm-sysroot-2.2009-51-1-qt453/usr                                                       /include/qt4 -Ibuild -Ibuild -o build/dialog.o src/dialog.cpp
C:/MADDE/0.6.14/targets/fremantle-qt-0951/bin/moc -DQT_GUI_LIB -DQT_CORE_LIB -DQ                                                       T_SHARED -I../../../sysroots/fremantle-arm-sysroot-2.2009-51-1-qt453/usr/share/q                                                       t4/mkspecs/default -I. -I../../../sysroots/fremantle-arm-sysroot-2.2009-51-1-qt4                                                       53/usr/include/qt4/QtCore -I../../../sysroots/fremantle-arm-sysroot-2.2009-51-1-                                                       qt453/usr/include/qt4/QtGui -I../../../sysroots/fremantle-arm-sysroot-2.2009-51-                                                       1-qt453/usr/include/qt4 -Ibuild -Ibuild src/dialog.h -o build/moc_dialog.cpp
g++ -c -pipe -O0 -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I                                                       ../../../sysroots/fremantle-arm-sysroot-2.2009-51-1-qt453/usr/share/qt4/mkspecs/                                                       default -I. -I../../../sysroots/fremantle-arm-sysroot-2.2009-51-1-qt453/usr/incl                                                       ude/qt4/QtCore -I../../../sysroots/fremantle-arm-sysroot-2.2009-51-1-qt453/usr/i                                                       nclude/qt4/QtGui -I../../../sysroots/fremantle-arm-sysroot-2.2009-51-1-qt453/usr                                                       /include/qt4 -Ibuild -Ibuild -o build/moc_dialog.o build/moc_dialog.cpp
g++  -o build/designerexample build/main.o build/.o build/dialog.o build/moc_dia                                                       log.o    -LC:/MADDE/0.6.14/sysroots/fremantle-arm-sysroot-2.2009-51-1-qt453/usr/                                                       lib -Wl,-rpath-link=/usr/lib -lQtGui -lQtCore -lpthread
arm-none-linux-gnueabi-g++.exe: build/.o: No such file or directory
make: *** [build/designerexample] Error 1
I'm not sure if I am doing the right thing with creating the skeleton project and putting my files into it, does that sound correct?

Thanks