Compile fet in Manjaro Gnu/Linux

Started by Omar Ben Ali, October 02, 2017, 09:03:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Omar Ben Ali

Hello,

i am using Manjaro Gnu/Linux, witch is based on archlinux distribution.

I am also testing Opensuse in virtualBox.

I would like to use fet with Linux but i do not know how to compile the source file.

Any help would be appreciated

Volker Dirr

Did you read the README file in the FET directory already?
Do you have installed a c++ compiler? (maybe write "g++ -v" in the terminal to check it out)
Do you have installed Qt? (maybe write "qmake -v" in the terminal to check it out)

Omar Ben Ali

yes
gcc version 7.1.1 20170630 (GCC)
QMake version 3.1
Using Qt version 5.9.1 in /usr/lib


Omar Ben Ali

at the end I get this ....

g++ -c -pipe -O2 -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -D_REENTRANT -Wall -W -fPIC -DFET_COMMAND_LINE -DQT_NO_DEBUG -DQT_CORE_LIB -I. -Iengine -Iinterface -isystem /usr/include/qt -isystem /usr/include/qt/QtCore -I../tmp/commandline -I/usr/lib/qt/mkspecs/linux-g++ -o ../tmp/commandline/moc_longtextmessagebox.o ../tmp/commandline/moc_longtextmessagebox.cpp
g++ -Wl,-O1 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o ../fet-cl ../tmp/commandline/timetableexport.o ../tmp/commandline/activity.o ../tmp/commandline/solution.o ../tmp/commandline/timetable.o ../tmp/commandline/rules.o ../tmp/commandline/generate_pre.o ../tmp/commandline/timeconstraint.o ../tmp/commandline/spaceconstraint.o ../tmp/commandline/studentsset.o ../tmp/commandline/teacher.o ../tmp/commandline/subject.o ../tmp/commandline/activitytag.o ../tmp/commandline/room.o ../tmp/commandline/building.o ../tmp/commandline/timetable_defs.o ../tmp/commandline/generate.o ../tmp/commandline/lockunlock.o ../tmp/commandline/messageboxes.o ../tmp/commandline/centerwidgetonscreen.o ../tmp/commandline/fet.o ../tmp/commandline/fetmainform.o ../tmp/commandline/longtextmessagebox.o ../tmp/commandline/moc_timetableexport.o ../tmp/commandline/moc_generate_pre.o ../tmp/commandline/moc_generate.o ../tmp/commandline/moc_lockunlock.o ../tmp/commandline/moc_messageboxes.o ../tmp/commandline/moc_fet.o ../tmp/commandline/moc_longtextmessagebox.o   -lQt5Core -lpthread
/usr/bin/qmake -install qinstall -exe ../fet-cl /usr/bin/fet-cl
Error copying ../fet-cl to /usr/bin/fet-cl: Cannot create /usr/bin/fet-cl for output
make[1]: [Makefile.src-cl:1182: install_target] Error 3 (ignored)
strip /usr/bin/fet-cl
strip: '/usr/bin/fet-cl': No such file
make[1]: [Makefile.src-cl:1183: install_target] Error 1 (ignored)
make[1]: Leaving directory '/home/ramo/Downloads/fet-5.27.3-morocco31/src'
mkdir: cannot create directory '/usr/share/fet': Permission denied
make: *** [Makefile:333: install_translations] Error 1

rodolforg

So you're trying a ''make install'' ?

You can see you don't have superuser (admin/root) permissions, so it can't write files in system directories like /usr/bin and /usr/share .

Liviu Lalescu

qmake
make (or make -j 2, or more)
sudo make install (input root password)

Omar Ben Ali

Quote from: Liviu Lalescu on October 04, 2017, 07:17:56 AM
qmake
make (or make -j 2, or more)
sudo make install (input root password)

Thank you Liviu  . Now I can use fet in my Manjaro.