Compile Library Isssue

asked 2015-02-26 04:40:43 -0700

anonymous user



I have compiled the library for ios. I have followed the step mentioned at the following address.


I am using 14.06.00 version. The sample in the following directory works fine.


But When I restart my mac machine and run the sample again it gives me following error.

library not found for -lssl

I have to recompile and follow all the step again. After that the sample works fine. What I am doing wrong?

edit retag flag offensive close merge delete


I've had the exact same problem.

jworr ( 2015-02-26 10:18:33 -0700 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-02-26 11:37:51 -0700

Nikhil Dabhade gravatar image

updated 2015-02-26 11:59:05 -0700

The samples or any other app using AllJoyn framework needs OPENSSL_ROOT set.

The documentation mentions

launchctl setenv OPENSSL_ROOT <path to openssl root>

When you followed the instructions you would have set OPENSSL_ROOT. When you restart your machine the OPENSSL_ROOT variable is not found and thus you get that error. After executing the above command you have to restart Xcode for it to pick up this variable

Rather than following all the steps the error in your case clearly points to openssl problem

Update If you are running Yosemite (10.10) it is slightly different

> launchctl setenv OPENSSL_ROOT /path/to/openssl/build
> sudo killall Finder
> sudo killall Dock
> open -a Xcode

Although the solution for 10.10 is not clean it should work until we find a cleaner way to do it.

Let me know if it does not fix your problem

edit flag offensive delete publish link more


Not sure what happened to my other post, but yes I'm running 10.10. This was indeed the problem. I didn't create the question, so I can't accept this answer, but I believe it is correct.

jworr ( 2015-02-26 11:55:02 -0700 )edit

For Yosemite (10.10) > launchctl setenv OPENSSL_ROOT /path/to/openssl/build > sudo killall Finder > sudo killall Dock > open -a Xcode That should make Xcode pick up OPENSSL_ROOT

Nikhil Dabhade ( 2015-02-26 11:56:55 -0700 )edit

Does this method for 10.10 persist across reboots?

ry.jones ( 2015-02-26 12:03:46 -0700 )edit

I haven' tested it. My best guess for now is that it does not.

Nikhil Dabhade ( 2015-02-26 12:05:49 -0700 )edit
Login/Signup to Answer

Question Tools



Asked: 2015-02-26 04:40:43 -0700

Seen: 185 times

Last updated: Feb 26 '15