Jump to content


Photo

file .so for enigam2


  • Please log in to reply
64 replies to this topic

Re: file .so for enigam2 #21 hacksat

  • Senior Member
  • 57 posts

0
Neutral

Posted 12 October 2017 - 10:49

I did not understand excuse me, I can not learn to compile and then put it into practice enigma2 box! can you give me info on how to do the cross-compiler please?

Re: file .so for enigam2 #22 WanWizard

  • PLi® Core member
  • 68,598 posts

+1,739
Excellent

Posted 12 October 2017 - 11:08

Quite a few users have used this as a guideline: http://users.telenet...npliubuntu.html.

 

I can add that we build on Ubuntu-16-04, so it is not a problem to use that as a basis. I build on Fedora 26, and that builds OpenPLi develop without problems too.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: file .so for enigam2 #23 hacksat

  • Senior Member
  • 57 posts

0
Neutral

Posted 12 October 2017 - 13:28

Hello, thanks for the answer,
but there is no way to do it on PC with Ubunutu, after I did the conversion with cython -a file.py compile directly from PC for sh4 and mipsel architecture?


Re: file .so for enigam2 #24 WanWizard

  • PLi® Core member
  • 68,598 posts

+1,739
Excellent

Posted 12 October 2017 - 13:52

What do you mean with "there is no way"? We cross-compile all images on x86-64 machines (PC's) with Ubuntu 16-04.

 

Obviously, if you add c or cpp files, you need to put them in the correct place, create build recipes for them, make sure they have the connect code to be able to interact with the rest. If you think that simply generating some C code from Python code would be sufficient, I'm afraid you're in for a suprise...


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: file .so for enigam2 #25 mirakels

  • Forum Moderator
    PLi® Core member
  • 7,599 posts

+62
Good

Posted 12 October 2017 - 14:40

come on, if you do n ot understand this whayare you droawning yourself into this deep water then. 

To accomplish what you wnat to learn you do not need an enigma2 box. again, just do it on your local PC.


Geen wonder... Had slechts een dm7000, maar wel ook een rotor. eigenlijk al een tijdje ook een dm600 en dm7025. Maar nu kijkend met een et9000 en vuduo

Re: file .so for enigam2 #26 hacksat

  • Senior Member
  • 57 posts

0
Neutral

Posted 12 October 2017 - 15:01

in fact as already said I created a file.so from a normal python converted to C with cython but the result was negative because enigma2 replied "can not open the file.so"

i did with my pc local with ubuntu 16.04 version!



Re: file .so for enigam2 #27 WanWizard

  • PLi® Core member
  • 68,598 posts

+1,739
Excellent

Posted 12 October 2017 - 15:18

As said, you can't just make a binary and hope Enigma is wise enough to know how to handle it.

 

If you want a plugin written in C, you have to write one, and you have to rewrite enigma's plugin API to accomodate C plugins.

 

I think it's pretty naive to just use some automated code converter and expect things "just to work".


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: file .so for enigam2 #28 hacksat

  • Senior Member
  • 57 posts

0
Neutral

Posted 12 October 2017 - 15:37

so i'm wrong to convert .py to .c to create a file.so with cross-compiler executable on eniga2, as i'm not expert i just want to figure out how to do it



Re: file .so for enigam2 #29 dhwz

  • Senior Member
  • 227 posts

+20
Neutral

Posted 12 October 2017 - 15:56

Learn how to write native C Enigma2 API plugins, else just forget it.
You can't convert .py to C, you need to write the whole plugin in C then.

Re: file .so for enigam2 #30 WanWizard

  • PLi® Core member
  • 68,598 posts

+1,739
Excellent

Posted 12 October 2017 - 15:57

I am pretty sure that will not work. If only because any plugin file will import lots of other python files, which will not work from C code. You also need to interface with Enigma, as the python bindings are useless for code code. And I could go on for a while.

 

Beyond something like "Hello World", automatic source conversion is virtually useless. It will only give you a basic start for your manual conversion and integration.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: file .so for enigam2 #31 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 12 October 2017 - 16:47

Simply you can convert py module to ,so by nuitka https://github.com/kayhayen/Nuitka
I did it by myself but you have to cross compile for mipsel to run with enigma.
Typically py file to be converted should be small and nearly empty from imorting external python libraries

Edited by mfaraj57, 12 October 2017 - 16:50.


Re: file .so for enigam2 #32 hacksat

  • Senior Member
  • 57 posts

0
Neutral

Posted 12 October 2017 - 19:01

so there is someone in the forum that I can teach or say how to do the file.so?
I'm doing research on searches, but I still could not run the file.so in box enigma2!


Re: file .so for enigam2 #33 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 12 October 2017 - 19:46

You can make so file from py in linux machine and you can make dll from py in windows pc but both will not run outside these platforms.

Re: file .so for enigam2 #34 hacksat

  • Senior Member
  • 57 posts

0
Neutral

Posted 12 October 2017 - 20:01

did you file.so that works on enigam2?



Re: file .so for enigam2 #35 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 12 October 2017 - 21:07

Once again build an image for your box (see description above). With it you have build a cross compiler. Then try to understand how bitbake receipts work and create an own receipt or adapt one.

Edited by betacentauri, 12 October 2017 - 21:08.

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

Re: file .so for enigam2 #36 hacksat

  • Senior Member
  • 57 posts

0
Neutral

Posted 12 October 2017 - 21:40

I'm trying to figure it out but with all these information injections I'm confusing a lot, is there no more basic element for those like me who want to understand but do not know how to do it? =)



Re: file .so for enigam2 #37 Persian Prince

  • Senior Member
  • 1,982 posts

+247
Excellent

Posted 13 October 2017 - 06:46

No offense but spending more time on your English would be better :)

Open Vision sources: https://github.com/OpenVisionE2


Re: file .so for enigam2 #38 hacksat

  • Senior Member
  • 57 posts

0
Neutral

Posted 13 October 2017 - 09:43

hello, I'm not offending but Google Translator could :)

Re: file .so for enigam2 #39 Erik Slagter

  • PLi® Core member
  • 46,960 posts

+541
Excellent

Posted 13 October 2017 - 11:11

You keep asking how to turn lead into gold.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: file .so for enigam2 #40 hacksat

  • Senior Member
  • 57 posts

0
Neutral

Posted 13 October 2017 - 22:26

but you can do a file.so? if so how?


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users