WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: how to build emelfm2 for corepure64?  (Read 1742 times)

Offline book11

  • Newbie
  • *
  • Posts: 3
how to build emelfm2 for corepure64?
« 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. :-[

Offline polikuo

  • Hero Member
  • *****
  • Posts: 714
Re: how to build emelfm2 for corepure64?
« Reply #1 on: May 30, 2018, 02:19:52 AM »
Hi
Welcome to TC
Have you checked emelfm.build-dep?

Note that you'll need to change the CFLAGS, CXXFLAGS.
Please refer to wiki
Code: [Select]
export CFLAGS="-mtune=generic -Os -pipe"
export CXXFLAGS="-mtune=generic -Os -pipe"
export LDFLAGS="-Wl,-O1"

Offline book11

  • Newbie
  • *
  • Posts: 3
Re: how to build emelfm2 for corepure64?
« Reply #2 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.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: how to build emelfm2 for corepure64?
« Reply #3 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
« Last Edit: May 31, 2018, 12:02:34 AM by Juanito »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: how to build emelfm2 for corepure64?
« Reply #4 on: May 31, 2018, 12:03:21 AM »
emelfm2 posted - I prefer emelfm  ;)