Blame view

GUI/SW2/INSTALL.md 8.02 KB
886c558b   Steve Greedy   SACAMOS Public Re...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
Installation Instructions For gSpiceUI vSACAMOS
------------------------------------------------

This file is part of SACAMOS, cable models for EMI simulations in SPICE.
It was developed by the University of Nottingham and the Netherlands Aerospace
Centre (NLR) for ESA under contract number 4000112765/14/NL/HK.

Copyright (C) 2015-2017 University of Nottingham

SACAMOS is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.

SACAMOS is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.

A copy of the GNU General Public License version 3 can be found in the
file GNU_GPL_v3 in the root or at <http:www.gnu.org/licenses/>.

The University of Nottingham can be contacted at: ggiemr@nottingham.ac.uk

Contents
========
1. Introduction
2. Requirements
3. Installation:
    i)    wxWidgets on Linux
    ii)   wxWidgets on MS Windows
    iii)  gSpiceUI vSACAMOS on Linux
    iv)   gSpiceUI vSACAMOS on MS Windows
    v)    installation note on Ngspice for MS Windows
    
1. Introduction
===============

gSpiceUI vSACAMOS (version SACAMOS) is a lightly modified version of gSpiceUI 
authored by Mike Waters (https://sourceforge.net/projects/gspiceui/). The 
modifications do not alter the intended functionality of the original project 
but simply add an additional set of menu commands, which guide the user through 
the steps required to utilise the Spice sub-circuits generated by SACAMOS, i.e.:

    i)    Import the symbols generated by SACAMOS into gschem
    ii)   Launch gschem to design a schematic
    iii)  Generate the netlist against which ro run the Ngspice solver
    iv)   View the results using gnuplot
    

2. Requirements
===============
gSpiceUI vSACAMOS is reliant on the following:

i.   compilation : wxWidgets library (essential to compile gSpiceUI vSACAMOS)
ii.  gschem      : schematic capture component of gEDA
iii. gnetlist    : netlist generation component of gEDA
iv.  Ngspice     : circuit simulator
v.   gnuplot     : graphing utility


3. Installation
===============
The software can be compiled on Linux, MS Windows and OSX platforms. For the 
most part pre-built binaries of the requisite software are available for all of 
these platforms and it is recommended that these be used where available.

This document will not cover the installation of the gEDA suite or gnuplot. 
However it will outline the steps neccessary to install wxWidgets and 
gSpiceUI vSACAMOS. At the time of writing the gEDA suite could be found here:

for Linux/MAC OSX: 
    
    http://wiki.geda-project.org/geda:download

and Windows: 
    
    http://www.delorie.com/pcb/geda-windows/
    
Snapshots of the necessary installation material taken at the time of writing 
can be found here:

    http://www.sacamos.org

NOTE: gSpiceUI vSACAMOS relies on the location of all the requirements being 
included in the 'PATH' of the OS. Therefore ensure the location of all the 
relevant binary files are added to you system PATH. i.e.add locations of gschem,
gnetlist, Ngspice and gnuplot binary executable to your system PATH.

i. Installation of wxWidgets on Linux
-------------------------------------

Download and extract the wxWidgets library from:

    http://www.wxWidgets.org/
    
Version 3.0.2 had been used throughout the development of SACAMOS. For full 
information refer to the installation guide(s) on the website or with the 'docs'
folder of the download. The simplest approach is to enter the root folder of the
extracted download and do:

    mkdir buildgtk
    cd buildgtk
    ../configure --with-gtk
    make
    su <type root password>
    make install
    ldconfig
    [if you get "ldconfig: command not found", try using "/sbin/ldconfig"]
 


ii. Installation of wxWidgets on MS Windows
-------------------------------------------
The following has been tested on MS Windows 7 & 10. The installation of 
wxWidgets on MS Windows make use of MinGW ("Minimalist GNU for Windows") and 
MSYS ("Minimal SYStem") to build native windows applications via a command line 
environment. To install wxWidgets you therefore need to install MinGW/MSYS.

i. Install MinGW and MSYS:
 
Download the installer (mingw-get-setup.exe) from: http://www.mingw.org/. Run 
the installer and select as a minimum the components C & C++ and MSYS. Install 
these components by selecting 'Apply Changes' from the Installation menu.
 
Note: Installation in the root of your hard drive is recommended.
 
Once installed Ensure that the file C:\MinGW\msys\1.0\etc\fstab and contains at 
least the following line itself followed by an empty line (this is generally 
already the case):
    
    C:\MinGW   /mingw
 
Navigate to C:\mingw\msys\1.0 and run msys.bat. to create your 'home' directory 
at C:\mingw\msys\1.0\home\[your user name] Once run create a shortcut to 
msys.bat and copy it to your desktop. Double clicking this will now open a 
terminal/shell and out you within your home directory.

ii. Install wxWidgets

Download and extract the wxWidgets library from:

    http://www.wxWidgets.org/
    
For example download 'xWidgets-3.0.2.zip' and extract this to a folder in the 
root of your hard drive e.g.

C:\wxWidgets-3.0.2

Open a MSYS shell and navigate to the wxWidgets folder, e.g:

    cd c:\wxWidgets\wxWidgets-3.0.2
    
Create a build folder and change directory into it, e.g.
    mkdir build-msw
    cd build-msw

Run the wxWidgets configure script (for full options refer to the installation 
instructions bu the following is known to work):

    ../configure --build=x86-winnt-mingw32 --disable-shared --disable-threads

Build wxWidgets:

    make MONOLITHIC=1 SHARED=0 UNICODE=1 BUILD=release DEBUG_FLAG=0

Install wxWidgets:

    make install
    
iii. Installation of gSpiceUI on Linux
--------------------------------------
Download the gSpiceUI vSACAMOS source (for Linux) from:
    
    http://www.sacamos.org/downloads
    
Extract the archive into a folder within your home directory e.g.

    C\home\[you user name]\gSpiceUI_vSACAMOS
    
Open a terminal and navigate to the gSpiceUI_vSACAMOS folder, e.g:

    cd gSpiceUI_vSACAMOS
    
Build gSpiceUI_vSACAMOS

    make
    
Install gSpiceUI_vSACAMOS

    su <type root password>
    make install
    
iv. Installation of gSpiceUI on MS Windows
------------------------------------------
Download the gSpiceUI vSACAMOS source (for Windows) from:
    
    http://www.sacamos.org/downloads
    
Extract the archive into a folder within your MSYS home directory e.g.

    C:\MinGW\msys\1.0\home\user\gSpiceUI_vSACAMOS
    
Open a MSYS shell and navigate to the gSpiceUI_vSACAMOS folder, e.g:

    cd gSpiceUI_vSACAMOS
    
Build gSpiceUI_vSACAMOS

    make
    
and all being well that sound be it and the binary executable can be found in 
the \bin folder.

v. Installation note for Ngpice on MS Windows
---------------------------------------------
Download the Ngspice source code from:

    http://ngspice.sourceforge.net/download.html
    
For example download 'ngspice-26_140112.zip' and extract this to a folder in 
your MSYS home directtory, e.g:
    
    C:\MinGW\msys\1.0\home\[your user name]\Ngspice-26

Open a MSYS shell and navigate to the Ngspice folder, e.g:

    cd ngspice-26
    mkdir release
    cd release
    
Note: As opposed to the installation instruction for MS Windows in the Ngspice 
documentation you do not want to build Ngspice with GUI support (this is taken 
care of now by gSpiceUI_vSACAMOS), so omit the '--with-wingui' option, but do 
include XSpice enhancements i.e.

    ../configure --enable-xspice ...and other options
    make
    make install
    
NOTE: gSpiceUI vSACAMOS relies on the location of all the requirements being 
included in the 'PATH' of the OS. Therfore ensure the location of all the 
relevant binary files are added to you system PATH. i.e. add locations of 
gschem, gnetlist, Ngspice and gnuplot binary executable to your system PATH.