Libraries, utilities, bootloaders...
by AntonyPrince » Sat Aug 09, 2014 8:05 am
Someone suggested it's because VMs often can't do 3D graphics. I'm not sure whether SDL2 can work without it.
Most likely. I'll probably re-install it to dual-boot later today. Now, no matter what desktop environment I go with, I get:
- Code: Select all
$ ./main.elf AntonysGameGB.cpp.elf
Loaded 12440 .text
Loaded 18 .data
avr_interrupt_reset
Invalid renderer
Right after the "avr_interrupt_reset" a white box flashes center screen (the emulator trying to initialize, I'm assuming), then it gives the "Invalid renderer", so most likely a problem with the 3D rendering. The VM wouldn't even boot to Unity 3D desktop at first, but somewhere along the line, I got it to do that. So its time to just quit being lazy and install it for real.
-
AntonyPrince
-
- Posts: 21
- Joined: Thu Aug 07, 2014 1:07 am
- Location: Virginia, United States
-
by AntonyPrince » Sat Aug 09, 2014 8:16 am
rodot wrote:Thanks for compiling the emulator for Ubuntu
I wanted to give it a try, but I can't download it, I get "This webpage is not available". Although the main page of your website works fine.
I checked 'em again and it seemed to be alright. But we'll skip all that mess. I uploaded it to Mediafire instead.
gbsim.tar.gzMD5: 990ba5e8aa6bbd6fa254ab9389deec5b
SHA256: 48f8e0074a400c04e7e1b6f03218420931b71d3dec00de0a095fb841a9038b59
VirusTotalTo run it:
- Code: Select all
$ cd gbsim/obj-i686-linux-gnu
$ ./main.elf <elf_file>
-
AntonyPrince
-
- Posts: 21
- Joined: Thu Aug 07, 2014 1:07 am
- Location: Virginia, United States
-
by rodot » Sat Aug 09, 2014 8:48 am
Mmh, I can't run it, it says Persmission denied, even if I "chmod +rwx main.elf" and run in with sudo. I'm not very comfortable with Ubuntu, I wanted to help but it seems that I'd better wait for you to install your dual boot
By the way you said you were good with Java, would you mind helping me with the gamebuino music composer? It's mostly putting jtables together, it should be pretty straight forward. If you interested in that project please contact me at support(at)gamebuino.com
-
rodot
- Site Admin
-
- Posts: 1290
- Joined: Mon Nov 19, 2012 11:54 pm
- Location: France
-
by AntonyPrince » Sun Aug 10, 2014 3:39 am
Well, after a long, arduous day, I got it compiled and tested successfully, so here it is. Compiled on Ubuntu 14.04.1 i386. From what I can tell, all you need is the "main.elf" file.
gbsim.tar.gzMD5: 7b1375bc237729f7100f04bfec2ecb6d
SHA256: a5e1dd2381457941c7c964f8d0273488ed4c760d2c6256b60aaaa1e68c87d481
VirusTotal scanSourceRESULTS! Finally.
Last edited by
AntonyPrince on Sun Aug 10, 2014 3:53 am, edited 1 time in total.
-
AntonyPrince
-
- Posts: 21
- Joined: Thu Aug 07, 2014 1:07 am
- Location: Virginia, United States
-
by Deneth » Sun Aug 10, 2014 3:49 am
AntonyPrince wrote:Well, after a long, arduous day, I got it compiled and tested successfully, so here it is.
Is there anything I can add to the instructions that would help?
-
Deneth
-
- Posts: 28
- Joined: Sun Mar 02, 2014 11:44 am
by Deneth » Sun Aug 10, 2014 3:52 am
rodot wrote:Mmh, I can't run it, it says Persmission denied
This kind of thing can happen when shared libraries are involved. Which is one reason I didn't post a binary myself! I haven't looked in to what it takes to build a redistributable binary, but part of it would involve statically linking shared libraries. I did this on
the Windows port, maybe looking at that will help.
-
Deneth
-
- Posts: 28
- Joined: Sun Mar 02, 2014 11:44 am
by AntonyPrince » Sun Aug 10, 2014 3:55 am
Deneth wrote:This kind of thing can happen when shared libraries are involved. Which is one reason I didn't post a binary myself! I haven't looked in to what it takes to build a redistributable binary, but part of it would involve statically linking shared libraries. I did this on
the Windows port, maybe looking at that will help.
I was wondering if that was going to happen. I had a suspicion it was only working because I tested it on the machine I built it on, which has all the libraries installed, of course. I did try moving the main.elf to the Desktop by itself with the game file and running it from there to see if it would still work and it did, but if the libraries are linked with absolute paths in the binary, that wouldn't matter. I did pass RELEASE=1 to 'make', but I'm not going to claim I understand what difference it made.
Last edited by
AntonyPrince on Sun Aug 10, 2014 4:11 am, edited 2 times in total.
-
AntonyPrince
-
- Posts: 21
- Joined: Thu Aug 07, 2014 1:07 am
- Location: Virginia, United States
-
by AntonyPrince » Sun Aug 10, 2014 3:59 am
Deneth wrote:Is there anything I can add to the instructions that would help?
No, the instructions were fine. It was more of a problem with finding the proper libraries for Ubuntu 12 and then it failing anyway due to some cryptic video issue somewhere. I installed Ubuntu 14.04, all the libraries were available as they were named in the README (I'd previously been installing SDL2 from source since the package wasn't avaiable for 12.04), and it compiled and ran like a charm. That was after I made the mistake of trying to cross-compile i686 binaries on an AMD64 OS. Live and learn.
-
AntonyPrince
-
- Posts: 21
- Joined: Thu Aug 07, 2014 1:07 am
- Location: Virginia, United States
-
by yodasvideoarcade » Sun Aug 10, 2014 9:52 am
Still no version for Mac?
-
yodasvideoarcade
-
- Posts: 102
- Joined: Sat Apr 19, 2014 10:48 am
- Location: Frankfurt/Germany
-
by Skyrunner65 » Tue Aug 12, 2014 1:53 am
I can't
make this in Fedora 20. I have all the dependencies except for Glut (I have freeglut).
And just to make sure, I did it in both the
gbsim-master/ and
gbsim-master/gbsim directories.
What did I do wrong?
gbsim-master:
- Code: Select all
[iobst@teens gbsim]$ cd /home/iobst/Downloads/gbsim-master
[iobst@teens gbsim-master]$ make
make -C simavr RELEASE=0
/usr/bin/bash: git: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
make[1]: Entering directory `/home/iobst/Downloads/gbsim-master/simavr'
make obj config
/usr/bin/bash: git: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
make[2]: Entering directory `/home/iobst/Downloads/gbsim-master/simavr'
make[2]: Nothing to be done for `obj'.
make[2]: Nothing to be done for `config'.
make[2]: Leaving directory `/home/iobst/Downloads/gbsim-master/simavr'
make libsimavr run_avr
/usr/bin/bash: git: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
make[2]: Entering directory `/home/iobst/Downloads/gbsim-master/simavr'
/usr/bin/bash: cc: command not found
make[2]: *** [obj-/sim_interrupts.o] Error 127
make[2]: Leaving directory `/home/iobst/Downloads/gbsim-master/simavr'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/iobst/Downloads/gbsim-master/simavr'
make: *** [build-simavr] Error 2
gbsim
- Code: Select all
[iobst@teens gbsim-master]$ cd /home/iobst/Downloads/gbsim-master/gbsim
[iobst@teens gbsim]$ make
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
/usr/bin/bash: cc: command not found
make: *** [obj-/sdl_display.o] Error 127
-
Skyrunner65
-
- Posts: 371
- Joined: Thu Mar 20, 2014 5:37 pm
- Location: NC,USA
-
Return to Software Development
Who is online
Users browsing this forum: No registered users and 64 guests