From: Tom B. <tom...@gm...> - 2012-03-31 12:07:10
|
2012/3/31 Edward <555...@qq...>: > Hi! > secondly,I'v found the source code of csgbrep.cpp, it's a little shame > that I'm not good at gun/makefile.So how can I compile the source code and > get the useful tool.Maybe the /doc folder can help me. Hi, Laijiren, I will try to answer your second question. If you have checked out the BRL-CAD source tree and follow instructions for a cmake build, you will compile the csgprep.cpp file in the process of a full build. If you have problems with your set up, you can try loading the virtual machine (VM) from the BRL-CAD site where there is a full build in place (see http://sourceforge.net/projects/brlcad/files/BRL-CAD%20for%20Virtual%20Machines/). An installed BRL-CAD will have the compiled binary installed and, if the BRL-CAD bin directory is in your PATH, you should be able to execute it from anywhere on your host system. (Note the VM has BRL-CAD installed and the executable of interest is [csgprep] on your PATH.) In either case, after modifying the source code you should be able to execute make again in the build directory and it should be rebuilt. If you are at the top of the build directory you should find the uninstalled executable at: ./bin/csgbrep Please ask more specific questions if you are still having problems. Best regards, -Tom |