Closed iratahack closed 1 year ago
Thanks for sending this over.
We have a hard time reviewing this and accepting it as it stands, for a few reasons:
Finally, there are some indenting, logic and spacing changes that don't seem related to compilation errors and warnings, I imagine. Would love to get those separately explaining what they address, if possible.
Thanks, and happy Friday.
@pjft , thanks for the feedback.
Let me clean this up and add more color around each change so you have some context for the changes.
IH.
Thank you!
Thank you for the detailed turnaround here. We will review this and get back to you, as there's a lot of ground to cover. :)
The good news is that indeed some of these were also needed for clang
and @cmitu had also gone through similar changes for that purpose, on MacOS so it's great that you're looking into this for Ubuntu as well.
Thanks, and have a great weekend!
If the changes to StringUtil were to be vertically aligned and add 1 extra space before first = to match the |= that comes after then I'm all for merging this, the rest looks good.
@tomaz82 , I think I got what you are saying. Please take a quick look. Thanks. IH.
@tomaz82 , I think I got what you are saying. Please take a quick look. Thanks. IH.
Yeah all looks good to me now, thanks!
Thanks both.
@iratahack could you squash all the commits and I'll merge them afterwards?
Thank you!
@pjft , Done. Thanks! IH.
@iratahack there are 2 additions which are producing some unnecessary logging, resulting from filling the default
switch
branch. I think these should be no-ops and not output anything.
Unknown type: 0
), but this is not an error/warning since it just means that the file is not part of a pre-defined collection.Unknown
, the case here is that a reboot/shutdown type is not set (i.e. user hasn't chosen either to reboot nor to shutdown the system, but rather just exited the program). I think this shouldn't be logged at all. Similarly, the logging message from https://github.com/RetroPie/EmulationStation/pull/820/files#diff-b2fb93b6495366ee4f10f266fdaa37f22a0d8e181d492291bc525fbe61c31300R175 could be expanded to Unknown Filter type
to make it more explicit.
Thank you for the additions, clang
should be able to compile ES with them.
@cmitu, appreciate the feedback! I have pushed the changes for the default cases as you suggested. IH.
@iratahack the changes are fine, thanks for taking them into consideration.
There's just one thing - related to the libvlc
version bump. Can you modify findVLC.cmake
(here) and bump the version to 3.0.0
?
@cmitu , what about this line?
I pushed an update for it. IH.
@cmitu , what about this line?
You're right, both need to be changed. Looks fine now, thanks for the changes.
@pjft I think it's ok to merge this now.
Do you want me to squash the 2 commits?
Yes please, if possible. I'll try once again to compile on the pi here. @cmitu do you confirm it compiles in the current RetroPie version? Thank you both!
I'll try once again to compile on the pi here.
It should fail during the configuration phase, due to the new libvlc >= 3.0.0
check (assuming you're using your old system, based on jessie).
@cmitu do you confirm it compiles in the current RetroPie version? Thank you both!
Yes, compiles on RaspiOS buster/bullseye and Ubuntu 18.04.6 LTS (which is in theory the earliest Ubuntu variant we support in RetroPie).
I confirm it failed. I'm on stretch.
I then updated VLC and it now compiles. The install script depends on libvlc-dev, so I assume it'll update automatically to the latest version when we run it, and I assume that the current images already come with 3.0 or above.
Thanks all!
Thank you!
@iratahack I just merged this on master, which was kind of where I thought it had been pushed to. Can you check if it also compiles without warnings, as there were some updates compared to this branch? Thanks.
@pjft , I'm seeing a few override warnings on master. I can create a pull request if you like.
In file included from /home/devel/git/EmulationStation/es-app/src/views/gamelist/GridGameListView.cpp:1:
/home/devel/git/EmulationStation/es-app/src/views/gamelist/GridGameListView.h:24:15: warning: 'setViewportTop' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
virtual void setViewportTop(int index) { ; }
^
/home/devel/git/EmulationStation/es-app/src/views/gamelist/ISimpleGameListView.h:28:15: note: overridden virtual function is here
virtual void setViewportTop(int index) override = 0;
^
In file included from /home/devel/git/EmulationStation/es-app/src/views/gamelist/GridGameListView.cpp:1:
/home/devel/git/EmulationStation/es-app/src/views/gamelist/GridGameListView.h:25:14: warning: 'getViewportTop' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
virtual int getViewportTop() { return -1; }
^
/home/devel/git/EmulationStation/es-app/src/views/gamelist/ISimpleGameListView.h:27:14: note: overridden virtual function is here
virtual int getViewportTop() override = 0;
^
IH.
Just these? I tried to fix some of the new ones but clearly this passed by me. Sure enough, if you want to send one to master it'd be great. Thank you!
A number of compilation errors and warnings addressed to allow building on Ubuntu 22.04.2 LTS (64-bit).
Environment
The original build log before modifications is attached for reference.
build.log