Giter Site home page Giter Site logo

kivy / kivy-berkelium Goto Github PK

View Code? Open in Web Editor NEW
25.0 5.0 8.0 251 KB

Berkelium extension for Kivy - DEPRECATED, use https://github.com/kivy-garden/garden.cefpython instead.

License: BSD 3-Clause "New" or "Revised" License

Python 84.63% C 15.37%

kivy-berkelium's Introduction

Berkelium extension for Kivy

Berkelium is a BSD licensed library for offscreen rendering via Chromium project. Check http://berkelium.org/ for more information about it. We are using a patched version of Berkelium, available at https://github.com/tito/berkelium (branch chromium8-alternate-bin)

Notes

  • This extension require Kivy 1.0.7 minimum !
  • This extension is under development. It's currently working and tested only for Linux 64 bits.
  • MacOSX can't be supported at the moment, since Kivy require Python 64bits, and Chromium can't be built under 64bits on MacOSX.

How to install

  1. Download .kex https://github.com/kivy/kivy-berkelium/archives/master
  2. Copy the .kex to ~/.kivy/extensions

How to test

  1. Download https://github.com/kivy/kivy-berkelium/raw/master/demo/main.py
  2. Run with "python main.py"

How to recompile

Note

This method have been tested only on Linux (Ubuntu 11.10 and 12.04) 64bits.

  1. sudo apt-get install binutils-gold chrpath git-core cython python-dev
  2. git clone git://github.com/sirikata/berkelium
  3. cd berkelium
  4. git checkout chromium11
  5. util/build-chromium.sh --deps --force
  6. cmake . -DCMAKE_BUILD_TYPE=Release
  7. git submodule update --init --recursive
  8. make
  9. git clone git://github.com/kivy/kivy-berkelium
  10. cd kivy-berkelium
  11. make
  12. mv dist/berkelium-1.3.linux-x86_64.zip dist/berkelium-1.3.linux-x86_64.kex

And you can copy the berkelium-1.3.linux-x86_64.kex into your ~/.kivy/extensions

kivy-berkelium's People

Contributors

akshayaurora avatar kubami avatar tito avatar tshirtman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

kivy-berkelium's Issues

Alignment problem

Berkelium renders from the start of the screen and not from the column it is in, when not in first column of a layout, even the input seems a bit off as one has to click on the right of the actual link/button to register a input.

changing line 353: in 'init.py' in the extensions dir to
self._g_rect = Rectangle(texture=self._bk.texture, pos=self.pos, size=self.size ) # pos=self.pos

and adding the following line in on_size in init.py after line no 376: self._g_rect.texture = self._bk.texture

377: self._g_rect.pos = self.pos #_____addition

seems to fix this.

new tabs

are there some way add tabs o new windows ?

32 Bit Makefile

Hello !

I am working on getting kivy-berkelium running on Ubuntu 11.10 32Bit.
I've got berkelium already running which was a very very long process of research and fixing :|

Now I am at trying to compile the kivy extension - everything works well until it comes
to the the "Patches data" part.

~/Desktop/berkelium/kivy-berkelium$ make# Create data dir
rm -rf berkelium/data
mkdir berkelium/data
# Copy needed data
cp ../berkelium ../liblibberkelium.so ../resources.pak ../chrome.pak berkelium/data
cp -r ../locales berkelium/data
cp ../build/chromium/src/out/Release/libffmpegsumo.so berkelium/data
# Patches data
chrpath -r '$ORIGIN' berkelium/data/berkelium berkelium/data/liblibberkelium.so
berkelium/data/berkelium: RPATH=/home/touchlaydev/Desktop/berkelium
berkelium/data/berkelium: new RPATH: $ORIGIN
berkelium/data/liblibberkelium.so: no rpath or runpath tag found.
make: *** [copy] Error 2

What is that "Patches data" part even doing ?

I have managed to fix that problem by using an older Berkelium version.
But I do still get an error with the _berkelium.cpp file becouse a "initEx"
function isn't existing ...
http://pastebin.com/6nTBXtnB

I have looked into the Berkelium.hpp where that function should be
contained - there isn't such function.

Hope someone can help me with that :)

Thanks in advance
Georgs

libstdc++ requirement unmet

berkelium extension requires libbz2.so.1.0 and mandriva 2010.2 has only libbz2.so.1 and libbz2.so.1.0.0
symlinking works here , but

Mandriva 2010.2 only has libstdc++6 compiled with 4.4.3 and libstdc+5+ compiled with 3.3.6
and berklium is complaining for libstdc++.so.6: version `GLIBCXX_3.4.14'

here is the output of the console:

(master)]$ python main.py
[INFO ] Kivy v1.0.7-dev
[INFO ] [Logger ] Record log in /home/qua-non/.kivy/logs/kivy_11-05-27_5.txt
[DEBUG ] [Cache ] register <kv.texture> with limit=1000, timeout=60s
[INFO ] [Factory ] 92 symbols loaded
[DEBUG ] Searching for new extension in ['/usr/lib64/python2.6/site-packages/kivy/extensions', '/home/qua-non/.kivy/extensions']
[DEBUG ] [Extension found for 'berkelium']
None
/home/qua-non/.kivy/extensions/berkelium_1.0/berkelium
('', '', 5)
[CRITICAL] Unable to load berkelium extension.
[CRITICAL] Ensure that you have the good version for your platform
Traceback (most recent call last):
File "main.py", line 7, in
berkelium = load('berkelium', (1, 0))
File "/usr/lib64/python2.6/site-packages/kivy/ext/init.py", line 142, in load
mod = imp.load_module(extname, file, pathname, desc)
File "/home/qua-non/.kivy/extensions/berkelium_1.0/berkelium/init.py", line 47, in
import _berkelium as berkelium
ImportError: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by /home/qua-non/.kivy/extensions/berkelium_1.0/berkelium/data/liblibberkelium.so)

ImportError: No extension found that satisfies your criteria: ('berkelium', (1, 1))

Hello,

I would like to report an issue when i run the test file on the git.
When i run the main.py i get this error :


Traceback (most recent call last):
   File "main.py", line 14, in 
     berkelium = load('berkelium', (1, 1))
   File "/usr/local/lib/python2.7/dist-packages/Kivy-1.8.0_dev-py2.7-linux-x86_64.egg/kivy/ext/__init__.py", line 134, in load
     "('%s', %s)" % (extname, version))
 ImportError: No extension found that satisfies your criteria: ('berkelium', (1, 1))

Ubuntu 13.04 64 bits.

Thanks in advance,
Alex.

text input using system keyboard works except for '.'

on text filed in berkelium browser widget all text inout seem to work excetp '.'
I've checked on_window_keyboard function inWebbrowser class of extensions init.py file. value of key = 44, both key event and text event are called but does not enter it in teh text field.

makes it impossible to enter email address

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.