Cannot run qmake in Mac Terminal

前端 未结 6 1519
日久生厌
日久生厌 2021-02-13 02:30

I\'m learning Qt for my C++ course at college. I am trying to set up the environment for my first assignment but I can\'t seem to get it right. I swear I have run qmake in the

6条回答
  •  清酒与你
    2021-02-13 02:44

    It is generally not needed at all to touch the PATH on any system (Mac, Unix, Windows) merely to use Qt. You may have multiple Qt versions installed in parallel (say 4.8 from macports, 5.2, git stable, etc.).

    A way of building a Qt project on Unix is (substitute relevant paths for your setup):

    mkdir ~/build-dir
    cd ~/build-dir
    ~/Qt5.2.1/5.2.1/clang_64/bin/qmake ~/src/myproject/myproject.pro
    make -j2
    # were N in -jN is the number of CPU cores on your system
    

提交回复
热议问题