Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API_Cpp #5

Open
tluebeck opened this issue Oct 13, 2016 · 7 comments
Open

API_Cpp #5

tluebeck opened this issue Oct 13, 2016 · 7 comments

Comments

@tluebeck
Copy link

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

@tcarpent
Copy link
Contributor

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.

@tluebeck
Copy link
Author

tluebeck commented Nov 3, 2016

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
Copy link
Author

tluebeck commented Nov 4, 2016

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

@tcarpent
Copy link
Contributor

tcarpent commented Nov 4, 2016

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]
#5 (comment)
[2]
https://github.com/notifications/unsubscribe-auth/AL7w2gS2j4lGoNTYPHWYrlotJME_zfnmks5q6zNjgaJpZM4KV7rs

@tluebeck
Copy link
Author

tluebeck commented Nov 4, 2016

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
Copy link
Author

tluebeck commented Nov 9, 2016

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

@tcarpent
Copy link
Contributor

tcarpent commented Nov 9, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants