(Joanne) update to be clearer on how to compile xschem (from scratch vs using XSchemWin.sln) on Windows using VS2022. font.sch micro edits

This commit is contained in:
Stefan Frederik 2022-09-28 11:33:48 +02:00
parent 6d17797d0b
commit 9d9a4826fc
3 changed files with 57 additions and 36 deletions

View File

@ -1,3 +1,5 @@
These instructions are relevant if you're installing Xschem with the Windows Installer (XSchem.msi)
1. requirements
- Windows 10

View File

@ -21,7 +21,7 @@ SUBDIRECTORIES
XSchemWin: Windows specific files (e.g. xschem.tcl, xschemrc, config.h)
INSTRUCTIONS TO ADD XSCHEM TO VISUAL STUDIO 2022
INSTRUCTIONS TO COMPILE XSCHEM IN VISUAL STUDIO 2022
1. requirements
@ -40,10 +40,14 @@ INSTRUCTIONS TO ADD XSCHEM TO VISUAL STUDIO 2022
Optional:
- Windows Ghostscript (to print)
Update xschemrc to set variable to_pdf and to_png
Add directory of gswin64.exe to PATH if installer didn't do it
2. Create new XSchemWin project on Visual Studio 2022
*** NOTE: DO 2A OR 2B, but NOT BOTH ***
2A. Steps in (2B) are already saved in XSchemWin/XSchemWin.sln.
Open "XSchemWin/XSchemWin.sln" in VS2022 and proceed to (3).
2B is very helpful if you run into compile errors in VS2022.
2B. Create new XSchemWin project on Visual Studio 2022
a. Open VS2022
b. Create a new project
@ -77,7 +81,7 @@ INSTRUCTIONS TO ADD XSCHEM TO VISUAL STUDIO 2022
Command Line: bison -d -o expandlabel.c ..\src\expandlabel.y
Outputs: expandlabel.c
3. compiling
3. Compiling
- config.h can be edited to change default's XSCHEM_LIBRARY_PATH.
It's defaulted to include the following directories:
@ -93,10 +97,16 @@ INSTRUCTIONS TO ADD XSCHEM TO VISUAL STUDIO 2022
- After compiling the first time, add expandlabel.c, expandlabel.h, parselabel.c into the project.
These 3 files are created in D:\Projects\XSchem\XSchemWin
4. running from Visual Studio 2022
4. running from Visual Studio 2022. If you run the debug version, you can set breakpoints on the code and step the code with VS 2022.
F5
5. To compile and create Xschem Windows Installer
a. Right click on "XSchemWix" and select "Build"
b. If the compilation is successful, the Windows installer is located in XSchemWix/bin/Release/XSchem.msi
c. Double click on XSchem.msi to install it into it on your Windows machine.
d. Use Windows "Add or Remove Programs" to uninstall Xschem before installing a newer version.
INSTRUCTIONS TO COMPILE CAIRO AND COMPILE XSCHEM WITH IT ON VISUAL STUDIO 2022
1. Create a cairo_win directory in XSchemWin
@ -122,13 +132,19 @@ INSTRUCTIONS TO COMPILE CAIRO AND COMPILE XSCHEM WITH IT ON VISUAL STUDIO 2022
e. cairo.lib and pixman.lib are in cairo_win/projects/x64/Release
5. Setup xschem VS 2022 to compile with cairo library
a. Uncomment "#define HAS_CAIRO 1" and "#define CAIRO_WIN32_STATIC_BUILD" in config.h
Note: Step b and onward is updated in XSchemWin_cairo.vcxproj
To use it, rename non cairo XSchemWin.vcxproj to some other name, and change XSchemWin_cairo.vcxproj to XSchemWin.vcxproj.
For Release, x64
* Properties > VC++ Directories > Include: ;cairo_win\cairo\src;cairo_win\projects\cairo\src;
Libraries: ;cairo_win\projects\x64\Release;cairo_win\libs;cairo_win\freetype\objs\x64\Release Static
* Properties > Linker > Input > Additional Dependencies: Add ;cairo.lib;pixman.lib;zlib.lib;libpng.lib;freetype.lib;
For Debug, x64
* Properties > VC++ Directories > Include: ;cairo_win\cairo\src;cairo_win\projects\cairo\src;
Libraries: ;cairo_win\projects\x64\Debug;cairo_win\libs;cairo_win\freetype\objs\x64\Debug Static
* Properties > Linker > Input > Additional Dependencies: Add ;cairo.lib;pixman.lib;zlibd.lib;libpngd.lib;freetype.lib;
*** Note: Do 5B OR 5BB, but NOT BOTH ***
Steps in (5bb) are saved in XSchemWin_cairo.vcxproj ***
b. To use it:
(i) Close the solution
(ii) Rename non cairo XSchemWin.vcxproj to some other name
(iii) Change XSchemWin_cairo.vcxproj to XSchemWin.vcxproj.
bb. For Release, x64
* Properties > VC++ Directories > Include: ;cairo_win\cairo\src;cairo_win\projects\cairo\src;
Libraries: ;cairo_win\projects\x64\Release;cairo_win\libs;cairo_win\freetype\objs\x64\Release Static
* Properties > Linker > Input > Additional Dependencies: Add ;cairo.lib;pixman.lib;zlib.lib;libpng.lib;freetype.lib;
For Debug, x64
* Properties > VC++ Directories > Include: ;cairo_win\cairo\src;cairo_win\projects\cairo\src;
Libraries: ;cairo_win\projects\x64\Debug;cairo_win\libs;cairo_win\freetype\objs\x64\Debug Static
* Properties > Linker > Input > Additional Dependencies: Add ;cairo.lib;pixman.lib;zlibd.lib;libpngd.lib;freetype.lib;

View File

@ -1,5 +1,7 @@
v {xschem version=2.9.7 file_version=1.2}
v {xschem version=3.1.0 file_version=1.2
}
G {font file}
K {}
V {}
S {}
E {}
@ -172,7 +174,6 @@ L 3 4045 -20 4055 -20 {}
L 3 4045 5 4055 5 {}
L 3 4085 -27.5 4085 5 {}
L 3 4090 -35 4095 -35 {}
L 3 4120 -12.5 4120 0 {}
L 3 4160 -35 4160 5 {}
L 3 4180 -12.5 4180 5 {}
L 3 4210 -20 4210 5 {}
@ -195,7 +196,7 @@ L 3 4360 -20 4360 5 {}
L 3 4400 -20 4400 5 {}
L 3 4405 -20 4415 -20 {}
L 3 4420 -15 4420 5 {}
L 3 4480 -15 4480 20 {}
L 3 4480 -20 4480 20 {}
L 3 4540 -20 4540 20 {}
L 3 4563.75 -20 4563.75 5 {}
L 3 4606.25 -20 4613.75 -20 {}
@ -205,7 +206,6 @@ L 3 4620 -2.5 4620 0 {}
L 3 4606.25 5 4613.75 5 {}
L 3 4645 -35 4645 0 {}
L 3 4650 5 4655 5 {}
L 3 4680 -20 4680 0 {}
L 3 4720 -20 4730 5 {}
L 3 4730 5 4740 -20 {}
L 3 4800 5 4820 -20 {}
@ -228,13 +228,11 @@ L 3 5052.5 -30 5055 -30 {}
L 3 4760 -20 4765 5 {}
L 3 4775 5 4780 -20 {}
L 3 4645 -25 4655 -25 {}
L 3 4140 -12.5 4140 15 {}
L 3 4140 -15 4140 15 {}
L 3 4125 20 4135 20 {}
L 3 3260 -30 3260 0 {}
L 3 3245 5 3255 5 {}
L 3 3255 -5 3260 10 {}
L 3 4697.5 -20 4697.5 5 {}
L 3 4685 5 4692.5 5 {}
L 3 4085 -10 4095 -10 {}
L 3 1331.25 2.5 1331.25 5 {}
L 3 1328.75 2.5 1328.75 5 {}
@ -306,16 +304,6 @@ L 3 3933.75 -20 3938.75 -17.5 {}
L 3 3938.75 -17.5 3940 -15 {}
L 3 3938.75 2.5 3940 0 {}
L 3 3933.75 5 3938.75 2.5 {}
L 3 4125 -20 4135 -20 {}
L 3 4125 5 4135 5 {}
L 3 4138.75 2.5 4140 0 {}
L 3 4135 5 4138.75 2.5 {}
L 3 4138.75 -17.5 4140 -12.5 {}
L 3 4135 -20 4138.75 -17.5 {}
L 3 4120 -12.5 4121.25 -17.5 {}
L 3 4121.25 -17.5 4125 -20 {}
L 3 4120 0 4121.25 2.5 {}
L 3 4121.25 2.5 4125 5 {}
L 3 4138.75 17.5 4140 15 {}
L 3 4135 20 4138.75 17.5 {}
L 3 4120 15 4121.25 17.5 {}
@ -384,10 +372,6 @@ L 3 4600 0 4601.25 2.5 {}
L 3 4601.25 2.5 4606.25 5 {}
L 3 4646.25 3.75 4650 5 {}
L 3 4645 0 4646.25 3.75 {}
L 3 4681.25 2.5 4685 5 {}
L 3 4680 0 4681.25 2.5 {}
L 3 4692.5 5 4696.25 2.5 {}
L 3 4696.25 2.5 4697.5 0 {}
L 3 4248.75 17.5 4250 15 {}
L 3 4245 20 4248.75 17.5 {}
L 3 4360 -15 4362.5 -18.75 {}
@ -698,3 +682,22 @@ L 3 2281.25 -32.5 2286.25 -35 {}
L 3 2298.75 -32.5 2300 -30 {}
L 3 2293.75 -35 2298.75 -32.5 {}
L 3 2286.25 -35 2293.75 -35 {}
L 3 4700 -20 4700 5 {}
L 3 4685 5 4695 5 {}
L 3 4680 -20 4680 0 {}
L 3 4697.5 3.75 4700 0 {}
L 3 4695 5 4697.5 3.75 {}
L 3 4680 0 4682.5 3.75 {}
L 3 4682.5 3.75 4685 5 {}
L 3 4126.25 -20 4133.75 -20 {}
L 3 4126.25 5 4133.75 5 {}
L 3 4138.75 -17.5 4140 -15 {}
L 3 4133.75 -20 4138.75 -17.5 {}
L 3 4126.25 -20 4133.75 -20 {}
L 3 4121.25 -17.5 4126.25 -20 {}
L 3 4120 -15 4121.25 -17.5 {}
L 3 4120 0 4121.25 2.5 {}
L 3 4121.25 2.5 4126.25 5 {}
L 3 4133.75 5 4138.75 2.5 {}
L 3 4138.75 2.5 4140 0 {}
L 3 4120 -15 4120 0 {}