Git Product home page Git Product logo

Comments (6)

torrinfail avatar torrinfail commented on September 27, 2024

I would need the error that make spit out to help with that.

from dwmblocks.

mendezmariano avatar mendezmariano commented on September 27, 2024

here it comes:
$ make
cc pkg-config --cflags x11 pkg-config --libs x11 dwmblocks.c -o dwmblocks
/usr/bin/ld: /tmp/ccg6dlqE.o: in function setroot': dwmblocks.c:(.text+0x3b6): undefined reference to XOpenDisplay'
/usr/bin/ld: dwmblocks.c:(.text+0x428): undefined reference to XStoreName' /usr/bin/ld: dwmblocks.c:(.text+0x437): undefined reference to XCloseDisplay'
collect2: error: ld returned 1 exit status

from dwmblocks.

torrinfail avatar torrinfail commented on September 27, 2024

I have come across this issue on my pinebook pro running debian. I never figured out the root cause myself. The way I got it to work was by using clang (CC=clang make) in the most recent commit. Things to check if you prefer using gcc, check the output of pkg-config --libs x11 by itself, and make sure that cc is linked to gcc properly with ls -l $(which cc). The makefile works on arch, void, alpine, freebsd, and openbsd. So I think it is just an issue with debian distros.

from dwmblocks.

torrinfail avatar torrinfail commented on September 27, 2024

I merged a change that swapped the order of the cc arguments in the Makefile which should solve this issue.

from dwmblocks.

thierrybo avatar thierrybo commented on September 27, 2024

Hi,

yes but you swap cc arguments order back again in 7e0bc3f, so the issue is always there in Debian.

${CC} dwmblocks.c `pkg-config --cflags x11 --libs x11` -o dwmblocks

just work fine.

from dwmblocks.

audrew avatar audrew commented on September 27, 2024

Hi,

yes but you swap cc arguments order back again in 7e0bc3f, so the issue is always there in Debian.

${CC} dwmblocks.c `pkg-config --cflags x11 --libs x11` -o dwmblocks

just work fine.

Thanks, that worked fine

from dwmblocks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.