Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. pro2cmake.py: how to run on Linux?
Forum Updated to NodeBB v4.3 + New Features

pro2cmake.py: how to run on Linux?

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
4 Posts 2 Posters 958 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mireiner
    wrote on last edited by mireiner
    #1

    Hi there,

    there's a qmake to cmake conversion script "pro2cmake.py":
    https://code.qt.io/cgit/qt/qtbase.git/tree/util/cmake/pro2cmake.py

    I 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 syntax

    How to run pro2cmake.py the right way?

    Best regards,
    mireiner

    M eyllanescE 2 Replies Last reply
    0
    • M mireiner

      Hi there,

      there's a qmake to cmake conversion script "pro2cmake.py":
      https://code.qt.io/cgit/qt/qtbase.git/tree/util/cmake/pro2cmake.py

      I 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 syntax

      How to run pro2cmake.py the right way?

      Best regards,
      mireiner

      M Offline
      M Offline
      mireiner
      wrote on last edited by mireiner
      #2

      @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.

      1 Reply Last reply
      0
      • M mireiner

        Hi there,

        there's a qmake to cmake conversion script "pro2cmake.py":
        https://code.qt.io/cgit/qt/qtbase.git/tree/util/cmake/pro2cmake.py

        I 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 syntax

        How to run pro2cmake.py the right way?

        Best regards,
        mireiner

        eyllanescE Offline
        eyllanescE Offline
        eyllanesc
        wrote on last edited by eyllanesc
        #3

        @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

        If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

        M 1 Reply Last reply
        2
        • eyllanescE eyllanesc

          @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

          M Offline
          M Offline
          mireiner
          wrote on last edited by mireiner
          #4

          @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

          1 Reply Last reply
          2

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved