Recent

Author Topic: fpwm  (Read 2921 times)

jma_sp

  • Full Member
  • ***
  • Posts: 150
  • El conocimiento si ocupa lugar.
fpwm
« on: March 23, 2017, 02:56:49 pm »
Hello,

I have downloaded latest version of fpwm from sourceforge and compiled under Linux Debian 64bit and Lazarus 1.6 / FPC 3.0.0.

http://wiki.lazarus.freepascal.org/Free_Pascal_Window_Manager
https://sourceforge.net/projects/fpwm/?source=directory


It give me an error:

Compile Proyect, Target: fpwm: Output Code 256, errors: 1 hints: 4


fpwmrotated.pas(406,34) Error: Illegal type conversion: "ShortString" to "Pchar"

The other hints are:

fpwmgeneral.pas(65,17) Hint: Local variable "sAct" does not seem to be initialized

fpwmgeneral.pas(21,6) Hint: Unit "xlib" not used in fpwmgeneral

xproto.pas(74,6) Hint: Unit "x" not used in xproto

xproto.pas(74,9) Hint: Unit "xmd" not used in xproto

I have tried adding a variable pchar_text: pchar;

and use it to convert text to pchar with:

pchar_text := StrAlloc (length(text)+1);
strpcopy (pchar_text,text);

So now this can be passed as a pchar to XDrawImageString (.....
https://sourceforge.net/p/fpwm/code/HEAD/tree/fpwmrotated.pas

The question is if some one is maintaing this project and can fix it.

Once  fpwm load someone can run idesk for icons.

Regards.

« Last Edit: March 23, 2017, 03:18:15 pm by jma_sp »
Devuan Beowulf 3.0( JWM/ROX/iDesk) - Puppy Linux,  Haiku OS,.ReactOS 0.4.xx  - FreeDos .

Thaddy

  • Hero Member
  • *****
  • Posts: 14157
  • Probably until I exterminate Putin.
Re: fpwm
« Reply #1 on: March 23, 2017, 05:51:04 pm »
The hints you can simply -for now -  ignore, but you should make sure you compile the units in {$mode objfpc} and {$H+}.
Specialize a type, not a var.

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: fpwm
« Reply #2 on: March 24, 2017, 04:05:23 pm »
As far as I remember the initial version worked fine (some years ago), which used fpGUI as the toolkit. That code can still be found in the  "oldfpwm" directory.

https://sourceforge.net/p/fpwm/code/HEAD/tree/oldfpwm/

They then did a total rewrite from the ground up, but I don't think they actually completed the rewrite. I might be wrong, it was many years ago.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

 

TinyPortal © 2005-2018