Recently, I tried to install epics base and its relatively simple modules and extensions. During the installation, I found there is no CONFIG_SITE of extensions for linux-aarch64. I learned from community of EPICS's tech-talk, and found Dr. Jeong Han Lee had tried to make one for linux-arm, so I tried to use Dr. Jeong Han Lee's experience to make one for linux-aarch64.
Here, I use the following
packages:
* baseR7.0.6.1
* extensions_20120904
* StripTool2_5_17_0
* alh1_2_35
* medm3_1_17
* probe1_1_8_0
* cau_phoevus_20130115
tested Hardwares:
* Raspberry Pi 4
* Rock Pi 4 C+
tested OSs:
* Raspberry Pi OS with Desktop 64-bit Release date:Apr 04 2022 (Raspberry Pi 4)
* Ubuntu Server 20.04.4 with post Desktop installation (Rock Pi 4C+)
before make aarch64-ubuntu extensions we have to install the following packages
sudo apt-get install libxt-dev
sudo apt-get install libmotif-dev
sudo apt-get install x11proto-print-dev
sudo apt-get install libxmu-headers
@sudo apt-get install libxp-dev
sudo apt-get install libxmu-dev libxmu6
@ aarch64 has no libxp support for apt
Since there is no libxp for easy installation, we can obtain libxp in this website
https://archlinuxarm.org/packages/aarch64/libxpget this file.
http://mirror.archlinuxarm.org/aarch64/extra/libxp-1.0.3-5-aarch64.pkg.tar.xzcopy and extract this file in root directory /
make a CONFIG_SITE.linux-aarch64.linux-aarch64 file in
${EPICS_ROOT}/extensions/configure/os for aarch64
##################################################################
#
https://blog.csdn.net/Namcodream521/article/details/88379307 #
# #
# gcc for arm reference aarch64 (ARMv8) vs arm (ARMv7 and ARMv8) #
# aarch64-linux-gnu vs arm-linux-guneabifh #
##################################################################
-include /configure/os/CONFIG_SITE.linux-x86.linux-x86
#X11_LIB=/usr/lib/arm-linux-gnueabihf
X11_LIB=/usr/lib/aarch64-linux-gnu
X11_INC=/usr/include
#MOTIF_LIB=/usr/lib/arm-linux-gnueabihf
MOTIF_LIB=/usr/lib/aarch64-linux-gnu
MOTIF_INC=/usr/include
###################################################################
After this, I could compile the extensions packages ex: medm, Striptool, and alh.
But I am not a developer of EPICS, so I don't know whether there is any restriction to add this file into the extensions folder. Maybe it still needs some modification. And I hope this will be helpful for other aarch64 users.
Reference:
[1] Dr. Jeong Han Lee "extensionsTop CONFIG_SITE file for Raspberry Pi"
https://epics.anl.gov/tech-talk/2014/msg00002.php[2]
https://archlinuxarm.org/packages/aarch64/libxp[3]
https://blog.csdn.net/Namcodream521/article/details/88379307
************************************