Embroidermodder / libembroidery

Library for reading/writing/manipulating machine and design embroidery files
https://www.libembroidery.org
zlib License
45 stars 13 forks source link

`make --install .` fails on MacOS 13.1 #214

Open codazoda opened 1 year ago

codazoda commented 1 year ago

Hi,

I'm trying to compile on MacOS 13.1. I thought I saw a note somewhere that said you might need help building on MacOS, but I can't find that note anymore.

Anyway, the first problem is the following error.

CMake Error at cmake_install.cmake:49 (file): file cannot create directory: /usr/include. Maybe need administrative privileges

You get the same error if you use sudo or not.

This is probably caused by the fact that /usr/include is no longer accessible on MacOS and you need to use /usr/local/include. I tried to update cmake_install.cmake to update that path and then I get another error related to /usr/lib which is similar (should be /usr/local/lib).

I thought I'd throw an issue in here in case you might be interested in working through this on MacOS. If not, I'm happy to fire up a linux docker container and install it there instead.

My Background: I'm interested in building a web based embroidery organization tool to solve a problem that my Mom has and which I presume isn't unique to her. The first thing I need, in order to build that, is to learn how to extract or generate preview images for her various file formats. I thought I might be able to use the embroider cli for that. I'm primarily a web developer with around 25 years of professional dev experience but I don't do a lot of C, CPP, or Make.

I have a relatively popular blog post on how to install Husqvarnia 3D Embroidery software on modern versions of Windows. That I also learned and documented while I was helping my Mom with one of her machines.

robin-swift commented 1 year ago

Hi @codazoda

This is probably caused by the fact that /usr/include is no longer accessible on MacOS and you need to use /usr/local/include. I tried to update cmake_install.cmake to update that path and then I get another error related to /usr/lib which is similar (should be /usr/local/lib).

Thanks for that fix: I've made those changes.

The first thing I need, in order to build that, is to learn how to extract or generate preview images for her various file formats.

This is feasible, but you'd need to stick with me and file more issues like this one. Does it need to be a real render or a simple line drawing?

Currently HUS is a weaker format for read/write for us (due to a non-standard compression algorithm), you may need to test this against DST or CSV first.

Cheers

Robin