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

std::bad_alloc on raspberry pi #20

Closed
disparaissant opened this issue Jan 9, 2014 · 4 comments
Closed

std::bad_alloc on raspberry pi #20

disparaissant opened this issue Jan 9, 2014 · 4 comments
Labels

Comments

@disparaissant
Copy link

Hey,
I installed the SDL libraries and whatnot, and compiled Gearboy. It seemed to go just fine, but whenever I try to start it, the screen flickers and it says:

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted

i'm guessing i did something wrong, but i can't for the life of me figure out what? any help would be greatly appreciated.

@drhelius
Copy link
Owner

drhelius commented Jan 9, 2014

I just fixed a bug with sdl, you may want to try again after pulling the changes.

Make sure your Pi is up to date, including the firmware.

I used this guide to install SDL2 on my Pi: http://www.raspberrypi.org/phpBB3/viewtopic.php?t=58180&p=437825

Hope this helps.

@disparaissant
Copy link
Author

thanks for the help
pi is up to date, firmware and all. i recompiled SDL2 and followed those instructions, but now when i try to compile Gearboy, it just spits this out at me almost right away:

main.cpp: In function ‘void init_sdl()’:
main.cpp:150:49: error: ‘SDL_SetVideoMode’ was not declared in this scope
make: *** [main.o] Error 1

now i KNOW i screwed something up.

@drhelius
Copy link
Owner

drhelius commented Jan 9, 2014

Sorry, I tried to fix it but I'm afraid I'm screwing it up more.
Let me try it on my Pi and I'll get back to you.

@drhelius
Copy link
Owner

drhelius commented Feb 6, 2014

I finished porting gearboy to sdl 2, now it should compile without issues but for some reason I'm not getting input events on my pi.
Anyway this may be solved

@drhelius drhelius added the bug label Mar 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants