Re: [E-devel] Problem with elemines

2016-06-13 Thread Tim Bird
On Thu, Jun 9, 2016 at 7:28 PM, Jérôme Pinot  wrote:

> Le jeudi 09 juin 2016 à 16:53 -0700, Tim Bird a écrit :
> > Hi EFL devs...
> >
> > I am a newbie to EFL development.  I'm trying to write a little test
> > program for EFL, and wanted to test out elemines as an example of
> > some of
> > the techniques.
> > However, I ran into some problems.
> >
> > I am running EFL 17 on Ubuntu 14.04.  I cloned elemines from
> > https://git.enlightenment.org/games/elemines.git
> > and was able to get it built.
> Please use a stable release before reporting bugs. The git version is
> not supposed to work at any time. The last release of elemines could be
> find here: https://sourceforge.net/projects/elemines/files/0.2.3/ It's
> a bit old but should run fine.
> You'll need elementary and etrophy. If your distro doesn't provide it,
> you will have to compile them yourself. Putting them in /usr/local/lib
> is normally not an issue as this path is normally already in your
> /etc/ld.so.conf. You maybe just forgot to launch ldconfig.
>
> I did forget indeed forget to launch ldconfig.

I downloaded the stable release and it has the same (other) problems as
the version I built from the git tree.  But it looks like the segfault (the
most serious problem) might be a bug in EFL 17.0.  I plan to try EFL 17.1
and see if it's been fixed.

Thanks for the quick feedback.
 -- Tim
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Problem with elemines

2016-06-13 Thread Tim Bird
On Thu, Jun 9, 2016 at 10:10 PM, Cedric BAIL  wrote:

> Hello,
>
> On Thu, Jun 9, 2016 at 4:53 PM, Tim Bird  wrote:
> > I am a newbie to EFL development.  I'm trying to write a little test
> > program for EFL, and wanted to test out elemines as an example of some of
> > the techniques.
> > However, I ran into some problems.
> >
> > I am running EFL 17 on Ubuntu 14.04.  I cloned elemines from
> > https://git.enlightenment.org/games/elemines.git
> > and was able to get it built.
> >
> > 1) - path to libetrophy error
> > When I try to run it, I got the following error message:
> > elemines: error while loading shared libraries: libetrophy.so.0: cannot
> > open shared object file: No such file or directory
> >
> > During the build, I figured out I needed etrophy, and built and installed
> > the shared
> > library for that.  They etrophy libraries ended up in /usr/local/lib
> >
> > I can work around this using 'export LD_LIBRARY_PATH=/usr/local/lib',
> > before running elemines.
>
> Is it possible that either your /usr/local/lib is not your ld.so.conf
> path ? or that you haven't run ldconfig after installing etrophy ?
>

That was it.  Sorry for the dumb error.  It's been a while since
I've done C programming in user-space and I forgot about needing
to re-run ldconfig after installing a new library.


>
> > 2) missing some elementary config
> > When I run elemines (with the right library path), I get a warning from
> the
> > program:
> >
> > ERR<27210>:eio lib/eio/eio_monitor.c:339 eio_monitor_stringshared_add()
> > monitored path '/home/CORPUSERS/10102229/.elementary/config/standard' not
> > found.
> >
> > I don't have the enlightenment window manager installed (to my
> knowledge).
> > I'm not sure what is being looked for here,
> > but the warning is a bit disconcerting.  I can make the warning go away
> by
> > creating the directory
> > ~/.elementary/config/standard, but I'm worried that something is supposed
> > to be there that's not.
>
> Hum, that one I have no clue at the moment. Will see if I can look
> into it tomorrow, but in all case Enlightenment shouldn't be needed.
>
> > 3) Segmentation fault
> > This is the most serious problem.  elemines gets a segmentation fault
> when
> > I do the first mouse click in the
> > game grid.
> >
> > I debugged the program a bit and found that there's a sscanf on a string
> > used to map the mouse click to
> > the game grid.  Here's the sscanf:
> >   sscanf(source, "board[%i,%i]:overlay", &x, &y);
> >
> > but here's the value of the 'source' string used with it:
> >   board[item_0x7fff8daa2c60{7,2}]:overlay
> >
> > this is in the routine _click() in src/game.c
> > Note that there's no error handling for the sscanf.  However, the string
> > clearly is not what's expected.
>
> Sorry that you have hit that bug. It is a regression in edje_cc
> provided in efl 1.17 that do not compile correctly elemines. This is
> fixed in current git. I should backport the fix and make sure it is in
> the next release along with a few others. Thanks for the reminder and
> sorry again about this one.
>
> > In another part of the program, there's this line, which seems to specify
> > the string for the
> > mouse click grid mapping.
> >
> > edje_object_signal_callback_add(edje, "mouse,clicked,*",
> > "board\\[*\\]:overlay", _click, NULL);
> >
> > It appears that elemines expects the coordinates from the specified
> string
> > inside the
> > brackets (I'm guessing that's what the * is for in the string.  However,
> I
> > don't know
> > where this 'item_0x7fff8daa2c60{..}' is coming from.
>
> Yes, exactly. edje_cc has generated automatically some names that are
> being passed wrongly in the event name resulting in breaking the
> signal name for elemines. This can be fixed by just changing the edj
> file. I have attached a version of the .edj generated by efl git.
>
> > Is there something from edje that's missing, to have the mouse click
> string
> > come out properly?
>
> Me, backporting the fix I guess. Will do right away.
>

Thanks for the info.
 -- Tim
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Problem with elemines

2016-06-13 Thread The Rasterman
On Thu, 9 Jun 2016 16:53:03 -0700 Tim Bird  said:

> Hi EFL devs...
> 
> I am a newbie to EFL development.  I'm trying to write a little test
> program for EFL, and wanted to test out elemines as an example of some of
> the techniques.
> However, I ran into some problems.
> 
> I am running EFL 17 on Ubuntu 14.04.  I cloned elemines from
> https://git.enlightenment.org/games/elemines.git
> and was able to get it built.
> 
> 1) - path to libetrophy error
> When I try to run it, I got the following error message:
> elemines: error while loading shared libraries: libetrophy.so.0: cannot
> open shared object file: No such file or directory
> 
> During the build, I figured out I needed etrophy, and built and installed
> the shared
> library for that.  They etrophy libraries ended up in /usr/local/lib
> 
> I can work around this using 'export LD_LIBRARY_PATH=/usr/local/lib',
> before running elemines.
> 
> 2) missing some elementary config
> When I run elemines (with the right library path), I get a warning from the
> program:
> 
> ERR<27210>:eio lib/eio/eio_monitor.c:339 eio_monitor_stringshared_add()
> monitored path '/home/CORPUSERS/10102229/.elementary/config/standard' not
> found.

well home/CORPUSERS/10102229 is either your $HOME or if that isnt set/found
then getpwent is finding it from the passwd database... it's looking for your
elm config there...

> I don't have the enlightenment window manager installed (to my knowledge).
> I'm not sure what is being looked for here,

has nothing to do with e the wm. it's elm's config directory in your home dir.
depending on compilation options elm will either use ~/.elementary or
~/.config/elementary ... (the first is default since toolkits have used
~/.toolkitname stuff for a long long time).

you have an interesting home directory i have to say... mr. corpuser #
10102229. :)

so all that will not work here is that it wont pick up new config changes as you
have no existing config for your user... until you do have it. elm's config
loader literally mkpath'd that dir tho on startup (in _elm_config_sub_init())
so it should have been there even if empty ... have you somehow forbidden your
elm apps from writing to there? making that dir path?

there is just one place where we add a monitor for that dir were the dir isn't
mkpath'd before .. but that should be long after the above init func so it
should be created. i'll add another mkpath there... but maybe the issue is
permissioning?

> but the warning is a bit disconcerting.  I can make the warning go away by
> creating the directory
> ~/.elementary/config/standard, but I'm worried that something is supposed
> to be there that's not.

well it's wanting to monitor that for changes in case you bring up the
elementary_config tool (yes - it's rough and needs work) and change config -
all apps monitor your config files for changes and re-load/update if changes
happen.

> 3) Segmentation fault
> This is the most serious problem.  elemines gets a segmentation fault when
> I do the first mouse click in the
> game grid.
> 
> I debugged the program a bit and found that there's a sscanf on a string
> used to map the mouse click to
> the game grid.  Here's the sscanf:
>   sscanf(source, "board[%i,%i]:overlay", &x, &y);
> 
> but here's the value of the 'source' string used with it:
>   board[item_0x7fff8daa2c60{7,2}]:overlay

well that scanf wont work with that string... but how can that scanf crash. it
must be somewhere else...

> this is in the routine _click() in src/game.c
> Note that there's no error handling for the sscanf.  However, the string
> clearly is not what's expected.
> 
> In another part of the program, there's this line, which seems to specify
> the string for the
> mouse click grid mapping.
> 
> edje_object_signal_callback_add(edje, "mouse,clicked,*",
> "board\\[*\\]:overlay", _click, NULL);
> 
> It appears that elemines expects the coordinates from the specified string
> inside the
> brackets (I'm guessing that's what the * is for in the string.  However, I
> don't know
> where this 'item_0x7fff8daa2c60{..}' is coming from.

i assume this is some issue inside elemines the app in how its handling board
data - writing it or parsing it. but how does it crash? jerome is the author so
he's the place to go there (i'd dig but i have enough to do atm. :)).

> Is there something from edje that's missing, to have the mouse click string
> come out properly?

nope.

-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/30

Re: [E-devel] Problem with elemines

2016-06-09 Thread Cedric BAIL
On Thu, Jun 9, 2016 at 10:10 PM, Cedric BAIL  wrote:
> On Thu, Jun 9, 2016 at 4:53 PM, Tim Bird  wrote:
>> I am a newbie to EFL development.  I'm trying to write a little test
>> program for EFL, and wanted to test out elemines as an example of some of
>> the techniques.
>> However, I ran into some problems.
>>
>> I am running EFL 17 on Ubuntu 14.04.  I cloned elemines from
>> https://git.enlightenment.org/games/elemines.git
>> and was able to get it built.
>>
>> 1) - path to libetrophy error
>> When I try to run it, I got the following error message:
>> elemines: error while loading shared libraries: libetrophy.so.0: cannot
>> open shared object file: No such file or directory
>>
>> During the build, I figured out I needed etrophy, and built and installed
>> the shared
>> library for that.  They etrophy libraries ended up in /usr/local/lib
>>
>> I can work around this using 'export LD_LIBRARY_PATH=/usr/local/lib',
>> before running elemines.
>
> Is it possible that either your /usr/local/lib is not your ld.so.conf
> path ? or that you haven't run ldconfig after installing etrophy ?
>
>> 2) missing some elementary config
>> When I run elemines (with the right library path), I get a warning from the
>> program:
>>
>> ERR<27210>:eio lib/eio/eio_monitor.c:339 eio_monitor_stringshared_add()
>> monitored path '/home/CORPUSERS/10102229/.elementary/config/standard' not
>> found.
>>
>> I don't have the enlightenment window manager installed (to my knowledge).
>> I'm not sure what is being looked for here,
>> but the warning is a bit disconcerting.  I can make the warning go away by
>> creating the directory
>> ~/.elementary/config/standard, but I'm worried that something is supposed
>> to be there that's not.
>
> Hum, that one I have no clue at the moment. Will see if I can look
> into it tomorrow, but in all case Enlightenment shouldn't be needed.
>
>> 3) Segmentation fault
>> This is the most serious problem.  elemines gets a segmentation fault when
>> I do the first mouse click in the
>> game grid.
>>
>> I debugged the program a bit and found that there's a sscanf on a string
>> used to map the mouse click to
>> the game grid.  Here's the sscanf:
>>   sscanf(source, "board[%i,%i]:overlay", &x, &y);
>>
>> but here's the value of the 'source' string used with it:
>>   board[item_0x7fff8daa2c60{7,2}]:overlay
>>
>> this is in the routine _click() in src/game.c
>> Note that there's no error handling for the sscanf.  However, the string
>> clearly is not what's expected.
>
> Sorry that you have hit that bug. It is a regression in edje_cc
> provided in efl 1.17 that do not compile correctly elemines. This is
> fixed in current git. I should backport the fix and make sure it is in
> the next release along with a few others. Thanks for the reminder and
> sorry again about this one.

So actually it is already part of 1.17.1 release.
-- 
Cedric BAIL

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Problem with elemines

2016-06-09 Thread David Seikel
On Fri, 10 Jun 2016 11:28:43 +0900 Jérôme Pinot 
wrote:

> Le jeudi 09 juin 2016 à 16:53 -0700, Tim Bird a écrit :
> > Hi EFL devs...
> > 
> > I am a newbie to EFL development.  I'm trying to write a little test
> > program for EFL, and wanted to test out elemines as an example of
> > some of
> > the techniques.
> > However, I ran into some problems.
> > 
> > I am running EFL 17 on Ubuntu 14.04.  I cloned elemines from
> > https://git.enlightenment.org/games/elemines.git
> > and was able to get it built.
> Please use a stable release before reporting bugs. The git version is
> not supposed to work at any time. The last release of elemines could
> be find here: https://sourceforge.net/projects/elemines/files/0.2.3/
> It's a bit old but should run fine.
> You'll need elementary and etrophy. If your distro doesn't provide it,
> you will have to compile them yourself. Putting them in /usr/local/lib
> is normally not an issue as this path is normally already in your
> /etc/ld.so.conf. You maybe just forgot to launch ldconfig.

If you are trying to build things from git, right now Elementary (and a
couple of other things) are in the process of being folded into the
main EFL libraries, instead of being separate.  On top of that, new EO
infrastructure is also being added, but I think you have to explicitly
enable beta APIs to get that new stuff.  So that's currently all in a
state of flux, may or may not work at any given moment, and the new
stuff isn't well documented yet.

Sticking with stable, released source tarballs of everything for the
moment might be best.  Especially for a newbie trying to figure out how
to use it all.

> Kind regards,
> > 1) - path to libetrophy error
> > When I try to run it, I got the following error message:
> > elemines: error while loading shared libraries: libetrophy.so.0:
> > cannot open shared object file: No such file or directory
> > 
> > During the build, I figured out I needed etrophy, and built and
> > installed the shared
> > library for that.  They etrophy libraries ended up in /usr/local/lib
> > 
> > I can work around this using 'export
> > LD_LIBRARY_PATH=/usr/local/lib', before running elemines.
> > 
> > 2) missing some elementary config
> > When I run elemines (with the right library path), I get a warning
> > from the program:
> > 
> > ERR<27210>:eio lib/eio/eio_monitor.c:339
> > eio_monitor_stringshared_add() monitored path
> > '/home/CORPUSERS/10102229/.elementary/config/standard' not found.
> > 
> > I don't have the enlightenment window manager installed (to my
> > knowledge). I'm not sure what is being looked for here,
> > but the warning is a bit disconcerting.  I can make the warning go
> > away by creating the directory
> > ~/.elementary/config/standard, but I'm worried that something is
> > supposed to be there that's not.
> > 
> > 3) Segmentation fault
> > This is the most serious problem.  elemines gets a segmentation
> > fault when I do the first mouse click in the
> > game grid.
> > 
> > I debugged the program a bit and found that there's a sscanf on a
> > string used to map the mouse click to
> > the game grid.  Here's the sscanf:
> >   sscanf(source, "board[%i,%i]:overlay", &x, &y);
> > 
> > but here's the value of the 'source' string used with it:
> >   board[item_0x7fff8daa2c60{7,2}]:overlay
> > 
> > this is in the routine _click() in src/game.c
> > Note that there's no error handling for the sscanf.  However, the
> > string clearly is not what's expected.
> > 
> > In another part of the program, there's this line, which seems to
> > specify the string for the
> > mouse click grid mapping.
> > 
> > edje_object_signal_callback_add(edje, "mouse,clicked,*",
> > "board\\[*\\]:overlay", _click, NULL);
> > 
> > It appears that elemines expects the coordinates from the specified
> > string inside the
> > brackets (I'm guessing that's what the * is for in the string.
> > However, I don't know
> > where this 'item_0x7fff8daa2c60{..}' is coming from.
> > 
> > Is there something from edje that's missing, to have the mouse
> > click string come out properly?
> > 
> > Thanks,
> >  -- Tim
> > 
> >  -- Tim Bird
> > Senior Software Engineer, Sony Mobile
> > Architecture Group Chair, CE Workgroup, Linux Foundation


-- 
A big old stinking pile of genius that no one wants
coz there are too many silver coated monkeys in the world.


signature.asc
Description: PGP signature
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lis

Re: [E-devel] Problem with elemines

2016-06-09 Thread Jérôme Pinot
Le jeudi 09 juin 2016 à 16:53 -0700, Tim Bird a écrit :
> Hi EFL devs...
> 
> I am a newbie to EFL development.  I'm trying to write a little test
> program for EFL, and wanted to test out elemines as an example of
> some of
> the techniques.
> However, I ran into some problems.
> 
> I am running EFL 17 on Ubuntu 14.04.  I cloned elemines from
> https://git.enlightenment.org/games/elemines.git
> and was able to get it built.
Please use a stable release before reporting bugs. The git version is
not supposed to work at any time. The last release of elemines could be
find here: https://sourceforge.net/projects/elemines/files/0.2.3/ It's
a bit old but should run fine.
You'll need elementary and etrophy. If your distro doesn't provide it,
you will have to compile them yourself. Putting them in /usr/local/lib
is normally not an issue as this path is normally already in your
/etc/ld.so.conf. You maybe just forgot to launch ldconfig.
Kind regards,
> 1) - path to libetrophy error
> When I try to run it, I got the following error message:
> elemines: error while loading shared libraries: libetrophy.so.0: cannot
> open shared object file: No such file or directory
> 
> During the build, I figured out I needed etrophy, and built and installed
> the shared
> library for that.  They etrophy libraries ended up in /usr/local/lib
> 
> I can work around this using 'export LD_LIBRARY_PATH=/usr/local/lib',
> before running elemines.
> 
> 2) missing some elementary config
> When I run elemines (with the right library path), I get a warning from the
> program:
> 
> ERR<27210>:eio lib/eio/eio_monitor.c:339 eio_monitor_stringshared_add()
> monitored path '/home/CORPUSERS/10102229/.elementary/config/standard' not
> found.
> 
> I don't have the enlightenment window manager installed (to my knowledge).
> I'm not sure what is being looked for here,
> but the warning is a bit disconcerting.  I can make the warning go away by
> creating the directory
> ~/.elementary/config/standard, but I'm worried that something is supposed
> to be there that's not.
> 
> 3) Segmentation fault
> This is the most serious problem.  elemines gets a segmentation fault when
> I do the first mouse click in the
> game grid.
> 
> I debugged the program a bit and found that there's a sscanf on a string
> used to map the mouse click to
> the game grid.  Here's the sscanf:
>   sscanf(source, "board[%i,%i]:overlay", &x, &y);
> 
> but here's the value of the 'source' string used with it:
>   board[item_0x7fff8daa2c60{7,2}]:overlay
> 
> this is in the routine _click() in src/game.c
> Note that there's no error handling for the sscanf.  However, the string
> clearly is not what's expected.
> 
> In another part of the program, there's this line, which seems to specify
> the string for the
> mouse click grid mapping.
> 
> edje_object_signal_callback_add(edje, "mouse,clicked,*",
> "board\\[*\\]:overlay", _click, NULL);
> 
> It appears that elemines expects the coordinates from the specified string
> inside the
> brackets (I'm guessing that's what the * is for in the string.  However, I
> don't know
> where this 'item_0x7fff8daa2c60{..}' is coming from.
> 
> Is there something from edje that's missing, to have the mouse click string
> come out properly?
> 
> Thanks,
>  -- Tim
> 
>  -- Tim Bird
> Senior Software Engineer, Sony Mobile
> Architecture Group Chair, CE Workgroup, Linux Foundation
> --
> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
> patterns at an interface-level. Reveals which users, apps, and protocols are 
> consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
> J-Flow, sFlow and other flows. Make informed decisions using capacity 
> planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
> 
> ___
> enlightenment-devel mailing list
> 
enlightenment-devel@lists.sourceforge.net> 
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel> 

-- 
Jérôme Pinot
http://ngc891.blogdns.net


--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Problem with elemines

2016-06-09 Thread Simon Lees


On 06/10/2016 09:23 AM, Tim Bird wrote:
> Hi EFL devs...
> 
> I am a newbie to EFL development.  I'm trying to write a little test
> program for EFL, and wanted to test out elemines as an example of some of
> the techniques.
> However, I ran into some problems.
> 
> I am running EFL 17 on Ubuntu 14.04.  I cloned elemines from
> https://git.enlightenment.org/games/elemines.git
> and was able to get it built.
> 
> 1) - path to libetrophy error
> When I try to run it, I got the following error message:
> elemines: error while loading shared libraries: libetrophy.so.0: cannot
> open shared object file: No such file or directory
> 
> During the build, I figured out I needed etrophy, and built and installed
> the shared
> library for that.  They etrophy libraries ended up in /usr/local/lib
> 
> I can work around this using 'export LD_LIBRARY_PATH=/usr/local/lib',
> before running elemines.
> 
> 2) missing some elementary config
> When I run elemines (with the right library path), I get a warning from the
> program:
> 
> ERR<27210>:eio lib/eio/eio_monitor.c:339 eio_monitor_stringshared_add()
> monitored path '/home/CORPUSERS/10102229/.elementary/config/standard' not
> found.
> 
> I don't have the enlightenment window manager installed (to my knowledge).
> I'm not sure what is being looked for here,
> but the warning is a bit disconcerting.  I can make the warning go away by
> creating the directory
> ~/.elementary/config/standard, but I'm worried that something is supposed
> to be there that's not.

I suspect you need the "elementary" package installed which is the
toolkit used by enlightenment (similar to gnome using gtk). Once thats
installed hopefully it will resolve most if not all of your issues.

> Thanks,
>  -- Tim
> 
>  -- Tim Bird
> Senior Software Engineer, Sony Mobile
> Architecture Group Chair, CE Workgroup, Linux Foundation
> --
> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
> patterns at an interface-level. Reveals which users, apps, and protocols are 
> consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
> J-Flow, sFlow and other flows. Make informed decisions using capacity 
> planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 

-- 

Simon Lees (Simotek)http://simotek.net

Emergency Update Team   keybase.io/simotek
SUSE LinuxAdeliade Australia, UTC+9:30
GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B



signature.asc
Description: OpenPGP digital signature
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Problem with elemines

2016-06-09 Thread Tim Bird
Hi EFL devs...

I am a newbie to EFL development.  I'm trying to write a little test
program for EFL, and wanted to test out elemines as an example of some of
the techniques.
However, I ran into some problems.

I am running EFL 17 on Ubuntu 14.04.  I cloned elemines from
https://git.enlightenment.org/games/elemines.git
and was able to get it built.

1) - path to libetrophy error
When I try to run it, I got the following error message:
elemines: error while loading shared libraries: libetrophy.so.0: cannot
open shared object file: No such file or directory

During the build, I figured out I needed etrophy, and built and installed
the shared
library for that.  They etrophy libraries ended up in /usr/local/lib

I can work around this using 'export LD_LIBRARY_PATH=/usr/local/lib',
before running elemines.

2) missing some elementary config
When I run elemines (with the right library path), I get a warning from the
program:

ERR<27210>:eio lib/eio/eio_monitor.c:339 eio_monitor_stringshared_add()
monitored path '/home/CORPUSERS/10102229/.elementary/config/standard' not
found.

I don't have the enlightenment window manager installed (to my knowledge).
I'm not sure what is being looked for here,
but the warning is a bit disconcerting.  I can make the warning go away by
creating the directory
~/.elementary/config/standard, but I'm worried that something is supposed
to be there that's not.

3) Segmentation fault
This is the most serious problem.  elemines gets a segmentation fault when
I do the first mouse click in the
game grid.

I debugged the program a bit and found that there's a sscanf on a string
used to map the mouse click to
the game grid.  Here's the sscanf:
  sscanf(source, "board[%i,%i]:overlay", &x, &y);

but here's the value of the 'source' string used with it:
  board[item_0x7fff8daa2c60{7,2}]:overlay

this is in the routine _click() in src/game.c
Note that there's no error handling for the sscanf.  However, the string
clearly is not what's expected.

In another part of the program, there's this line, which seems to specify
the string for the
mouse click grid mapping.

edje_object_signal_callback_add(edje, "mouse,clicked,*",
"board\\[*\\]:overlay", _click, NULL);

It appears that elemines expects the coordinates from the specified string
inside the
brackets (I'm guessing that's what the * is for in the string.  However, I
don't know
where this 'item_0x7fff8daa2c60{..}' is coming from.

Is there something from edje that's missing, to have the mouse click string
come out properly?

Thanks,
 -- Tim

 -- Tim Bird
Senior Software Engineer, Sony Mobile
Architecture Group Chair, CE Workgroup, Linux Foundation
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel