Giter Site home page Giter Site logo

Comments (6)

Mikea1985 avatar Mikea1985 commented on August 23, 2024

I tried running ncursesw5-config --cflags and putting the output in the makefile to have CURSES_LIB=-I/usr/include/ncursesw instead what was in there, but that just gives a different error message:

g++ -o find_orb findorb.o b32_eph.o bc405.o bias.o collide.o conv_ele.o details.o eigen.o elem2tle.o elem_out.o elem_ou2.o ephem0.o errors.o gauss.o geo_pot.o healpix.o lsquare.o miscell.o moid4.o monte0.o mpc_obs.o mt64.o nanosecs.o orb_func.o orb_fun2.o pl_cache.o roots.o runge.o shellsor.o sigma.o simplex.o sm_vsop.o sr.o stackall.o   -L ~/lib -lm -llunar -ljpl -lsatell -I/usr/include/ncursesw
findorb.o: In function `put_colored_text(char const*, int, int, int, int)':
findorb.cpp:(.text+0x20): undefined reference to `stdscr'
findorb.cpp:(.text+0x64): undefined reference to `stdscr'
findorb.cpp:(.text+0x81): undefined reference to `wmove'
... <270 similar lines that I cut out as I'm guessing they probably don't have much value> ...
findorb.cpp:(.text.startup+0x8b74): undefined reference to `resize_term'
findorb.cpp:(.text.startup+0x8b7b): undefined reference to `stdscr'
findorb.cpp:(.text.startup+0x8c20): undefined reference to `clear'
collect2: error: ld returned 1 exit status
make: *** [find_orb] Error 1

Same happens if I use the output of ncursesw6-config --cflags instead.

from find_orb.

talister avatar talister commented on August 23, 2024

Does it help if you add -L<output of ncursesw6-config --libdir> <output of ncursesw6-config --libs ? (You could probably use backticks in the makefile, I just can't put them in here since Markdown uses them for code highlighting..

from find_orb.

Mikea1985 avatar Mikea1985 commented on August 23, 2024

Thanks for the prompt reply. No, adding that does not seem to change the error message. Although, I'm not sure where you want the backticks you mention...

from find_orb.

talister avatar talister commented on August 23, 2024

I got it to build (in a Ubuntu 16.04 Docker container) with:

apt-get install -y git libncurses5-dev libncursesw5-dev gcc build-essential
mkdir ~/git_find_orb
cd ~/git_find_orb
git clone https://github.com/Bill-Gray/lunar.git
git clone https://github.com/Bill-Gray/sat_code.git
git clone https://github.com/Bill-Gray/jpl_eph.git
git clone https://github.com/Bill-Gray/find_orb.git
cd lunar && make && make install && cd ..
cd jpl_eph && make && make install && cd ..
cd lunar && make integrat && make install && cd ..
cd sat_code && make && make install && cd ..
cd find_orb && make && make install

Both libncurses5-dev and libncursesw5-dev needed to be installed.

from find_orb.

Bill-Gray avatar Bill-Gray commented on August 23, 2024

Hmmm... libncurses5-dev and libncursesw5-dev are separate packages. You mention having the former installed. Do you have the latter (the wide-character/Unicode variant of ncurses)?

It looks to me as if you've got things partly set up to make use of the wide-char version, so it's defining all the Curses functions with wide-char attributes. Then when it goes to actually link to the library, it's not finding those functions; it's just finding the 8-bit Curses functions. I think. I'd bet that if you install libncursesw5-dev, things will improve... at the very least, that's a "necessary, though perhaps insufficient" criterion.

from find_orb.

Mikea1985 avatar Mikea1985 commented on August 23, 2024

Thanks Bill-Gray! Installing libncursesw5-dev did the trick. I honestly have no idea what I could have done to have gotten things partly set up to use the w-version, if the non-w version is the default. I thought I just followed the instructions. Anyway, it appears to work now. Thanks.

from find_orb.

Related Issues (20)

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.