I read and searched for hours and have not found anything that makes sense to me. I found this paragraph:
But when I search the 'Advanced Usage chapter' I find no reference to 'support user input' or 'call external tools'. I did however find some info about the system() function, but I cannot figure out how to get it to work.More complex operations on variables that would usually require loops are provided by built-in functions such as find, unique, and count. These functions, and many others are provided to manipulate strings and paths, support user input, and call external tools. A list of the functions available can be found in the qmake Advanced Usage chapter of this manual.
Here is my .pro file:
And the resulting errors:CONFIG *= c++latest cmdline
CONFIG -= app_bundle
DEFINES += QT_DEPRECATED_WARNINGS
INCLUDEPATH += /home/hab/AImg/AH
SOURCES += main.cpp \
dspkl.cpp
CONFIG(release, debug|release) {
message("Release build - Post Link Step")
QMAKE_POST_LINK += $$quote(system("AskToBin"))
}
I have no idea how to get the system command to where it is executed after the link is done successfully.g++ -Wl,-O1 -Wl,-rpath,/opt/Qt/5.9.2/gcc_64/lib -o imgfx main.o dspkl.o -L/opt/Qt/5.9.2/gcc_64/lib -lQt5Gui -lQt5Core -lGL -lpthread
system("AskToBin")
Makefile:246: recipe for target 'imgfx' failed
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
make: *** [imgfx] Error 2
19:28:48: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project imgfx (kit: Desktop)
When executing step "Make"





Reply With Quote

Bookmarks