Posts: 51
swiftlinuxcreator
Joined: 15 Nov 2010
#1
I've downloaded and extracted the code from antiX-M11-minstall.tar.gz from
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.mepisimo.com/antix/Tarballs/"
linktext was:"http://www.mepisimo.com/antix/Tarballs/"
====================================
.

Exactly how do I compile the C++ code to create the executable file?
Posts: 117
buttcoffee
Joined: 20 Aug 2010
#2
Have you ever thought of a different approach?
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#3
This is the info I was given:

To compile the project you have to go to the source folder and execute:

qmake-qt4
make

And this should generate the the binary.
Posts: 51
swiftlinuxcreator
Joined: 15 Nov 2010
#4
It's not working. It seems that I'm missing some packages.

The conents of the src folder (from the ls command) are:
app.cpp minstall_cs.qm minstall_nl.qm mmain.cpp
configure.png minstall_cs.ts minstall_nl.ts mmain.h
LICENSE minstall_de.qm minstall.o mmain.o
Makefile minstall_de.ts minstall_pl.qm moc_minstall.cpp
meinstall.h minstall_es.qm minstall_pl.ts moc_minstall.o
meinstall.ui minstall_es.ts minstall_pt_BR.qm moc_mmain.cpp
memain.h minstall_fr.qm minstall_pt_BR.ts moc_mmain.o
memain.ui minstall_fr.ts minstall_pt.qm NOTICE
minstall_ca.qm minstall.h minstall_pt.ts src.pro
minstall_ca.ts minstall_hu.qm minstall_uk.qm ui_meinstall.h
minstall.cpp minstall_hu.ts minstall_uk.ts ui_memain.h

The"qmake-qt4" command seems to work OK. But when I enter"make", I get:
g++ -c -pipe -O2 -D_REENTRANT -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o app.o app.cpp
app.cpp:17:26: fatal error: qapplication.h: No such file or directory
compilation terminated.
make: *** [app.o] Error 1
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#5
apt-get install qt4-qmake (you may want qt4-dev-tools as well)

Edit: Make sure you also have g++
Posts: 51
swiftlinuxcreator
Joined: 15 Nov 2010
#6
Now I'm having problems again. Although I have no error messages when I enter the"qmake-qt4" command, I get a bunch of error messages when I enter"make":

g++ -Wl,-O1 -o minstall app.o mmain.o minstall.o moc_mmain.o moc_minstall.o -L/usr/lib -lcrypt -lQtGui -lQtCore -lpthread
/usr/bin/ld: cannot find -lQtGui
/usr/bin/ld: cannot find -lQtCore
collect2: ld returned 1 exit status
make: *** [minstall] Error 1

I have the g++, build-essentials, qt4-qmake, and qt4-dev-tools packages installed. What am I missing?
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#7

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.qtforum.org/article/18380/question-when-compiling-message-usr-bin-ld-cannot-find-lqtgui-debug.html"
linktext was:"http://www.qtforum.org/article/18380/qu ... debug.html"
====================================


suggests installing libqt4-debug libqt4-debug-dev
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#8
Better maybe just use make clean befor make.
Posts: 51
swiftlinuxcreator
Joined: 15 Nov 2010
#9
The"make clean" command deletes the source code files.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#10
make then rebuilds them.