File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545 - name : Install Dependencies
4646 run : sudo apt-get install -y g++-10-multilib qt6-base-dev
4747 - name : Build
48- run : make -j$(nproc)
48+ run : |
49+ echo UIC=/usr/lib/qt6/libexec/uic > config.mk
50+ echo MOC=/usr/lib/qt6/libexec/moc >> config.mk
51+ echo RCC=/usr/lib/qt6/libexec/rcc >> config.mk
52+ make -j$(nproc)
4953 - name : Upload Artifact
5054 uses : actions/upload-artifact@v4
5155 with :
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ CXX=g++
44SDIR =GhostServer
55ODIR =obj
66
7- QtPath = /usr/lib/qt6/
8- UIC =$( QtPath ) uic
9- MOC =$( QtPath ) moc
10- RCC =$( QtPath ) rcc
7+ # If this is the wrong version, try /usr/lib/qt6/uic or /usr/lib/qt6/libexec/uic
8+ UIC =uic
9+ MOC =moc
10+ RCC =rcc
1111
1212SRCS_GUI =$(SDIR ) /main.cpp $(SDIR ) /mainwindow.cpp $(SDIR ) /commands.cpp $(SDIR ) /networkmanager.cpp $(SDIR ) /mainwindow_qt.cpp $(SDIR ) /networkmanager_qt.cpp $(SDIR ) /GhostServer_qrc.cpp
1313OBJS_GUI =$(patsubst $(SDIR ) /% .cpp, $(ODIR ) /gui/% .o, $(SRCS_GUI ) )
Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ sudo apt-get install g++ qt6-base-dev
6262sudo pacman -S gcc qt6-base
6363```
6464
65+ Set Qt variables ` UIC ` , ` MOC ` , and ` RCC ` in config.mk if necessary.
66+
6567``` bash
6668make -j$( nproc)
6769```
You can’t perform that action at this time.
0 commit comments