https://github.com/chicherov/Retro80
Сделал сборку под GNUstep. Проверял только под linux (RHEL8).
Вид для печати
https://github.com/chicherov/Retro80
Сделал сборку под GNUstep. Проверял только под linux (RHEL8).
в Debian 10.13 не собирается :(
Что конкретно не собирается?
1. пробуем собрать как есть (gcc):
2. пробуем собрать с помощью clang:Код:This is gnustep-make 2.7.0. Type 'make print-gnustep-make-help' for help.
Running in gnustep-make version 2 strict mode.
Making all for app Retro80...
Creating Retro80.app/....
Compiling file Document.m ...
gcc: error: unrecognized command line option ‘-Wobjc-property-no-attribute’; did you mean ‘--warn-no-attributes’?
gcc: error: unrecognized command line option ‘-fobjc-arc’; did you mean ‘-fobjc-gc’?
make[3]: *** [/usr/share/GNUstep/Makefiles/rules.make:479: obj/Retro80.obj/Document.m.o] Error 1
make[2]: *** [/usr/share/GNUstep/Makefiles/Instance/application.make:147: internal-app-run-compile-submake] Error 2
make[1]: *** [/usr/share/GNUstep/Makefiles/Master/rules.make:297: Retro80.all.app.variables] Error 2
make: *** [/usr/share/GNUstep/Makefiles/Master/application.make:38: internal-all] Error 2
3. возвращаемся обратно к gcc и меняем ‘-Wobjc-property-no-attribute’ на ‘--warn-no-attributes’ и ‘-fobjc-arc’ на ‘-fobjc-gc’:Код:This is gnustep-make 2.7.0. Type 'make print-gnustep-make-help' for help.
Running in gnustep-make version 2 strict mode.
Making all for app Retro80...
Compiling file Document.m ...
error: -fobjc-arc is not supported on platforms using the legacy runtime
make[3]: *** [/usr/share/GNUstep/Makefiles/rules.make:479: obj/Retro80.obj/Document.m.o] Error 1
make[2]: *** [/usr/share/GNUstep/Makefiles/Instance/application.make:147: internal-app-run-compile-submake] Error 2
make[1]: *** [/usr/share/GNUstep/Makefiles/Master/rules.make:297: Retro80.all.app.variables] Error 2
make: *** [/usr/share/GNUstep/Makefiles/Master/application.make:38: internal-all] Error 2
Код:This is gnustep-make 2.7.0. Type 'make print-gnustep-make-help' for help.
Running in gnustep-make version 2 strict mode.
Making all for app Retro80...
Compiling file Document.m ...
cc1obj: warning: ‘-fobjc-gc’ is ignored for ‘-fgnu-runtime’
In file included from <command-line>:
./GNUstep-Prefix.pch:8:1: error: cannot find interface declaration for ‘NSLayoutConstraint’
- (void) setConstant:(CGFloat)constant;
^
make[3]: *** [/usr/share/GNUstep/Makefiles/rules.make:479: obj/Retro80.obj/Document.m.o] Error 1
make[2]: *** [/usr/share/GNUstep/Makefiles/Instance/application.make:147: internal-app-run-compile-submake] Error 2
make[1]: *** [/usr/share/GNUstep/Makefiles/Master/rules.make:297: Retro80.all.app.variables] Error 2
make: *** [/usr/share/GNUstep/Makefiles/Master/application.make:38: internal-all] Error 2
Debian 12. Поставил GnuStep с помощью https://github.com/plaurent/gnustep-...on-debian12.sh
Все собралось.
- - - Добавлено - - -
Судя по всему при сборке tools-make не была указана опция --enable-objc-arc
т.е. с родным дебиановским гнустепом никак?
Не могу сказать точно, но скорее всего он урезанный, в нем нет arc.