Tiny Core Linux
Tiny Core Extensions => TCE Corepure64 => Topic started by: alexo on March 18, 2019, 12:08:46 PM
-
Hi Forum,
I'd like to compile and build the updated version of the jwm window manager - actually is the 2.3.7 - because the one in the repository is old - in Corepure64 we have the 2.2.2 version
I'm not acquainted with package and tcz creation so I thought this could be a nice exercise.
I ran ./configure and it told me X11 was missing, so I downloaded and loaded on RAM the libX11-dev.tcz package.
At this point the ./configure script successfully finished its job, but if I run 'make' I get this message:
tc@box:~/Downloads/jwm-2.3.7$ make
make -C src all
make[1]: Entering directory '/home/tc/Downloads/jwm-2.3.7/src'
gcc -c -g -O2 -DLOCALEDIR=\"/usr/local/share/locale\" action.c
In file included from action.c:8:
jwm.h:84:15: fatal error: X11/extensions/shape.h: No such file or directory
# include <X11/extensions/shape.h>
^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:37: action.o] Error 1
make[1]: Leaving directory '/home/tc/Downloads/jwm-2.3.7/src'
make: *** [Makefile:9: all] Error 2
What is this header file that is missing?
-
Hi alexo
Try libXext-dev.tcz.
-
Hi Rich,
libXext-dev downloaded and loaded, but now the message is this:
tc@box:~/Downloads/jwm-2.3.7$ make
make -C src all
make[1]: Entering directory '/home/tc/Downloads/jwm-2.3.7/src'
gcc -c -g -O2 -I/usr/local/include/libpng16 -DLOCALEDIR=\"/usr/local/share/locale\" action.c
In file included from action.c:8:
jwm.h:88:15: fatal error: X11/Xmu/Xmu.h: No such file or directory
# include <X11/Xmu/Xmu.h>
^~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:37: action.o] Error 1
make[1]: Leaving directory '/home/tc/Downloads/jwm-2.3.7/src'
make: *** [Makefile:9: all] Error 2
-
Hi alexo
Try libXmu-dev.tcz.
-
HI Rich,
now it requested Xinerama - and I installed libXinerama-dev.tcz
and Xft - and I installed libXft-dev
but now I get this:
make -C src all
make[1]: Entering directory '/home/tc/Downloads/jwm-2.3.7/src'
gcc -c -g -O2 -I/usr/local/include/libpng16 -DLOCALEDIR=\"/usr/local/share/locale\" action.c
In file included from jwm.h:98,
from action.c:8:
/usr/local/include/X11/Xft/Xft.h:39:10: fatal error: ft2build.h: No such file or directory
#include <ft2build.h>
^~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:37: action.o] Error 1
make[1]: Leaving directory '/home/tc/Downloads/jwm-2.3.7/src'
make: *** [Makefile:9: all] Error 2
-
Hi alexo
Try freetype-dev.tcz.
-
HI Rich,
I've understood the mechanics of the search In Apps I insert the header file name or the name of the library and select 'provide' as search criterium, but even if freetype-dev.tcz is downloaded and loaded I get an the message.
make -C src all
make[1]: Entering directory '/home/tc/Downloads/jwm-2.3.7/src'
gcc -c -g -O2 -I/usr/local/include/libpng16 -DLOCALEDIR=\"/usr/local/share/locale\" action.c
In file included from jwm.h:98,
from action.c:8:
/usr/local/include/X11/Xft/Xft.h:39:10: fatal error: ft2build.h: No such file or directory
#include <ft2build.h>
^~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:37: action.o] Error 1
make[1]: Leaving directory '/home/tc/Downloads/jwm-2.3.7/src'
make: *** [Makefile:9: all] Error 2
-
Hi alexo
Find where this is:
-I/usr/local/include/libpng16
and change it to:
-I/usr/local/include/libpng16 -I/usr/local/include/freetype2
-
You probably need to run configure again, after loading freetype2-dev.
-
See also:
http://www.tinycorelinux.net/7.x/x86/tcz/src/jwm/compile_jwm
..but substitute "-mtune=generic" for "-march=i486 -mtune=i686"
-
Hi Rich,
with the suggestions from curaga and Juanito I finally run the ./configure till it gave me the gcc compile string command, but I don't know what is the in which I have to substitute -I/usr/local/include/libpng16 -I/usr/local/include/freetype2
and -mtune=generic
sorry for my poor knowledge of the compilation process
-
Hi alexo
... but I don't know what is the in which I have to substitute -I/usr/local/include/libpng16 -I/usr/local/include/freetype2 ...
Forget that. It looks like the ./configure command should figure that out. As per:
http://www.tinycorelinux.net/7.x/x86/tcz/src/jwm/compile_jwm
CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe"
CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti"
./configure --prefix=/usr/local --localstatedir=/var
find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \;
-
Hi Rich,
I finally did the compilation and the tcz extension. But what I got after reboot was a terrible insuccess:
black wallpaper, wbar with no wifi connection nor aterm icons.
No mouse pointer nor status bar on the top of the screen.
I think I'm going to wait for the jwm tcz maintainer to update the repository.
By the way my tcz was 515 KB while that on the tinycore repository is 88 KB if I'm not wrong.
Thank you to all of you in the forum for having helped me.
-
updated jwm posted