trying to compile blueberryMSX error on rpi

By nikodr

Paladin (750)

nikodr さんの画像

06-03-2020, 02:48

Hello i have Raspbian 10 (buster) installed on a model a+ rpi.
Downloaded blueberryMSX source from https://github.com/0xe1f/blueberryMSX but when i compile i get this error suddenly

./Src/SoundChips/OpenMsxYM2413.cpp:330:1: error: narrowing conversion of -1 from int to char inside { } [-Wnarrowing]
};
^
./Src/SoundChips/OpenMsxYM2413.cpp:330:1: error: narrowing conversion of -1 from int to char inside { } [-Wnarrowing]
./Src/SoundChips/OpenMsxYM2413.cpp:330:1: error: narrowing conversion of -2 from int to char inside { } [-Wnarrowing]
./Src/SoundChips/OpenMsxYM2413.cpp:330:1: error: narrowing conversion of -1 from int to char inside { } [-Wnarrowing]
./Src/SoundChips/OpenMsxYM2413.cpp:330:1: error: narrowing conversion of -1 from int to char inside { } [-Wnarrowing]
./Src/SoundChips/OpenMsxYM2413.cpp:330:1: error: narrowing conversion of -3 from int to char inside { } [-Wnarrowing]
./Src/SoundChips/OpenMsxYM2413.cpp:330:1: error: narrowing conversion of -1 from int to char inside { } [-Wnarrowing]
./Src/SoundChips/OpenMsxYM2413.cpp:330:1: error: narrowing conversion of -2 from int to char inside { } [-Wnarrowing]
./Src/SoundChips/OpenMsxYM2413.cpp:330:1: error: narrowing conversion of -4 from int to char inside { } [-Wnarrowing]
./Src/SoundChips/OpenMsxYM2413.cpp:330:1: error: narrowing conversion of -2 from int to char inside { } [-Wnarrowing]
./Src/SoundChips/OpenMsxYM2413.cpp:330:1: error: narrowing conversion of -2 from int to char inside { } [-Wnarrowing]
./Src/SoundChips/OpenMsxYM2413.cpp:330:1: error: narrowing conversion of -5 from int to char inside { } [-Wnarrowing]
./Src/SoundChips/OpenMsxYM2413.cpp:330:1: error: narrowing conversion of -2 from int to char inside { } [-Wnarrowing]
./Src/SoundChips/OpenMsxYM2413.cpp:330:1: error: narrowing conversion of -3 from int to char inside { } [-Wnarrowing]
./Src/SoundChips/OpenMsxYM2413.cpp:330:1: error: narrowing conversion of -6 from int to char inside { } [-Wnarrowing]
./Src/SoundChips/OpenMsxYM2413.cpp:330:1: error: narrowing conversion of -3 from int to char inside { } [-Wnarrowing]
./Src/SoundChips/OpenMsxYM2413.cpp:330:1: error: narrowing conversion of -3 from int to char inside { } [-Wnarrowing]
./Src/SoundChips/OpenMsxYM2413.cpp:330:1: error: narrowing conversion of -7 from int to char inside { } [-Wnarrowing]
./Src/SoundChips/OpenMsxYM2413.cpp:330:1: error: narrowing conversion of -3 from int to char inside { } [-Wnarrowing]
make: *** [Makefile:448: objs/OpenMsxYM2413.o] Error 1

what can i do to fix it and compile?i have all needed sdk files for it.

ログイン/登録して投稿

By nikodr

Paladin (750)

nikodr さんの画像

06-03-2020, 03:48

fixed it by changing the line 330 to
signed const char lfo_pm_table[8 * 8] =
but now i get
/usr/bin/ld: cannot find -lEGL
/usr/bin/ld: cannot find -lGLESv2
collect2: error: ld returned 1 exit status
make: *** [Makefile:427: bluemsx-pi] Error 1
how do i install iEGL and IGLESv2 under raspbian?

By pgimeno

Champion (328)

pgimeno さんの画像

06-03-2020, 17:28

These are lower case L's, not upper case i's Smile

-lXXXX means 'link with library XXXX'

So, you need EGL and GLESv2. You can probably install packages libegl1-mesa and libgles2-mesa to suppress the errors.