Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not build on FreeBSD #186

Open
99kaits opened this issue Oct 8, 2023 · 3 comments
Open

Does not build on FreeBSD #186

99kaits opened this issue Oct 8, 2023 · 3 comments

Comments

@99kaits
Copy link

99kaits commented Oct 8, 2023

Warning: Using /home/lain/src/activate-linux/obj as object directory instead of canonical /usr/obj/home/lain/src/activate-linux
cc  -I/usr/local/include -L/usr/local/lib -lconfig   -fPIE -g -gz=zlib -MD  -MF.depend.activate_linux.o -MTactivate_linux.o -std=gnu99 -Wno-format-zero-length -nobuiltininc -idirafter /usr/lib/clang/16/include -fstack-protector-strong    -Qunused-arguments    -c /home/lain/src/activate-linux/src/activate_linux.c -o activate_linux.o
/home/lain/src/activate-linux/src/activate_linux.c:23:4: error: "One of Wayland, X11 or GDI backend must be enabled."
  #error "One of Wayland, X11 or GDI backend must be enabled."
   ^
1 error generated.
*** Error code 1

Stop.
make: stopped in /home/lain/src/activate-linux

The BSD makefile is currently nonfunctional and the GNU one doesn't work on FreeBSD either for some unknown reason to me as I do not understand anything about GNU makefiles
I tried to fix the BSD makefile but all that got me was linker errors so I gave up, I'm just not knowledgeable enough with makefiles to fix this

@MrGlockenspiel
Copy link
Owner

I don't know enough about BSD make to fix it myself lol, but I can try to help you fix it

For the backend error, you need to enable one or multiple of the backend variables for X11 or wayland with -DX11 or -DWAYLAND
Also, for each of those backends they have their own dependencies which you can see here. It uses pkg-config to generate the CFLAGS for the library names.

If you do manage to fix, please feel free to PR it

@MrGlockenspiel
Copy link
Owner

ok, i've been trying for a couple hours now to fix this and have barely gotten anywhere. seriously considering switching build systems entirely as this project has clearly outgrown Make, the GNU makefile is barely comprehensible and i cant port it 1:1 to the BSD makefile because of the .cgen sorcery going on

@MrGlockenspiel
Copy link
Owner

alright, ive added basic support for Xmake which should work on BSD variants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants