Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not support macosx #2

Open
yingnierxiao opened this issue Jun 27, 2016 · 6 comments
Open

not support macosx #2

yingnierxiao opened this issue Jun 27, 2016 · 6 comments

Comments

@yingnierxiao
Copy link

No description provided.

@roxma
Copy link
Owner

roxma commented Jun 27, 2016

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

@yingnierxiao
Copy link
Author

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'?

@roxma
Copy link
Owner

roxma commented Jun 27, 2016

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

@yingnierxiao
Copy link
Author

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
Copy link
Author

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

@roxma
Copy link
Owner

roxma commented Jun 27, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants