Hallo,

this could be an error due to my config!

I installed python 2.7 under Ubuntu 10.04, this way and do run it in a 
virtualenv:

------------------------------------------------------------------------------------------------------------------------------

# getting python 2.7 on Ubuntu 10.04
# add the repository to sources-list
deb http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu lucid main
deb-src http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu lucid main

# add the key ring
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DB82666C

# update the packate list
sudo apt-get update

install python 2.7
sudo apt-get install python2.7 python2.7-dev

# get the setuptools neded for virtual environment
wget https://bitbucket.org/pypa/setuptools/raw/0.8/ez_setup.py

# install it in the user dir
python2.7 ez_setup.py --user

# change to that dir, it might not be in path
cd .local/bin

# install the new pip version using python 2.7
./easy_install-2.7 pip

# install the virtualenv
sudo ./pip2.7 install virtualenv

# change back to home dit
cd

# make a dir to save the environments
mkdir .virtualenv

# change to that dir
cd .virtualenv

# make the environment (dont forget the dot at the end
virtualenv --no-site-packages --python=python2.7 .

# actiavte the environment and see that the cursor changed
source bin/activate

# type python --version and see if that is now 2.7

# to leave the environment just type
deactivate

# and to go back in:
cd .virtualenv
source bin/activate
------------------------------------------------------------------------------------------------------------------------------

I the changed in the same terminal to my linuxcnc source directory 
(branch master) and did
cd src
make clean
./autogen.sh
./configure

No error or warning till here!!!

I type make and get an strange error:

......
Compiling emc/usr_intf/xemc.cc
Linking xlinuxcnc
Compiling emc/task/emcsvr.cc
Linking linuxcncsvr
Compiling emc/motion/emcmotglb.c
Compiling emc/task/emctask.cc
In file included from emc/rs274ngc/rs274ngc_interp.hh:20,
                  from emc/task/emctask.cc:29:
emc/rs274ngc/interp_internal.hh: In function ‘int round_to_int(T)’:
emc/rs274ngc/interp_internal.hh:44: error: ‘nearbyint’ is not a member 
of ‘std’
make: *** [objects/emc/task/emctask.o] Fehler 1
.....

IMO nearbyint is a member of std.

See what gives python --version
.......
(.virtualenv)emcmesa@emc-mesa:~/linuxcnc-org/src$ python --version
Python 2.7.6
(.virtualenv)emcmesa@emc-mesa:~/linuxcnc-org/src$
........

I could not see the error related to python, but why does the error pop up?

I just changed the branch from master to 2.7 and in that case make went 
through without mistake!
I am not jet able to run any GUI, because I miss some side pakates, but 
I can not see the differnce in make between 2.7 and master.

Norbert






------------------------------------------------------------------------------
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to