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

undefined references to `DisplayScreen::display_screen(MediaSource const&) #118

Closed
onlytailei opened this issue Nov 12, 2015 · 4 comments
Closed

Comments

@onlytailei
Copy link

When I use

CMakeFiles/dqn.dir/dqn_main.cpp.o: In function `PlayOneEpisode(ALEInterface&, dqn::DQN&, double, bool)':
dqn_main.cpp:(.text+0xd14): undefined reference to `DisplayScreen::display_screen(MediaSource const&)'
dqn_main.cpp:(.text+0x1124): undefined reference to `DisplayScreen::display_screen(MediaSource const&)'
CMakeFiles/dqn.dir/dqn_main.cpp.o: In function `PlayOneEpisode(ALEInterface&, dqn::DQN&, double, bool) [clone .constprop.106]':
dqn_main.cpp:(.text+0x2414): undefined reference to `DisplayScreen::display_screen(MediaSource const&)'
dqn_main.cpp:(.text+0x283c): undefined reference to `DisplayScreen::display_screen(MediaSource const&)'
CMakeFiles/dqn.dir/dqn_main.cpp.o: In function `main':
dqn_main.cpp:(.text.startup+0xc20): undefined reference to `DisplayScreen::display_screen(MediaSource const&)'
CMakeFiles/dqn.dir/dqn_main.cpp.o:dqn_main.cpp:(.text.startup+0x10a8): more undefined references to `DisplayScreen::display_screen(MediaSource const&)' follow
collect2: error: ld returned 1 exit status
make[2]: *** [dqn] Error 1
make[1]: *** [CMakeFiles/dqn.dir/all] Error 2
make: *** [all] Error 2
@mgbellemare
Copy link
Contributor

It looks like __USE_SDL is defined, but you aren't linking/compiling display_screen.cpp. Did you compile the ALE using cmake -DUSE_SDL=ON ?

@onlytailei
Copy link
Author

Thank you very much.
After that, when I use ALE from command line, I always suffer the unsupport roms problem
By the way, could you kindly tell me where can I get the instructions to set the stell?

@mgbellemare
Copy link
Contributor

Can you clarify what you mean by "setting the stell"?

You need to make sure that the filename of the rom you are using matches one of the supported games in src/games/supported.

@onlytailei
Copy link
Author

When I use DQN to simulate ALE environment. It said if cannot find the stellarc. It seemed that this is another simulation tool? Where Can I got it?
https://github.com/muupan/dqn-in-the-caffe

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