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

Shell script to build in lib for OSX #83

Closed
chrisisonwildcode opened this issue May 10, 2014 · 5 comments
Closed

Shell script to build in lib for OSX #83

chrisisonwildcode opened this issue May 10, 2014 · 5 comments

Comments

@chrisisonwildcode
Copy link
Contributor

Putting together a cmake option to build as single file ... default off.

This will help to debug on systems that make it difficult to debug libraries ... like osx and cygwin

@psi29a
Copy link
Member

psi29a commented May 10, 2014

What do you mean exactly? You mean static building, then that option is already available.

@chrisisonwildcode
Copy link
Contributor Author

OSX is being a pain, even with static build I have a SEG and I can't put breakpoints into the lib to debug it. bt in gdb gives

Program received signal SIGSEGV, Segmentation fault.
0x00007fff8bdb689b in ?? ()
(gdb) bt
#0 0x00007fff8bdb689b in ?? ()
#1 0x00007fff5fbfeeb0 in ?? ()
#2 0x00007fff8bdc7813 in ?? ()
#3 0x000000000000000c in ?? ()
#4 0x0000000000000000 in ?? ()

@psi29a
Copy link
Member

psi29a commented May 10, 2014

Wow, you're missing debug symbols. In cmake, by default, we build debug builds (and you can expressly set this if you want). The result is that it adds the following flags:
ADD_DEFINITIONS( -ggdb3 -O0 )

Can you verify that this is indeed what is happening?

@psi29a
Copy link
Member

psi29a commented May 10, 2014

Is it possible that OSX/Xcode is stripping the symbols off?

@chrisisonwildcode
Copy link
Contributor Author

Closing this since that static build provides what this thread was about.

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