Giter Club home page Giter Club logo

xfig-3.2.8a's Introduction

Xfig Installation

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

  1. Download and Install Cygwin
    1. Open your browser and check that you have a stable internet connection
    2. Download Cygwin from the Cygwin Official Website
    3. Go to the Installing Cygwin section then click on setup-x86-64.exe
    4. Click on run when the prompt comes up
    5. Once the program opens up click on Install from Internet
    6. On the next page you can change the root directory it is preferred that you just click on next
    7. The same goes for the local package directory just click on next
    8. If you have a proxy you can figure it out if not just click on next
    9. 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
    10. A new windows should pop up that helps you to select the package
    11. On the new windows around the upper left corner you will see a menu View click on that and click on category!
    12. Next to that there is a search bar search "X11" and expand the "All" folder
    13. Look for X11 then next to it there is an option that says Default click on that and click on the Install option
    14. Repeat the two steps above for Base and Gnome
    15. Once done switch the View option from Category to Full
    16. Search for libXaw3d click on the option Skip and select the latest version from the options
    17. Repeat XVI step for "libXaw3d-devel", "make", "automake1.16", and "htmldoc"
    18. 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!
    19. Repeat the same step for "xfig-lib"
    20. Click on next on the bottom right corner
    21. 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

  1. Configuring the root directory

    1. Open Cygwin64 Terminal
    2. Open your file explorer then locate the cygwin64 root directory if default that is C:\cygwin64
    3. Open your browser
    4. Go to https://github.com/Da-vid21/xfig-3.2.8a
    5. Click on the “Fork” on the top right corner and copy the url from the address bar How to Fork
    6. Open you Github Desktop and click on "Clone Repository" and go to the url section then paste the URL of the forked github page
    7. Clone the xfig-3.2.8a to the root directory of cygwin64 for default location C:\cygwin64
    8. Go to the opened CYGWIN64 terminal and write "cd /" and then press enter
    9. Write “ls” and press on enter and you should see all the folders listed
    10. Write cd xfig-3.2.8a/
    11. Write “cat INSTALL”
    12. Go to the xfig-3.2.8a home folder and locate the “install” file
    13. Go to the bottom of the page and copy the code under “On debian, to install xfig under "/usr/share, try”
    14. 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.
    15. Write “make -j” in the xfig terminal when it finishes configuring.
    16. Press the window key, find and start up the “XWin Server”
    17. Hover over to the hidden icon tray and right click on the green xfig icon go to graphics
    18. After launching the xfig, check if the application opens and work
  2. Editing Xfig Source code

    1. Download and Install Visual Studio Code or Any C source code editor
    2. Find and locate w_cmdpanel.c in the “src” folder
    3. Open that file in VS Code
    4. In the gap between “Undo” and “(Meta-U)”, write “TEST”, then save the file and exit Visual Studio Code
    5. Write “make -j” in the xfig terminal and hit “Enter
    6. To check that xfig can be opened up manually write “cd src” then write “startx ./xfig”
    7. Click the edit button and you should see a change undo menu that has “Test”
    8. Close the application then write “cd ..” and press enter
    9. Write the code “make -j install” and press enter
    10. Now launch xfig from the system tray and clicking on graphics then xfig check if the undo menu has updated for it too !
    11. 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

  1. Download the Xfig Code
    1. Open browser and go to the link https://github.com/Da-vid21/xfig-3.2.8a
    2. Click on the “Fork” on the top right corner and copy the url from the address bar How to Fork
    3. Open you Github Desktop and click on "Clone Repository" and go to the url section then paste the URL of the forked github page
    4. Clone to the directory to you prefrence
    5. After the clone has finished open the Xfig folder
    6. Open the Install file and copy the 2 lines of code below on specific distributions under mac
    7. Right click on an empty space then select Open in Terminal repeat it twice
    8. Paste the code you copied on step VI and hit enter
    9. On the second terminal write “sudo apt-get install xaw3dg-dev” and hit enter then enter your password
    10. 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
    11. call brew instead of apt-get (as a prerequisite download Xcode)
    12. Write “make-j” and hit enter
    13. Write “cd src” and click enter then write “ls” and click enter
    14. Write “./xfig” if a new windows opens up that means you have compiled xfig
    15. Write “cd ..” and click enter then write “sudo make install” then hit enter and enter your password
    16. 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

  1. Download the Xfig Code
    1. Open browser and go to the link https://github.com/Da-vid21/xfig-3.2.8a
    2. Click on the “Fork” on the top right corner and copy the url from the address bar How to Fork
    3. To clone xfig to place you prefer open the folder location and right click on an empty space and right click "Open Terminal Here"
      image
    4. 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 image
    5. Open a terminal and copy "git clone https://github.com/Da-vid21/xfig-3.2.8a"
    6. After the clone has finished open the Xfig folder
    7. Open the Install file and copy the first lines of code below on specific distributions under Debian/Linux
    8. Open two terminals with one on the location of the xfig folder
    9. Paste the code you copied on step VII and hit enter
    10. On the second terminal write “sudo apt-get install xaw3dg-dev” and hit enter hen enter your password
    11. Write “make-j” on the first terminal and hit enter
    12. Write “cd src” and click enter then write “ls” and click enter
    13. If you see a green text with xfig that means you have compiled xfig and you have the excutable file image
    14. 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
    15. Write “cd ..” and click enter then write “sudo make install” then hit enter and enter your password
    16. 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

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.