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

Fix some libretro-common usage #1

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

RobLoach
Copy link
Contributor

No description provided.

@konsumer konsumer merged commit 9ba1964 into notnullgames:main Jul 11, 2024
@konsumer
Copy link
Member

I tested, and it seems to work, but builds libnull0_libretro.a, so I added SHARED and that results in this:

Undefined symbols for architecture x86_64:
  "_audio_mixer_destroy", referenced from:
      _pntr_load_sound_from_memory in main.c.o
      _pntr_unload_sound in main.c.o
      _null0_new_sfx in main.c.o
      _null0_unload_sound in main.c.o
      _wamr_null0_unload_sound in main.c.o
  "_audio_mixer_done", referenced from:
      _pntr_app_platform_close in main.c.o
      _retro_load_game in main.c.o
      _pntr_app_close in main.c.o
  "_audio_mixer_init", referenced from:
      _pntr_app_platform_init in main.c.o
  "_audio_mixer_load_ogg", referenced from:
      _pntr_load_sound_from_memory in main.c.o
  "_audio_mixer_load_wav", referenced from:
      _pntr_load_sound_from_memory in main.c.o
      _null0_new_sfx in main.c.o
  "_audio_mixer_mix", referenced from:
      _retro_audio_cb in main.c.o
  "_audio_mixer_play", referenced from:
      _pntr_play_sound in main.c.o
      _null0_play_sound in main.c.o
      _wamr_null0_play_sound in main.c.o
  "_audio_mixer_stop", referenced from:
      _pntr_unload_sound in main.c.o
      _pntr_stop_sound in main.c.o
      _null0_stop_sound in main.c.o
      _null0_unload_sound in main.c.o
      _wamr_null0_stop_sound in main.c.o
      _wamr_null0_unload_sound in main.c.o
  "_convert_float_to_s16", referenced from:
      _retro_audio_cb in main.c.o
ld: symbol(s) not found for architecture x86_64

So, I think I need to link to some libretro lib. I will explore this.

konsumer added a commit that referenced this pull request Jul 11, 2024
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

Successfully merging this pull request may close these issues.

2 participants