pro2cmake.py: how to run on Linux?
-
Hi there,
there's a qmake to cmake conversion script "pro2cmake.py":
https://code.qt.io/cgit/qt/qtbase.git/tree/util/cmake/pro2cmake.pyI like to run it on Arch Linux with KDE Plasma 5.20.4. Python 3 is installed. If I run the console/terminal command
python pro2cmake.py
following error message shows up:
File "pro2cmake.py", line 1 <!DOCTYPE html> SyntaxError: invalid syntaxHow to run pro2cmake.py the right way?
Best regards,
mireiner -
@mireiner said in pro2cmake.py: how to run on Linux?:
Just found this guide in the Qt wiki:
https://wiki.qt.io/CMake_Port/Porting_Guide
Will give it a try.
-
@eyllanesc said in pro2cmake.py: how to run on Linux?:
@mireiner I think you have incorrectly downloaded the file and you have the HTML, and not the plain code, download from https://code.qt.io/cgit/qt/qtbase.git/plain/util/cmake/pro2cmake.py
@eyllanesc
Thank you for pointing me to the right download link!But running the python script "pro2cmake.py" from download alone wont work. It has to be setup correctly.
The python script "pro2cmake.py" can also be found in your local Qt 6.0 source installation in the "Qt/6.0.0/Src/qtbase/util/cmake" folder.
There a tutorial about this subject in the Qt Wiki: "CMake Port/Porting Guide" as mentioned above. Its is very useful and solved my problem:
https://wiki.qt.io/CMake_Port/Porting_Guide