In qt-extended-4.4.2, I wan to define a marco for a string in pro file. like this:
DEFINES += SHARE_DIR=\"/usr/local/share/kphone\"
But it error in compilation.
If you kown why or how to do, please reply. Thank you very much!
In qt-extended-4.4.2, I wan to define a marco for a string in pro file. like this:
DEFINES += SHARE_DIR=\"/usr/local/share/kphone\"
But it error in compilation.
If you kown why or how to do, please reply. Thank you very much!
Try:
qmake Code:
DEFINES+="SHARE_DIR=/usr/local/share/kphone"To copy to clipboard, switch view to plain text mode
expected primary-expression before '/' token
'usr' was not declared in this scope
'local' was not declared in this scope
'share' was not declared in this scope
'kphone' was not declared in this scope
unused variable 'usr'
unused variable 'local'
unused variable 'share'
unused variable 'kphone'
Does
do what you want?qmake Code:
DEFINES += SHARE_DIR=\\\"/usr/local/share/kphone\\\"To copy to clipboard, switch view to plain text mode
J-P Nurmi
Thank you.
It is the kphone source, I'm porting to Qt-Extended 4.4.2, The pro file need a Marco for define a filepath.
For windows build don't forget to comment special chars like &|() with ^ http://www.microsoft.com/resources/d....mspx?mfr=true
This chars has higer priority then "" on windows.
Bookmarks