LibreCAD scratch repository
I have created this repository as a mirror of LibreCAD in order to publish here my modifications and fixes.
Unfortunately, I can't do this on the original GitHub repository, because I can't login to github anymore, because of their 2FA policy.
I will sync periodically with the main repository. And the LibreCAD developers can (if they wish) to pull from here changes and fixes.
Of course, everyone else can clone and compile the code in order to get the features not officially published yet.
Anyway. For now all my work will be done in the branch jf_fixes. But I might decide to fork another branches if they are needed. But will never commit into the original git branches in order not to interfere with the developers.
For those, not familiar with Fossil SCM will give some guide how to clone and compile:
Install fossil from your favorite package manager.
You will need 2 empty directories:
- The first for the repository itself (it is a good practice to keep all your fossil repositories in one place. Any fossil repository is a single file). Name it whatever you want. I will refer to it as
MY_REPOS. - The second is for the source code checkout. Your choice for the name. I will refer to it as
CHECKOUT.
- The first for the repository itself (it is a good practice to keep all your fossil repositories in one place. Any fossil repository is a single file). Name it whatever you want. I will refer to it as
All paths can be absolute or relative. I am usually using relative paths, but it depend on where you placed the directories.
Clone the repository with the following command:
$ fossil clone https://asm32.info/fossil/librecad/ MY_REPOS/LibreCad.fossil
Enter the CHECKOUT directory and open the repository:
$ fossil open MY_REPOS/LibreCad.fossil BRANCH_NAME
This command will checkout the source code for the branch BRANCH_NAME from the repository to the current directory.
You can see the branches list from this site, but practically you can choose from 2:
jf_fixes - in this branch are all my fixes and fine tuning of the LibreCAD itself.
master - The original LibreCad as synchronized with the official github repository. Actually you should compile and install from here, only if you like fossil more than git. Else - check the official repository.
Check and install the libraries LibreCad depend on:
- Qt6
- boost
- muParser
Compile the code:
$ qmake6 -r
$ make -j4
$ sudo make install
If you want later to update, execute from the CHECKOUT directory:
$ fossil clean
$ fossil update
$ qmake6 -r
$ make -j4
$ sudo make install
Some tips and tricks with fossil:
In order to browse the local repository you can execute from the checkout directory:
$ fossil ui
You can create several checkout directories for the different branches and versions of the code and open the same already cloned repository from them.
No need to clone it multiply times.
When you don't need the checkout directory anymore, simply delete it. The repository is independent from the working directories and will remain intact.