maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [SFOS] Preenv (https://talk.maemo.org/showthread.php?t=95480)

m4r0v3r 2015-05-11 11:41

Preenv
 
So am trying to build the latest preenv for Jolla, and I've hit a few walls but were still okay. Am just wondering would it actually work? would wayland be a show stopper? its currently complaining about no SDL so yeah. also I had ffmpeg not build because of some ARM issue.

so to summerise would wayland ruin everything?

hmm SDL2 is in the repos, but no mention of 1.2

HtheB 2015-05-11 13:20

Re: Preenv
 
Why would you actually build preenv if aliendalvik is already available? :p

princefakhan 2015-05-11 15:37

Re: Preenv
 
Quote:

Originally Posted by HtheB (Post 1469969)
Why would you actually build preenv if aliendalvik is already available? :p

Because, preenv is a compatibility layer for webOS apps and not Android, I guess.

m4r0v3r 2015-05-11 16:57

Re: Preenv
 
cause of nexus 5

m4r0v3r 2015-05-11 17:35

Re: Preenv
 
sdl-config is missing bleurgh time to find a fix, maybe even build sdl 1.2

vistaus 2015-05-11 17:36

Re: Preenv
 
Please, if you get to compile it, publish it on OpenRepos.net 'cause I need me some webOS apps :) (I'm a former webOS user!)

MINKIN2 2015-05-11 18:04

Re: Preenv
 
I have to ask, what apps (outside of games) did preenv run?

I still use my touchpad so interested to know. Thanks

HtheB 2015-05-11 18:36

Re: Preenv
 
Quote:

Originally Posted by princefakhan (Post 1469992)
Because, preenv is a compatibility layer for webOS apps and not Android, I guess.

Ah, I was confusing it with apkenv.
I also would like to know, which exclusive WebOS apps are executable with preenv.

myname24 2015-05-11 19:11

Re: Preenv
 
iirc preenv was only working for games not apps

m4r0v3r 2015-05-11 19:15

Re: Preenv
 
i just wanted to play monopoly, still no luck. I've got an exam on thursday and I'll just setup the SDK rather than keep compiling on the phone.

ive a feeling a lot of it is tied in to X11,

m4r0v3r 2015-05-11 19:46

Re: Preenv
 
this is a http to the links needed by the build

http://sources.webos-internals.org/w...s/webos-3.0.5/

also this is the error I get when attempting to build ffmpeg


Quote:

libavcodec/arm/jrevdct_arm.S:64: Error: ARM register expected -- `str r0,[ sp ]'
libavcodec/arm/jrevdct_arm.S:214: Error: ARM register expected -- `ldr lr,[ sp ]'
make[1]: *** [libavcodec/arm/jrevdct_arm.o] Error 1
skipping that, libsdl-mixer starts building now since ive added SDL_CONFIG into the path folder, this error occurs

Quote:

music_ffm.c: In function 'Plugin_delete':
music_ffm.c:329:10: warning: implicit declaration of function 'av_close_input_file' [-Wimplicit-function-declaration]
make[2]: *** [build/music_ffm.lo] Error 1

HtheB 2015-05-11 19:53

Re: Preenv
 
some sort of java error?

btw: what about Monopoly for android?

m4r0v3r 2015-05-11 19:54

Re: Preenv
 
Quote:

Originally Posted by HtheB (Post 1470034)
some sort of java error?

btw: what about Monopoly for android?

am using a nexus 5, so no alien dalvik

m4r0v3r 2015-05-11 20:01

Re: Preenv
 
if i try to compile libsdlpre these lovely errors occur

Quote:

[nemo@Jolla preenv-preenv]$ cd libsdlpre
[nemo@Jolla libsdlpre]$ make
make: sdl-config: Command not found
make: sdl-config: Command not found
Package libosso was not found in the pkg-config search path.
Perhaps you should add the directory containing `libosso.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libosso' found
Package libhildonmime was not found in the pkg-config search path.
Perhaps you should add the directory containing `libhildonmime.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libhildonmime' found
Package liblocation was not found in the pkg-config search path.
Perhaps you should add the directory containing `liblocation.pc'
to the PKG_CONFIG_PATH environment variable
No package 'liblocation' found
Package gstreamer-plugins-base-0.10 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gstreamer-plugins-base-0.10.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gstreamer-plugins-base-0.10' found
Package gstreamer-interfaces-0.10 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gstreamer-interfaces-0.10.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gstreamer-interfaces-0.10' found
Package x11 was not found in the pkg-config search path.
Perhaps you should add the directory containing `x11.pc'
to the PKG_CONFIG_PATH environment variable
No package 'x11' found
Package mce was not found in the pkg-config search path.
Perhaps you should add the directory containing `mce.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mce' found
Package libosso was not found in the pkg-config search path.
Perhaps you should add the directory containing `libosso.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libosso' found
Package libhildonmime was not found in the pkg-config search path.
Perhaps you should add the directory containing `libhildonmime.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libhildonmime' found
Package liblocation was not found in the pkg-config search path.
Perhaps you should add the directory containing `liblocation.pc'
to the PKG_CONFIG_PATH environment variable
No package 'liblocation' found
Package gstreamer-plugins-base-0.10 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gstreamer-plugins-base-0.10.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gstreamer-plugins-base-0.10' found
Package gstreamer-interfaces-0.10 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gstreamer-interfaces-0.10.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gstreamer-interfaces-0.10' found
Package x11 was not found in the pkg-config search path.
Perhaps you should add the directory containing `x11.pc'
to the PKG_CONFIG_PATH environment variable
No package 'x11' found
Package mce was not found in the pkg-config search path.
Perhaps you should add the directory containing `mce.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mce' found
cc -fPIC -DPIC -Os -g -Wall -I. -o private.o -c private.c
private.c:1:17: fatal error: SDL.h: No such file or directory
compilation terminated.
make: *** [private.o] Error 1

szopin 2015-05-11 20:01

Re: Preenv
 
Quote:

Originally Posted by m4r0v3r (Post 1469959)
so to summerise would wayland ruin everything?

hmm SDL2 is in the repos, but no mention of 1.2

Yup, SDL 2.0 supports wayland, 1.2 would need a lot of work, maybe through Xwayland you could get around that, but this currently has no working touch support

m4r0v3r 2015-05-11 20:02

Re: Preenv
 
Quote:

Originally Posted by szopin (Post 1470038)
Yup, SDL 2.0 supports wayland, 1.2 would need a lot of work, maybe through Xwayland you could get around that, but this currently has no working touch support

so realistically for a noob who can code basic programs fresh outta uni its a lotta work just to play monopoly on the bus.

szopin 2015-05-11 20:11

Re: Preenv
 
Quote:

Originally Posted by m4r0v3r (Post 1470039)
so realistically for a noob who can code basic programs fresh outta uni its a lotta work just to play monopoly on the bus.

If you get SDL 1.2 running with wayland everyone will be really grateful, but it's been 1.5 years and xwayland on jolla is still not here, maybe tablet will speed this up as then main argument of people against X will go away (the second argument, after performance). Good luck, we're all counting on you!

javispedro 2015-05-11 20:19

Re: Preenv
 
if you are interested, the way I'd approach this is by rewriting it on top of the SDL2 port, which already has many of the hacks which I put in libsdlpre.

But it still has a shitton of Maemo-specific features on it. It's going to look more like a rewrite and less as a "port".

Quote:

Portability is for people who cannot write new programs.
;)

m4r0v3r 2015-05-11 20:40

Re: Preenv
 
ill have to take a look after thursday then, my C isn't up to scratch

HtheB 2015-05-11 20:47

Re: Preenv
 
Quote:

Originally Posted by m4r0v3r (Post 1470035)
am using a nexus 5, so no alien dalvik

You got the REAL Android......
But why not dualboot it if you also want to use Sailfish OS on it?
If you don't want to use Google stuff, just use Cyanogenmod without any Google Apps on it.

It's a workaround, but it's at least some solution that could help :)

m4r0v3r 2015-05-11 20:53

Re: Preenv
 
Quote:

Originally Posted by HtheB (Post 1470053)
You got the REAL Android......
But why not dualboot it if you also want to use Sailfish OS on it?
If you don't want to use Google stuff, just use Cyanogenmod without any Google Apps on it.

It's a workaround, but it's at least some solution that could help :)

because I dont like android. the entire system is boring. i like the swipe gestures on Jolla but unfortunately the device is a little bit under-powered

plus thanks to webpirate i can leave youtube videos in the background and listen to music. I dont want to duel boot because reboot to use a single app seems inefficient somehow.

HtheB 2015-05-11 20:56

Re: Preenv
 
Quote:

Originally Posted by m4r0v3r (Post 1470056)
because I dont like android. the entire system is boring. i like the swipe gestures on Jolla but unfortunately the device is a little bit under-powered

plus thanks to webpirate i can leave youtube videos in the background and listen to music. I dont want to duel boot because reboot to use a single app seems inefficient somehow.

There are MANY apps that lets you listen to YouTube on the background. For example LLS Player for Sailfish OS, or BS Player and MX Player for Android (works also for Sailfish OS!)

Well, it's better then moNOpoly at all :p (see what I did there? :D )

m4r0v3r 2015-05-11 22:13

Re: Preenv
 
i suppose its just a matter of preference, i simply dont like Android as an OS. hell if i was on android i doubt i would of had an easy time simply compiling on device. who knows maybe they have make.

and i sippose that's more important to me than one game lol still seems like itd be fun to take a lool at the code

Hariainm 2015-05-11 23:56

Re: Preenv
 
Quote:

Originally Posted by vistaus (Post 1470018)
Please, if you get to compile it, publish it on OpenRepos.net 'cause I need me some webOS apps :) (I'm a former webOS user!)

As stated a million of times before preenv DOES NOT run apps

javispedro 2015-05-13 14:06

Re: Preenv
 
What's funny is that webOS apps would probably be easier to run than games...

EDIT: Elaborating a bit: They're HTML + JavaScript. I don't know the current legal status of Mojo (the original webOS UI framework), but you could probably copy it "as-is" from a real webOS device, write some Javascript stubs, put them on a qtwebkit view, and .. voilą! you have most webOS applications working...

I just centered on games because until a week ago I didn't know much "javascript based UI development"...

marmistrz 2015-05-19 07:16

Re: Preenv
 
Quote:

Originally Posted by myname24 (Post 1470030)
iirc preenv was only working for games not apps

See prewebenv. It was a try to run webOS apps. Many of them worked, but the project died a natural death :)


All times are GMT. The time now is 23:53.

vBulletin® Version 3.8.8