RT.
I followed the README to compile conky from source code. But when I execute $ man conky. it is unavailable.
@brndnmtthws Can you add man conky to sudo make install?
It's in there, you just have to build conky with MAINTAINER_MODE enabled:
https://github.com/brndnmtthws/conky/blob/master/doc/CMakeLists.txt#L26
Can you tell me how to? I don't know make, cmake, etc. I got cmake --enable-maintainer-mode to compile without issues, but I don't know the right answer. Also, I need to know so I can close this issue and document this somewhere on wiki.
cmake MAINTAINER_MODE=ON .
I found it awhile ago, but ran into this.
[ 19%] Building CXX object src/CMakeFiles/conky.dir/common.cc.o
[ 20%] Building CXX object src/CMakeFiles/conky.dir/conky.cc.o
[ 22%] Building CXX object src/CMakeFiles/conky.dir/core.cc.o
[ 23%] Building CXX object src/CMakeFiles/conky.dir/cat.cc.o
[ 25%] Building CXX object src/CMakeFiles/conky.dir/diskio.cc.o
In file included from /home/chris/src/conky/src/diskio.cc:30:
/home/chris/src/conky/src/diskio.h: In constructor ‘diskio_stat::diskio_stat()’:
/home/chris/src/conky/src/diskio.h:45:62: error: ‘memset’ used with length equal to number of elements without multiplication by element size [-Werror=memset-elt-size]
std::memset(sample, 0, sizeof(sample) / sizeof(sample[0]));
^
/home/chris/src/conky/src/diskio.h:46:77: error: ‘memset’ used with length equal to number of elements without multiplication by element size [-Werror=memset-elt-size]
std::memset(sample_read, 0, sizeof(sample_read) / sizeof(sample_read[0]));
^
/home/chris/src/conky/src/diskio.h:48:63: error: ‘memset’ used with length equal to number of elements without multiplication by element size [-Werror=memset-elt-size]
sizeof(sample_write) / sizeof(sample_write[0]));
^
In file included from /home/chris/src/conky/src/conky.cc:87:
/home/chris/src/conky/src/diskio.h: In constructor ‘diskio_stat::diskio_stat()’:
/home/chris/src/conky/src/diskio.h:45:62: error: ‘memset’ used with length equal to number of elements without multiplication by element size [-Werror=memset-elt-size]
std::memset(sample, 0, sizeof(sample) / sizeof(sample[0]));
^
/home/chris/src/conky/src/diskio.h:46:77: error: ‘memset’ used with length equal to number of elements without multiplication by element size [-Werror=memset-elt-size]
std::memset(sample_read, 0, sizeof(sample_read) / sizeof(sample_read[0]));
^
/home/chris/src/conky/src/diskio.h:48:63: error: ‘memset’ used with length equal to number of elements without multiplication by element size [-Werror=memset-elt-size]
sizeof(sample_write) / sizeof(sample_write[0]));
^
In file included from /home/chris/src/conky/src/core.cc:38:
/home/chris/src/conky/src/diskio.h: In constructor ‘diskio_stat::diskio_stat()’:
/home/chris/src/conky/src/diskio.h:45:62: error: ‘memset’ used with length equal to number of elements without multiplication by element size [-Werror=memset-elt-size]
std::memset(sample, 0, sizeof(sample) / sizeof(sample[0]));
^
/home/chris/src/conky/src/diskio.h:46:77: error: ‘memset’ used with length equal to number of elements without multiplication by element size [-Werror=memset-elt-size]
std::memset(sample_read, 0, sizeof(sample_read) / sizeof(sample_read[0]));
^
/home/chris/src/conky/src/diskio.h:48:63: error: ‘memset’ used with length equal to number of elements without multiplication by element size [-Werror=memset-elt-size]
sizeof(sample_write) / sizeof(sample_write[0]));
^
[ 26%] Building CXX object src/CMakeFiles/conky.dir/entropy.cc.o
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/conky.dir/build.make:154: src/CMakeFiles/conky.dir/diskio.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/conky.dir/build.make:115: src/CMakeFiles/conky.dir/conky.cc.o] Error 1
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/conky.dir/build.make:128: src/CMakeFiles/conky.dir/core.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:372: src/CMakeFiles/conky.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
@lasers I'm getting
/bin/sh: http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl: No such file or directory
make[2]: *** [doc/CMakeFiles/docs.dir/build.make:61: ../doc/docs.html] Error 127
@su8 Do you have *docbook* installed? Maybe docbook2x
EDIT: I don't know what you want me to say. :rabbit:
I can't reproduce the error shown by you as it stops me on %4 generation.
eix -I docbook
[I] app-text/build-docbook-catalog
Available versions: 1.21{tbz2}
Installed versions: 1.21{tbz2}(10:05:16 PM 05/31/2018)
Homepage: https://sources.gentoo.org/gentoo-src/build-docbook-catalog/
Description: DocBook XML catalog auto-updater
[I] app-text/docbook-xml-dtd
Available versions:
(4.1.2) 4.1.2-r6{tbz2}
(4.2) 4.2-r2{tbz2}
(4.3) 4.3-r1{tbz2}
(4.4) 4.4-r2{tbz2}
(4.5) 4.5-r1{tbz2}
Installed versions: 4.1.2-r6(4.1.2){tbz2}(10:05:28 PM 05/31/2018) 4.2-r2(4.2){tbz2}(10:05:41 PM 05/31/2018) 4.3-r1(4.3){tbz2}(10:05:54 PM 05/31/2018) 4.4-r2(4.4){tbz2}(10:06:08 PM 05/31/2018) 4.5-r1(4.5){tbz2}(02:59:58 AM 04/03/2018)
Homepage: http://www.docbook.org/
Description: Docbook DTD for XML
[I] app-text/docbook-xsl-stylesheets
Available versions: 1.79.1-r2^t{tbz2} {ruby}
Installed versions: 1.79.1-r2^t{tbz2}(10:04:44 PM 05/31/2018)(-ruby)
Homepage: https://github.com/docbook/wiki/wiki
Description: XSL Stylesheets for Docbook
[I] app-text/docbook2X
Available versions: 0.8.8-r4{tbz2} {test}
Installed versions: 0.8.8-r4{tbz2}(03:53:18 PM 08/06/2018)(-test)
Homepage: http://docbook2x.sourceforge.net/
Description: Tools to convert docbook to man and info
Found 4 matches
From what I gather, Conky 1 was rewritten to make Conky 2 possible. This happened not too long ago so I'm guessing this part hadn't been worked on for some time now. I'm pinging @brndnmtthws because I wanted to close this, #520, etc. :-)
@su8 Do you have all *docbook* installed? Try it and see.
Yes I have.
See ./doc/README.docs. If nothing turns up, I'll stop bothering you about this. cross fingers
@su8 This worked for me with cmake -DCMAKE_BUILD_TYPE=Release -DMAINTAINER_MODE=ON. If I do cmake -DMAINTAINER_MODE=ON alone, I get various errors in diskio.cc... due to cc1plus: all warnings being treated as errors. https://github.com/brndnmtthws/conky/issues/197#issuecomment-410336158
@su8 Do you still have this problem? You didn't mention anything about the command above.
[ 3%] Proccessing man page for docs
/bin/sh: http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl: No such file or directory
make[2]: *** [doc/CMakeFiles/docs.dir/build.make:61: ../doc/docs.html] Error 127
make[2]: *** Deleting file '../doc/docs.html'
make[1]: *** [CMakeFiles/Makefile2:204: doc/CMakeFiles/docs.dir/all] Error 2
I can run xsltproc http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl docs.xml > docs.html, but it
/bin/sh: ../../doc/lua.xsl: Permission denied
make[2]: *** [doc/CMakeFiles/lua.html.dir/build.make:62: ../doc/lua.html] Error 126
make[2]: *** Deleting file '../doc/lua.html'
make[1]: *** [CMakeFiles/Makefile2:241: doc/CMakeFiles/lua.html.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
I can also run xsltproc lua.xsl lua.xml > lua.html and it's fine.
Copied from:
Why does it say Permission denied though? I'm sure the permissions looked good to you... Maybe you have a crazy locked down system that prevents this file from being read/written? One can dream.
Look for build.make file. See line 62. I have this... Might be helpful to run that command.
cd /home/chris/src/conky/build/doc && /usr/bin/xsltproc /home/chris/src/conky/doc/lua.xsl /home/chris/src/conky/doc/lua.xml > /home/chris/src/conky/doc/lua.html
xsltproc http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl docs.xml > docs.html
xsltproc lua.xsl lua.xml > lua.html
xsltproc variables.xsl variables.xml > variables.html
> make -j3
[ 1%] Built target defconfig
[ 3%] Built target convertconf
[ 4%] Proccessing man page for docs
Scanning dependencies of target variables.html
Scanning dependencies of target lua.html
/bin/sh: http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl: No such file or directory
make[2]: *** [doc/CMakeFiles/docs.dir/build.make:61: ../doc/docs.html] Error 127
make[2]: *** Deleting file '../doc/docs.html'
make[1]: *** [CMakeFiles/Makefile2:204: doc/CMakeFiles/docs.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 6%] Built target variables.html
[ 7%] Built target lua.html
make: *** [Makefile:152: all] Error 2
Try make VERBOSE=1? Otherwise, I dunno and will be going to bed. Goodnight.
@stardiviner For many weeks, I didn't have this issue with cmake -D CMAKE_BUILD_TYPE=Release -D MAINTAINER_MODE=ON so I'm going ahead and close this. The command should work same for you.
Offtopic: There are few kinks in cmake/ConkyBuildOptions.cmake that ought to be worked on... such as default (unset) CMAKE_BUILD_TYPE behavior when we use cmake -D MAINTAINER_MODE=ON alone.
Most helpful comment
Try
make VERBOSE=1? Otherwise, I dunno and will be going to bed. Goodnight.