qt moc 命令编译

g++ -pipe -O2 -std=gnu++11 -dM -E -o moc_predefs.h /opt/Qt5.9.1/5.9.1/gcc_64/mkspecs/features/data/dummy.cpp
/opt/Qt5.9.1/5.9.1/gcc_64/bin/moc -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB --include ./moc_predefs.h -I/opt/Qt5.9.1/5.9.1/gcc_64/mkspecs/linux-g++ -I/root/my_test_code/qt-solutions/qtservice/examples/server -I/root/my_test_code/qt-solutions/qtservice/src -I/opt/Qt5.9.1/5.9.1/gcc_64/include -I/opt/Qt5.9.1/5.9.1/gcc_64/include/QtNetwork -I/opt/Qt5.9.1/5.9.1/gcc_64/include/QtCore -I/usr/include/c++/4.8.5 -I/usr/include/c++/4.8.5/x86_64-redhat-linux -I/usr/include/c++/4.8.5/backward -I/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include -I/usr/local/include -I/usr/include main.cpp -o main.moc
g++ -c -pipe -O2 -std=gnu++11 -D_REENTRANT -Wall -W -fPIC -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../../src -I/opt/Qt5.9.1/5.9.1/gcc_64/include -I/opt/Qt5.9.1/5.9.1/gcc_64/include/QtNetwork -I/opt/Qt5.9.1/5.9.1/gcc_64/include/QtCore -I. -I/opt/Qt5.9.1/5.9.1/gcc_64/mkspecs/linux-g++ -o main.o main.cpp
g++ -Wl,-O1 -Wl,-rpath,/root/my_test_code/qt-solutions/qtservice/lib -Wl,-rpath,/opt/Qt5.9.1/5.9.1/gcc_64/lib -o httpservice main.o   -L/root/my_test_code/qt-solutions/qtservice/lib -lQtSolutions_Service-head -L/opt/Qt5.9.1/5.9.1/gcc_64/lib -lQt5Network -lQt5Core -lpthread

posted @ 2021-04-19 11:44  虾兵  阅读(468)  评论(0编辑  收藏  举报