GithubHelp home page GithubHelp logo

gaganjyot / librecad_3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from librecad/librecad_3

0.0 2.0 0.0 7.18 MB

LibreCAD 3 development (GSoC 2016)

Home Page: http://librecad.org

License: Other

Shell 0.27% CMake 8.98% C++ 83.49% Objective-C 0.10% Lua 7.05% C 0.12%

librecad_3's Introduction

LibreCAD_3

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.

  1. The UI
  2. The kernel
  3. The CADViewer

Compilation Instructions

Install cairo
Install Qt 5
Install git
Install liblog4cxx
Install Google test

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

OSX MacPorts

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 ..

MacPorts/brew might not have libdxfrw in it so you need to compile it yourself.

git clone https://github.com/rvt/libdxfrw
cd libdxfrw
mkdir release
cd release
cmake -DCMAKE_BUILD_TYPE=Release ..
make
sudo make install

OSX X-Code

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 buikd. Under some conditions you might want to set a additional search path if libraries are not found, for example if you compile libdxfrw yourself.

![X-Code add headers] (http://skitch.rvantwisk.nl/~rvt/blog/LC.xcodeproj-20150115-143036.jpg)

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?

Ubuntu/Mint

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

MSYS2

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

###Log4CXX:

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

###LibDxfrw: Get code from https://github.com/rvt/libdxfrw.git

cmake . 
make
make install

###LibreCAD:

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 pathes C:\msys64\โ€ฆ

Reading materials for feature usage

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/

Some comment's created with

http://patorjk.com/software/taag/#p=display&c=c&f=Three%20Point&t=DimAligned

List of apparently awesome frameworks

https://github.com/fffaraz/awesome-cpp https://github.com/retuxx/tinyspline https://github.com/ebassi/graphene http://discourse.mcneel.com/c/opennurbs

If we are short of sample DXF files to test

http://cadkit.blogspot.nl/p/sample-dxf-files.html

librecad_3's People

Contributors

rvt avatar feragon avatar kedwin avatar bhattigurjot avatar dxli avatar lordofbikes avatar

Watchers

James Cloos avatar gaganjyot avatar

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.