Tiny Core Linux

Tiny Core Extensions => TCE Talk => Extension requests => Topic started by: Misalf on September 17, 2013, 10:01:11 PM

Title: xfe for 5.0 please
Post by: Misalf on September 17, 2013, 10:01:11 PM
Anyone want to be so kind as to compile xfe file manager for TinyCore 5, please?

Jason W is too busy with dCore and what not and I'm not that experienced when it comes to compiling.


Thanks a lot.
Title: Re: xfe for 5.0 please
Post by: Juanito on September 18, 2013, 03:28:21 AM
Anyone want to be so kind as to compile xfe file manager for TinyCore 5, please?

Jason W is too busy with dCore and what not and I'm not that experienced when it comes to compiling.

Why not give it a go - there's plenty of people willing to help  :)
Title: Re: xfe for 5.0 please
Post by: Misalf on September 18, 2013, 12:54:26 PM
Trying to be kind to myself by overcoming my laziness might create scanty material.
But well, if there is help..

I just installed / loaded compiletc.tcz, Xorg-7.7-dev.tcz and xorg-server-dev.tcz.
When 'make'ing fox-1.6.49, it complains about missing ftheader.h, even though freetype-dev is loaded.

Any advise?
Title: Re: xfe for 5.0 please
Post by: Misalf on September 18, 2013, 03:24:56 PM
The original error message just befor "compilation terminated." is:
Code: [Select]
/usr/local/include/ft2build.h:56:38: fatal error: freetype/config/ftheader.h: No such file or directoryIndeed, ftheader.h is in /usr/local/include/freetype2/freetype/config/

in "/usr/local/include/ft2build.h" it sais:
Code: [Select]
/* `<prefix>/includde/freetype2' must be in your current inclusion path */
Wats my 'inclusion path' and how can I see/set it?

Thanks
Title: Re: xfe for 5.0 please
Post by: Rich on September 18, 2013, 03:46:01 PM
Hi Misalf
You could try executing this from the command line first:
Code: [Select]
export C_INCLUDE_PATH=/usr/local/include/freetype2More info can be found here:
http://stackoverflow.com/questions/558803/how-to-add-a-default-include-path-for-gcc-in-linux

Title: Re: xfe for 5.0 please
Post by: Misalf on September 18, 2013, 04:04:01 PM
Thanks
Code: [Select]
export CPLUS_INCLUDE_PATH=/usr/local/include/freetype2
did the trick.
Title: Re: xfe for 5.0 please
Post by: Misalf on September 18, 2013, 04:53:02 PM
Yay!
Seems to work, kind of. Some graphical glitches when xfe starts.
If I will be able to sort that out and if xfe doesn't crash I will submit updated fox.tcz and xfe.tcz.
Title: Re: xfe for 5.0 please
Post by: Misalf on September 19, 2013, 03:16:07 AM
That graphical glitches seem to have been temporary; disappeared after reboot.

In the original xfe.tcz.info file, it's mentioned that a Patch has been applied for mount/umount to work with flwn (typo?) and another patch for 'proper root Xfe button launch'.
Anyone knows something about these patches and if I should somehow apply them as well?
Mounting/Unmounting seems to work. Same for the root button.
Title: Re: xfe for 5.0 please
Post by: Misalf on September 19, 2013, 07:02:31 AM
Also, I have changed deps for Xfe:

from
 graphics-libs-1.tcz
to
 glu.tcz
 +
 libtiff.tcz

And added
 libjpeg-turbo.tcz
 +
 libpng.tcz

Is it OK like that?
Title: Re: xfe for 5.0 please
Post by: bmarkus on September 19, 2013, 07:04:16 AM
Dont you need fox?
Title: Re: xfe for 5.0 please
Post by: Misalf on September 19, 2013, 07:39:04 AM
Yes, I have as well compiled latest stable fox and created extensions. (:

Also everything seems to work (Xfe, Xfi, Xfv etc) but I'm not quite sure what I'm doing here so I hesitate to submit the .tczs. Would be a shame if I submit crappy extensions and others had to fix them.
Title: Re: xfe for 5.0 please
Post by: gordonselfish on September 19, 2013, 09:42:23 AM
Hi, if you have not yet read the extns wiki feel free to do so. Its been written and re-written on the back of some bad mistakes by no-one I know (eyes blinking rapidly)(grins like a sheep)

Secondly if you put all of your submission stuff into one folder and run submitqc5 against,
it will soon let you know if you made bad mistakes. Have submitqc5 as a part of the build script helps.

Forgive if you already know--but when you see the wiki referring to 755 and 775 its often easier to know what that means at a glance by running
Code: [Select]
ls -al /tmp/packagename/usr/local/tce.installed/packagename (example only)755 is rwxr-xr-x ( or two dashes)
while 775 has just the one missing world w rwx rwx r - x

TIP I like mc as it gives me colours for executables, white font for files and you can press F3 against an executable or shared object and see if you have stripped it or not.---where applicable.

good luck
Title: Re: xfe for 5.0 please
Post by: Misalf on September 19, 2013, 10:47:48 AM
Thanks for those hints, gordonselfish.
I have read the wiki and also ran submitqc5.
Good you mention file permissions which I should check if they are all correct (I didn't quite get what's this about and probably messed it up).
I don't care what file manager you use.. Xfe is also pretty magical. :)
Title: Re: xfe for 5.0 please
Post by: Misalf on September 19, 2013, 11:41:31 AM
Everything was tc:staff
I changed everything to root:root

It's correct like that, right?
(Neither Xfe nor fox are using start/launch scripts)
Title: Re: xfe for 5.0 please
Post by: gordonselfish on September 19, 2013, 06:45:56 PM
I believe so

I forgot to mention that after stripping, if you load the tce called file you can then run
Code: [Select]
file /tmp/package/usr/local/bin/filename
file /tmp/package/usr/local/lib/x-so/
to also see that these are stripped....pathways may change of course.

I have never used xfe, I am currently receiving blood injections until my pcmanfm arrives  ;)
Title: Re: xfe for 5.0 please
Post by: Misalf on September 20, 2013, 12:13:28 AM
Stripping means deleting unneeded files, right?

I have recreated the same package layout as JW did (*-dev, *-doc, ...) by hand for both fox and Xfe.
Title: Re: xfe for 5.0 please
Post by: Juanito on September 20, 2013, 12:23:40 AM
Stripping means removing the debugging symbols from the compiled files:

Static libs (*.a) --strip-debug
Dynamic libs (*.so*) --strip-unneeded
Executables (usually in bin/ sbin/ libexec/) --strip-all

You can check if a file has been stripped using the file command - "file /usr/local/lib/*.a" for example
Title: Re: xfe for 5.0 please
Post by: Misalf on September 20, 2013, 12:51:38 AM
From the wiki:
Code: [Select]
find . | xargs file | grep "executable" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null|
|find . | xargs file | grep "shared object" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip -g 2> /dev/null
I'm not sure how to run this line of commands.
The trailing "|" on the first line, as well as the leading "|" on the second line are confusing me.
Is that only one line in total?

Like so?
Code: [Select]
find . | xargs file | grep "executable" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null||find . | xargs file | grep "shared object" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip -g 2> /dev/nullOr like so?
Code: [Select]
find . | xargs file | grep "executable" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null | find . | xargs file | grep "shared object" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip -g 2> /dev/null
Title: Re: xfe for 5.0 please
Post by: Rich on September 20, 2013, 02:08:26 AM
Hi Misalf
It appears the line happened to wrap around between the two  |  symbols. Since an extension can have both executables
and shared objects I would think you'd want to run both commands unconditionally, so I'm not sure why the  ||  is in there.
Title: Re: xfe for 5.0 please
Post by: Misalf on September 20, 2013, 02:18:28 AM
Thanks
Executing 'both' lines, ignoring "||" from in the middle, seems to at least have an effect on files in dev folder.
Title: Re: xfe for 5.0 please
Post by: tinypoodle on September 20, 2013, 07:46:15 PM
Hi Misalf
It appears the line happened to wrap around between the two  |  symbols. Since an extension can have both executables
and shared objects I would think you'd want to run both commands unconditionally, so I'm not sure why the  ||  is in there.

Erroneous newline in wiki corrected.
Would it be preferable to replace "||" by ";"?
Title: Re: xfe for 5.0 please
Post by: gerald_clark on September 20, 2013, 08:09:26 PM
No.
|| means if the left hand part returns false, do the right hand part.
Title: Re: xfe for 5.0 please
Post by: Misalf on September 20, 2013, 08:21:17 PM
I tryed that and it gave me an error.
I've then used both instead.

Extension already on its way by the way.
Title: Re: xfe for 5.0 please
Post by: tinypoodle on September 20, 2013, 09:32:15 PM
No.
|| means if the left hand part returns false, do the right hand part.

I was fully aware of that, but based on what I quoted I wondered if unconditional execution of both parts would possibly be preferable.
Title: Re: xfe for 5.0 please
Post by: coreplayer2 on October 06, 2013, 11:26:52 PM
nice job Misalf with Xfe   

thanks
Title: Re: xfe for 5.0 please
Post by: coreplayer2 on December 09, 2013, 09:17:36 PM
Extension already on its way by the way.


What are the chances of a x86_64 version please ?

:p
Title: Re: xfe for 5.0 please
Post by: Misalf on December 10, 2013, 09:44:37 AM
Quote
nice job Misalf with Xfe

thanks
My pleasure.
I'm glad it works. Also for myself or Misalf. (:

Quote
What are the chances of a x86_64 version please ?
I did'nt yet set up a 64bit install of TinyCore.
While you're asking, I might do soon.

However, I'm not sure if I bacame the maintainer by submitting an updated version.
Compiling was straight forward except of
Code: [Select]
export CPLUS_INCLUDE_PATH=/usr/local/include/freetype2
 so if you are faster than me I'd be good with it because I don't think I really need x64 and also have no experience in compiling for 64bit.
Title: Re: xfe for 5.0 please
Post by: Gawron on January 27, 2014, 11:09:33 AM
Hi,
On my system (core 5.1 with icewm) xfe has no letters only icons on folders and menu and does not appears on application menu. It can be run only from OnDemand menu and terminal. Earlier on core 4.7.7 all worked without troubles.
Title: Re: xfe for 5.0 please
Post by: Misalf on January 28, 2014, 05:13:50 PM
I havn't had much time lately to do anything Core related, so I'll have to reorganize a little.
I'll try to look into this in the next couple of days.

--

- Is IceWM the only WM you're using or just the only one where this happens?
- Which X server and Display driver are you using?
- Are you using UTF-8 or locale settings that require those?
Title: Re: xfe for 5.0 please
Post by: Gawron on January 29, 2014, 03:22:46 PM
Hi Misalf,
Sorry for late response.
I use only IceWM.
My X server is Xorg. Display driver xf86-video-nv.
Yes I use locale pl_PL.utf8 that requires utf8.
Here is my locale output:
LANG=pl_PL.utf8
LC_CTYPE="pl_PL.utf8"
LC_NUMERIC="pl_PL.utf8"
LC_TIME="pl_PL.utf8"
LC_COLLATE="pl_PL.utf8"
LC_MONETARY="pl_PL.utf8"
LC_MESSAGES="pl_PL.utf8"
LC_PAPER="pl_PL.utf8"
LC_NAME="pl_PL.utf8"
LC_ADDRESS="pl_PL.utf8"
LC_TELEPHONE="pl_PL.utf8"
LC_MEASUREMENT="pl_PL.utf8"
LC_IDENTIFICATION="pl_PL.utf8"
LC_ALL=
Title: Re: xfe for 5.0 please
Post by: Misalf on January 29, 2014, 07:54:42 PM
Thanks.
I'll try to recreate this.
I did test UTF8 before submitting the extensions, but I'm suspecting that FOX might better be compiled with an additional flag to maybe fix this problem in Xfe.

It might take a little longer until my next reply. :p
Title: Re: xfe for 5.0 please
Post by: Misalf on March 13, 2014, 01:21:18 PM
It might take some more time until I submit updated versions of FOX and Xfe, which I have already built and sent to Gawron via PM for testing - If Gawron is just as slow as I am (reasonable after my 'warning') that is, since I am unable to reproduce this bug.

So, if there is any demand for an updated version regarding fixing incorrect UTF8 character encoding, please send me a PM and I'll send you a link to the extensions before I will submit them to the repo.

Otherwise, I will just submit it as is, because I have actually no idea how to fix this issue (I thought I'd have taken care about it from the beginning by giving FOX the necessary compiling flag - but meh.. I use english.)

BTW, Xfe was updated to version 1.37 and includes a 'search' feature now.
Title: Re: xfe for 5.0 please
Post by: Gawron on March 13, 2014, 05:39:26 PM
Hi Misalf. I am sorry for slow response , I changed disk and OS on this old PC to Debian, and can't check the hardware compatibility with this new version.  On VirtualBox everything is OK with pl_PL.utf8 and xfe. Thanks.
Title: Re: xfe for 5.0 please
Post by: Misalf on March 13, 2014, 05:49:55 PM
No problem. You've still been much faster than I was.

So the bug fixed itself / was caused by something else. No surprise since TC doesn't come with UTF8 support out of the box.

I will submit those updated extensions of FOX and Xfe.