[Sugar-devel] Help Needed adding a module to my Activity

Sam Parkinson sam.parkinson3 at gmail.com
Mon Aug 8 02:30:43 EDT 2016


Statically including libraries in the XO files is yuck, but I don't 
think we have another way to do it.  I believe that Physics activity 
also statically includes libraries - maybe see how it works there?

Side note:  It would be so much better if Sugar activities could just 
declare dependencies.  Just say something like "bindeps=fontmake".  If 
we just made them all into RPMs/DEBs and had a AppStream based store 
interface ... that would be nice.  ASLOv2v2 is just something 
automatically building rpms and debs?

Thanks,
Sam

On Mon, Aug 8, 2016 at 5:02 AM, Yash Agarwal <agrwal.ysh94 at gmail.com> 
wrote:
> Hello,
> The Issue is Documented here
> but I'll paste the relevant part here
> I'm trying to use fontmake in my sugar activity, It works fine on my 
> system but in sugar it requires a dependency which I don't know how 
> to add
> this is the error I'm getting
> ```
> bash-4.2$ python -m fontmake -u ../test_fonts/sample.ufo
> Traceback (most recent call last):
>   File "/usr/lib64/python2.7/runpy.py", line 162, in 
> _run_module_as_main
>     "__main__", fname, loader, pkg_name)
>   File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
>     exec code in run_globals
>   File 
> "/home/broot/sugar-build/activities/edit-fonts-activity/third_party/fontmake/__main__.py", 
> line 17, in <module>
>     from fontmake.font_project import FontProject
>   File "fontmake/font_project.py", line 25, in <module>
>     from booleanOperations import BooleanOperationManager
>   File "booleanOperations/__init__.py", line 2, in <module>
>     from .booleanOperationManager import BooleanOperationManager
>   File "booleanOperations/booleanOperationManager.py", line 3, in 
> <module>
>     from . import pyClipper
> ImportError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not 
> found (required by booleanOperations/pyClipper.so)
> ```
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20160808/3724c085/attachment.html>


More information about the Sugar-devel mailing list