Building/Debugging w/KDevelop
Posted: Mon Apr 03, 2006 3:42 pm
I wanted to share the steps I took to get NEURON to be buildable and debuggable under KDevelop. This assumes the following install structure:
/home/<user>/neuron/iv
/home/<user>/neuron/nrn
I actually installed iv as per the normal unix instructions.
I also implemented the libreadline change documented in another message in this group, too.
To build nrn in KDevelop, I chose Project->Import Existing Project...
In the new window, choose /home/<user>/neuron/nrn as the directory, "nrn" (or other name as the Project name. and "Generic C++ Application (Automake-based)" as the Project type. This now will create the project.
Select Project->Project Options->Configure Options and add to the Configure arguments.
From the Run Options panel in the Project Options, select "Run from the BUILD directory". Set the Main program field to and set the program arguments to add this line to the Program arguments of the Debugger panel as well.
That should be it!
I'm somewhat new to unix, gdb, and KDevelop. If someone knows better approaches, please post![/b]
/home/<user>/neuron/iv
/home/<user>/neuron/nrn
I actually installed iv as per the normal unix instructions.
Code: Select all
./configure --prefix=$HOME/neuron/iv
make
make install
Code: Select all
sudo ln -s /lib/libreadline.so.5 /lib/libreadline.so
In the new window, choose /home/<user>/neuron/nrn as the directory, "nrn" (or other name as the Project name. and "Generic C++ Application (Automake-based)" as the Project type. This now will create the project.
Select Project->Project Options->Configure Options and add
Code: Select all
--with-readline=/lib --prefix=$HOME/neuron/nrn --with-iv=$HOME/neuron/iv
From the Run Options panel in the Project Options, select "Run from the BUILD directory". Set the Main program field to
Code: Select all
src/nrniv/.libs/nrniv
Code: Select all
../share/lib/hoc/nrngui.hoc -
That should be it!
I'm somewhat new to unix, gdb, and KDevelop. If someone knows better approaches, please post![/b]