skmp / reicast-emulator

Reicast was a multiplatform Sega Dreamcast emulator
https://reicast.emudev.org
Other
1.1k stars 345 forks source link

Makefile:273: recipe for target 'obj-dreamcast-x64-sse4_1/hw/gdrom/gdromv3.build_obj' failed #1934

Open Evegen55 opened 3 years ago

Evegen55 commented 3 years ago

Please Note: This form is the minimum required information for submitting bugs.
Removing this form may lead to your issue being closed until it is completed.

Platform Branch Hash CIDL
Ubuntu 16.04 alpha Hashtag (skip if unknown) git clone

Description of the Issue

Hi! I've tried to compile code in accordance with manual, but make command fails with reason


/home/user/reicast-emulator/reicast/linux/../../libswirl/hw/gdrom/gdromv3.cpp:69:28: error: could not convert ‘0’ from ‘int’ to ‘GD_ErrRegT::<anonymous union>’
     GD_ErrRegT Error = { 0 };
                            ^
/home/user/reicast-emulator/reicast/linux/../../libswirl/hw/gdrom/gdromv3.cpp:70:41: error: could not convert ‘0’ from ‘int’ to ‘GD_InterruptReasonT::<anonymous union>’
     GD_InterruptReasonT IntReason = { 0 };
                                         ^
/home/user/reicast-emulator/reicast/linux/../../libswirl/hw/gdrom/gdromv3.cpp:71:33: error: could not convert ‘0’ from ‘int’ to ‘GD_FeaturesT::<anonymous union>’
     GD_FeaturesT Features = { 0 };
                                 ^
/home/user/reicast-emulator/reicast/linux/../../libswirl/hw/gdrom/gdromv3.cpp:72:33: error: could not convert ‘0’ from ‘int’ to ‘GD_SecCountT::<anonymous union>’
     GD_SecCountT SecCount = { 0 };
                                 ^
/home/user/reicast-emulator/reicast/linux/../../libswirl/hw/gdrom/gdromv3.cpp:73:33: error: could not convert ‘0’ from ‘int’ to ‘GD_SecNumbT::<anonymous union>’
     GD_SecNumbT SecNumber = { 0 };
                                 ^
/home/user//reicast-emulator/reicast/linux/../../libswirl/hw/gdrom/gdromv3.cpp:75:31: error: could not convert ‘0’ from ‘int’ to ‘GD_StatusT::<anonymous union>’
     GD_StatusT GDStatus = { 0 };
                               ^
Makefile:273: recipe for target 'obj-dreamcast-x64-sse4_1/hw/gdrom/gdromv3.build_obj' failed

make: *** [obj-dreamcast-x64-sse4_1/hw/gdrom/gdromv3.build_obj] Error 1

Makefile:273: recipe for target 'obj-dreamcast-x64-sse4_1/hw/gdrom/gdromv3.build_obj' failed

I have all libs needed to compile

sudo apt install build-essential libasound2 libegl1-mesa-dev libgles2-mesa-dev libasound2-dev mesa-common-dev libgl1-mesa-dev libudev-dev libpulse-dev

Debugging Steps Tested Logs Gathered Screenshots

(Replace this line with any issue screenshots)

Evegen55 commented 3 years ago

compiling was the only way for me, because installing reicast via snap didn't work.