This is a Qt project, in order to run this you have to install Qt Compiling CS470.skel under Visual Studio 2017
-
Download Visual studio community 2017 and select "Desktop development with C++" and install
-
Download Qt5.11.2 for Windows from here:
https://download.qt.io/archive/qt/5.11/5.11.2/qt-opensource-windows-x86-5.11.2.exe
- During Qt installation, Select Qt5.11.2 for msvc2017_64.
It will install it in C:\Qt\Qt5.11.2\5.11.2\msvc2017_64
-
Add C:\Qt\Qt5.11.2\5.11.2\msvc2017_64\bin to your path and make sure in shell command line: "qmake -version" point to Qt5.11.2.
-
Replace CS470.pro with the attached CS470.pro.
-
Delete debug, release, CS470.pro.user, .qmake.stash and all previous CS470.skel.vcxproj.*
-
open a powershell or terminal in that folder and type: qmake -tp vc CS470.pro
-
Double click on CS470.skel.vcxproj. It will load the project in VS 2017.
-
You should be able to compile with any error.
Compiling under Mac OS (unreponsive GUI bug fixed)
-
Download Qt5.11.2 from here: https://download.qt.io/archive/qt/5.11/5.11.2/qt-opensource-mac-x64-5.11.2.dmg
-
Install it (you don't need to check source codes or other modules).
-
By default it installs in /User/"your user name"
-
add the following line to .bash_profile:
export PATH=~/Qt5.11.2/5.11.2/clang_64/bin:$PATH
-
Replace MainWindow.cpp by MainWindow.cpp in CS470.skel folder.
-
Open a terminal in CS470.skel folder.
-
Delete debug, Release, .qmake.stash files and folders
-
Type qmake -version to make sure your qmake pointing to Qt5.11.2
-
Type qmake -spec macx-clang CS470.pro
-
Type make -j4
if you want to work in Xcode, type the following: qmake -spec macx-xcode CS470.pro
Step 1. Install Qt
Step 2. Navigate to one of the folders (that's my_opengl_version, qip_1st_semester, and qip_2nd_semester. Each one is different project)
Step 3. Running following commands one by one(assume we're in qip_2nd_semester).
qmake qip.proThis command will generate a Makefile, note that in folder 'my_opengl_version', we use hw.pro instead.
Next
makeThis command will complie the program and produce excutable.
Lastly
./qipto run your excutable.