I am trying to install the python aggdraw library to create high quality graphics, but I keep getting this error:
agg22/include/agg_array.h: In member function `agg::int8u*
What is the workaround for this? How to install it?
You should follow the instructions from http://www.pocketuniverse.ca/archive/2008/december/11/pil-and-aggdraw/ to fix the AGG, and not just the compiler to allow compilation of 64-bit incompatible code.
Here is one way to do this in a shell:
cd /tmp svn co http://svn.effbot.org/public/tags/aggdraw-1.2a3-20060212 cd aggdraw-1.2a3-20060212 patch -p0 <<EOF Index: agg2/include/agg_array.h =================================================================== --- agg2/include/agg_array.h (revision 532) +++ agg2/include/agg_array.h (working copy) @@ -520,7 +520,7 @@ int8u* ptr = m_buf_ptr; if(alignment > 1) { - unsigned align = (alignment - unsigned(ptr) % alignment) % alignment; + unsigned align = (alignment - (unsigned long)(ptr) % alignment) % alignment; size += align; ptr += align; if(size <= m_rest) EOF python setup.py build_ext -i python selftest.py sudo python setup.py install
(Yes, I answer my question)
After searching the internet many times, I found that doing
export CFLAGS="-fpermissive"
python setup.py build_ext -i, , .
python setup.py build_ext -i
Source: https://habr.com/ru/post/1759720/More articles:jQuery, ajax, the displayed page inside another page (for example, iframe) - javascriptIs there a way to reduce resource loading (image / CSS and JS files) using Javascript? - javascriptImplement Quicksort in C? - cOpen Source .NET Vector Graphics Editor - .netAndroid: how to use a timer - javaParsing and Erasing JSON in PHP 4 - jsonphp4 with json data - php4Единичное тестирование конкретных значений - unit-testingConnecting and managing background process input events - c ++how can i install php-json for php 4.3.3? - jsonAll Articles