-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Successfully builds in windows using msys and Enthought Python #5
Open
Carl4
wants to merge
9
commits into
rca:master
Choose a base branch
from
Carl4:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
1b92b86
Almost functional Linux builds.
4319d2d
Removed printf debugging lines.
70ef312
first cut at a windows compatible version
Carl4 d19ba05
Works with Enthought Python Distribution 7.3, 64-bit windows, using M…
Carl4 610c5f5
improved some comments.
Carl4 9b604d3
improved comments.
Carl4 20c0786
Fixed an issue in Python under Linux that was preventing the memory a…
Carl4 b592ced
Merge branch 'master' of https://github.com/Carl4/PySPICE
22874d5
Updated README.rst for Windows compile instructions.
Carl4 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
rem | ||
rem mkcspice.bat Adapted to build cspice under windows / msys | ||
rem | ||
rem Creates cspice.lib for MS Visual C++ and moves it to the | ||
rem appropriate Toolkit directory. | ||
rem | ||
rem | ||
rem Version 3.1.0 19-OCT-2003 (BVS) | ||
rem | ||
rem added -DNON_ANSI_STDIO compile option. | ||
rem | ||
rem Version 3.0.0 03-NOV-1999 (NJB) | ||
rem | ||
rem fixed the last "set cl" command. | ||
rem | ||
rem Version 2.0.0 26-FEB-1999 (NJB) | ||
rem | ||
rem Added OMIT_BLANK_CC preprocessor flag. | ||
rem | ||
rem Version 1.0.0 29-DEC-1998 (NJB) | ||
rem | ||
|
||
cd cspice\src\cspice | ||
|
||
set cl= /c /O2 -D_COMPLEX_DEFINED -DMSDOS -DOMIT_BLANK_CC -DNON_ANSI_STDIO | ||
|
||
rem | ||
rem The optimization algorithm has a very tough time with zzsecptr.c, | ||
rem so exempt this routine from optimization. | ||
rem | ||
|
||
rename zzsecprt.c zzsecprt.x | ||
|
||
rem | ||
rem Compile everything else. | ||
rem | ||
|
||
REM BEGIN FISCHER MOD | ||
REM for %%f in (*.c) do cl %%f | ||
gcc -I..\..\include -c -O2 -D_COMPLEX_DEFINED -DOMIT_BLANK_CC -DNON_ANSI_STDIO -DMSDOS *.c | ||
REM ENDFISCHERMOD | ||
|
||
rem | ||
rem Set the cl variable to omit optimization. Compile zzsecprt.c. | ||
rem | ||
|
||
|
||
REM BEGIN FISCHER MOD | ||
REM set cl= /c -D_COMPLEX_DEFINED -DMSDOS -DOMIT_BLANK_CC | ||
REM END | ||
|
||
rename zzsecprt.x zzsecprt.c | ||
|
||
REM BEGIN FISCHER MOD | ||
REM cl zzsecprt.c | ||
gcc -I..\..\include -c -D_COMPLEX_DEFINED -DOMIT_BLANK_CC -DMSDOS zzsecprt.c | ||
REM END | ||
|
||
dir /b *.o > temp.lst | ||
|
||
REM BEGIN FISCHER MOD | ||
REM link -lib /out:cspice.lib @temp.lst | ||
|
||
REM gcc -o cspice.lib @temp.lst | ||
ar -cq cspice.lib @temp.lst | ||
gcc -shared -o cspice.dll @temp.lst | ||
REM END FISCHER MOD | ||
|
||
|
||
move cspice.lib ..\..\lib | ||
move cspice.dll ..\..\lib | ||
|
||
|
||
rem del *.o | ||
del temp.lst | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,8 @@ | |
|
||
#include <stdio.h> | ||
|
||
#include "spicemodule_custom.h" | ||
|
||
#ifndef __PYSPICE_H__ | ||
#define __PYSPICE_H__ 1 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line probably breaks Linux compatibility. Need an If statement.