How to Install on Windows
Requirements (Windows)
Stable Internet Connection, Windows 7 or later, 10 gb of free space, Internet Browser, Free time of one and a half hours, 7zip or Winrar, Visual Studio Code or C code edtior, Visual C++ 2008-2015
Steps
- Download and Install Cygwin
- Open your browser and check that you have a stable internet connection
- Download Cygwin from the Cygwin Official Website
- Go to the Installing Cygwin section then click on setup-x86-64.exe
- Click on run when the prompt comes up
- Once the program opens up click on Install from Internet
- On the next page you can change the root directory it is preferred that you just click on next
- The same goes for the local package directory just click on next
- If you have a proxy you can figure it out if not just click on next
- On the next page it is going to have a bunch of mirrors you can select whichever is closest but if you do not know you can click on the first few ones then click on next
- A new windows should pop up that helps you to select the package
- On the new windows around the upper left corner you will see a menu View click on that and click on category!
- Next to that there is a search bar search "X11" and expand the "All" folder
- Look for X11 then next to it there is an option that says Default click on that and click on the Install option
- Repeat the two steps above for Base and Gnome
- Once done switch the View option from Category to Full
- Search for libXaw3d click on the option Skip and select the latest version from the options
- Repeat XVI step for "libXaw3d-devel", "make", "automake1.16", and "htmldoc"
- Search for "xfig" then select the latest version which has the “a” version from the options like "3.2.8a-1" not "3.2.8b-1" then check the box on the src column and turn it on!
- Repeat the same step for "xfig-lib"
- Click on next on the bottom right corner
- There will be a confirmation box click on next you have successfully downloaded and installed Cygwin
Note Do not turn off, disconnect the wifi, or put the laptop on sleep while it is downloading you may need to delete the root directory and start the whole step
-
Configuring the root directory
- Open Cygwin64 Terminal
- Open your file explorer then locate the cygwin64 root directory if default that is C:\cygwin64
- Open your browser
- Go to https://github.com/Da-vid21/xfig-3.2.8a
- Click on the “Fork” on the top right corner and copy the url from the address bar
- Open you Github Desktop and click on "Clone Repository" and go to the url section then paste the URL of the forked github page
- Clone the xfig-3.2.8a to the root directory of cygwin64 for default location C:\cygwin64
- Go to the opened CYGWIN64 terminal and write "cd /" and then press enter
- Write “ls” and press on enter and you should see all the folders listed
- Write cd xfig-3.2.8a/
- Write “cat INSTALL”
- Go to the xfig-3.2.8a home folder and locate the “install” file
- Go to the bottom of the page and copy the code under “On debian, to install xfig under "/usr/share, try”
- Copy the next line (./configure -- prefix...defaults), paste in the xfig terminal, delete the space between “$” and “.” and press “Enter”. It would take 5-10 minutes to configure.
- Write “make -j” in the xfig terminal when it finishes configuring.
- Press the window key, find and start up the “XWin Server”
- Hover over to the hidden icon tray and right click on the green xfig icon go to graphics
- After launching the xfig, check if the application opens and work
-
Editing Xfig Source code
- Download and Install Visual Studio Code or Any C source code editor
- Find and locate w_cmdpanel.c in the “src” folder
- Open that file in VS Code
- In the gap between “Undo” and “(Meta-U)”, write “TEST”, then save the file and exit Visual Studio Code
- Write “make -j” in the xfig terminal and hit “Enter
- To check that xfig can be opened up manually write “cd src” then write “startx ./xfig”
- Click the edit button and you should see a change undo menu that has “Test”
- Close the application then write “cd ..” and press enter
- Write the code “make -j install” and press enter
- Now launch xfig from the system tray and clicking on graphics then xfig check if the undo menu has updated for it too !
- If successful close the right click on xfig from the system tray xdg menu and exit
For more information on how xfig works look at this document
How to Install On MacOS
Requirements (MacOS)
Internet Connection, macOS 11/Big Sur or higher, Internet Browser, Visual Studio Code or any C code editor, Free time of 30 minutes
Steps
- Download the Xfig Code
- Open browser and go to the link https://github.com/Da-vid21/xfig-3.2.8a
- Click on the “Fork” on the top right corner and copy the url from the address bar
- Open you Github Desktop and click on "Clone Repository" and go to the url section then paste the URL of the forked github page
- Clone to the directory to you prefrence
- After the clone has finished open the Xfig folder
- Open the Install file and copy the 2 lines of code below on specific distributions under mac
- Right click on an empty space then select Open in Terminal repeat it twice
- Paste the code you copied on step VI and hit enter
- On the second terminal write “sudo apt-get install xaw3dg-dev” and hit enter then enter your password
- If apt-get doesn't work on mac download Homebrew to install copy and paste /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" to your terminal
- call brew instead of apt-get (as a prerequisite download Xcode)
- Write “make-j” and hit enter
- Write “cd src” and click enter then write “ls” and click enter
- Write “./xfig” if a new windows opens up that means you have compiled xfig
- Write “cd ..” and click enter then write “sudo make install” then hit enter and enter your password
- Open finder and search for xfig if it shows up and opens your installation has worked successfully
How to Sync your edit from your Source Code on Mac
After you have edited the source code you need to run the ./configure code and “make -j”
For more information on how xfig works look at this document
How to Install on Linux
Requirement (Linux)
Debian Base Linux, Internet Connection, Internet Browser, Free Space of 100Mb, Free time of 30 minutes, Github for linux
Note Linux is very case sensitive to the codes you write on the terminal
Steps
- Download the Xfig Code
- Open browser and go to the link https://github.com/Da-vid21/xfig-3.2.8a
- Click on the “Fork” on the top right corner and copy the url from the address bar
- To clone xfig to place you prefer open the folder location and right click on an empty space and right click "Open Terminal Here"
- Second option to clone is open a terminal then use cd to target that folder location. Ex. if you want to Downloads then New Folder "cd Downloads" then click eneter then "cd 'New Folder'" if the folder name has a space use a string
- Open a terminal and copy "git clone https://github.com/Da-vid21/xfig-3.2.8a"
- After the clone has finished open the Xfig folder
- Open the Install file and copy the first lines of code below on specific distributions under Debian/Linux
- Open two terminals with one on the location of the xfig folder
- Paste the code you copied on step VII and hit enter
- On the second terminal write “sudo apt-get install xaw3dg-dev” and hit enter hen enter your password
- Write “make-j” on the first terminal and hit enter
- Write “cd src” and click enter then write “ls” and click enter
- If you see a green text with xfig that means you have compiled xfig and you have the excutable file
- Write “./xfig” if a new windows opens up that means you have succesfully compiled xfig if this step is not working repeat the steps starting from VII
- Write “cd ..” and click enter then write “sudo make install” then hit enter and enter your password
- Open finder and search for xfig if it shows up and opens your installation has worked successfully
How to Sync your edit from your Source Code on Linux
After you have edited the source code you need to run the ./configure code and the “make -j” in the xfig folder
For more information on how xfig works look at this document