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

Building Malmo from Source MacOS #53

Closed
yala opened this issue Jun 6, 2016 · 2 comments
Closed

Building Malmo from Source MacOS #53

yala opened this issue Jun 6, 2016 · 2 comments

Comments

@yala
Copy link

yala commented Jun 6, 2016

Hey everyone,

I'm having trouble building Malmo from source.
I've managed to run the MacOS release just fine, but i'd like to build from source so
I can try to solve #11.

I'm having the same issue as describe in #35

Here is my error message:
make
[ 1%] Generating C++ from XSD files...
Unknown option -generate-polymorphic
[ 2%] Building CXX object Malmo/src/CMakeFiles/Malmo.dir/AgentHost.cpp.o
In file included from /Users/Yala/Dropbox/MIT/MEng/malmo-repo/Malmo/src/AgentHost.cpp:6:
In file included from /Users/Yala/Dropbox/MIT/MEng/malmo-repo/Malmo/src/AgentHost.h:12:
In file included from /Users/Yala/Dropbox/MIT/MEng/malmo-repo/Malmo/src/MissionInitSpec.h:10:
/Users/Yala/Dropbox/MIT/MEng/malmo-repo/Malmo/src/MissionSpec.h:12:10: fatal error: 'Mission.h' file not found
#include <Mission.h>
^
1 error generated.
make[2]: *** [Malmo/src/CMakeFiles/Malmo.dir/AgentHost.cpp.o] Error 1
make[1]: *** [Malmo/src/CMakeFiles/Malmo.dir/all] Error 2
make: *** [all] Error 2

I've followed the instructions as shown in the travis script

@timhutton
Copy link
Contributor

timhutton commented Jun 6, 2016

Hi Adam,

The build instructions for MacOSX changed recently: https://github.com/Microsoft/malmo/blob/master/doc/build_macosx.md

When you type xsd version what does it print?

For me:

CodeSynthesis XSD XML Schema to C++ compiler 4.0.0
Copyright (c) 2005-2014 Code Synthesis Tools CC
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you have the wrong xsd installed (for example the mono one) then you will get something different and this will likely cause the Mission.h problem.

Did these steps in the instructions give any error?

brew install xsd
brew unlink xsd
brew install mono
brew link --overwrite xsd

This bit of awkwardness is because the homebrew packages for mono and xsd both ship with an executable named 'xsd'.

Tim

@yala
Copy link
Author

yala commented Jun 6, 2016

Ahh, I didn't notice that failed.

Force uninstalling mono and xsd and re-going through those instructions fixed it.

Thanks!

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