Re: [CMake] Linking on OSX

2019-06-05 Thread Bryan Christ
Yes. Unfortunately the version of curses which is supplied by XCode doesn't include the wide character support so I have to point elsewhere. On Tue, Jun 4, 2019 at 5:57 PM Juan E. Sanchez wrote: > Hello, > > It looks like you are making progress. Note that to use the gcc-8 and > g++-8

Re: [CMake] Linking on OSX

2019-06-04 Thread Juan E. Sanchez
Hello, It looks like you are making progress. Note that to use the gcc-8 and g++-8 compilers from brew, you need to have include files in /usr/include. Otherwise you get strange errors about missing _stdio.h, etc. I believe in another thread, someone suggests how to make sure the headers

Re: [CMake] Linking on OSX

2019-06-04 Thread Bryan Christ
Indeed. They all have their nuances :) On Tue, Jun 4, 2019 at 4:36 PM Guy Harris wrote: > On Jun 4, 2019, at 2:27 PM, Bryan Christ wrote: > > > Thanks for the explanation. Yes. The use of the term Library certainly > added to my confusion. I've been coding on Linux for 20 and the "proper"

Re: [CMake] Linking on OSX

2019-06-04 Thread Guy Harris
On Jun 4, 2019, at 2:27 PM, Bryan Christ wrote: > Thanks for the explanation. Yes. The use of the term Library certainly > added to my confusion. I've been coding on Linux for 20 and the "proper" way > of doing things on Mac is a bit elusive to me as I stumble around. Yeah, it must be

Re: [CMake] Linking on OSX

2019-06-04 Thread Bryan Christ
Thanks for the explanation. Yes. The use of the term Library certainly added to my confusion. I've been coding on Linux for 20 and the "proper" way of doing things on Mac is a bit elusive to me as I stumble around. On Tue, Jun 4, 2019 at 4:21 PM Guy Harris wrote: > On Jun 4, 2019, at 1:33

Re: [CMake] Linking on OSX

2019-06-04 Thread Bryan Christ
Yes. Unfortunately, I still don't get the wide version of ncurses so I have to point elsewhere. But even assuming that solved my problem , I understand the procedure is a stop-gap and might not eventually be supported. On Tue, Jun 4, 2019 at 4:01 PM Guy Harris wrote: > On Jun 4, 2019, at

Re: [CMake] Linking on OSX

2019-06-04 Thread Guy Harris
On Jun 4, 2019, at 1:33 PM, Bryan Christ wrote: > I would agree with you, but I've been told that OSX is moving away from it's > Unix heritage and placing libraries in non-traditional locations (not /usr or > /usr/local) and that's going to be increasingly the norm in the future. > >

Re: [CMake] Linking on OSX

2019-06-04 Thread Bryan Christ
Guy, I would agree with you, but I've been told that OSX is moving away from it's Unix heritage and placing libraries in non-traditional locations (not /usr or /usr/local) and that's going to be increasingly the norm in the future.

Re: [CMake] Linking on OSX

2019-06-04 Thread Guy Harris
On Jun 3, 2019, at 3:27 PM, Juan E. Sanchez wrote: > It looks like macOS made it so you have to do something like this: > open > /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg > > for libraries and includes to be put into /usr. *Libraries* should exist in

Re: [CMake] Linking on OSX

2019-06-04 Thread Guy Harris
On Jun 4, 2019, at 10:56 AM, Bryan Christ wrote: > Thanks for your suggestions. I went through that thread pretty thoroughly > trying all of the recommended tips and, unfortunately, nothing seemed to > work. I also tried running that open command you cited, but there are still > no includes

Re: [CMake] Linking on OSX

2019-06-04 Thread Bryan Christ
Juan, In my case I was looking to build and link against ncurses. A second set of libs got installed by homebrew so I decided to use those instead. To use the alternate location, I was told the following would work (and it did). set(CMAKE_PREFIX_PATH /usr/local/opt/ncurses) On Mon, Jun 3,

Re: [CMake] Linking on OSX

2019-06-04 Thread Bryan Christ
Juan, Thanks for your suggestions. I went through that thread pretty thoroughly trying all of the recommended tips and, unfortunately, nothing seemed to work. I also tried running that open command you cited, but there are still no includes for ncurses in /usr/include or /usr/local/include. In

Re: [CMake] Linking on OSX

2019-06-03 Thread Bryan Christ
Jaun, Thank you for pointing out that thread / issue. It's a rather thread, but s much I've what I'm experiencing is characterized in there. I'll look tomorrow and reply with results. On Mon, Jun 3, 2019 at 5:27 PM Juan E. Sanchez wrote: > Hello, > > According to this: >

Re: [CMake] Linking on OSX

2019-06-03 Thread Juan E. Sanchez
Hello, According to this: https://github.com/neovim/neovim/issues/9050 It looks like macOS made it so you have to do something like this: open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg for libraries and includes to be put into /usr. Regards, Juan

[CMake] Linking on OSX

2019-06-03 Thread Bryan Christ
New to this mailing list so I hope I'm asking this in the right venue... I'm trying to port my application (a program and a shared library) to OSX. It was rather easy to modify my CMake script to go from Linux and add in FreeBSD. OSX is giving me a lot of problems though. First of all