Installing BRLCAD From Source

Finally, I installed BRLCAD from source.

Struggle:

There are two two types of installation and readme files: one for make and other for cmake. Either of two can be used for compilation. Earlier, I did’t know this thing and got confused to follow which file(s).

Since each documentation has full details, so earlier I found it difficult to grasp. I did’t know the significance of “make & cmake utility” and makefiles which made me to read about them too.

Also, by following the documentation and reading from web, I found the sequence of execution of commands as:

sh autogen.sh > ./configure > make > make benchmark > make test > sudo make install

autogen.sh produces configure file. configure create suitable makefiles which are further used by make.

There was minor problem of enabling libpng, which was fixed by me. But the actual problem was of warnings. Sean suggested my the way to pass through warnings. With configure script use option: –disable-strict

Earlier I run configure with option of –enable-optimized. Later, I dropped it also, and finally run configure script as:

./configure –enable-libpng-build –disable-strict

which ran successfully without any error. Later, all commands make, make benchmark, make test, make install run successfully.

 

Advertisements

Daily Diary: 12, June, 12

Yesterday I was installing BRL-CAD from source but there was problem with using make command and Makefiles. I seek devinder’s help, but she couldn’t do much. Then, I didn’t try it further, rather I started reading about compilation, make and Makefiles.

Later I found that there were patches that were needed to be applied after extracting the compressed tar file. So, I remove all files and folders, re-extract them, and apply patches. But same error occured on running make. Now just dropped the mail to BRLCAD Mailing List and awaiting for their early response.

 

Compiling BRLCAD From Source

To know what is BRLCAD, please refer to http://brlcad.org/.

As soon as I got this task, I became happy to return to my main project. I thought it was not too difficult to do and really it is not, given that you read their documentation carefully and know the certain commands like make, cmake etc., and certain terms like build, compile, install and their actual sequence and relations with each other.

The actual problem is that number of several documents like README, README.cmake, INSTALL, INSTALL.cmake and many others came along with package. Each of them is in full detail.

I read README, INSTALL and doc/INSTALL.Linux files. Everything goes fine, but then I stuck with problem with “make” command. Frankly, I don’t know actually what make can do, for what purpose it was created. Since as much as I know, it is used to build the system. I requires certain makefiles. But what are these makefiles, I don’ know. So problem is still there. Actually it is not a problem, I pause my work, so that I could proceed after gaining enough knowledge about make.

hmm… today I couldn’t do much work. When returned home, I really feel to be unsatisfied. After compiling it successfully, I will re-post this article with whole procedure and do’s and dont’s.

Presentation on WordPress Plugin

Creating WordPress Plugin: Experience and Efforts

Finally, today I give presentation on “Creating WordPress Plugin”. Actually I was working on project of creating website in WordPress. It is so easy to “Add New Page”,  “Add New Post”, “Add / Install Plugin” etc. So in the whole project I did nothing that suites to CSE / IT student. Rai Sir suggested us (me & Vigas) to start exploring WordPress as developer and learn how to create Plugin. I finished my pending works of this project and started exploring the Internet and http://codex.wordpress.org.

Wrong Approach

Initially I started following a tutorial, in which they created plugin with widget settings but with little description about functions, variables etc. I read it again and again to understand thoroughly, but not satisfied. To get started, I decide to create  a simple plugin, so I copied the code from that tutorial and kept only those basic parts, relevant to my simple plugin. Similarly, I add widget too. This whole process took my lot of effort but with less satisfaction.

Right Approach

Then I come back to main wordpress site. I directly go to “Writing a Plugin” and started reading and exploring more links to function definitions. In this way, I got understanding about the working of functions.

It was in my case that I got link in which much description was not given. It may be possible that one may found a highly informative and descriptive blog  which may act as right approach. for him.

Download my presentation from: Presentation.pdf