1
liberize 2019-03-13 11:04:03 +08:00 2
QMAKE_OBJECTIVE_CFLAGS += -fobjc-arc
|
2
liberize 2019-03-13 11:06:53 +08:00 1
一个栗子:
``` macx { PKG_CONFIG = /usr/local/bin/pkg-config CONFIG += objective_c HEADERS += xxx.h OBJECTIVE_SOURCES += xxx.mm QMAKE_OBJECTIVE_CFLAGS += -fobjc-arc LIBS += -framework AppKit -framework Foundation -framework OpenGL -framework QuartzCore } ``` |
4
liberize 2019-03-13 14:05:28 +08:00 1
我记得我以前好像是 @autoreleasepool 编不过,加上就可以了
|