[Qgis-developer] qgis 2.6.1 does not compile - error related to Python
Sebastian M. Ernst
info at s-m-ernst.de
Tue Dec 23 09:50:02 PST 2014
Hi all,
I am running into some odd error related to Python while trying to
compile QGIS 2.6.1 from source on Linux-x86 using GCC 4.5.0. I can only
guess that I made a mistake of some sort when I compiled and installed
Python 2.7.9 in parallel to my Linux distribution's original Python
2.6.5 previously, though it works as far as I can tell. Any pointers
towards what I am looking at exactly are greatly appreciated.
Thanks, regards,
Sebastian
user at computer:~/Desktop/qgis-2.6.1/build-master> ccmake -D
PYTHON_EXECUTABLE=/usr/local/bin/python2.7 -D
PYTHON_INCLUDE_PATH=/usr/local/include/python2.7/ -D
PYTHON_LIBRARY=/usr/local/lib/libpython2.7.a ..
[...]
user at computer:~/Desktop/qgis-2.6.1/build-master> make
[...]
[ 85%] Built target offlineeditingplugin
[ 85%] Built target heatmapplugin
[ 85%] Built target spitplugin
Linking CXX shared library ../../output/lib/libqgispython.so
/usr/local/lib/libpython2.7.a(dynload_shlib.o): In function
`_PyImport_GetDynLoadFunc':
/home/user/Desktop/Python-2.7.9/Python/dynload_shlib.c:94: undefined
reference to `dlsym'
/home/user/Desktop/Python-2.7.9/Python/dynload_shlib.c:130: undefined
reference to `dlopen'
/home/user/Desktop/Python-2.7.9/Python/dynload_shlib.c:141: undefined
reference to `dlsym'
/home/user/Desktop/Python-2.7.9/Python/dynload_shlib.c:133: undefined
reference to `dlerror'
/usr/local/lib/libpython2.7.a(thread.o): In function
`PyThread_acquire_lock':
/home/user/Desktop/Python-2.7.9/Python/thread_pthread.h:324: undefined
reference to `sem_wait'
/usr/local/lib/libpython2.7.a(thread.o): In function
`PyThread_release_lock':
/home/user/Desktop/Python-2.7.9/Python/thread_pthread.h:350: undefined
reference to `sem_post'
/usr/local/lib/libpython2.7.a(thread.o): In function
`PyThread_start_new_thread':
/home/user/Desktop/Python-2.7.9/Python/thread_pthread.h:184: undefined
reference to `pthread_attr_setstacksize'
/home/user/Desktop/Python-2.7.9/Python/thread_pthread.h:194: undefined
reference to `pthread_create'
/home/user/Desktop/Python-2.7.9/Python/thread_pthread.h:210: undefined
reference to `pthread_detach'
/usr/local/lib/libpython2.7.a(thread.o): In function
`PyThread_allocate_lock':
/home/user/Desktop/Python-2.7.9/Python/thread_pthread.h:269: undefined
reference to `sem_init'
/usr/local/lib/libpython2.7.a(thread.o): In function `PyThread_free_lock':
/home/user/Desktop/Python-2.7.9/Python/thread_pthread.h:294: undefined
reference to `sem_destroy'
/usr/local/lib/libpython2.7.a(thread.o): In function
`PyThread_acquire_lock':
/home/user/Desktop/Python-2.7.9/Python/thread_pthread.h:326: undefined
reference to `sem_trywait'
/home/user/Desktop/Python-2.7.9/Python/thread_pthread.h:324: undefined
reference to `sem_wait'
/usr/local/lib/libpython2.7.a(thread.o): In function
`PyThread_release_lock':
/home/user/Desktop/Python-2.7.9/Python/thread_pthread.h:350: undefined
reference to `sem_post'
/usr/local/lib/libpython2.7.a(thread.o): In function
`_pythread_pthread_set_stacksize':
/home/user/Desktop/Python-2.7.9/Python/thread_pthread.h:497: undefined
reference to `pthread_attr_setstacksize'
/usr/local/lib/libpython2.7.a(thread.o): In function
`PyThread_allocate_lock':
/home/user/Desktop/Python-2.7.9/Python/thread_pthread.h:269: undefined
reference to `sem_init'
/usr/local/lib/libpython2.7.a(thread.o): In function
`PyThread_acquire_lock':
/home/user/Desktop/Python-2.7.9/Python/thread_pthread.h:324: undefined
reference to `sem_wait'
/usr/local/lib/libpython2.7.a(thread.o): In function
`PyThread_release_lock':
/home/user/Desktop/Python-2.7.9/Python/thread_pthread.h:350: undefined
reference to `sem_post'
/usr/local/lib/libpython2.7.a(thread.o): In function
`PyThread_acquire_lock':
/home/user/Desktop/Python-2.7.9/Python/thread_pthread.h:324: undefined
reference to `sem_wait'
/usr/local/lib/libpython2.7.a(thread.o): In function
`PyThread_release_lock':
/home/user/Desktop/Python-2.7.9/Python/thread_pthread.h:350: undefined
reference to `sem_post'
/usr/local/lib/libpython2.7.a(thread.o): In function
`PyThread_allocate_lock':
/home/user/Desktop/Python-2.7.9/Python/thread_pthread.h:269: undefined
reference to `sem_init'
collect2: ld returned 1 exit status
make[2]: *** [output/lib/libqgispython.so.2.6.1] Fehler 1
make[1]: *** [src/python/CMakeFiles/qgispython.dir/all] Fehler 2
make: *** [all] Fehler 2
user at computer:~/Desktop/qgis-2.6.1/build-master>
More information about the Qgis-developer
mailing list