1

Topic: Compilation under Ubuntu

Hi,

Could you tell me how to compile from source on Ubuntu (the Debian package does not fit)? I tried the setup.py, but it does not include any reference for Linux platform. Sorry for that dummy question, but I am not good at Python, although C is no problem.

Regards.

2

Re: Compilation under Ubuntu

Try the following:

sudo apt-get install python-dev python-numpy python-wxgtk2.8
wget http://www.mmass.org/download/files/mmass_v4.0.0_source.zip
unzip mmass_v4.0.0_source.zip
cd mMass/mspy/plot
python setup.py build
mv build/*/*.so .
cd ../../
python mmass.py

Bye,

sgibb

3

Re: Compilation under Ubuntu

Hi,

Thanks for your solution; It works like a charm.

Just a few warnings below.

Regards.


mMass/mspy/plot$ python setup.py build
running build
running build_ext
building 'calculations' extension
creating build
creating build/temp.linux-x86_64-2.6
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/python2.6/dist-packages/numpy/core/include/numpy -I/usr/include -I/usr/include/python2.6 -c calculations.c -o build/temp.linux-x86_64-2.6/calculations.o
calculations.c: In function ‘calculations_scaleAndShift’:
calculations.c:37: warning: assignment from incompatible pointer type
calculations.c: In function ‘calculations_filterPoints’:
calculations.c:146: warning: assignment from incompatible pointer type
calculations.c: At top level:
calculations.c:162: warning: function declaration isn’t a prototype
creating build/lib.linux-x86_64-2.6
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.6/calculations.o -o build/lib.linux-x86_64-2.6/calculations.so

4

Re: Compilation under Ubuntu

Hi all,
Thank you Sebastian for your answers to this post!

I've spent some time making new and more powerful part of mMass written in C and all the warnings are now fixed. I'm going to release the new mMass this Friday!

Martin

5

Re: Compilation under Ubuntu

A small modification for mMass 5.0:

sudo apt-get install python-dev python-numpy python-wxgtk2.8
wget http://www.mmass.org/download/files/mmass_v5.0.0_source.zip
unzip mmass_v5.0.0_source.zip
cd mMass/mspy
python setup.py build
mv build/lib.*/*.so .
cd ../
python mmass.py

Bye,

Sebastian