LibreCAD 3 development (GSoC 2014) This is the new LibreCAD Kernel. With keeping in mind the extensibilty, modularity and the design, the LibreCAD is divided into 3 parts.
- The UI
- The kernel
- The CADViewer
- cairo
- Pango
- Qt 5
- git
- liblog4cxx
- Google test
- Eigen 3
- Lua >= 5.2
- Curl
- Boost
- LibDxfRW (see compilation instruction after)
git clone https://github.com/rvt/libdxfrw
cd libdxfrw
mkdir release
cd release
cmake -DCMAKE_BUILD_TYPE=Release ..
make
sudo make install
git clone --recursive https://github.com/LibreCAD/LibreCAD_3.git
mkdir build
cd build
cmake .. (for a release you would use cmake -DCMAKE_BUILD_TYPE=Release ..)
make -j 4
./lcUI/librecad
If you want to fool around with macports use these build instructions
mkdir build
cd build
/opt/local/bin/cmake -DCMAKE_CXX_COMPILER=/opt/local/bin/g++ -DCMAKE_C_COMPILER=/opt/local/bin/gcc ..
make -j 4
./lcUI/librecad
For a release build you would do:
/opt/local/bin/cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=/opt/local/bin/g++ -DCMAKE_C_COMPILER=/opt/local/bin/gcc ..
If you like X-Code as your editor you can ask cmake to generate the build file for you. mkdir xcode cd build cmake -G Xcode ..
Then open the project in x-code and build. Under some conditions you might want to set a additional search path if libraries are not found, for example if you compile libdxfrw yourself.
When using ports I had to use:
cd /opt/local/include
sudo ln -sf eigen3/Eigen Eigen
sudo ln -sf eigen3/unsupported unsupported
any cmake guru care to comment on this oddity? Is there a way to prevent making that symlink?
apt-get install qttools5-dev qttools5-dev-tools libqt5opengl5-dev liblua5.2-dev git g++ gcc-4.8 libcairo2-dev liblog4cxx10-dev libpango-1.0-0 libpango1.0-dev libboost-all-dev libqt5svg5 libgtest-dev libeigen3-dev libcurl4-gnutls-dev libgtk-3-dev
You need to compile Google Test in /usr/src/gtest/ and move the libraries in /usr/lib/
GCC version from Ubuntu 14 doesn't support C++14. You need to install GCC 4.9. http://askubuntu.com/a/456849
This is the only way to get LibreCAD running on Windows at the moment.
-
Follow the instructions for Ubuntu 14.04.
-
Install Xming or any other X server for Windows
-
Enter
export DISPLAY=:0
before running LibreCAD
pacman -S mingw-w64-x86_64-cairo mingw-w64-x86_64-pango mingw-w64-x86_64-lua mingw-w64-x86_64-eigen3 mingw-w64-x86_64-apr mingw-w64-x86_64-apr-util mingw-w64-x86_64-qt5 mingw-w64-x86_64-gtest
Use lastest code from repo : git://git.apache.org/log4cxx.git https://issues.apache.org/jira/browse/LOGCXX-463
Put the source in /third_party/apache-log4cxx
./autogen.sh
./configure
make
make install
mkdir build
cd build
cmake -DWINDOWS_MSYS2=ON ..
Create symlinks for .so files with ln -s ../lc*/lib*.so
Replace paths in build/lcUI/path.lua with Windows-style paths C:\msys64\…
If we want to support associative drawings, this is a good introduction to get started http://www.ellenfinkelstein.com/acadblog/understanding-how-dimensions-are-associated-with-objects/
http://patorjk.com/software/taag/#p=display&c=c&f=Three%20Point&t=DimAligned
https://github.com/fffaraz/awesome-cpp https://github.com/retuxx/tinyspline https://github.com/ebassi/graphene http://discourse.mcneel.com/c/opennurbs