msx80 / BareMetalTic80

Port of TIC80 to bare metal Raspberry Pi
GNU General Public License v3.0
32 stars 0 forks source link

input support #4

Open farvardin opened 4 years ago

farvardin commented 4 years ago

hello,

I don't know if it's better to create issues here or on the TIC-80 repository, since the integration, but here is my issue anyway.

I've built myself the baremetaltic80 from https://github.com/msx80/TIC-80/blob/baremetal/build/baremetalpi/README.md

it works, except for inputs I have some issues:

msx80 commented 4 years ago

Hi there, i've made some improvements that are not yet in the TIC80 repo, you can find it in the pulito branch, following this updated build procedure:

https://github.com/msx80/TIC-80/blob/pulito/build/baremetalpi/README.md

I've switched to software interrupt for USB, not sure if it will fix your issue but since it's a different system, chances are good. Also there's mouse support with timed cursor disappearance (fade away if you don't move for some time)

msx80 commented 4 years ago

@farvardin have you tested the new version perhaps? it's committed in the main TIC-80 repo now. I would love some feedback :)

farvardin commented 4 years ago

Sorry, I wanted to compile it again but I didn't take the time to look at the build procedure (well, I've had a quick look at it, but that's all). I don't know when I could compile it, but if you provide updated binaries in the "releases" tab, I'll try it for sure!

farvardin commented 4 years ago

I've looked at the updated version on https://github.com/nesbox/TIC-80/tree/master/build/baremetalpi

I'm on the same system as before, however, I have some problem while running the command cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DBAREMETALPI=1 ..

Looking for pthread.h
-- Looking for pthread.h - not found
-- Could NOT find Threads (missing: Threads_FOUND) 
CMake Error at 3rd-party/curl/CMakeLists.txt:48 (project):
  The CMAKE_C_COMPILER:

    arm-none-eabi-gcc

  is not a full path and was not found in the PATH.

but I've already set up the path:

which arm-none-eabi-gcc

returns: /opt/gcc-arm-none-eabi-8-2018-q4-major/bin/arm-none-eabi-gcc

And I've installed a few dev lib related to pthread such as libzthread-dev libpthread-workqueue-dev

msx80 commented 4 years ago

Hi there, i've taken a look, it seems that the recent switch to the Curl library instead of sdl-net broke the build for baremetal. I'll see if i can fix it.

Sorry for late reply :)

msx80 commented 4 years ago

i've opened an issue here on Tic80