[argyllcms] Re: Have natively compiled ArgyllCMS for aarch64 in armbian linux.

  • From: <graxx@xxxxxxxxxxxx>
  • To: <argyllcms@xxxxxxxxxxxxx>
  • Date: Fri, 9 Aug 2019 08:31:16 -0400

Good work - congratulations!

 

/ Roger

 

From: argyllcms-bounce@xxxxxxxxxxxxx <argyllcms-bounce@xxxxxxxxxxxxx> On
Behalf Of Nikolay Pokhilchenko (Redacted sender "nikolay_po" for DMARC)
Sent: Friday, August 9, 2019 4:44 AM
To: argyllcms@xxxxxxxxxxxxx
Subject: [argyllcms] Have natively compiled ArgyllCMS for aarch64 in armbian
linux.

 

Hi, peoples. After some efforts, I become able to compile complete ArgyllCMS
source code for Pine64 ROCKPro64 single board computer (SBC):

- Architecture: aarch64
- CPU: Rockchip RK3399 (Dual-core ARM Cortex-A72 1.8GHz, Quad-core ARM
Cortex-A53 1.42GHz, total 6 cores).
- RAM: LPDDR4 4Gb
- Compiler: GCC 9.1.0, natively compiled from sources on armbian linux

After native building of GCC 9.1.0 from sources, I made some changes to
ArgyllCMS sources before CMS compilation. To compile on that system one need
to do:

1. Set the JAM_NEW_GNU_AR_OPTIONS environment variable (as described in
Compilling.html).
2. Replace old config.guess and config.sub script files (2011-11-11) for
fresh ones (2019-07-05 and 2019-06-30). Update URL is present inside
original config.guess and config.sub files. The script files are placed in
jpeg and tiff/config source folders. May be not needed if system libraries
are used for TIFF and JPEG support.
3. Set HOST64=true environment variable. Not sure it is correct but before
that Jam have complained it is unable to find 32-bit X11 library files.
3. Add new path "/usr/lib/aarch64-linux-gnu" to library path search for
LibWinH variable, lines 96..109 in Jamtop file.
4. Add new paths "/usr/include/aarch64-linux-gnu" and
"/usr/lib/aarch64-linux-gnu" to system library support rules, lines 156-166
of Jamtop.
5. Compile ArgyllCMS: jam -f Jambase -j7 natively.

The compilation was successful. 440 targets was updated. But... I have not
tested anything running yet! Will inform you about run tests.
Before I added more paths to Jamtop, all libraries, TIFF, JPEG, PNG, Z and
SSL, was used form Argyll sources. The compilation was failed with an error
at some TIFF function call even after config.guess and config.sub scripts
update. Now I'm doubting that operation 2 from the list above was needed
because config.guess and config.sub scripts was in jpeg and tiff folders.
After 3 and 4 steps, system libraries are used for TIFF and JPEG instead of
Argyll source and updating of config scripts may be irrelevant to
compilation success.

Thank you!

Nikolay Pokhilchenko

Other related posts: