You are not logged in.

#1 2017-07-28 10:27:56

Steve
Member
Registered: 2017-01-03
Posts: 642

[solved] Polybar installation

Ive tried but failed to install polybar, not sure what is going wrong, im sure i have all dependencies met but coming up with below error?


sc@Labs:~/polybar$ ./build.sh -f
** Fetching submodules
** Removing existing build dir (-f)
** Setting build options
** Include support for "internal/i3" (requires i3) ------------------- [Y/n]: 

** Include support for "internal/volume" (requires alsalib) ---------- [Y/n]: 

** Include support for "internal/network" (requires wireless_tools) -- [Y/n]: 

** Include support for "internal/mpd" (requires libmpdclient) -------- [Y/n]: 

** Include support for "internal/github" (requires libcurl) ---------- [Y/n]: 

** Build "polybar-msg" used to send ipc messages --------------------- [Y/n]: 

** Using compiler: clang++/clang
** Executing cmake command
-- The C compiler identification is Clang 3.5.2
-- The CXX compiler identification is Clang 3.5.2
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- No build type specified; using RelWithDebInfo
-- Using supported compiler Clang-3.5.2
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28") 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
-- Checking for module 'cairo-fc'
--   Found cairo-fc, version 1.14.0
-- Checking for module 'xcb-xkb'
--   Found xcb-xkb, version 1.10
-- Checking for module 'xcb-randr'
--   Found xcb-randr, version 1.10
--  Build:
--    Type: RelWithDebInfo
--    CC: /usr/bin/clang  -O2 -g -DNDEBUG
--    CXX: /usr/bin/clang++  -Wall -Wextra -Werror -O2 -pedantic -pedantic-errors -Wno-error=parentheses-equality -O2 -g -DNDEBUG
--    LD: /usr/bin/ld  
--  Targets:
-- [ ]   polybar-msg
-- [ ]   testsuite
--  Module support:
-- [ ]   alsa
-- [ ]   curl
-- [ ]   i3
-- [ ]   mpd
-- [ ]   network
--  X extensions:
-- [X]   xcb-randr
-- [ ]   xcb-randr (monitor support)
-- [ ]   xcb-render
-- [ ]   xcb-damage
-- [ ]   xcb-sync
-- [ ]   xcb-composite
-- [X]   xcb-xkb
-- [X]   xcb-xrm
-- Font not found: fixed:pixelsize=10
-- Font not found: unifont:fontformat=truetype
-- Font not found: siji:pixelsize=10
-- Checking for module 'xcb-proto'
--   Found xcb-proto, version 1.10
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.9", minimum required is "2.7") 
-- XCB[XCB]: Found component XCB
-- Found XCB_XCB: /usr/lib/x86_64-linux-gnu/libxcb.so  
-- XCB[ICCCM]: Found component ICCCM
-- Found XCB_ICCCM: /usr/lib/x86_64-linux-gnu/libxcb-icccm.so  
-- XCB[EWMH]: Found component EWMH
-- Found XCB_EWMH: /usr/lib/x86_64-linux-gnu/libxcb-ewmh.so  
-- XCB[UTIL]: Found component UTIL
-- Found XCB_UTIL: /usr/lib/x86_64-linux-gnu/libxcb-util.so  
-- XCB[IMAGE]: Found component IMAGE
-- Found XCB_IMAGE: /usr/lib/x86_64-linux-gnu/libxcb-image.so  
-- Found XCB: /usr/lib/x86_64-linux-gnu/libxcb.so;/usr/lib/x86_64-linux-gnu/libxcb-icccm.so;/usr/lib/x86_64-linux-gnu/libxcb-ewmh.so;/usr/lib/x86_64-linux-gnu/libxcb-util.so;/usr/lib/x86_64-linux-gnu/libxcb-image.so  
-- Searching for xcbgen with python2
-- Found xcbgen in /usr/lib/python2.7/dist-packages
-- XCB[RANDR]: Found component RANDR
-- Found XCB_RANDR: /usr/lib/x86_64-linux-gnu/libxcb-randr.so  
-- Found XCB: /usr/lib/x86_64-linux-gnu/libxcb.so;/usr/lib/x86_64-linux-gnu/libxcb-icccm.so;/usr/lib/x86_64-linux-gnu/libxcb-ewmh.so;/usr/lib/x86_64-linux-gnu/libxcb-util.so;/usr/lib/x86_64-linux-gnu/libxcb-image.so;/usr/lib/x86_64-linux-gnu/libxcb-randr.so  
-- XCB[XKB]: Found component XKB
-- Found XCB_XKB: /usr/lib/x86_64-linux-gnu/libxcb-xkb.so  
-- Found XCB: /usr/lib/x86_64-linux-gnu/libxcb.so;/usr/lib/x86_64-linux-gnu/libxcb-icccm.so;/usr/lib/x86_64-linux-gnu/libxcb-ewmh.so;/usr/lib/x86_64-linux-gnu/libxcb-util.so;/usr/lib/x86_64-linux-gnu/libxcb-image.so;/usr/lib/x86_64-linux-gnu/libxcb-randr.so;/usr/lib/x86_64-linux-gnu/libxcb-xkb.so  
-- xpp: including xcb proto randr.xml
-- xpp: including xcb proto xkb.xml
-- xpp: including xcb proto xproto.xml
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sc/polybar/build
** Building project
Scanning dependencies of target xpp
[  1%] Linking CXX static library libxpp.a
list: size, ['red', 'green', 'blue']
list: size, ['red', 'green', 'blue']
[  1%] Built target xpp
Scanning dependencies of target polybar
[  3%] Building CXX object bin/CMakeFiles/polybar.dir/cairo/utils.cpp.o
[  4%] Building CXX object bin/CMakeFiles/polybar.dir/components/bar.cpp.o
[  6%] Building CXX object bin/CMakeFiles/polybar.dir/components/builder.cpp.o
[  7%] Building CXX object bin/CMakeFiles/polybar.dir/components/command_line.cpp.o
[  9%] Building CXX object bin/CMakeFiles/polybar.dir/components/config.cpp.o
[ 10%] Building CXX object bin/CMakeFiles/polybar.dir/components/controller.cpp.o
[ 12%] Building CXX object bin/CMakeFiles/polybar.dir/components/ipc.cpp.o
[ 13%] Building CXX object bin/CMakeFiles/polybar.dir/components/logger.cpp.o
[ 15%] Building CXX object bin/CMakeFiles/polybar.dir/components/parser.cpp.o
[ 16%] Building CXX object bin/CMakeFiles/polybar.dir/components/renderer.cpp.o
[ 18%] Building CXX object bin/CMakeFiles/polybar.dir/components/screen.cpp.o
[ 19%] Building CXX object bin/CMakeFiles/polybar.dir/components/taskqueue.cpp.o
[ 21%] Building CXX object bin/CMakeFiles/polybar.dir/drawtypes/animation.cpp.o
[ 22%] Building CXX object bin/CMakeFiles/polybar.dir/drawtypes/iconset.cpp.o
[ 24%] Building CXX object bin/CMakeFiles/polybar.dir/drawtypes/label.cpp.o
[ 25%] Building CXX object bin/CMakeFiles/polybar.dir/drawtypes/progressbar.cpp.o
[ 27%] Building CXX object bin/CMakeFiles/polybar.dir/drawtypes/ramp.cpp.o
[ 28%] Building CXX object bin/CMakeFiles/polybar.dir/events/signal_emitter.cpp.o
[ 30%] Building CXX object bin/CMakeFiles/polybar.dir/events/signal_receiver.cpp.o
[ 31%] Building CXX object bin/CMakeFiles/polybar.dir/main.cpp.o
error: debug information for auto is not yet supported
error: debug information for auto is not yet supported
error: debug information for auto is not yet supported
3 errors generated.
bin/CMakeFiles/polybar.dir/build.make:518: recipe for target 'bin/CMakeFiles/polybar.dir/main.cpp.o' failed
make[2]: *** [bin/CMakeFiles/polybar.dir/main.cpp.o] Error 1
CMakeFiles/Makefile2:472: recipe for target 'bin/CMakeFiles/polybar.dir/all' failed
make[1]: *** [bin/CMakeFiles/polybar.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
** Failed to build project
sc@Labs:~/polybar$ 

Last edited by Steve (2017-07-29 10:13:06)

Offline

#2 2017-07-28 10:42:51

damo
....moderator....
Registered: 2015-08-20
Posts: 4,382

Re: [solved] Polybar installation

Try googling that error message: it was a bug in Clang 3.5, which has been fixed AFAIK. One reply says

You can, of course, also compile in release mode, then the debug information wouldn't be generated in the first place.

---Mod move to Gui & Application---


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#3 2017-07-28 10:53:53

Steve
Member
Registered: 2017-01-03
Posts: 642

Re: [solved] Polybar installation

Seems i need clang 3.6+ for the fix. Not sure how to compile in release mode?

Jessie backports only has clang 3.5

Offline

#4 2017-07-28 11:25:19

damo
....moderator....
Registered: 2015-08-20
Posts: 4,382

Re: [solved] Polybar installation

https://github.com/jaagr/polybar

The build.sh script uses clang 3.5 if it is available, otherwise it uses the gcc compiler. Try compiling manually with gcc?

$ git clone --branch 3.0.5 --recursive https://github.com/jaagr/polybar
$ mkdir polybar/build
$ cd polybar/build
$ cmake ..
$ sudo make install

Or edit the build.sh helper script by changing...

  if command -v clang++ >/dev/null; then
    msg "Using compiler: clang++/clang"
    cxx="clang++"
    cc="clang"
  elif command -v g++ >/dev/null; then
    msg "Using compiler: g++/gcc"
    cxx="g++"
    cc="gcc"
  fi

to

  if command -v g++ >/dev/null; then
    msg "Using compiler: g++/gcc"
    cxx="g++"
    cc="gcc"
  fi

Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#5 2017-07-28 11:46:09

Steve
Member
Registered: 2017-01-03
Posts: 642

Re: [solved] Polybar installation

Still need gcc 5.1+

As far as i can gather not available in jessie backports.
Debian version for gcc is Debian 4.9.2-10

Offline

#6 2017-07-28 14:39:40

damo
....moderator....
Registered: 2015-08-20
Posts: 4,382

Re: [solved] Polybar installation

Steve wrote:

Still need gcc 5.1+

As far as i can gather not available in jessie backports.
Debian version for gcc is Debian 4.9.2-10

See this thread for a possible workaround: https://github.com/jaagr/polybar/issues/291

(PS: I googled "polybar on Debian8" wink )


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#7 2017-07-28 14:58:37

Steve
Member
Registered: 2017-01-03
Posts: 642

Re: [solved] Polybar installation

damo, can you get it working on bunsenlabs?

Offline

#8 2017-07-29 02:24:22

stevep
MX Linux Developer
Registered: 2016-08-08
Posts: 327

Re: [solved] Polybar installation

clang-3.8 is in the jessie-backports repo. You may have to set some environment variable to have it be the default clang.

Offline

#9 2017-07-29 08:00:46

Steve
Member
Registered: 2017-01-03
Posts: 642

Re: [solved] Polybar installation

you are right stevep, got polybar installed by updating alternatives. Now to configure polybar. Thanks for help damo and stevep.

sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.8 100

Offline

#10 2017-07-29 19:28:44

stevep
MX Linux Developer
Registered: 2016-08-08
Posts: 327

Re: [solved] Polybar installation

After a lot of thrashing around, I've managed to adapt the Polybar build from getdeb.net (uses gcc-5) to use clang-3.8 and libxcb-xrm-dev, both available in jessie-backports, plus a new system libjsoncpp-dev 1.7.7, to build deb packages on Jessie-based MX 16.

Let's see if I can get it to build with its internal libjsoncpp instead--the build.sh script doesn't seem to have any problem doing that.  I don't think that switching the alternatives for clang is really necessary if you pass these options to cmake:

Though it turned out that using clang also required libc++-dev and libc++abi-dev as build-depends so that clang could see and use the gcc headers.
-DCMAKE_CXX_COMPILER=/usr/bin/clang++-3.8 -DCMAKE_C_COMPILER=/usr/bin/clang-3.8

Offline

#11 2018-07-08 19:19:16

uriel_zo
New Member
Registered: 2018-07-08
Posts: 1

Re: [solved] Polybar installation

Hello everyone
I have installed polybar in my bunsenlabs.
It works very well
I want to know how to make it run when I start session

Offline

#12 2018-07-09 05:35:03

hhh
That's easy!
Registered: 2015-09-17
Posts: 6,106
Website

Re: [solved] Polybar installation

I've never used it, but...

https://github.com/jaagr/polybar#configuration
https://github.com/jaagr/polybar/wiki

So you can add a script to ~/.config/polybar as shown, or maybe you can just add something to ~/.config/openbox/autostart...

polybar bar1 &

Offline

Board footer

Powered by FluxBB