Coder Social home page Coder Social logo

swissephemeris's Introduction

note: project is unmaintained!

Swiss Ephemeris for OS X and iOS

This repo contains a configured Xcode workspace with a Xcode project for use in Mac apps and a Xcode project for use in iOS apps.

Features

  • Preconfigured Xcode project with Swiss Ephemeris 2.03 source code ready to be build.
  • Build easily libraries for OS X and iOS. Note: The source code is not checked or audited for correct operation and results on 64-bit architectures.
    • OS X: SwissEphemeris.framework supports OS X 10.6 or later on x86_64
    • iOS: libSwissEphemeris.a supports iOS 6.0 or later on the simulator and armv7 and arm64 on the device
    • iOS: SwissEphemeris.framework supports iOS 8.0 or later on the simulator and armv7 and arm64 on the device
  • A pure as possible distribution and use of the Swiss Ephemeris source code from Astrodienst AG. The only changes that increase better support on OS X or iOS will be incorporated.
  • Automatic configuration: There is no need to manually call swe_set_ephe_path(). This function will be called automatically. On OS X the framework resources directory will be used and on iOS the main bundle resources directory. If you don't like this behavior, please open an issue.
  • ~/Application Support/SwissEphemeris (OS X): Users can use this folder to add additional data files. The framework will prioritize these files over the data files which are distrubuted as part of the framework.

Data reference

You can use the test page at Astrodient for data comparison.

Further reading

swissephemeris's People

Contributors

dwlnetnl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

swissephemeris's Issues

Call for maintainers

Hi everyone,

Since I don't use this project anymore I'm looking for a new one or maybe more maintainers. Please let me know if you'd like to take over and we arrange access etc.

Thanks,
Anner

Build Failed : PBXCp Error

Can't build project, No such file or directory sepl_00.se1 and sepl_06.se1

capture d ecran 2016-10-24 a 14 34 50

When I look at the Copy Bundle Ressources there are a lot of files that don't exist in the Data repository.

EDIT : All the files listed in Copy Bundle Ressources don't exist in my Data folder.
Am I missing something?

How to: Build libSwissEphemeris?

I opened the project in Xcode and click on the library target and hit buid and it fails with error:

SwissEphemeris-blfliwhgfsqihucocygnxcxsitoh/Build/Products" SYMROOT="/Users/bhakta/Library/Developer/Xcode/DerivedData/SwissEphemeris-blfliwhgfsqihucocygnxcxsitoh/Build/Products"
xcodebuild: error: SDK "iphonesimulator1.4" cannot be located.
Command /bin/sh failed with exit code 64

Question: How to add framework to iOS

I'm looking to use this framework for iOS >= 8.0 but I'm curious as to how I can actually include it in my project. How can I bundle this framework and the ephemeris files into the XCode project? The idea would be I could commit the project to a repository and someone could check it out and build it without having the framework installed on their machine.

Using the framework

Hi,
I am fairly new in using frameworks so i am confused in how to use this one. Building the code in Xcode 8 throws following error:
XCode has selected SDK: iphonesimulator with version: 0.2 (although back-targetting: 10.2) and also
screen shot 2017-02-08 at 17 39 31

I tried using framework only without data files, it works but i am confused how to incorporate data files in xcode workspace and utilise the framework. Small example code would be good to have.

I am complete noob with frameworks, so please bear with me !

Missing complied public vars from swephexp.h

Hi,

very useful framework indeed.

Got a problem when compiling for iOS using the SwissEphemeris framework. I want to use SEFLG_EQUATORIAL as in this example Swift code: (BTW this is the first error I've had with the framework)

private var serr = [Int8](count: 1024, repeatedValue: 0);
private var x = [Double](count: 6, repeatedValue: 0);

// tjd calculated previously ( tjd = swe_julday(intYear, intMonth, intday, timeDbl, SE_GREG_CAL))

swe_calc_ut(tjd, 1, SEFLG_EQUATORIAL ,&x, &serr)

this doesn't compile, with error:

Use of unresolved identifier 'SEFLG_EQUATORIAL'

Looking at the compiled code for the framework it becomes obvious why (it's missing):

public var SEFLG_SPEED: Int32 { get } /* high precision speed /
public var SEFLG_NOGDEFL: Int32 { get } /
turn off gravitational deflection /
public var SEFLG_NOABERR: Int32 { get } /
turn off 'annual' aberration of light /
/
equatorial positions are wanted /
/
cartesian, not polar, coordinates */

I hope you can help. I hope this enough information.

Any advice appreciated.

Roger

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.