Active Topics

 


Reply
Thread Tools
Posts: 1,293 | Thanked: 4,319 times | Joined on Oct 2014
#51
Originally Posted by matemana View Post
You should search for this same libs as in the sh file. For example egl.cfg is in /system/lib/egl folder in CM11 but as you see it's in /vendor/lib/egl/ folder in CM12. It should be in the same place if you use CM12.
You will find the changes here, note that its almost the same, except, cameri lib and a missing libplayback_adreno.so

These changes, however, does not work as-is

Code:
#!/bin/bash
# Copyright 2013-2016 Myriad Group AG. All Rights Reserved.

####### 3D needs #########
EXTRA_FILES_3D="
  vendor/lib/egl/egl.cfg
  vendor/lib/egl/eglsubAndroid.so
  vendor/lib/egl/libEGL_adreno.so
  vendor/lib/egl/libGLESv1_CM_adreno.so
  vendor/lib/egl/libGLESv2_adreno.so
## MISSING  vendor/lib/egl/libplayback_adreno.so
  vendor/lib/egl/libq3dtools_adreno.so
  lib/hw/gralloc.msm8974.so
  vendor/lib/libadreno_utils.so
  vendor/lib/libgsl.so
  lib/libmemalloc.so
  lib/libqdutils.so
  "

####### CAMERA needs #########
EXTRA_FILES_CAMERA="
  lib/hw/camera.msm8974.so
  "

####### HW CODECS needs #########
EXTRA_FILES_HWCODEC="
  etc/media_codecs.xml
  etc/media_profiles.xml
  etc/media_codecs_google_audio.xml
  etc/media_codecs_google_telephony.xml
  etc/media_codecs_google_video.xml
  "

####### LINKING LOOP #########
NEEDED_EXTRA_FILES="
  $EXTRA_FILES_3D
  $EXTRA_FILES_CAMERA
  $EXTRA_FILES_HWCODEC
  "

for x in $NEEDED_EXTRA_FILES; do
  target=/system_jolla/$x
  link=$ANDROID_ROOT/${x/.msm8974./.default.}
  ln -sf $target $link
done

ln -sf /system_jolla/lib/hw/camera.msm8974.so /system/lib/hw/camera.default.so

# For camera socket
mkdir -p /data/misc
ln -s /data_jolla/misc/camera /data/misc/camera
 

The Following User Says Thank You to nieldk For This Useful Post:
Posts: 43 | Thanked: 32 times | Joined on Jan 2015
#52
i just modified the sh file

here it is -

Code:
#!/bin/bash
# Copyright 2013-2016 Myriad Group AG. All Rights Reserved.

####### 3D needs #########
EXTRA_FILES_3D="
  vendor/lib/egl/egl.cfg
  vendor/lib/egl/eglsubAndroid.so
  vendor/lib/egl/libEGL_adreno.so
  vendor/lib/egl/libGLESv1_CM_adreno.so
  vendor/lib/egl/libGLESv2_adreno.so
  vendor/lib/egl/libplayback_adreno.so
  vendor/lib/egl/libq3dtools_adreno.so
  vendor/lib/hw/gralloc.msm8974.so
  vendor/lib/libadreno_utils.so
  vendor/lib/libgsl.so
  vendor/lib/libmemalloc.so
  vendor/lib/libqdutils.so
  "

####### CAMERA needs #########
EXTRA_FILES_CAMERA="
  lib/hw/camera.onyx.so
  "

####### HW CODECS needs #########
EXTRA_FILES_HWCODEC="
  etc/media_codecs.xml
  etc/media_profiles.xml
  etc/media_codecs_google_audio.xml
  etc/media_codecs_google_telephony.xml
  etc/media_codecs_google_video.xml
  "

####### LINKING LOOP #########
NEEDED_EXTRA_FILES="
  $EXTRA_FILES_3D
  $EXTRA_FILES_CAMERA
  $EXTRA_FILES_HWCODEC
  "

for x in $NEEDED_EXTRA_FILES; do
  target=/system_jolla/$x
  link=$ANDROID_ROOT/${x/.msm8974./.default.}
  ln -sf $target $link
done

ln -sf /system_jolla/lib/hw/camera.onyx.so /system/lib/hw/camera.default.so

# For camera socket
mkdir -p /data/misc
ln -s /data_jolla/misc/camera /data/misc/camera

oh and btw i get an error when i run chmod-x command
it says no directory
 

The Following User Says Thank You to karan5chaos For This Useful Post:
Posts: 738 | Thanked: 819 times | Joined on Jan 2012 @ Berlin
#53
how do you create the egl.cnf file under /vendor/lib/egl ? with root it tells me that i cant save it becaus read-only-filesystem
__________________
www.sailfishmods.de
 

The Following User Says Thank You to cvp For This Useful Post:
Posts: 1,293 | Thanked: 4,319 times | Joined on Oct 2014
#54
Originally Posted by cvp View Post
how do you create the egl.cnf file under /vendor/lib/egl ? with root it tells me that i cant save it becaus read-only-filesystem

Mount system RW: mount -o rw,remount,rw /system
Mount system RO: mount -o ro,remount,ro /system
 

The Following User Says Thank You to nieldk For This Useful Post:
Posts: 1,293 | Thanked: 4,319 times | Joined on Oct 2014
#55
Originally Posted by karan5chaos View Post
oh and btw i get an error when i run chmod-x command
it says no directory
Code:
chmod +x /opt/alien/system/script/platform_extraenvsetup.sh
(there were a space between + and x in original post)
 
Posts: 1,293 | Thanked: 4,319 times | Joined on Oct 2014
#56
Originally Posted by karan5chaos View Post
i just modified the sh file

here it is -

Code:
#!/bin/bash
# Copyright 2013-2016 Myriad Group AG. All Rights Reserved.

####### 3D needs #########
EXTRA_FILES_3D="
  vendor/lib/egl/egl.cfg
  vendor/lib/egl/eglsubAndroid.so
  vendor/lib/egl/libEGL_adreno.so
  vendor/lib/egl/libGLESv1_CM_adreno.so
  vendor/lib/egl/libGLESv2_adreno.so
  vendor/lib/egl/libplayback_adreno.so
  vendor/lib/egl/libq3dtools_adreno.so
  vendor/lib/hw/gralloc.msm8974.so
  vendor/lib/libadreno_utils.so
  vendor/lib/libgsl.so
  vendor/lib/libmemalloc.so
  vendor/lib/libqdutils.so
  "

####### CAMERA needs #########
EXTRA_FILES_CAMERA="
  lib/hw/camera.onyx.so
  "

####### HW CODECS needs #########
EXTRA_FILES_HWCODEC="
  etc/media_codecs.xml
  etc/media_profiles.xml
  etc/media_codecs_google_audio.xml
  etc/media_codecs_google_telephony.xml
  etc/media_codecs_google_video.xml
  "

####### LINKING LOOP #########
NEEDED_EXTRA_FILES="
  $EXTRA_FILES_3D
  $EXTRA_FILES_CAMERA
  $EXTRA_FILES_HWCODEC
  "

for x in $NEEDED_EXTRA_FILES; do
  target=/system_jolla/$x
  link=$ANDROID_ROOT/${x/.msm8974./.default.}
  ln -sf $target $link
done

ln -sf /system_jolla/lib/hw/camera.onyx.so /system/lib/hw/camera.default.so

# For camera socket
mkdir -p /data/misc
ln -s /data_jolla/misc/camera /data/misc/camera

oh and btw i get an error when i run chmod-x command
it says no directory
That script wont work for a couple of reasons,
there is no camera.onyx.so
and there is no libplayback_adreno.so
 
Posts: 43 | Thanked: 32 times | Joined on Jan 2015
#57
Originally Posted by nieldk View Post
That script wont work for a couple of reasons,
there is no camera.onyx.so
and there is no libplayback_adreno.so
so how should i determine where are the missing files ?
I mean i cannot see them in the cm zip. looks like they are all packed under .dat file.
any suggestions for this ? i found and verified rest of the files though.
 
Posts: 1,293 | Thanked: 4,319 times | Joined on Oct 2014
#58
Originally Posted by karan5chaos View Post
so how should i determine where are the missing files ?
I mean i cannot see them in the cm zip. looks like they are all packed under .dat file.
any suggestions for this ? i found and verified rest of the files though.
look at my sh file
 
Posts: 738 | Thanked: 819 times | Joined on Jan 2012 @ Berlin
#59
nieldk+mo107
thanks a lot, i forget it ^^


Originally Posted by nieldk View Post
That script wont work for a couple of reasons,
there is no camera.onyx.so
and there is no libplayback_adreno.so
but camera.msm8974.so exiting
__________________
www.sailfishmods.de
 
Posts: 43 | Thanked: 32 times | Joined on Jan 2015
#60
Originally Posted by nieldk View Post
look at my sh file
so i was able to locate the cameralib but libplayback was not found.
 
Reply


 
Forum Jump


All times are GMT. The time now is 15:55.