Comments (6)
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.
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.
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.
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.
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.
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)
- Find orb fails when outputting ephemeris HOT 1
- Not saving elements.txt file on Linux
- Unable to compile on Debian 10 (Buster) HOT 1
- find_orb messes up terminal colour map HOT 5
- unable to compile find_orb : no curses.h HOT 2
- Problems with orbit fitting when using Orbit Determination HOT 1
- ARM g++ compile error due to warning on signed char in bias.cpp HOT 4
- ARM g++ unable to compile lsquare.cpp HOT 9
- Finding the errors on the phase angle, object-sun dist(delta) and elongation angle???
- load_default_environment_file error HOT 1
- fo64.exe runtime error HOT 4
- Does 'fo' support Lat+Lon input? HOT 3
- g++ compile error due to warning in runge.cpp HOT 5
- Saving orbital elements in MPC format? HOT 1
- Saving orbital elements in astorb.dat format? HOT 1
- POST parameter for On-line Find_Orb page to prefill observations automatically HOT 2
- What is the cause for the difference in orbital elements/state vector results between On-line Find_Orb and local 'fo'? HOT 2
- fo: Overriding the JSON output (folder) location specified in environ.dat(/.def) for a single request HOT 1
- Orbital elements in JSON output not correctly normalized into correct range HOT 3
- Program won't run on Archlinux HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from find_orb.