You are not logged in.

#1 2005-06-21 07:47:22

Cam
Member
From: Brisbane, Aus
Registered: 2004-12-21
Posts: 658
Website

e17 with GL

Here's a PKGBUILD and patch I put together that'll build an e-CVS package that has Evas using it's OpenGL engine. It's nothing fancy, more info can be found here but it works quite well with my nvidia card. I'm writing this with the layered sky background running at full steam behind Firefox. The E17 modules support the transparency but Eterm doesn't at this stage and I don't know if it will but this isn't meant for full-time use, just to have a squiz.

For it to work, I use nickm's packages and it only requires a rebuild of e-CVS. Also, you'll need to delete (or move) ~/.e/e/config/e.cfg as it tells Evas to use software and if you change the theme it resets that file and after a restart it's back to software as well. This is just for playing but it's not too shabby at all smile

PKGBUILD:

pkgname=e
pkgver=CVS_$date
pkgrel=1
pkgdesc=""
url=""
license=""
depends=('ewl' 'evas' 'ecore' 'imlib2')
makedepends=()
conflicts=()
replaces=()
backup=()
groups=('e17')
install=
#source=($pkgname-$pkgver.tar.gz)
md5sums=()

build() {
  export LDFLAGS="-L/opt/e17/lib"
  export CPPFLAGS="-I/opt/e17/include"
  export PATH=$PATH:/opt/e17/bin
  cd $startdir/src/
  cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/enlightenment co e17/apps/$pkgname
  cd e17/apps/e
  make distclean
  
  # add right-click menu patch
  cd $startdir/src/e17/apps/e/src/bin
  patch --ignore-whitespace <$startdir/opengl.diff e_config.c
  
  cd $startdir/src/e17/apps/e
  ./autogen.sh --prefix=/opt/e17
  make || return 1
  make DESTDIR=$startdir/pkg install
}

opengl.diff:

226,227c226,227
<     e_config->evas_engine_container = E_EVAS_ENGINE_DEFAULT;
<     e_config->evas_engine_init = E_EVAS_ENGINE_DEFAULT;
---
>     e_config->evas_engine_container = E_EVAS_ENGINE_GL_X11;
>     e_config->evas_engine_init = E_EVAS_ENGINE_GL_X11;

Offline

#2 2005-06-21 10:37:20

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: e17 with GL

Damn... Must get GL working for stupid Savage4!

(BTW, I've read some stuff about E17 being very, very unstable with GL... Is that true?)

Offline

#3 2005-06-21 11:14:43

Cam
Member
From: Brisbane, Aus
Registered: 2004-12-21
Posts: 658
Website

Re: e17 with GL

Apparently it used to be but it seemed fine for me. I didn't notice any of the graphics glitches mentioned in the post I linked to but I may have been looking in the wrong spot. I've only got a Geforce MX5200 so it's not exactly cutting-edge and it felt nice and responsive, but unless you're using a background that needs to do a bit of rendering it's not really necessary. Cool though big_smile

Offline

#4 2005-06-26 14:58:14

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Re: e17 with GL

having trouble with this, it compiles/install fine, but when I run it it segfaults...any ideas why?

have an nvidia geforce 4200go


http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

#5 2005-06-26 22:58:33

Cam
Member
From: Brisbane, Aus
Registered: 2004-12-21
Posts: 658
Website

Re: e17 with GL

CyberTron wrote:

having trouble with this, it compiles/install fine, but when I run it it segfaults...any ideas why?

have an nvidia geforce 4200go

Probably because OpenGL support is flakey at best and can only be used as a preview wink Offhand no, maybe you'd get a real answer from the edevelop.org forums. Best I can say is that it works for me  :?

Offline

#6 2005-06-27 08:46:08

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Re: e17 with GL

lol

ok, I'll post it to the e-forum big_smile


http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

#7 2005-06-29 01:05:40

jesus franco
Member
From: PA, USA
Registered: 2005-05-17
Posts: 68

Re: e17 with GL

Unfortunaletly this happens...

e_border.o(.text+0x284b): In function `e_border_ping':
: undefined reference to `ecore_x_netwm_ping_send'
e_border.o(.text+0x4248): In function `_e_border_menu_show':
: undefined reference to `ecore_file_app_installed'
e_int_menus.o(.text+0x6b6): In function `e_int_menus_main_new':
: undefined reference to `ecore_file_app_installed'
e_apps.o(.text+0x1bb7): In function `e_app_files_append':
: undefined reference to `ecore_file_download'
e_apps.o(.text+0x1d27): In function `e_app_files_prepend_relative':
: undefined reference to `ecore_file_download'
e_utils.o(.text+0x1ce): In function `e_util_utils_installed':
: undefined reference to `ecore_file_app_installed'
collect2: ld returned 1 exit status
make[3]: *** [enlightenment] Error 1
make[3]: Leaving directory `/home/jesus/src/e17/apps/e/src/bin'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jesus/src/e17/apps/e/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jesus/src/e17/apps/e'
make: *** [all] Error 2
==> ERROR: Build Failed.  Aborting...
[root@myhost jesus]#

The pkgbuild fails. I run it within e17 (using the ones from the community repo) and as root. And it fails. hmm

Offline

#8 2005-06-29 03:45:54

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: e17 with GL

it's because it pulls the code from CVS and obviously the latest CVS is broken. Wait a while and the issue should be fixed.

Offline

#9 2005-07-06 10:36:44

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Re: e17 with GL

Lets reopen this thread shall we big_smile

I wonder, and I belive this is mosly pointed towards Cam, do you (or anyone) have the new .diff file? the one that changes so that e.cfg doesn't have to be erased all the time (http://get-e.org)


http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

#10 2005-07-06 11:02:41

Cam
Member
From: Brisbane, Aus
Registered: 2004-12-21
Posts: 658
Website

Re: e17 with GL

I dunno, I made the .diff file myself, I just had a quick glace at the site and couldn't find any updates to the previous code changes. If you find the where it says what to do then I'll make the diff, it's not really that hard though wink [man diff]

Offline

#11 2005-07-06 11:06:23

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Re: e17 with GL

Hi!

Thanks for taking the time to look at it, here are the news, (it is really nothing special, but one doesn't have to remove e.cfg )


There's also some news regarding OpenGL mode. First of all if you haven't read about it yet, please read me previous newspost first. As as I said in the earlier post, one major problem with it was that the engine settings weren't being saved to e.cfg, so every time you restarted E, everything went back to software mode. This has been solved by Korda (he also posted the original instructions on enabling GL mode). This is just copypasted from the edevelop.org forums - this has been written by Korda:

"OK, I've figured out why the config changes weren't sticking.

There are a few lines missing in e_config.c which cause all the evas_engine_* variables to never be saved when e.cfg is written.

Inside e_config.c in the e_config_init(void) method, you'll need to add the lines:
Code:
   E_CONFIG_VAL(D, T, evas_engine_default, INT);                               
   E_CONFIG_VAL(D, T, evas_engine_container, INT);                             
   E_CONFIG_VAL(D, T, evas_engine_init, INT);                                   
   E_CONFIG_VAL(D, T, evas_engine_menus, INT);                                 
   E_CONFIG_VAL(D, T, evas_engine_borders, INT);                               
   E_CONFIG_VAL(D, T, evas_engine_errors, INT);                                 
   E_CONFIG_VAL(D, T, evas_engine_popups, INT);                                 
   E_CONFIG_VAL(D, T, evas_engine_drag, INT);

after all the other similar lines but before the line
Code:
e_config = e_config_domain_load("e", _e_config_edd);


This ensures that all the evas_engine_* config variables get written.

http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

#12 2005-07-06 13:42:38

Cam
Member
From: Brisbane, Aus
Registered: 2004-12-21
Posts: 658
Website

Re: e17 with GL

Here is the new diff file, created with the usual love and care smile

opengl.diff

193a194,201
>    E_CONFIG_VAL(D, T, evas_engine_default, INT);
>    E_CONFIG_VAL(D, T, evas_engine_container, INT);
>    E_CONFIG_VAL(D, T, evas_engine_init, INT);
>    E_CONFIG_VAL(D, T, evas_engine_menus, INT);
>    E_CONFIG_VAL(D, T, evas_engine_borders, INT);
>    E_CONFIG_VAL(D, T, evas_engine_errors, INT);
>    E_CONFIG_VAL(D, T, evas_engine_popups, INT);
>    E_CONFIG_VAL(D, T, evas_engine_drag, INT);
248,249c256,257
<     e_config->evas_engine_container = E_EVAS_ENGINE_DEFAULT;
<     e_config->evas_engine_init = E_EVAS_ENGINE_DEFAULT;
---
>     e_config->evas_engine_container = E_EVAS_ENGINE_GL_X11;
>     e_config->evas_engine_init = E_EVAS_ENGINE_GL_X11;

Offline

#13 2005-07-06 17:06:55

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Re: e17 with GL

perfect big_smile

going to try it out tonight big_smile


http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

Board footer

Powered by FluxBB