Jump to content


Photo

Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit


  • Please log in to reply
2062 replies to this topic

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #321 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 11 January 2012 - 21:11

Hi,

I am currently rebuilding everything from scratch and I will report if the patch fixes the Xorg problem. Compilation takes time on this PC. :-)

But I point out something else, it seems that the build from libbluray.git doesn't work in the script: build_libs.sh (you seems to select a specific version which is no longer available). Doing all the commands manually from main branch is working.

Another test, I can now run OpenpliPC on my PC with a graphical card that doesn't support libdvpau (Nvidia 6700 XL GPU) by selecting the OSD branch and building it and forcing opengl in xine.conf file. I am really happy to see now the menu of E2 on that PC too.

Pr2


I hope nobody9 is back soon (see his message in openwebif thread), so that he can help a little bit.
I currently working on OSD support for other xine drivers.
So the problem with libbluray has to wait a little bit.

And as said before: Thanks for the tests!

Edited by betacentauri, 11 January 2012 - 21:11.

Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #322 Pr2

  • PLi® Contributor
  • 6,181 posts

+261
Excellent

Posted 11 January 2012 - 21:36

Hi,

Thanks you for the patch!!! I applied it manually and compile again E2 and now it is working fine!

So you can apply it in git, it really fix the problem.

Pr2

NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #323 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 11 January 2012 - 21:51

Great news!

I pushed the patch to master branch. For all OSD branch users: Please use patch file. I'm currently developing and I can't apply patch yet in my current version.
It will be done in a few days.
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #324 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 13 January 2012 - 23:33

Hi,

I added some patches to git:
Master branch:
- Resize didn't work properly if only height or width was changed

OSD branch:
- OSD for XSHM driver!
OSD will be scaled (unfortunatley without hardware acceleration. Is there somebody who is MMX specialist??)

With this E2 should work on virtual machines with OSD.
@Buyukbang: Can you please test?

Regards,
Betacentauri
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #325 rijoma

  • Member
  • 6 posts

0
Neutral

Posted 14 January 2012 - 17:29

hello all

i try to compile but give me always this error

CXX ca_connector.o
ca_connector.cpp: In constructor âcaConnector::caConnector()â:
ca_connector.cpp:16: error: ânl_socket_allocâ was not declared in this scope
ca_connector.cpp:17: error: cannot convert ânl_sock*â to ânl_handle*â for argume nt â1â to âint genl_connect(nl_handle*)â
ca_connector.cpp:19: error: cannot convert ânl_sock*â to ânl_handle*â for argume nt â1â to âint genl_ctrl_resolve(nl_handle*, const char*)â
ca_connector.cpp:36: error: cannot convert ânl_sock*â to ânl_handle*â for argume nt â1â to âint nl_send_auto_complete(nl_handle*, nl_msg*)â
ca_connector.cpp:37: error: cannot convert ânl_sock*â to ânl_handle*â for argume nt â1â to âint nl_socket_modify_cb(nl_handle*, nl_cb_type, nl_cb_kind, int (*)(n l_msg*, void*), void*)â
ca_connector.cpp:38: error: cannot convert ânl_sock*â to ânl_handle*â for argume nt â1â to âint nl_recvmsgs_default(nl_handle*)â
ca_connector.cpp:40: error: cannot convert ânl_sock*â to ânl_handle*â for argume nt â1â to âint nl_socket_modify_cb(nl_handle*, nl_cb_type, nl_cb_kind, int (*)(n l_msg*, void*), void*)â
ca_connector.cpp:41: error: ânl_socket_disable_seq_checkâ was not declared in th is scope
ca_connector.cpp: In destructor âvirtual caConnector::~caConnector()â:
ca_connector.cpp:51: error: cannot convert ânl_sock*â to ânl_handle*â for argume nt â1â to âvoid nl_close(nl_handle*)â
ca_connector.cpp:52: error: ânl_socket_freeâ was not declared in this scope
ca_connector.cpp: In member function âvirtual void caConnector::thread()â:
ca_connector.cpp:60: error: cannot convert ânl_sock*â to ânl_handle*â for argume nt â1â to âint nl_recvmsgs_default(nl_handle*)â

thanks already for your help

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #326 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 14 January 2012 - 17:58

@rijoma: Did you execute build_libs.sh?
I think that you need to install this package: libnl2-dev (sudo apt-get install libnl2-dev)
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #327 rijoma

  • Member
  • 6 posts

0
Neutral

Posted 14 January 2012 - 18:03

thanks for the reply

yes i have installed this pakage

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #328 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 14 January 2012 - 18:34

I'm not really good in this...
Perhaps this helps to find the problem:
1. Go to enigma2/lib/dvb/
2. Edit the Makefile (change AM_DEFAULT_VERBOSITY = 0 to AM_DEFAULT_VERBOSITY = 1)
3. execute "make ca_connector.o"

Now I see the whole g++ command. On my system it looks like this:
> make ca_connector.o
g++ -DHAVE_CONFIG_H -I. -I../..  -I../.. -I../../include -include Python.h -include ../../enigma2_config.h -I/usr/include/python2.7  -g -O2 -ggdb3 -Wall -I/usr/local/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/fribidi -I/usr/include/libxml2 -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2   -fno-rtti -fno-exceptions -pthread -MT ca_connector.o -MD -MP -MF .deps/ca_connector.Tpo -c -o ca_connector.o ca_connector.cpp
mv -f .deps/ca_connector.Tpo .deps/ca_connector.Po

Is there any difference to my output?
Do you use ubuntu? Which version?
Can you find the libraries in the system (do "ls /usr/lib/libnl*.so")? Is there also this lib: /usr/lib/libnl-genl.so?

Edited by betacentauri, 14 January 2012 - 18:34.

Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #329 rijoma

  • Member
  • 6 posts

0
Neutral

Posted 14 January 2012 - 18:48

g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -include Python.h -include ../../enigma2_config.h -I/usr/include/python2.6 -g -O2 -ggdb3 -Wall -I/usr/include/freetype2 -I/usr/include/fribidi -I/usr/include/libpng12 -I/usr/include/libxml2 -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -fno-rtti -fno-exceptions -pthread -MT ca_connector.o -MD -MP -MF .deps/ca_connector.Tpo -c -o ca_connector.o ca_connector.cpp
ca_connector.cpp: In constructor ‘caConnector::caConnector()’:
ca_connector.cpp:16: error: ‘nl_socket_alloc’ was not declared in this scope
ca_connector.cpp:17: error: cannot convert ‘nl_sock*’ to ‘nl_handle*’ for argument ‘1’ to ‘int genl_connect(nl_handle*)’
ca_connector.cpp:19: error: cannot convert ‘nl_sock*’ to ‘nl_handle*’ for argument ‘1’ to ‘int genl_ctrl_resolve(nl_handle*, const char*)’
ca_connector.cpp:36: error: cannot convert ‘nl_sock*’ to ‘nl_handle*’ for argument ‘1’ to ‘int nl_send_auto_complete(nl_handle*, nl_msg*)’
ca_connector.cpp:37: error: cannot convert ‘nl_sock*’ to ‘nl_handle*’ for argument ‘1’ to ‘int nl_socket_modify_cb(nl_handle*, nl_cb_type, nl_cb_kind, int (*)(nl_msg*, void*), void*)’
ca_connector.cpp:38: error: cannot convert ‘nl_sock*’ to ‘nl_handle*’ for argument ‘1’ to ‘int nl_recvmsgs_default(nl_handle*)’
ca_connector.cpp:40: error: cannot convert ‘nl_sock*’ to ‘nl_handle*’ for argument ‘1’ to ‘int nl_socket_modify_cb(nl_handle*, nl_cb_type, nl_cb_kind, int (*)(nl_msg*, void*), void*)’
ca_connector.cpp:41: error: ‘nl_socket_disable_seq_check’ was not declared in this scope
ca_connector.cpp: In destructor ‘virtual caConnector::~caConnector()’:
ca_connector.cpp:51: error: cannot convert ‘nl_sock*’ to ‘nl_handle*’ for argument ‘1’ to ‘void nl_close(nl_handle*)’
ca_connector.cpp:52: error: ‘nl_socket_free’ was not declared in this scope
ca_connector.cpp: In member function ‘virtual void caConnector::thread()’:
ca_connector.cpp:60: error: cannot convert ‘nl_sock*’ to ‘nl_handle*’ for argument ‘1’ to ‘int nl_recvmsgs_default(nl_handle*)’
make: ** [ca_connector.o] Erro 1

and for de lib i havethis one
/usr/lib/libnl.so /usr/lib/libnl.so.1 /usr/lib/libnl.so.1.1

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #330 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 14 January 2012 - 18:54

If I do this: ls -la /usr/lib/libnl*.so

I get:
$ ls -la /usr/lib/libnl*.so
lrwxrwxrwx 1 root root 18 2011-05-01 23:16 /usr/lib/libnl-cli.so -> libnl-cli.so.2.0.0
lrwxrwxrwx 1 root root 19 2011-05-01 23:16 /usr/lib/libnl-genl.so -> libnl-genl.so.2.0.0
lrwxrwxrwx 1 root root 17 2011-05-01 23:16 /usr/lib/libnl-nf.so -> libnl-nf.so.2.0.0
lrwxrwxrwx 1 root root 20 2011-05-01 23:16 /usr/lib/libnl-route.so -> libnl-route.so.2.0.0
lrwxrwxrwx 1 root root 14 2011-05-01 23:16 /usr/lib/libnl.so -> libnl.so.2.0.0
If you don't get this, please try to install the missing libs.

Edited by betacentauri, 14 January 2012 - 18:56.

Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #331 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 14 January 2012 - 18:56

And please also install libnl2
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #332 rijoma

  • Member
  • 6 posts

0
Neutral

Posted 14 January 2012 - 19:12

i am using ubuntu 10.04 and have only this


i try to apt-get install libnl2 and dont have

ilrwxrwxrwx 1 root root 10 2012-01-14 16:17 /usr/lib/libnl.so -> libnl.so.1
lrwxrwxrwx 1 root root 12 2012-01-14 14:24 /usr/lib/libnl.so.1 -> libnl.so.1

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #333 buyukbang

  • Senior Member
  • 185 posts

+11
Neutral

Posted 14 January 2012 - 19:35

@betacentauri,

I tested new OSD branch. Compiled flawlessly. I can confirm OSD with XSHM works !!!! Excellent work. Thanks for your precious efforts.

Regards...

It all started with a BigBang...


http://buyukbang.blogspot.com


Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #334 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 14 January 2012 - 19:44

i am using ubuntu 10.04 and have only this


i try to apt-get install libnl2 and dont have

ilrwxrwxrwx 1 root root 10 2012-01-14 16:17 /usr/lib/libnl.so -> libnl.so.1
lrwxrwxrwx 1 root root 12 2012-01-14 14:24 /usr/lib/libnl.so.1 -> libnl.so.1


Quite difficult. It seems that libnl2 is not in the normal 10.04 repositories.
Here is a link to a "untrusted" version:
https://launchpad.ne...es_filter=lucid
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #335 rijoma

  • Member
  • 6 posts

0
Neutral

Posted 14 January 2012 - 19:47

ok i have compile but now it crash at start

couldn't save lame channel db

thanks for you help

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #336 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 14 January 2012 - 19:48

@betacentauri,

I tested new OSD branch. Compiled flawlessly. I can confirm OSD with XSHM works !!!! Excellent work. Thanks for your precious efforts.

Regards...


Thanks!
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #337 Pr2

  • PLi® Contributor
  • 6,181 posts

+261
Excellent

Posted 14 January 2012 - 23:17

@rijoma,

You need to launch enigma with sudo command.

cd /usr/local/e2/bin
sudo ./enigma2

Pr2

NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #338 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 16 January 2012 - 22:30

But I point out something else, it seems that the build from libbluray.git doesn't work in the script: build_libs.sh (you seems to select a specific version which is no longer available). Doing all the commands manually from main branch is working.


The command was totally wrong. "git clone" was missing. I have changed that in git repository.
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #339 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 16 January 2012 - 22:46

OSD will be scaled (unfortunatley without hardware acceleration. Is there somebody who is MMX specialist??)


Nobody cried here, so I have implemented MMX support for OSD scaling :)
Never worked with MMX or assembler before. It wasn't so difficult as I thought before...

If CPU supports MMX it will be used. MMX osd scaling is around 50-70% faster than normal scaling on my system.
And the results should be better (better rounding).... but I cannot see a difference.
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #340 buyukbang

  • Senior Member
  • 185 posts

+11
Neutral

Posted 17 January 2012 - 00:15

Mate, you and nobody9 made fantastic things in this PLi to PC porting project. Appriciate that (again :D )


OSD will be scaled (unfortunatley without hardware acceleration. Is there somebody who is MMX specialist??)


Nobody cried here, so I have implemented MMX support for OSD scaling :)
Never worked with MMX or assembler before. It wasn't so difficult as I thought before...

If CPU supports MMX it will be used. MMX osd scaling is around 50-70% faster than normal scaling on my system.
And the results should be better (better rounding).... but I cannot see a difference.


It all started with a BigBang...


http://buyukbang.blogspot.com



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users