How to build program from terminal
-
wrote on 29 Jan 2024, 19:09 last edited by
If I run build command from Qt Creator I get compiling lines below:
01:59:54: Running steps for project Project...
01:59:54: Configuration unchanged, skipping qmake step.
01:59:54: Starting: "/usr/bin/make" -j8
g++ -c -pipe -g -std=gnu++1z -Wall -Wextra -fPIC -DQT_QML_DEBUG -I../Project -I. -I../SPL -I/usr/local/Qt-6.4.2/mkspecs/linux-g++ -o Tdebug.o ../Project/Tdebug.cpp
rm -f libProject.so.1.0.0 liProject.so libProject.so.1 libProject.so.1.0g++ -shared -Wl,-soname,libSml.so.1 -o libSml.so.1.0.0 Project.o Tdebug.o main.o -L/home/j/SPL-Debug/debug/debug -lSpl
ln -s libSml.so.1.0.0 libSml.so
ln -s libSml.so.1.0.0 libSml.so.1
ln -s libSml.so.1.0.0 libSml.so.1.0
rm -f debug/debug/libSml.so.1.0.0
mv -f libSml.so.1.0.0 debug/debug/libSml.so.1.0.0
rm -f debug/debug/libSml.so
rm -f debug/debug/libSml.so.1
rm -f debug/debug/libSml.so.1.0
mv -f libSml.so debug/debug/libSml.so
mv -f libSml.so.1 debug/debug/libSml.so.1
mv -f libSml.so.1.0 debug/debug/libSml.so.1.0I want to proceed the same with terminal command, I can replicate lines above, but I'm looking for something simplified
-
If I run build command from Qt Creator I get compiling lines below:
01:59:54: Running steps for project Project...
01:59:54: Configuration unchanged, skipping qmake step.
01:59:54: Starting: "/usr/bin/make" -j8
g++ -c -pipe -g -std=gnu++1z -Wall -Wextra -fPIC -DQT_QML_DEBUG -I../Project -I. -I../SPL -I/usr/local/Qt-6.4.2/mkspecs/linux-g++ -o Tdebug.o ../Project/Tdebug.cpp
rm -f libProject.so.1.0.0 liProject.so libProject.so.1 libProject.so.1.0g++ -shared -Wl,-soname,libSml.so.1 -o libSml.so.1.0.0 Project.o Tdebug.o main.o -L/home/j/SPL-Debug/debug/debug -lSpl
ln -s libSml.so.1.0.0 libSml.so
ln -s libSml.so.1.0.0 libSml.so.1
ln -s libSml.so.1.0.0 libSml.so.1.0
rm -f debug/debug/libSml.so.1.0.0
mv -f libSml.so.1.0.0 debug/debug/libSml.so.1.0.0
rm -f debug/debug/libSml.so
rm -f debug/debug/libSml.so.1
rm -f debug/debug/libSml.so.1.0
mv -f libSml.so debug/debug/libSml.so
mv -f libSml.so.1 debug/debug/libSml.so.1
mv -f libSml.so.1.0 debug/debug/libSml.so.1.0I want to proceed the same with terminal command, I can replicate lines above, but I'm looking for something simplified
wrote on 29 Jan 2024, 19:22 last edited by JoeCFD@JacobNovitsky cd your build dir and simply type make -j8?
if you want to create Makefile from command line, open Makefile(generated from QtCreator) in an editor and find the line Command to run it.
make distclean will remove everything in the build dir. -
If I run build command from Qt Creator I get compiling lines below:
01:59:54: Running steps for project Project...
01:59:54: Configuration unchanged, skipping qmake step.
01:59:54: Starting: "/usr/bin/make" -j8
g++ -c -pipe -g -std=gnu++1z -Wall -Wextra -fPIC -DQT_QML_DEBUG -I../Project -I. -I../SPL -I/usr/local/Qt-6.4.2/mkspecs/linux-g++ -o Tdebug.o ../Project/Tdebug.cpp
rm -f libProject.so.1.0.0 liProject.so libProject.so.1 libProject.so.1.0g++ -shared -Wl,-soname,libSml.so.1 -o libSml.so.1.0.0 Project.o Tdebug.o main.o -L/home/j/SPL-Debug/debug/debug -lSpl
ln -s libSml.so.1.0.0 libSml.so
ln -s libSml.so.1.0.0 libSml.so.1
ln -s libSml.so.1.0.0 libSml.so.1.0
rm -f debug/debug/libSml.so.1.0.0
mv -f libSml.so.1.0.0 debug/debug/libSml.so.1.0.0
rm -f debug/debug/libSml.so
rm -f debug/debug/libSml.so.1
rm -f debug/debug/libSml.so.1.0
mv -f libSml.so debug/debug/libSml.so
mv -f libSml.so.1 debug/debug/libSml.so.1
mv -f libSml.so.1.0 debug/debug/libSml.so.1.0I want to proceed the same with terminal command, I can replicate lines above, but I'm looking for something simplified
Hi,
The command is literally:
/usr/bin/make -j8
You could short it to
make -j8
.Note that this is called from within the build folder.
1/3