HackMatrix: Compilation error
Hey there, i am trying to compile the program on Arch but i am facing theses error after running make:
/usr/bin/ld: /tmp/cc06hV2B.o: referência indefinida a símbolo "_ZN4absl12lts_2024011612log_internal17MakeCheckOpStringIPKvS4_EEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET_T0_PKc"
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib/libabsl_log_internal_check_op.so.2401.0.0: erro ao adicionar símbolos: DSO em falta da linha de comandos
collect2: error: ld returned 1 exit status
make: *** [makefile:18: matrix] Error 1
I know some bits are in portuguese, but they are basically saying “undefined reference at symbol” and “error adding symbols: DSO missing from command line”
I’ve already checked if the libraries were installed, maybe there is a missing library on the README code example?
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 24 (14 by maintainers)
Ok. Good to know. Checkout the linker arguments in this PR. That should fix the problem. I’ll have to think about how to add this in a distribution specific way. I reverted out the PR because it doesn’t work on Ubuntu.
https://github.com/collinalexbell/HackMatrix/pull/48
I also had this issue, and I’m using Void Linux, musl edition.
I also had to set
-DSPDLOG_FMT_EXTERNAL, because some distros usefmt-develand buildspdlogwith that flag. Then programs depending on it will also have to set-DSPDLOG_FMT_EXTERNAL.I know how to swich TTYs (in case a wm crashes or im testing a wm like yours) but I have never used debugging tools like tmux or gdb.
This could be a great opportunity to learn about those debuggers. When I have time, I might try to backtrace the segfault. When I find out the cause, I will inform you.
did you add cd as well in the .xinitrc file make sure it’s correct like in the readme & can you share what’s the error?