Re: [E-devel] E SVN: caro trunk/edje/src/lib
On Tue, Nov 3, 2009 at 7:26 AM, Enlightenment SVN wrote: > Log: > * rename _edje_strbuf_append to _edje_strbuf_append1 and > _edje_strbuf_append2 in edje_util.c and edje_textblock_styles.c > respectiveley (for amalgamation. See next commit) well, I really think strbuf should be in eina, this would remove similar code from edje, evas and others... but since we don't have it, why not move it to a common "edje_strbuf.x" and include it in both, doing a single include in amalgamation? -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: caro trunk/edje/src/lib
On Tue, 3 Nov 2009, Gustavo Sverzut Barbieri wrote: On Tue, Nov 3, 2009 at 7:26 AM, Enlightenment SVN wrote: Log: * rename _edje_strbuf_append to _edje_strbuf_append1 and _edje_strbuf_append2 in edje_util.c and edje_textblock_styles.c respectiveley (for amalgamation. See next commit) well, I really think strbuf should be in eina, this would remove similar code from edje, evas and others... but since we don't have it, why not move it to a common "edje_strbuf.x" and include it in both, doing a single include in amalgamation? because i don't know edje code (well, just a bit). And iirc, we should clean up its code anyway, right ? Vincent-- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] Python bindings
Hello, I have been trying and finally succeeded in building the python bindings ( in directory ./BINDINGS/python). However, there were issues. Keep in mind, however, i am not that great with python, ie haven't used it very much :) Any help/information appreciated :) 1. Even when the environment exports PKG_CONFIG_PATH (/opt/e17/lib/pkgconfig in my case), the setup.py in each directory cannot find the .pc files. So i made a hack, which i know is not python correct and static. ** For each python-*/setup.py diff --git a/BINDINGS/python/python-e_dbus/setup.py b/BINDINGS/python/python-e_dbus/setup.py index a26db9b..33d1b95 100644 --- a/BINDINGS/python/python-e_dbus/setup.py +++ b/BINDINGS/python/python-e_dbus/setup.py @@ -10,7 +10,7 @@ import shlex def getstatusoutput(cmdline): cmd = shlex.split(cmdline) -p = subprocess.Popen(cmd, stdout=subprocess.PIPE) +p = subprocess.Popen(cmd, stdout=subprocess.PIPE, env={"PKG_CONFIG_PATH":"/opt/e17/lib/pkgconfig"}) out, err = p.communicate() return p.returncode, out 2. After getting the correct PKG_CONFIG stuff, then the following leads to the following error, Checking .pth file support in /usr/local/lib/python2.6/site-packages /usr/bin/python -E -c pass TEST FAILED: /usr/local/lib/python2.6/site-packages does NOT support .pth files error: bad install directory or PYTHONPATH So another hack, which bypasses the sub directories' build.sh script. diff --git a/BINDINGS/python/build-all.sh b/BINDINGS/python/build-all.sh index d61707e..5e6902e 100755 --- a/BINDINGS/python/build-all.sh +++ b/BINDINGS/python/build-all.sh @@ -12,5 +12,6 @@ echo "Install to $PREFIX" CWD=$PWD for m in evas ecore edje emotion e_dbus ethumb elementary efl_utils; do cd $CWD/python-$m || die "cd python-$m" -./build.sh --force $PREFIX || die "failed to build python-$m" +sudo /usr/bin/python setup.py develop install_headers +#./build.sh --force $PREFIX || die "failed to build python-$m" done 3. Last, but not least, elementary setup.py is different than the others, why? So another hack is needed. diff --git a/BINDINGS/python/python-elementary/setup.py b/BINDINGS/python/python-elementary/setup.py index 7e2918a..81644bb 100644 --- a/BINDINGS/python/python-elementary/setup.py +++ b/BINDINGS/python/python-elementary/setup.py @@ -30,7 +30,7 @@ class elementary_build_ext(build_ext): def pkgconfig(*packages, **kw): flag_map = {'-I': 'include_dirs', '-L': 'library_dirs', '-l': 'libraries'} pkgs = ' '.join(packages) -cmdline = 'pkg-config --libs --cflags %s' % pkgs +cmdline = 'export PKG_CONFIG_PATH=/opt/e17/lib/pkgconfig && pkg-config --libs --cflags %s' % pkgs status, output = commands.getstatusoutput(cmdline) if status != 0: Thanks, Ryan -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] Eina_Amalgamation Patch
Attached is a patch for Eina_Amalgamation. This patch fixes a compiler warning that I recently noticed: "Warning return with a value in function returning void". Basically, I created a second macro "CHECK_MAIN_NO_RETURN" which can be used in functions that return void. Rather than the normal "CHECK_MAIN" which returns VA_ARGS. dh svn: 'eina_amalgamation.c' is not under version control -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Eina_Amalgamation Patch
Sorry, proper file patched on this one. It's eina_log.c dh Christopher Michael wrote: Attached is a patch for Eina_Amalgamation. This patch fixes a compiler warning that I recently noticed: "Warning return with a value in function returning void". Basically, I created a second macro "CHECK_MAIN_NO_RETURN" which can be used in functions that return void. Rather than the normal "CHECK_MAIN" which returns VA_ARGS. dh Index: eina_log.c === --- eina_log.c (revision 43427) +++ eina_log.c (working copy) @@ -372,6 +372,15 @@ return __VA_ARGS__; \ } \ } while (0) +#define CHECK_MAIN_NO_RETURN(...) \ + do { \ + if (!IS_MAIN(pthread_self())) { \ + fprintf(stderr, \ + "ERR: not main thread! current=%lu, main=%lu\n",\ + pthread_self(), _main_thread); \ + return; \ + } \ + } while (0) #ifdef EINA_PTHREAD_SPIN static pthread_spinlock_t _log_lock; @@ -409,6 +418,7 @@ #define IS_MAIN(t) (1) #define IS_OTHER(t) (0) #define CHECK_MAIN(...) do {} while (0) +#define CHECK_MAIN_NO_RETURN(...) do {} while (0) #define INIT() do {} while (0) #define SHUTDOWN() do {} while (0) #endif @@ -1085,7 +1095,7 @@ void eina_log_threads_shutdown(void) { -CHECK_MAIN(0); +CHECK_MAIN_NO_RETURN(0); SHUTDOWN(); _threads_enabled = EINA_FALSE; } -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [PATCH] Fix aspect ratio in emotion gstreamer module.
On Tue, 27 Oct 2009, João Paulo Rechi Vita wrote: The aspect ratio was being set only when vsink->width and vsink->heigth were zero, thus leaving ev->ratio with NaN value. The attached patch adds a ratio setting after emotion_video_sink_fill() is called, when width and height are acquired from gstreamer. in svn, thanks ! Not sure if the line that sets the ratio in file_new_decoded_pad_cb() should be removed tho. Just test with ethumb, but imho, it can be removed Vincent-- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel