WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Jwm compilation  (Read 5834 times)

Offline alexo

  • Jr. Member
  • **
  • Posts: 97
Jwm compilation
« 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:

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: 11635
Re: Jwm compilation
« Reply #1 on: March 18, 2019, 12:17:19 PM »
Hi alexo
Try  libXext-dev.tcz.

Offline alexo

  • Jr. Member
  • **
  • Posts: 97
Re: Jwm compilation
« Reply #2 on: March 18, 2019, 12:36:26 PM »
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: 11635
Re: Jwm compilation
« Reply #3 on: March 18, 2019, 12:39:33 PM »
Hi alexo
Try  libXmu-dev.tcz.

Offline alexo

  • Jr. Member
  • **
  • Posts: 97
Re: Jwm compilation
« Reply #4 on: March 18, 2019, 12:56:07 PM »
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, 12:58:05 PM by alexo »

Offline Rich

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

Offline alexo

  • Jr. Member
  • **
  • Posts: 97
Re: Jwm compilation
« Reply #6 on: March 18, 2019, 01:17:28 PM »
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: 11635
Re: Jwm compilation
« Reply #7 on: March 18, 2019, 01:24:31 PM »
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: 11044
Re: Jwm compilation
« Reply #8 on: March 18, 2019, 01:32:46 PM »
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: 14819
Re: Jwm compilation
« Reply #9 on: March 18, 2019, 01:33:43 PM »
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, 01:56:47 PM »
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: 11635
Re: Jwm compilation
« Reply #11 on: March 18, 2019, 03: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, 04: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: 14819
Re: Jwm compilation
« Reply #13 on: March 19, 2019, 02:21:35 AM »
updated jwm posted