WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to compile Astrolog 7.7 on Tiny Core Linux (for TCL-11.1 ; x86 & x86_64-bit)  (Read 848 times)

Offline xor

  • Hero Member
  • *****
  • Posts: 1263
How to compile Astrolog 7.7 on Tiny Core Linux (for TCL-11.1 ; x86 & x86_64-bit)

https://sourceforge.net/projects/astrology/files/astrolog/

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 684
Why not try dong it your self, like I said the thread before.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14636
As a starting point, download the source tarball, uncompress it and check whether it uses autotools, cmake, meson or something else as a build system.

Offline xor

  • Hero Member
  • *****
  • Posts: 1263
I asked for your help because I don't know how to compile a file whose source code is not even 5MB.

I don't want you to provide me with a ready-compiled version, I want to compile it myself.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11316
Hi xor
Code: [Select]
tc@E310:~$ mkdir astroDownload  ast77src.zip  into the  astro  directory you just created.
Code: [Select]
tc@E310:~$ cd astro/
tc@E310:~/astro$ unzip ast77src.zip
tc@E310:~/astro$ tce-load -wil compiletc Xorg-7.7-dev
tc@E310:~/astro$ make
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o astrolog.o astrolog.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o atlas.o atlas.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o calc.o calc.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o charts0.o charts0.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o charts1.o charts1.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o charts2.o charts2.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o charts3.o charts3.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o data.o data.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o express.o express.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o general.o general.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o intrpret.o intrpret.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o io.o io.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o matrix.o matrix.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o placalc.o placalc.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o placalc2.o placalc2.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o xdata.o xdata.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o xgeneral.o xgeneral.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o xdevice.o xdevice.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o xcharts0.o xcharts0.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o xcharts1.o xcharts1.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o xcharts2.o xcharts2.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o xscreen.o xscreen.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o swecl.o swecl.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o swedate.o swedate.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o swehouse.o swehouse.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o swejpl.o swejpl.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o swemmoon.o swemmoon.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o swemplan.o swemplan.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o sweph.o sweph.cpp
g++  -O -Wno-write-strings -Wno-narrowing -Wno-comment  -c -o swephlib.o swephlib.cpp
cc -o astrolog astrolog.o atlas.o calc.o charts0.o charts1.o charts2.o charts3.o data.o express.o general.o intrpret.o io.o matrix.o placalc.o placalc2.o xdata.o xgeneral.o xdevice.o xcharts0.o xcharts1.o xcharts2.o xscreen.o swecl.o swedate.o swehouse.o swejpl.o swemmoon.o swemplan.o sweph.o swephlib.o -lm -lX11 -ldl -s
tc@E310:~/astro$ ./astrolog

If you enter:
Code: [Select]
tc@E310:~/astro$ ./astrolog -Hit will list about 270 command line switches.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11316
Hi Juanito
... check whether it uses autotools, cmake, meson or something else as a build system.
Nothing like that. Just a simple Makefile complete with
comments and explanations:
Code: [Select]
tc@E310:~/astro$ cat Makefile
# Astrolog (Version 7.70) File: Makefile (Unix version)
#
# IMPORTANT NOTICE: Astrolog and all chart display routines and anything
# not enumerated elsewhere in this program are Copyright (C) 1991-2024 by
# Walter D. Pullen (Astara@msn.com, http://www.astrolog.org/astrolog.htm).
# Permission is granted to freely use, modify, and distribute these
# routines provided these credits and notices remain unmodified with any
# altered or distributed versions of the program.
#
# First created 11/21/1991.
#
# This Makefile is included only for convenience. One could easily compile
# Astrolog on most Unix systems by hand with the command:
# % cc -c -O *.cpp; cc -o astrolog *.o -lm -lX11
# Generally, all that needs to be done to compile once astrolog.h has been
# edited, is compile each source file, and link them together with the math
# library, and if applicable, the main X library.
#
NAME = astrolog
OBJS = astrolog.o atlas.o calc.o charts0.o charts1.o charts2.o charts3.o\
 data.o express.o general.o intrpret.o io.o matrix.o placalc.o placalc2.o\
 xdata.o xgeneral.o xdevice.o xcharts0.o xcharts1.o xcharts2.o xscreen.o\
 swecl.o swedate.o swehouse.o swejpl.o swemmoon.o swemplan.o sweph.o\
 swephlib.o

# If you don't have X windows, delete the "-lX11" part from the line below:
# If not compiling with GNUC, delete the "-ldl" part from the line below:
LIBS = -lm -lX11 -ldl -s
CPPFLAGS = -O -Wno-write-strings -Wno-narrowing -Wno-comment
RM = rm -f

$(NAME): $(OBJS)
        cc -o $(NAME) $(OBJS) $(LIBS)

clean:
        $(RM) $(OBJS) $(NAME)
#
So simple a child could do it. Unless that child
is too lazy and spoiled to even try. :(

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 684
So simple a child could do it. Unless that child is too lazy and spoiled to even try. :(

Can't say it better myself.

History: First ask if someone can do it, and no body answer.
And then bump the thread, to get attension.
Then I suggest to the user to try compile it, and get help from this forum.
And now remove the prev thread and create i new one with the same question.

Sorry for being little helpless/help willing(if that is the correct word, don't know)
« Last Edit: May 27, 2024, 10:02:29 AM by patrikg »

Offline xor

  • Hero Member
  • *****
  • Posts: 1263
thanks.

I found the missing command.

Code: [Select]
tce-load -wil compiletc Xorg-7.7-dev

Offline Rlottien

  • Newbie
  • *
  • Posts: 5
I tackled this a while back on TCL-11.1. I started by installing the essential dependencies like gcc and make. The README had some hints on required libraries, so make sure to double-check those. I had the best luck compiling on a clean TCL setup. If you hit a snag, sometimes reinstalling the dependencies or updating them helps. Hope this helps you get it running!