easymake icon indicating copy to clipboard operation
easymake copied to clipboard

not support macosx

Open yingnierxiao opened this issue 9 years ago • 6 comments

yingnierxiao avatar Jun 27 '16 08:06 yingnierxiao

I've never tested easymake with mac osx, could you provide full error message, I don't have a mac computer.

roxma avatar Jun 27 '16 08:06 roxma

make c++ -MP -MMD -c -o bin/add.o add.cpp nm: Unknown command line argument '-C'. Try: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm -help' nm: Did you mean '-A'? c++ -MP -MMD -c -o bin/math/add.o math/add.cpp nm: Unknown command line argument '-C'. Try: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm -help' nm: Did you mean '-A'?

yingnierxiao avatar Jun 27 '16 08:06 yingnierxiao

I've removed the unnecessary -C option of nm, could you pull the lastest version and try again?

roxma avatar Jun 27 '16 08:06 roxma

zjdeMac-mini:basics zj$ sh test.sh cp ../../easymake.mk Makefile

make

./bin/add test.sh: line 10: ./bin/add: No such file or directory

-e

create add_test.cpp

make test c++ -MP -MMD -c -o bin/add_test.o add_test.cpp

0 test complete. 0 failed test.

so and staticLib is ok,basics is error

yingnierxiao avatar Jun 27 '16 08:06 yingnierxiao

zjdeMac-mini:proj zj$ make c++ -MP -MMD -c -o bin/main.o main.cpp c++ -MP -MMD -c -o bin/math/add.o math/add.cpp c++ -MP -MMD -c -o bin/hello_world.o ../src2/hello_world.cpp ../src2/hello_world.cpp:7:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ 1 warning generated. c++ -MP -MMD -c -o bin/test.o ../src2/test.cpp zjdeMac-mini:proj zj$ tree . ├── Makefile ├── bin │   ├── hello_world.d │   ├── hello_world.o │   ├── main.d │   ├── main.o │   ├── math │   │   ├── add.d │   │   └── add.o │   ├── test.d │   └── test.o ├── main.cpp └── math ├── add.cpp └── add.h

3 directories, 12 files

yingnierxiao avatar Jun 27 '16 08:06 yingnierxiao

Sorry, I can't fix that right now, there's a similar project, you may take a look https://github.com/mbcrawfo/GenericMakefile

Besides, feel free to send a PR if you figure out how to fix this, and don't break the behavior on Linux as well.

roxma avatar Jun 27 '16 09:06 roxma