Hello All,

I thought I'd pass this along for those using Ubuntu 14.04 to build 
WPSR. I have WSPR v4.0 3097 running now on 20m but there are a few 
things needed to make the build work. Some minor Makefile things (easily 
resolved), then python-numpy, which requires a bit of Neurosurgery.

Seems to be working well after the mod(s):

http://imagebin.org/307370

*Build Environment:*
Python 3.4
F2PY 3.4
Plus all the normal deps (imaging, pillow, samplerate, portaudio, py-tk, 
py-imaging etc).

* Python3-numpy Bug*
There is bug that's supposedly fixed, but I've not seen it hit the repos 
yet. It causes a seg fault when f2py3.4 is called. The solution I found 
was to remove python3-numpy, and build it from source. You know you have 
the issue if you see this error during make:

.....
/usr/lib/python3/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2:
 
warning: #warning "Using deprecated NumPy API, disable it by " 
"#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] #warning 
"Using deprecated NumPy API, disable it by "
.....

The fix I used was:

*Remove python3-numpy*
sudo apt-get remove python3-numpy

*Download Numpy*
http://softlayer-dal.dl.sourceforge.net/project/numpy/NumPy/1.8.1/numpy-1.8.1.tar.gz

*Build Numpy*
tar -xzvf 1.8.1/numpy-1.8.1.tar.gz
cd numpy-1.8.1
BLAS=None LAPACK=None ATLAS=None python3.4 setup.py build --fcompiler=gnu95

Note, you'll see warning about BLAS tests and unused vars.

*Install Numpy*
sudo python3.4 setup.py install --record > ~/Desktop/numpy-install.txt

Note: The record is so you can easily remove numpy when the repos catch 
up and fix their bug. Basically, delete ../site-packages/numpy  .. and 
.. /usr/local/bin/f2py3.4

*Configure WSPR*
./configure --with-portaudio-lib-dir=/usr/lib/x86_64-linux-gnu \
--with-portaudio-include-dir=/usr/include \
PYTHON=/usr/bin/python3.4 \
F2PY=/usr/local/bin/f2py3.4

Note: Adjust portaudio paths to suit your Env, x86 is different than 
x86_64, and Ubuntu is probably different than other distros. The same 
for Python3.4 and F2PY3.4 if you change the default install location.

Also, scroll back up the configure messages, and ensure both python3.4 
and f2py3.4 are being used.

*Run Make*
make

You'll get an error that states w-cpython-32mu.so (or similar) cannot be 
found and make will dump you to the command line. This is true, as 
Makefile is calls for that file to be copied, but it's not built. What's 
built is:

w-cpython-34m.so

due to the change from Python32 to Python34 I suppose, so just copy the 
new file over:

cp w-cpython-34m.so WsprMod/w.so

That should do it. Run WSPR as normal:

python3.4 -O wspr.py

If you have any question, post them to the group, I'm sure we can get it 
sorted.

73's
Greg, KI7MT


------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to