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

Libraries not found when running MAME via python #4

Closed
syaffers opened this issue Nov 7, 2018 · 1 comment
Closed

Libraries not found when running MAME via python #4

syaffers opened this issue Nov 7, 2018 · 1 comment

Comments

@syaffers
Copy link

syaffers commented Nov 7, 2018

I get an error that some libraries are not found when trying to run run_cheat_debugger().

>>> roms_path = "/home/syafiq/mame/roms/"
>>> game_id = "carpolo"
>>> from MAMEToolkit.emulator import run_cheat_debugger
>>> run_cheat_debugger(roms_path, game_id)
./mame: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by ./mame)
./mame: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.9' not found (required by ./mame)
./mame: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5' not found (required by ./mame)
./mame: /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5: version `Qt_5' not found (required by ./mame)
./mame: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5: version `Qt_5' not found (required by ./mame)

At this point the program just hangs.

I've compiled your version of mame, cloned for the master branch. Am I supposed to place the mame program in some specific folder or install some additional libraries via apt-get?

I'm running on Ubuntu 16.04, Python 3.6.6 (Anaconda) and installed the MAMEToolkit via pip.

@syaffers
Copy link
Author

syaffers commented Nov 8, 2018

Solved it! I moved my compiled version of mame into my Anaconda environment directory ($ANACONDA_HOME/envs/mame/lib/python3.6/site-packages/MAMEToolkit/emulator/mame) and it's working now.

I tried updating the GLIBCXX_3.4.22 but found that Ubuntu 16.04 is stuck at GLIBCXX_3.4.21, so, the other option is to compile my own version from scratch.

@syaffers syaffers closed this as completed Nov 8, 2018
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

1 participant