dragonflylee / switchfin

Third-party native Jellyfin client for Nintendo Switch
Apache License 2.0
275 stars 6 forks source link

Problem to compile #59

Open hhgokraken opened 3 months ago

hhgokraken commented 3 months ago

Describe the bug

Documentation upgrade. Need to install

sudo dkp-pacman -S switch-libmpv

Problem to build, faulty repository

CMake Error at scripts/forwarder/CMakeLists.txt:16 (message):
  Could not find hacbrewpack: try installing
  https://github.com/The-4n/hacBrewPack

Could you provide the faulty tools, please?

To reproduce

  1. Clone the repository
  2. install de dependencies: sudo dkp-pacman -S switch-dev switch-glfw switch-libwebp switch-curl switch-libmpv
  3. Run cmake: cmake -B build_switch -DPLATFORM_SWITCH=ON -DBUILTIN_NSP=ON
  4. See error:
CMake Error at scripts/forwarder/CMakeLists.txt:16 (message):
  Could not find hacbrewpack: try installing
  https://github.com/The-4n/hacBrewPack

Screenshots

Non applicable

Operating system

Non applicable

Jellyfin Server

Non applicable

Additional context

Trying to compile to test my translation to PT-BR that will be provide soon, after I can test it and see if do not "explode" any field in the application.

hhgokraken commented 3 months ago

And, in time.. really nice work!

dragonflylee commented 3 months ago

all needed extra package can be found in https://github.com/dragonflylee/switchfin/releases/tag/switch-portlibs

hacBrewPack-3.05-1-any.pkg.tar.zst only worked on Linux x86-64

hhgokraken commented 3 months ago

Nice, I was able to compile after install all dependencies inside this links, but "failed" in the end.

Well, improvement.

/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/14.1.0/../../../../aarch64-none-elf/bin/ld: /opt/devkitpro/portlibs/switch/lib/libEGL.a(glsl_types.cpp.o):(.data.rel.ro.local._ZN9glsl_type14f16mat2x3_typeE+0x0): multiple definition of `glsl_type::f16mat2x3_type'; /opt/devkitpro/portlibs/switch/lib/libuam.a(mesa-imported_compiler_glsl_types.cpp.o):(.data.rel.ro._ZN9glsl_type14f16mat2x3_typeE+0x0): first defined here
/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/14.1.0/../../../../aarch64-none-elf/bin/ld: /opt/devkitpro/portlibs/switch/lib/libEGL.a(glsl_types.cpp.o):(.bss._ZN9glsl_type15_f16mat2x3_typeE+0x0): multiple definition of `glsl_type::_f16mat2x3_type'; /opt/devkitpro/portlibs/switch/lib/libuam.a(mesa-imported_compiler_glsl_types.cpp.o):(.bss._ZN9glsl_type15_f16mat2x3_typeE+0x0): first defined here

I will track a bit to see if I forgot something. I can build other homebrews with my current setup. I installed all files you pinpoint. Will install pacman inside a clean environment and try again.

/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/14.1.0/../../../../aarch64-none-elf/bin/ld: /opt/devkitpro/portlibs/switch/lib/libEGL.a(ir_hierarchical_visitor.cpp.o): in function `visit_tree(ir_instruction*, void (*)(ir_instruction*, void*), void*, void (*)(ir_instruction*, void*), void*)':
ir_hierarchical_visitor.cpp:(.text._Z10visit_treeP14ir_instructionPFvS0_PvES1_S3_S1_+0x0): multiple definition of `visit_tree(ir_instruction*, void (*)(ir_instruction*, void*), void*, void (*)(ir_instruction*, void*), void*)'; /opt/devkitpro/portlibs/switch/lib/libuam.a(mesa-imported_glsl_ir_hierarchical_visitor.cpp.o):ir_hierarchical_visitor.cpp:(.text._Z10visit_treeP14ir_instructionPFvS0_PvES1_S3_S1_+0x0): first defined here

I checked the lib:

# dkp-packman -Sl | grep uam
dkp-linux uam 1.1.0-1 [installed]
hhgokraken commented 3 months ago

I will provide the i18n/pt-BR as a PR to you, so you can compile, when you think it was appropriate. In the meantime I will try to solve here. Thanks!

dragonflylee commented 3 months ago

I will provide the i18n/pt-BR as a PR to you, so you can compile, when you think it was appropriate. In the meantime I will try to solve here. Thanks!

you can enable github action for build