b3nn0 / stratux

Fork of the original cyoung/stratux with multiple patches for flying in europe
BSD 3-Clause "New" or "Revised" License
146 stars 64 forks source link

bug fix #239

Closed fiamor closed 1 year ago

fiamor commented 1 year ago

cc -c rtl_ais.c -o rtl_ais.o -O2 -g -Wall -W -I./aisdecoder -I ./aisdecoder/lib -I./tcp_listener rtl_ais.c:42:10: fatal error: rtl-sdr.h: No such file or directory 42 | #include | ^~~ compilation terminated.

O3 -g -std=c11 -fno-common -Wall -Wmissing-declarations -Werror -W -c interactive.c -o interactive.o interactive.c:52:10: fatal error: curses.h: No such file or directory 52 | #include | ^~~~~~ compilation terminated.

b3nn0 commented 1 year ago

Sorry, I do like participation, but this is not how makefiles are supposed to work. The supported way to set up a dev environment is described here: https://github.com/b3nn0/stratux/wiki/Developing-Stratux And that one works.

If you do your own custom setup, it is your responsibility to provide all dependencies. Your makefile would fail on many different custom setups (say, someone doesn't used a debian based distro, but something based on SuSE or something).

Also note, that if you just use a plain RaspiOS/Debian image and run make/make install, you will run into other problems down the line. Stratux does a lot of complex OS setup - that's why we ship an image after all.

This is how the images are built: https://github.com/b3nn0/stratux/blob/master/image/mk_europe_edition_device_setup64.sh But don't run this as is. This is intended to run in a chroot environment. It's just for inspiration.

fiamor commented 1 year ago

understood thanks. I've been following the Local x86 Linux Setup part of the guide.

b3nn0 commented 1 year ago

Feel free to edit the Wiki page if you want to provide some hints for future users. But since Linux is such a diverse ecosystem, it's not always easy to write a complete guide that fits all environments. Hence the "requires some creativity" part.