plasm-language / pyplasm

http://www.dia.uniroma3.it/~paoluzzi/plasm502/
Other
54 stars 24 forks source link

pyplasm on Linux? #27

Closed villares closed 3 years ago

villares commented 3 years ago

Hi,

Could you provide a binary or a way of installing from PyPI / pip?

I tried the instructions described at https://github.com/plasm-language/pyplasm#linux-compilation but had no success:

[ 43%] Building CXX object libs/JUCE/CMakeFiles/Juce.dir/modules/juce_graphics/juce_graphics.cpp.o
In file included from /media/villares/VolumeD/GitHub/pyplasm/libs/JUCE/modules/juce_graphics/juce_graphics.h:82,
                 from /media/villares/VolumeD/GitHub/pyplasm/libs/JUCE/modules/juce_graphics/juce_graphics.cpp:39:
/media/villares/VolumeD/GitHub/pyplasm/libs/JUCE/modules/juce_graphics/colour/juce_PixelFormats.h: In member function ‘juce::uint8& juce::PixelARGB::getAlpha()’:
/media/villares/VolumeD/GitHub/pyplasm/libs/JUCE/modules/juce_graphics/colour/juce_PixelFormats.h:113:77: error: cannot bind packed field ‘((juce::PixelARGB*)this)->juce::PixelARGB::<anonymous>.juce::PixelARGB::<unnamed union>::comps[3]’ to ‘juce::uint8&’ {aka ‘unsigned char&’}
  113 | e uint8& getAlpha() noexcept           { return comps [indexA]; }
      |                                                 ~~~~~~~~~~~~~^

/media/villares/VolumeD/GitHub/pyplasm/libs/JUCE/modules/juce_graphics/colour/juce_PixelFormats.h: In member function ‘juce::uint8& juce::PixelARGB::getRed()’:
/media/villares/VolumeD/GitHub/pyplasm/libs/JUCE/modules/juce_graphics/colour/juce_PixelFormats.h:114:77: error: cannot bind packed field ‘((juce::PixelARGB*)this)->juce::PixelARGB::<anonymous>.juce::PixelARGB::<unnamed union>::comps[2]’ to ‘juce::uint8&’ {aka ‘unsigned char&’}
  114 | e uint8& getRed() noexcept             { return comps [indexR]; }
      |                                                 ~~~~~~~~~~~~~^

/media/villares/VolumeD/GitHub/pyplasm/libs/JUCE/modules/juce_graphics/colour/juce_PixelFormats.h: In member function ‘juce::uint8& juce::PixelARGB::getGreen()’:
/media/villares/VolumeD/GitHub/pyplasm/libs/JUCE/modules/juce_graphics/colour/juce_PixelFormats.h:115:77: error: cannot bind packed field ‘((juce::PixelARGB*)this)->juce::PixelARGB::<anonymous>.juce::PixelARGB::<unnamed union>::comps[1]’ to ‘juce::uint8&’ {aka ‘unsigned char&’}
  115 | e uint8& getGreen() noexcept           { return comps [indexG]; }
      |                                                 ~~~~~~~~~~~~~^

/media/villares/VolumeD/GitHub/pyplasm/libs/JUCE/modules/juce_graphics/colour/juce_PixelFormats.h: In member function ‘juce::uint8& juce::PixelARGB::getBlue()’:
/media/villares/VolumeD/GitHub/pyplasm/libs/JUCE/modules/juce_graphics/colour/juce_PixelFormats.h:116:77: error: cannot bind packed field ‘((juce::PixelARGB*)this)->juce::PixelARGB::<anonymous>.juce::PixelARGB::<unnamed union>::comps[0]’ to ‘juce::uint8&’ {aka ‘unsigned char&’}
  116 | e uint8& getBlue() noexcept            { return comps [indexB]; }
      |                                                 ~~~~~~~~~~~~~^

make[2]: *** [libs/JUCE/CMakeFiles/Juce.dir/build.make:134: libs/JUCE/CMakeFiles/Juce.dir/modules/juce_graphics/juce_graphics.cpp.o] Erro 1
make[1]: *** [CMakeFiles/Makefile2:384: libs/JUCE/CMakeFiles/Juce.dir/all] Erro 2
make: *** [Makefile:149: all] Erro 2
plasm-language commented 3 years ago

working on this... please standby

plasm-language commented 3 years ago

I added linux-portable-binary production (switched to GitHub actions). It should work on pip (conda may take a little longer).

https://pypi.org/project/pyplasm/#files

Can you test following README instructions in this branch?

https://github.com/plasm-language/pyplasm/blob/newversion/README.md

if it works out I can merge to master.

villares commented 3 years ago

Wonderful!

I'm not 100% sure but you might want to write your command line instructions with python3 instead of python (as many people still have python pointed to some Python 2.X even after installing Python 3.X as required/described).

image

scrgiorgio commented 3 years ago

Thanks https://github.com/plasm-language/pyplasm/commit/dd93a277491eec98010bdbfc65561a20b7ecbff0

On Thu, Sep 17, 2020 at 3:40 AM Alexandre B A Villares < notifications@github.com> wrote:

Wonderful!

I'm not 100% sure but you might want to write your command line instructions with python3 instead of python (as many people still have python pointed to some Python 2.X even after installing Python 3.X as required/described).

[image: image] https://user-images.githubusercontent.com/3694604/93409422-3efb4600-f86d-11ea-86a8-5efbc3f6943d.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/plasm-language/pyplasm/issues/27#issuecomment-693756348, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJTZPYL6KEUBECXCLB7SYDSGFSJNANCNFSM4RN3RRPQ .

-- Giorgio Scorzelli Director of Software Development, Center for Extreme Data Management, Analysis and Visualization (CEDMAV) Principal Software Design Engineer, Scientific Computing and Imaging (SCI) Institute, University of Utah

villares commented 3 years ago

Thank you so much!