RSDKModding / RSDKv4-Decompilation

A complete decompilation of Sonic 1 & Sonic 2 (2013) & Retro Engine (v4)
Other
943 stars 176 forks source link

Build error: "fatal error: filesystem: No such file or directory" #305

Closed doliveira4 closed 2 years ago

doliveira4 commented 2 years ago

Hi there, Getting the build error:

_RSDKv4/ModAPI.cpp:23:10: fatal error: filesystem: No such file or directory

include

      ^~~~~~~~~~~~_

where exactly to put the assets file "Data.rsdk"?

Many thanks & happy New Year!

MegAmi24 commented 2 years ago

You put the Data.rsdk file in the same location as the decomp exe after it's built.

doliveira4 commented 2 years ago

Ok - but how to fix the Build error: "fatal error: filesystem: No such file or directory" ?

on Ubuntu 18.04 - thanks again. [ gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04) ]

doliveira4 commented 2 years ago

Progress:

on Ubuntu 18.04, install g++-8 with: sudo apt install g++-8

now make with: make CXX=g++-8 LIBS=lstdc++fs

However, this results in a new error further ahead in the build process. [continuing on this issue]

MegAmi24 commented 2 years ago

Can you please just stop making new issues? It's hard to keep track of everything that way.

doliveira4 commented 2 years ago

Now the build goes much further, but it errors on:

_g++-8 -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/libdrm -DBASE_PATH='""' -IRSDKv4/ -IRSDKv4/NativeObjects/ -Idependencies/all/asio/include/ -Idependencies/all/stb-image/ -std=c++17 RSDKv4/Networking.cpp -o objects/RSDKv4/Networking.cpp.o -c RSDKv4/Networking.cpp:32:36: error: expected ‘)’ before ‘&’ token NetworkSession(asio::io_context &io_context, const tcp::resolver::results_type &endpoints) : iocontext(iocontext), socket(iocontext) ~ ^~ )

Any ideas? [ gcc version 8.4.0 (Ubuntu 8.4.0-1ubuntu1~18.04) ]

doliveira4 commented 2 years ago

Just for sanity check, how to build without networking?

MegAmi24 commented 2 years ago

set RETRO_USE_NETWORKING to 0 in RetroEngine.hpp (line 12)

doliveira4 commented 2 years ago

Did so - seems Ubuntu 18.04 has an incompatible older version of Boost.

Btw, is Ubuntu 18.04 supported?

doliveira4 commented 2 years ago

I think we'll just keep finding further out-of-date packages in Ubuntu 18.04.

Hoping for that Flatpak build to get sorted 🙏:

304