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

Makefile? #5

Closed
zvezdochiot opened this issue May 18, 2022 · 3 comments
Closed

Makefile? #5

zvezdochiot opened this issue May 18, 2022 · 3 comments

Comments

@zvezdochiot
Copy link

zvezdochiot commented May 18, 2022

Hi @shinyblink , @vifino , @g-rden .

$ make
cc -pedantic -Wall -Wextra -Os -lxcb -lxcb-image -o ffshot ffshot.c
/usr/bin/ld: /tmp/ccIPsFIF.o: in function «main»:
ffshot.c:(.text.startup+0x4b): undefined reference to «xcb_connect»
...

Maybe replace:

ffshot/Makefile

Lines 14 to 15 in 854c537

ffshot: ffshot.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o ffshot $^

to

$(BINS): ffshot.c
        $(CC) $(CPPFLAGS) $(CFLAGS) $^ $(LDFLAGS) -o $@

?


PS:

$ uname -a
Linux devuan-zvezdochiot 5.10.0-14-amd64 #1 SMP Debian 5.10.113-1 (2022-04-29) x86_64 GNU/Linux
$ cc --version
cc (Debian 10.2.1-6) 10.2.1 20210110
@vifino
Copy link
Member

vifino commented May 18, 2022

Hey. I agree with the order of the linking arguments, but not the target changes.
I'll push a commit in a second.

@vifino vifino closed this as completed in 533addb May 18, 2022
@vifino
Copy link
Member

vifino commented May 18, 2022

By the way, how'd you find this? Did interest in farbfeld utilities suddenly peak? :)

@zvezdochiot
Copy link
Author

zvezdochiot commented May 18, 2022

Hi @vifino .

I know farbfeld for other reasons. It was tested by me along with others. I was looking for an intermediate format for fast packing / unpacking of images (big set, scans). As a result, I settled on imagezero, but now I prefer fpng.

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