tallbl0nde / NX-Activity-Log

Homebrew application for the Nintendo Switch which displays play activity with more accuracy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to compile

reinzanini opened this issue · comments

Are there any compilation instructions? I got this error when trying to compile with make:

collect2: error: ld returned 1 exit status
make[1]: *** [/opt/devkitpro/libnx/switch_rules:80: /home/rein/NX-Activity-Log/NX-Activity-Log.elf] Errore 1
make: *** [Makefile:123: build] Errore 2

I have devkitpro and the environment set, latest libnx and the switch-dev libs.

Is that the whole error message? Usually when there's a linking error there's a few more lines. Idon't know otherwise, but you'd need to install switch-sdl2 switch-sdl2_image switch-sdl2_ttf switch-sdl2_gfx if you haven't already

Is that the whole error message? Usually when there's a linking error there's a few more lines. Idon't know otherwise, but you'd need to install switch-sdl2 switch-sdl2_image switch-sdl2_ttf switch-sdl2_gfx if you haven't already

You're right, don't know why but I didn't think they were necessary, here instead the whole output from the linking:

linking NX-Activity-Log.elf
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/9.2.0/../../../../aarch64-none-elf/bin/ld: Config.o: in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_data(char*)':
/opt/devkitpro/devkitA64/aarch64-none-elf/include/c++/9.2.0/bits/basic_string.tcc:206: multiple definition of `Main::Config::Config()'; config.o:/home/rein/NX-Activity-Log/source/config.cpp:6: first defined here
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/9.2.0/../../../../aarch64-none-elf/bin/ld: Config.o: in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_data(char*)':
/opt/devkitpro/devkitA64/aarch64-none-elf/include/c++/9.2.0/bits/basic_string.tcc:206: multiple definition of `Main::Config::Config()'; config.o:/home/rein/NX-Activity-Log/source/config.cpp:6: first defined here
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/9.2.0/../../../../aarch64-none-elf/bin/ld: Config.o: in function `Main::Config::~Config()':
/opt/devkitpro/devkitA64/aarch64-none-elf/include/c++/9.2.0/bits/basic_string.tcc:206: multiple definition of `Main::Config::~Config()'; config.o:/home/rein/NX-Activity-Log/source/config.cpp:9: first defined here
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/9.2.0/../../../../aarch64-none-elf/bin/ld: Config.o: in function `Main::Config::~Config()':
/opt/devkitpro/devkitA64/aarch64-none-elf/include/c++/9.2.0/bits/basic_string.tcc:206: multiple definition of `Main::Config::~Config()'; config.o:/home/rein/NX-Activity-Log/source/config.cpp:9: first defined here
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/9.2.0/../../../../aarch64-none-elf/bin/ld: Config.o: in function `Main::Config::gGraph()':
/opt/devkitpro/devkitA64/aarch64-none-elf/include/c++/9.2.0/bits/basic_string.h:183: multiple definition of `Main::Config::gGraph()'; config.o:/home/rein/NX-Activity-Log/source/config.cpp:116: first defined here
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/9.2.0/../../../../aarch64-none-elf/bin/ld: Config.o: in function `Main::Config::gSort()':
/opt/devkitpro/devkitA64/aarch64-none-elf/include/c++/9.2.0/bits/basic_string.tcc:233: multiple definition of `Main::Config::gSort()'; config.o:/home/rein/NX-Activity-Log/source/config.cpp:120: first defined here
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/9.2.0/../../../../aarch64-none-elf/bin/ld: Config.o: in function `Main::Config::gTheme()':
/opt/devkitpro/devkitA64/aarch64-none-elf/include/c++/9.2.0/bits/char_traits.h:300: multiple definition of `Main::Config::gTheme()'; config.o:/home/rein/NX-Activity-Log/source/config.cpp:124: first defined here
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/9.2.0/../../../../aarch64-none-elf/bin/ld: Config.o: in function `Main::Config::hDeleted()':
/opt/devkitpro/devkitA64/aarch64-none-elf/include/c++/9.2.0/bits/basic_string.tcc:233: multiple definition of `Main::Config::hDeleted()'; config.o:/home/rein/NX-Activity-Log/source/config.cpp:128: first defined here
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/9.2.0/../../../../aarch64-none-elf/bin/ld: Config.o: in function `Main::Config::readConfig()':
/home/rein/NX-Activity-Log/source/Config.cpp:13: multiple definition of `Main::Config::readConfig()'; config.o:/home/rein/NX-Activity-Log/source/config.cpp:13: first defined here
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/9.2.0/../../../../aarch64-none-elf/bin/ld: Config.o: in function `Main::Config::writeConfig()':
/home/rein/NX-Activity-Log/source/Config.cpp:65: multiple definition of `Main::Config::writeConfig()'; config.o:/home/rein/NX-Activity-Log/source/config.cpp:65: first defined here
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/9.2.0/../../../../aarch64-none-elf/bin/ld: Config.o: in function `Main::Config::setGGraph(bool)':
/home/rein/NX-Activity-Log/source/Config.cpp:131: multiple definition of `Main::Config::setGGraph(bool)'; config.o:/home/rein/NX-Activity-Log/source/config.cpp:131: first defined here
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/9.2.0/../../../../aarch64-none-elf/bin/ld: Config.o: in function `Main::Config::setGSort(SortType)':
/home/rein/NX-Activity-Log/source/Config.cpp:136: multiple definition of `Main::Config::setGSort(SortType)'; config.o:/home/rein/NX-Activity-Log/source/config.cpp:136: first defined here
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/9.2.0/../../../../aarch64-none-elf/bin/ld: Config.o: in function `Main::Config::setGTheme(ThemeType)':
/home/rein/NX-Activity-Log/source/Config.cpp:141: multiple definition of `Main::Config::setGTheme(ThemeType)'; config.o:/home/rein/NX-Activity-Log/source/config.cpp:141: first defined here
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/9.2.0/../../../../aarch64-none-elf/bin/ld: Config.o: in function `Main::Config::setHDeleted(bool)':
/home/rein/NX-Activity-Log/source/Config.cpp:146: multiple definition of `Main::Config::setHDeleted(bool)'; config.o:/home/rein/NX-Activity-Log/source/config.cpp:146: first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [/opt/devkitpro/libnx/switch_rules:80: /home/rein/NX-Activity-Log/NX-Activity-Log.elf] Errore 1
make: *** [Makefile:123: build] Errore 2

I already had the packages you mentioned.

Turns out config.hpp/cpp was uploaded to GitHub twice... the last commit deleted the second files and it should now compile :)

Yep, it compiled. Thanks.