Git Product home page Git Product logo

Comments (10)

SteamedFish avatar SteamedFish commented on August 22, 2024

MacPorts installs libraries into a non-standard location. You should tell ./configure where the library is.
You should use ./configure ----includedir=<MacPorts directory>/include/
For example, ./configure --includedir=/opt/local/include/ if your MacPorts is located at /opt/local/

from twilc.

 avatar commented on August 22, 2024

@SteamedFish I tried that, and I get the same error.

from twilc.

SteamedFish avatar SteamedFish commented on August 22, 2024

Have you installed ncursesw library other than ncurses? ncursesw is also required. We should add this to the dependencies list.

from twilc.

 avatar commented on August 22, 2024

I have installed both ncursesw and ncurses.

from twilc.

SteamedFish avatar SteamedFish commented on August 22, 2024

Can you post the full information ./configure prints?
The script works under my Mac.

from twilc.

 avatar commented on August 22, 2024

Sure:

checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for cos in -lm... yes
checking for initscr in -lncursesw... no
configure: error: ncursesw not found

The output is the same if I use the --includedir solution you proposed.

from twilc.

SteamedFish avatar SteamedFish commented on August 22, 2024

Wired. Can you find /opt/local/include/cursesw.h on your system? Can you try ./configure --prefix=/opt/local/ ?
I don't know what's happening. I'll try find a clean installed Mac to test tomorrow.
It's 01:30 am in China. Have to sleep. Sorry. :-)

from twilc.

 avatar commented on August 22, 2024

Yes, /opt/local/include/cursesw.h exists. And the solution you posted still doesn't work.

from twilc.

SteamedFish avatar SteamedFish commented on August 22, 2024

http://dreness.com/wikimedia/index.php?title=How_to_compile_other_software_using_Macports_libraries
This is a guide of how to compile programs using Macports libraries.
I found a clean installed Mac, got the same issue as you, and after I tried this guide it worked.

from twilc.

 avatar commented on August 22, 2024

That worked! Thank you!

from twilc.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.