cathery / sys-con

Nintendo Switch sysmodule that allows support for third-party controllers
GNU General Public License v3.0
976 stars 64 forks source link

Unable to build #310

Open sgiox opened 1 year ago

sgiox commented 1 year ago

Description I'd like to contribute to your repo but I cannot compile the project in any way. I tried both master and new_dev branches, cloned recursively with proper libnx (b35d42f) and latest devkitA64, downloaded with pacman. The problems seems to be all related to libvapours. Here just the latest one:

/home/user/switch/sys-con/source/Atmosphere-libs/config//../libvapours/include/vapours/util/util_parent_of_member.hpp:83:62:   in 'constexpr' expansion of 'ams::util::GetPointer<ams::ro::NrrHeader>(ams::util::impl::OffsetOfCalculator<ams::ro::NrrHeader, ams::ncm::ProgramId>::U.ams::util::impl::OffsetOfCalculator<ams::ro::NrrHeader, ams::ncm::ProgramId>::Union::parent)'
/home/user/switch/sys-con/source/Atmosphere-libs/config//../libvapours/include/vapours/util/util_typed_storage.hpp:41:16: error: cast from 'const void*' is not allowed
   41 |         return static_cast<const T *>(static_cast<const void *>(std::addressof(ts._storage)));
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [/home/user/switch/sys-con/source/Atmosphere-libs/libstratosphere/../config/common.mk:148: /home/user/switch/sys-con/source/Atmosphere-libs/libstratosphere/include/stratosphere.hpp.gch] Errore 1
make[1]: *** [Makefile:91: lib/libstratosphere.a] Errore 2
make: *** [Makefile:11: Atmosphere-libs/libstratosphere] Errore 2

Environment Ubuntu 22.04.1 LTS (x64)

eadmaster commented 11 months ago

can you retry with this fork?

there is this commit for compatibility with the latest devkitpro

If you manage to get a working build please post it here , as it may help with other pending issues: https://github.com/cathery/sys-con/issues/312 https://github.com/cathery/sys-con/issues/303 https://github.com/cathery/sys-con/issues/256 https://github.com/cathery/sys-con/discussions/290

eadmaster commented 6 months ago

update: another fork here, still missing an updated build

o0Zz commented 5 months ago

FYI, I actively maintain this fork -> https://github.com/o0Zz/sys-con/releases. The build should perfectly works now on this fork. I think you tried it while I was working on it ;)