Compiling instruction

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiling instruction

hsrai
On page http://librecad.org/cms/home/get-involved.html link for "Compiling Instruction" is missing.

--
H.S.Rai
--
H.S.Rai
Reply | Threaded
Open this post in threaded view
|

Re: Compiling instruction

davinder
According to me the compiling instruction is here for librecad
http://librecad.org/cms/home/from-source/linux.html
But can anybody tell me, if i want to enable some extra features which are disabled from default but included in software, then what should be the command or instruction for that?
Thanks in advance.
Reply | Threaded
Open this post in threaded view
|

Re: Compiling instruction

Rallaz
2011/7/13 davinder [via LibreCAD]
<[hidden email]>:
> According to me the compiling instruction is here for librecad
> http://librecad.org/cms/home/from-source/linux.html
> But can anybody tell me, if i want to enable some extra features which are
> disabled from default but included in software, then what should be the
> command or instruction for that?
> Thanks in advance.
>

If you want to activate the code between the tags
#ifdef RS_OPT_PYTHON
#endif

add in librecad.pro:
DEFINES += RS_OPT_PYTHON=1
INCLUDEPATH += pathToPithon/include

Rallaz
Reply | Threaded
Open this post in threaded view
|

Re: Compiling instruction

R. van Twisk
Administrator
In reply to this post by davinder
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Compiling instruction

R. van Twisk
Administrator
In reply to this post by Rallaz
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Compiling instruction

Rallaz

>have you been testing the python features within LibreCAD? Does that work?

Only a small compile-test

The rs_python require a python<3.0 and fail to compile
as rs_python.h says :
/**
 * Python scripting support.
 *
 * OBSOLETE

For rs_simplepython adding in librecad.pro:

DEFINES += RS_OPT_SIMPLEPYTHON=1
INCLUDEPATH += /usr/include/python
LIBS += -L/usr/lib64/python/config -lpython2.6

It compile and link, but this is the most I've tried because only speak C/C++ and AutoLisp