alfalfa icon indicating copy to clipboard operation
alfalfa copied to clipboard

Tips on building on MacOS?

Open r00k opened this issue 7 years ago • 5 comments

Hi!

Thanks for publishing this impressive project (and a very clear and readable paper).

I have a dream: to get this project compiling/running on MacOS.

Any chance you have any pointers or suggestions as I get started? Is this a semi-feasible goal?

Thanks!

r00k avatar Apr 14 '18 17:04 r00k

Hi @r00k,

Thank you for taking the time to reach out. It should be totally possible. I can think of changes that are necessary in two categories:

  1. Things related to display. Salsify uses GLFW3, which is available on macOS. I don't think much code change is necessary, just a matter of figuring out the right set of compilation flags (take a look at this).

  2. To read the images from the camera, Salsify uses V4L2 (check out camera.hh), which I don't think is available on macOS. All that is necessary is a new implementation of the Camera class (same interface) that uses macOS API to read the frames.

There could be some other minor changes here and there, but nothing too difficult, I hope.

Please don't hesitate to contact us with any questions!

–Sadjad

sadjad avatar Apr 14 '18 18:04 sadjad

Thanks so much for the helpful reply, @sadjad! I really appreciate it :).

I'm learning C++ as I go, so I expect it'll be slow going, but I'm going to start chipping away at this.

I'll report back with my progress/reach out if I get stuck.

r00k avatar Apr 15 '18 01:04 r00k

Hi @sadjad , I want to run the program on windows.how can I do this?I really want your some suggestions.

necnecnec avatar May 03 '18 09:05 necnecnec

I'm trying to build it on MaxOS, and got an "No package 'gl' found" error. I searched and found GL is a framework rather than library on Mac: https://stackoverflow.com/questions/29457534/cmake-on-osx-yosemite-10-10-3-glew-package-gl-not-found can you change the configure in the project? @sadjad

sparkmorry avatar Nov 27 '19 07:11 sparkmorry

Did you find some solution for Mac building?

@sadjad @sparkmorry

viksyy avatar May 07 '20 19:05 viksyy