WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Jwm compilation  (Read 4901 times)

Offline alexo

  • Jr. Member
  • **
  • Posts: 97
Jwm compilation
« on: March 18, 2019, 09:08:46 AM »
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:

Code: [Select]
  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?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Jwm compilation
« Reply #1 on: March 18, 2019, 09:17:19 AM »
Hi alexo
Try  libXext-dev.tcz.

Offline alexo

  • Jr. Member
  • **
  • Posts: 97
Re: Jwm compilation
« Reply #2 on: March 18, 2019, 09:36:26 AM »
Hi Rich,

libXext-dev downloaded and loaded, but now the message is this:

Code: [Select]
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

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Jwm compilation
« Reply #3 on: March 18, 2019, 09:39:33 AM »
Hi alexo
Try  libXmu-dev.tcz.

Offline alexo

  • Jr. Member
  • **
  • Posts: 97
Re: Jwm compilation
« Reply #4 on: March 18, 2019, 09:56:07 AM »
HI Rich,

now it requested Xinerama - and I installed libXinerama-dev.tcz
and Xft - and I installed libXft-dev
but now I get this:

Code: [Select]
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
« Last Edit: March 18, 2019, 09:58:05 AM by alexo »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Jwm compilation
« Reply #5 on: March 18, 2019, 10:04:55 AM »
Hi alexo
Try  freetype-dev.tcz.

Offline alexo

  • Jr. Member
  • **
  • Posts: 97
Re: Jwm compilation
« Reply #6 on: March 18, 2019, 10:17:28 AM »
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.

Code: [Select]
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
 

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Jwm compilation
« Reply #7 on: March 18, 2019, 10:24:31 AM »
Hi alexo
Find where this is:
Code: [Select]
-I/usr/local/include/libpng16and change it to:
Code: [Select]
-I/usr/local/include/libpng16 -I/usr/local/include/freetype2

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: Jwm compilation
« Reply #8 on: March 18, 2019, 10:32:46 AM »
You probably need to run configure again, after loading freetype2-dev.
The only barriers that can stop you are the ones you create yourself.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Jwm compilation
« Reply #9 on: March 18, 2019, 10:33:43 AM »
See also:

http://www.tinycorelinux.net/7.x/x86/tcz/src/jwm/compile_jwm

..but substitute "-mtune=generic" for "-march=i486 -mtune=i686"

Offline alexo

  • Jr. Member
  • **
  • Posts: 97
Re: Jwm compilation
« Reply #10 on: March 18, 2019, 10:56:47 AM »
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

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Jwm compilation
« Reply #11 on: March 18, 2019, 12:53:12 PM »
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
Code: [Select]
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' {} \;

Offline alexo

  • Jr. Member
  • **
  • Posts: 97
Re: Jwm compilation
« Reply #12 on: March 18, 2019, 01:56:11 PM »
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.


Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Jwm compilation
« Reply #13 on: March 18, 2019, 11:21:35 PM »
updated jwm posted