API_Cpp icon indicating copy to clipboard operation
API_Cpp copied to clipboard

API_Cpp

Open tluebeck opened this issue 9 years ago • 7 comments

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

tluebeck avatar Oct 13 '16 14:10 tluebeck

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.

tcarpent avatar Oct 13 '16 17:10 tcarpent

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

tluebeck avatar Nov 03 '16 12:11 tluebeck

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

tluebeck avatar Nov 04 '16 13:11 tluebeck

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

tcarpent avatar Nov 04 '16 13:11 tcarpent

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.

tluebeck avatar Nov 04 '16 14:11 tluebeck

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

tluebeck avatar Nov 09 '16 10:11 tluebeck

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.

tcarpent avatar Nov 09 '16 10:11 tcarpent