huxingyi / dust3d

Dust3D is a cross-platform 3D modeling software that makes it easy to create low poly 3D models for video games, 3D printing, and more.
https://dust3d.org/
MIT License
2.98k stars 222 forks source link

Compilation errors on MacOS #87

Closed bobpepin closed 1 year ago

bobpepin commented 4 years ago

I had to make the following changes to compile on macos with the latest Qt and CGAL installed by brew.

  1. Some parts of boost have #include <version>, due to case-insensitivity of APFS this resolves to thirdparty/quickjs/quickjs-2019-07-09-dust3d/VERSION which is not a header file. Renaming the latter file helped, switching around the order of the include paths in dust3d.pro so that boost comes before quickjs probably also works.

  2. The CGAL installed by brew requires C++14. Inserting "CONFIG += c++14" in the macos {} section of the .pro file did the trick.

  3. The CGAL seems to be template-only, I got it to compile the brute-force way by removing -lcgal from the generated Makefile. Removing the corresponding entry from the .pro file probably also does the trick (CGAL_LIBNAME?).

Sorry for not testing out the "proper" solutions, but it takes quite a long time to compile on my MacBook.

huxingyi commented 4 years ago

Current .pro file and related CI files have a lot hacks to make it work. Your observation is invaluble, thanks, especially since I have switched my main development environment from a Mac Book to a Dell Windows.

bobpepin commented 4 years ago

I just tried swapping around the order of include paths for point 1, doesn't work. Interesting that you are not hitting the same issue on windows.

huxingyi commented 1 year ago

Closed as not relevant to the latest release anymore, thanks and feel free to reopen it.