metanorma / libemf2svg

Microsoft (MS) EMF to SVG conversion library
GNU General Public License v2.0
11 stars 2 forks source link

Add Alpine Linux build #28

Closed ronaldtse closed 2 years ago

ronaldtse commented 2 years ago

Add Alpine Linux build, fixes #27

ronaldtse commented 2 years ago

GitHub Actions is down at the moment, will re-check tomorrow.

ronaldtse commented 2 years ago

There is also this error in the Ubuntu build:

CMake Error at CMakeLists.txt:254 (include):
[28](https://github.com/metanorma/libemf2svg/runs/5649202688?check_suite_focus=true#step:5:28)
  include could not find requested file:
[29](https://github.com/metanorma/libemf2svg/runs/5649202688?check_suite_focus=true#step:5:29)

[30](https://github.com/metanorma/libemf2svg/runs/5649202688?check_suite_focus=true#step:5:30)
    CodeCoverage
[31](https://github.com/metanorma/libemf2svg/runs/5649202688?check_suite_focus=true#step:5:31)

[32](https://github.com/metanorma/libemf2svg/runs/5649202688?check_suite_focus=true#step:5:32)

[33](https://github.com/metanorma/libemf2svg/runs/5649202688?check_suite_focus=true#step:5:33)
CMake Error at CMakeLists.txt:255 (setup_target_for_coverage):
[34](https://github.com/metanorma/libemf2svg/runs/5649202688?check_suite_focus=true#step:5:34)
  Unknown CMake command "setup_target_for_coverage".
maxirmx commented 2 years ago

There is also this error in the Ubuntu build:

CMake Error at CMakeLists.txt:254 (include):
[28](https://github.com/metanorma/libemf2svg/runs/5649202688?check_suite_focus=true#step:5:28)
  include could not find requested file:
[29](https://github.com/metanorma/libemf2svg/runs/5649202688?check_suite_focus=true#step:5:29)

[30](https://github.com/metanorma/libemf2svg/runs/5649202688?check_suite_focus=true#step:5:30)
    CodeCoverage
[31](https://github.com/metanorma/libemf2svg/runs/5649202688?check_suite_focus=true#step:5:31)

[32](https://github.com/metanorma/libemf2svg/runs/5649202688?check_suite_focus=true#step:5:32)

[33](https://github.com/metanorma/libemf2svg/runs/5649202688?check_suite_focus=true#step:5:33)
CMake Error at CMakeLists.txt:255 (setup_target_for_coverage):
[34](https://github.com/metanorma/libemf2svg/runs/5649202688?check_suite_focus=true#step:5:34)
  Unknown CMake command "setup_target_for_coverage".

It requires set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")otherwise CodeCoverage function is not defined

maxirmx commented 2 years ago

@ronaldtse I fixed build script but there is segfault with one of the tests on alpine

ronaldtse commented 2 years ago

Thanks @maxirmx ! Can you help further find out where that segfault is due to?

maxirmx commented 2 years ago

The test against Arabic/Hebrew charset fails. It may take some time to understand specifics of bidi (Unicode Bidirectional) implementation in Alpine Linux