Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: book11 on May 30, 2018, 01:33:23 AM

Title: how to build emelfm2 for corepure64?
Post by: book11 on May 30, 2018, 01:33:23 AM
i kown emelfm2 is available for tc86, but i want it work in tc64, so i try to downloaded the X86's tcz (emelfm2.tcz) intsall at corepure64 but fail. and i'm also trying to build emelfm2 from the source code, it's too many error for compile it (i'm not a programer),can somebody helpfor this ?

sorry for my poor english. :-[
Title: Re: how to build emelfm2 for corepure64?
Post by: polikuo on May 30, 2018, 02:19:52 AM
Hi
Welcome to TC
Have you checked emelfm.build-dep (http://tinycorelinux.net/6.x/x86/tcz/src/emelfm/emelfm.build-dep)?

Note that you'll need to change the CFLAGS, CXXFLAGS.
Please refer to wiki (http://wiki.tinycorelinux.net/wiki:creating_extensions)
Code: [Select]
export CFLAGS="-mtune=generic -Os -pipe"
export CXXFLAGS="-mtune=generic -Os -pipe"
export LDFLAGS="-Wl,-O1"
Title: Re: how to build emelfm2 for corepure64?
Post by: book11 on May 30, 2018, 06:31:03 AM
Hi , polikuo, thanks for reply.

but i'm talking about emelfm2, which is not the emelfm or emelfm3, just 2.
Title: Re: how to build emelfm2 for corepure64?
Post by: Juanito on May 30, 2018, 07:06:08 AM
Something like this should work:
Code: [Select]
tce-load -i compiletc gtk2-dev file-dev coreutils

cd emelfm2-0.9.1

find . -name Makefile.config -type f -exec sed -i 's/-O2//g' {} \;

make CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" PREFIX=/usr/local GTK2=1

sudo make CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" PREFIX=/usr/local GTK2=1 install

Edit: modified instructions above
Title: Re: how to build emelfm2 for corepure64?
Post by: Juanito on May 31, 2018, 12:03:21 AM
emelfm2 posted - I prefer emelfm  ;)