[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to work on the pspp code?

From: Friedrich Beckmann
Subject: Re: How to work on the pspp code?
Date: Fri, 22 Aug 2014 11:43:08 +0200

I could not figure out a way to find the ui files without using

configure --prefix=<sometmpdirectory>
make install 

But I figured out that there is way to use the binary that is produced by
make without install. I use an out of source build directory. In this example
the source tree is in ~/pspp/pspp and the build directory is ~/pspp/build the 
install directory is ~/pspp/install. The configure step is

cd ~/pspp/build
../configure --prefix=$HOME/pspp/install

To use psppire, the ui files have to be installed with

make install

To start psppire with gui from the build directory (you can just run make after a source update).

address@hidden:~/pspp/build$ ./src/ui/gui/psppire 

To start pspp with my local test.sps script: 

address@hidden:~/pspp/build$ ./src/ui/terminal/pspp -o fritz.html ../test.sps

./src/ui/terminal/pspp and ./src/ui/gui/psppire are in fact shell script wrappers which
are produced by libtool. Those scripts can not be run in gdb. 

To start pspp in gdb:

address@hidden:~/pspp/build$ libtool --mode=execute gdb ./src/ui/terminal/pspp 
GNU gdb (Debian 7.7.1+dfsg-3) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/fritz/pspp/build/src/ui/terminal/.libs/lt-pspp...done.
(gdb) run -o fritz.html ../test.sps
Starting program: /home/fritz/pspp/build/src/ui/terminal/.libs/lt-pspp -o fritz.html ../test.sps
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/".
[Inferior 1 (process 41475) exited normally]
With that procedure you do not need to run the full make install after a source code change but just make.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]