belcour / alta

ALTA: A BRDF Analysis Library
http://alta.gforge.inria.fr/
Other
14 stars 2 forks source link

Installation with scons on MacOS #18

Open larsgrobe opened 2 years ago

larsgrobe commented 2 years ago

Hi, I am just making a new attempt to use alta for fitting models to measured BSDF. Unfortunately, I had no success building on my current MacOS Monterey 12.4. My guess is that this is mainly due to some python incompatibilies, but I cannot decipher the error messages. So some observations.

Checking for C++ header file unsupported/Eigen/LevenbergMarquardt... yes scons: warning: Calling missing SConscript without error is deprecated. Transition by adding must_exist=False to SConscript calls. Missing SConscript 'build/sources/plugins/rational_fitter_eigen/SConscript' File "/Users/lars/git/alta/sources/plugins/SConscript", line 52, in build_plugin scons: warning: Ignoring missing SConscript 'build/sources/plugins/rational_fitter_leastsquare/SConscript' File "/Users/lars/git/alta/sources/plugins/SConscript", line 52, in build_plugin scons: warning: Ignoring missing SConscript 'build/sources/plugins/rational_fitter_quadprog/SConscript' File "/Users/lars/git/alta/sources/plugins/SConscript", line 52, in build_plugin scons: warning: Ignoring missing SConscript 'build/sources/plugins/rational_fitter_parallel/SConscript' File "/Users/lars/git/alta/sources/plugins/SConscript", line 52, in build_plugin TypeError: 'NoneType' object is not iterable: File "/Users/lars/git/alta/SConstruct", line 341: plugins = alta_sconscript('sources/plugins/SConscript') File "/Users/lars/git/alta/SConstruct", line 335: return env.SConscript(script, File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/SCons/Script/SConscript.py", line 597: return _SConscript(self.fs, *files, **subst_kw) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/SCons/Script/SConscript.py", line 285: exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals) File "/Users/lars/git/alta/sources/plugins/SConscript", line 78: a_flat_list_of_targets = list( itertools.chain(*(list(targets))))

belcour commented 2 years ago

Hi Lars,

I do not have access to the setup you have unfortunately. We are slowly moving to CMake for our build system. If you are using the master branch, you can use it to build almost all the library.

Best, -Laurent

larsgrobe commented 1 year ago

Hi Laurent,

just a quick update on this. I have been able to build alta with some modifications to the scons configuration. I am using the clang compiler and Eigen3 from macports. CXX = 'clang++-mp-16' (...) EIGEN_INC = ['/opt/local/include/eigen3'] (...) I compiled flann from a git: FLANN_INC = ['/Users/lars/git/flann/src/cpp'] FLANN_DIR = ['/Users/lars/git/flann/src/cpp'] FLANN_LIB = ['flann']

I have not been able to get the ceres, nlopt, and ipopt fitters running though. I will check the option to rely on cmake rather than scons, but did not do so yet.

Best, Lars.

belcour commented 1 year ago

Thanks for your feedback. :)