captain-amygdala / pistorm

68k Hardware Emulator
MIT License
737 stars 103 forks source link

Compilation error? #65

Closed phoyle closed 1 year ago

phoyle commented 1 year ago

Hi, I'm re-setting up a pistorm image after having lost my SD card somewhere and now when I do a 'make' I get the error:

/usr/bin/ld: cannot find -lbrcmGLESv2 /usr/bin/ld: cannot find -lbrcmEGL collect2: error: ld returned 1 exit status make: *** [Makefile:69: emulator] Error 1

This is a Pi 3a running Bulleseye 32-bit 2023-02-21 downloaded today. I've copied and pasted the commands from the tutorial on here but no dice.

Any tips?

LemaruX commented 1 year ago

You haven't read all the instructions in the readme. After the make command, there is a bit which starts "important note". Read that and follow the instructions.

On Sat, 4 Mar 2023, 20:26 phoyle, @.***> wrote:

Hi, I'm re-setting up a pistorm image after having lost my SD card somewhere and now when I do a 'make' I get the error:

/usr/bin/ld: cannot find -lbrcmGLESv2 /usr/bin/ld: cannot find -lbrcmEGL collect2: error: ld returned 1 exit status make: *** [Makefile:69: emulator] Error 1

This is a Pi 3a running Bulleseye 32-bit 2023-02-21 downloaded today. I've copied and pasted the commands from the tutorial on here but no dice.

Any tips?

— Reply to this email directly, view it on GitHub https://github.com/captain-amygdala/pistorm/issues/65, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIHEVTB7KJVFYK2LYMBJGILW2OQPZANCNFSM6AAAAAAVPXQCXA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

phoyle commented 1 year ago

Ah I wasn't reading that guide but following the one on here which makes no such mention. I fixed it myself anyway with:

sudo ln -s /usr/lib/arm-linux-gnueabihf/libGLESv2.so /usr/lib/libbrcmGLESv2.so sudo ln -s /usr/lib/arm-linux-gnueabihf/libEGL.so /usr/lib/libbrcmEGL.so

LemaruX commented 1 year ago

No issue. Instructions in the readme cover this.

laubzega commented 1 year ago

Well, apparently they don't. @phoyle's fix was necessary for me.

LemaruX commented 1 year ago

Well, apparently they don't. @phoyle's fix was necessary for me.

Yes they do.

The wiki "install all the things" guide doesn't cover it, but the main readme in the repository does

laubzega commented 1 year ago

If you mean this bullet:

First run sudo apt-get install libdrm-dev libegl1-mesa-dev libgles2-mesa-dev libgbm-dev to install the DRM OpenGL/ES libraries, which are for some reason not included with the distro by default. These are necessary to link the graphics output library (raylib).

then no, it is was not sufficient. I got the same error as OP.

LemaruX commented 1 year ago

I guess they have changed something else in Bullseye since then (though no one else has reported this anywhere).

Though as Bullseye breaks some other stuff since some of their recent changes, it's currently advisable to use Buster for the original PiStorm, and Bullseye for the PiStorm32-Lite.

On Sat, 6 May 2023, 08:21 laubzega, @.***> wrote:

If you mean this bullet:

First run sudo apt-get install libdrm-dev libegl1-mesa-dev libgles2-mesa-dev libgbm-dev to install the DRM OpenGL/ES libraries, which are for some reason not included with the distro by default. These are necessary to link the graphics output library (raylib).

then no, it is was not sufficient. I got the same error as OP.

— Reply to this email directly, view it on GitHub https://github.com/captain-amygdala/pistorm/issues/65#issuecomment-1537076614, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIHEVTGL3TCT2RS7DT4SYOLXEX3YHANCNFSM6AAAAAAVPXQCXA . You are receiving this because you modified the open/close state.Message ID: @.***>

drphilxr commented 7 months ago

this ^ exact sequence happened to me as well following the main git directions...thankyou for listing the fixes