当前位置: 首页 > article >正文

Macos交叉编译android的cmix压缩算法

这个比较简单只有makefile, 修改一下使用最新的anroid的ndk r27 下的llvm/prebuilt/darwin-x86_64/bin/ 下的编译工具即可,修改如下:

LFLAGS和CC改一下,注释的是原来的内容。然后执行make就可以了。


#CC = clang++
CC = /Volumes/data/Codes/AndroidNDK12479018.app/Contents/NDK/toolchains/llvm/prebuilt/darwin-x86_64/bin/aarch64-linux-android21-clang++ 
LFLAGS = -std=c++14 -Wall

#all: LFLAGS += -Ofast -march=native
LFLAGS += -Ofast
all: cmix enwik9-preproc remap

debug: LFLAGS += -ggdb
debug: cmix enwik9-preproc remap

cmix: src/coder/decoder.cpp src/coder/decoder.h src/coder/encoder.cpp src/coder/encoder.h src/context-manager.cpp src/context-manager.h src/contexts/bit-context.cpp src/contexts/bit-context.h src/contexts/bracket-context.cpp src/contexts/bracket-context.h src/contexts/combined-context.cpp src/contexts/combined-context.h src/contexts/context-hash.cpp src/contexts/context-hash.h src/contexts/context.h src/contexts/indirect-hash.cpp src/contexts/indirect-hash.h src/contexts/interval-hash.cpp src/contexts/interval-hash.h src/contexts/interval.cpp src/contexts/interval.h src/contexts/sparse.cpp src/contexts/sparse.h src/mixer/byte-mixer.cpp src/mixer/byte-mixer.h src/mixer/lstm-layer.cpp src/mixer/lstm-layer.h src/mixer/lstm.cpp src/mixer/lstm.h src/mixer/mixer-input.cpp src/mixer/mixer-input.h src/mixer/mixer.cpp src/mixer/mixer.h src/mixer/sigmoid.cpp src/mixer/sigmoid.h src/mixer/sse.cpp src/mixer/sse.h src/models/bracket.cpp src/models/bracket.h src/models/byte-model.cpp src/models/byte-model.h src/models/direct-hash.cpp src/models/direct-hash.h src/models/direct.cpp src/models/direct.h src/models/indirect.cpp src/models/indirect.h src/models/fxcmv1.cpp src/models/fxcmv1.h src/models/match.cpp src/models/match.h src/models/model.h src/models/paq8.cpp src/models/paq8.h src/models/ppmd.cpp src/models/ppmd.h src/predictor.cpp src/predictor.h src/preprocess/dictionary.cpp src/preprocess/dictionary.h src/preprocess/preprocessor.cpp src/preprocess/preprocessor.h src/runner.cpp src/states/nonstationary.cpp src/states/nonstationary.h src/states/run-map.cpp src/states/run-map.h src/states/state.h
	$(CC) $(LFLAGS) src/coder/decoder.cpp src/coder/encoder.cpp src/context-manager.cpp src/contexts/bit-context.cpp src/contexts/bracket-context.cpp src/contexts/combined-context.cpp src/contexts/context-hash.cpp src/contexts/indirect-hash.cpp src/contexts/interval-hash.cpp src/contexts/interval.cpp src/contexts/sparse.cpp src/mixer/byte-mixer.cpp src/mixer/lstm-layer.cpp src/mixer/lstm.cpp src/mixer/mixer-input.cpp src/mixer/mixer.cpp src/mixer/sigmoid.cpp src/mixer/sse.cpp src/models/bracket.cpp src/models/byte-model.cpp src/models/direct-hash.cpp src/models/direct.cpp src/models/indirect.cpp src/models/fxcmv1.cpp src/models/match.cpp src/models/paq8.cpp src/models/ppmd.cpp src/predictor.cpp src/preprocess/dictionary.cpp src/preprocess/preprocessor.cpp src/runner.cpp src/states/nonstationary.cpp src/states/run-map.cpp -o cmix

enwik9-preproc: src/enwik9-preproc/article_reorder.h src/enwik9-preproc/main.cpp src/enwik9-preproc/misc.h src/enwik9-preproc/phda9_preprocess.h
	$(CC) $(LFLAGS) src/enwik9-preproc/main.cpp -o enwik9-preproc
	
remap: src/enwik9-preproc/article_remap.cpp
	$(CC) src/enwik9-preproc/article_remap.cpp -o remap

clean:
	rm -f cmix enwik9-preproc remap

http://www.kler.cn/a/517589.html

相关文章:

  • java读取设置pdf属性信息
  • 科普篇 | “机架、塔式、刀片”三类服务器对比
  • PyQt4 的图片切割编辑器
  • 专题三_穷举vs暴搜vs深搜vs回溯vs剪枝_全排列
  • 基于 Android 的校园闲置物品交易平台设计与实现
  • Grafana
  • 「 机器人 」“控制权”在扑翼飞行器中的重要性及其优化挑战
  • LeetCode#238. 除自身以外数组的乘积
  • 无人机在城市执法监管中的应用:技术革新与监管挑战
  • ThreeJs常用模块封装——加载进度条
  • uniapp使用uni.navigateBack返回页面时携带参数到上个页面
  • Tauri2+Leptos开发桌面应用--绘制图形、制作GIF动画和mp4视频
  • Rust 中的方法与关联函数详解
  • MyBatis最佳实践:动态 SQL
  • ANSYS SimAI
  • leetcode刷题记录(八十一)——236. 二叉树的最近公共祖先
  • 为AI聊天工具添加一个知识系统 之68 详细设计 之9 三种中台和时间度量
  • web前端三大主流框架对比,Angular和React和Vue的区别
  • 【Elasticsearch】如何重新启动_reindex任务?
  • Flutter 与 React 前端框架对比:深入分析与实战示例
  • electron打包客户端在rk3588上支持h265硬解
  • AcWing 3585:三角形的边 ← sort() 函数
  • 矩阵的秩在机器学习中具有广泛的应用
  • 解锁C# EF/EF Core:从入门到进阶的技术飞跃
  • AJAX笔记入门篇
  • 免费高效截图软件(snipaste)附下载链接