API_Cpp
API_Cpp copied to clipboard
API_Cpp
Hi,
I tried to compile the c++ API on Mac Os El Capitan but I can't managed it. Usually I use Linux (there it works perfectly) but I have no idea how to compile it on Mac. Can someone give me a little manual or a link where I can find further information.
Thanks for help Tim
Hi,
Go to libsofa/build/macos Open the project libsofa.xcodeproj in Xcode Choose the target(s) you want to build ("all", "libsofa", etc.) Then build it (in the "Product" menu)
Hope this helps, T.
Hi,
sorry for my late response. I build it using Xcode and got the libs in directory "lib". Thanks for your help! But I can't compile the application I want to use the sofa api for. Do you know what do do with the dependencies? Just write the path "sofa/API_Cpp/libsofa/dependencies/lib/macos" in the .profil or do I have to compile them as well. Thanks
Hi, maybe this information will help: I try to compile the soundscape-renderer. Is there someone who managed it to compile it with sofa support on MacOs? thanks, Tim
Hello Tim,
You need to link against all the sofa dependencies. (netcdf, hdf5, etc.) On OSX, I recommend you use the pre-compiled dependencies that I provided (files that are in the dependencies/lib folder) Add the proper path to your library search path, and pass the libraries to the linker.
T.
Le 2016-11-04 13:30, TiLue a écrit :
Hi, maybe this information will help: I try to compile the soundscape-renderer. Is there someone who managed it to compile it with sofa support on MacOs? thanks, Tim
You are receiving this because you commented. Reply to this email directly, view it on GitHub [1], or mute the thread [2].
Links:
[1] https://github.com/sofacoustics/API_Cpp/issues/5#issuecomment-258431089 [2] https://github.com/notifications/unsubscribe-auth/AL7w2gS2j4lGoNTYPHWYrlotJME_zfnmks5q6zNjgaJpZM4KV7rs
Hi, thanks for your prompt reply. I will check it. But I guess I add all the path correctly to my library search path. Will report as soon as I check it out.
Hi, this is what I added to my .profile. " export SOFA_INC_DIR="/Users/Brettgeige/sources/sofa/API_Cpp/libsofa/src" export SOFA_LIB_DIR="/Users/Brettgeige/sources/sofa/API_Cpp/libsofa/lib" export SOFA_DEPS_INC_DIR="/Users/Brettgeige/sources/sofa/API_Cpp/libsofa/dependencies/include" export SOFA_DEPS_LIB_DIR="/Users/Brettgeige/sources/sofa/API_Cpp/libsofa/dependencies/lib/macos" "
Is is correct or any mistakes? Cause I can't configure the ssr with sofa support. Thank you Tim
Hi Tim,
I'm sorry, but I think that at some point you'll need to learn/google how to link libraries. I assume SSR is using makefile. You'll need to edit your makefile so that it can find the sofa libs and link them.
It is just impossible to further help you given the informations you provide.