Skip to Content

Building from SVN

2 replies [Last post]
zettberlin
Offline
Joined: 04/17/2010

I try to build the SVN to get the pianoroll working on fedora14.

But alas! I get this:

/usr/bin/ld: libhydrogen.a(alsa_midi_driver.o): undefined reference to symbol 'pthread_create@@GLIBC_2.1'

I added -lpthread to line 57 in the Sconstruct:

cppflags += ['-O3', '-fomit-frame-pointer', '-funroll-loops', '-lpthread']

so it builds everything to this point:

g++ -o version.o -c -O3 -fomit-frame-pointer -funroll-loops -lpthread -DALSA_SUPPORT -DJACK_SUPPORT -DLRDF_SUPPORT -m32 -DLADSPA_SUPPORT -DQT_CORE_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_SHARED -I. -Igui/src -I3rdparty/install/include -Ilibs/hydrogen/include -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtXml version.cpp

But I have no idea how to make the next line (g++ -o hydrogen etc) work.

best regards

HZN

wolke
wolke's picture
Offline
Joined: 03/30/2010

you need something like pthread-stubs0-dev installed on your system.

don't know if there exist an fedora pckage. maybe you have to compile the pthread-stubs sources.

lg wolke

zettberlin
Offline
Joined: 04/17/2010

pthread-stubs is provided by a package called

libxcb-devel

under fedora -- that is at least what pkgs.org suggests:

http://pkgs.org/package/pkgconfig%28pthread-stubs%29

This one was installed already.
Searching for pthreads with yum only yields some ming-related package: mingw32-pthreads

And these are installed:

/usr/include/pthread.h
/usr/include/bits/pthreadtypes.h
/usr/include/boost/interprocess/sync/posix/pthread_helpers.hpp
/usr/include/boost/signals2/detail/lwm_pthreads.hpp
/usr/include/boost/smart_ptr/detail/atomic_count_pthreads.hpp
/usr/include/boost/smart_ptr/detail/lwm_pthreads.hpp
/usr/include/boost/thread/pthread
/usr/include/boost/thread/pthread/condition_variable.hpp
/usr/include/boost/thread/pthread/condition_variable_fwd.hpp
/usr/include/boost/thread/pthread/mutex.hpp
/usr/include/boost/thread/pthread/once.hpp
/usr/include/boost/thread/pthread/pthread_mutex_scoped_lock.hpp
/usr/include/boost/thread/pthread/recursive_mutex.hpp
/usr/include/boost/thread/pthread/shared_mutex.hpp
/usr/include/boost/thread/pthread/thread_data.hpp
/usr/include/boost/thread/pthread/thread_heap_alloc.hpp
/usr/include/boost/thread/pthread/timespec.hpp

And this one:

/usr/lib/pkgconfig/pthread-stubs.pc