Linux 之 Libreoffice SDK 配置


1. 安裝 Libreoffice

  • 可以根據需求安裝特定功能模塊,比如 libreoffice-calc, libreoffice-writer 等
sudo apt install libreoffice

2. 安裝 Libreoffice SDK

sudo apt install libreoffice-dev

3. 配置環境變量(臨時)

  • 每次啟動 shell 時,都要配置 libreoffice 開發環境的環境變量
  • 可通過配置 /etc/profile 文件,並添加如下內容:
sudo ln -s /usr/lib/libreoffice/sdk/setsdkenv_unix.sh /etc/profile.d/setsdkenv_unix.sh

# change to root user
echo "export PATH=$(echo $PATH |tr : "\n"|sort |uniq |tr "\n" :)" >> /etc/profile

4. 生成C++頭文件

sudo ./bin/cppumaker -Gc -O "/usr/lib/libreoffice/sdk/include" "/usr/lib/libreoffice/program/types.rdb" "/usr/lib/libreoffice/program/types/offapi.rdb"


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM