Hugin - Panorama Tools GUI

boost threading issue at build

Reported by pavel heimlich on 2011-05-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Hugin
Undecided
Unassigned

Bug Description

building on Solaris11e with gcc 4.5.2 I got the below error.
I got around it by adding
ADD_DEFINITIONS(-pthreads)
to
src/hugin_base/CMakeLists.txt

test@kdezone:~/packages/BUILD/hugin-2010.4.0/i386/hugin-2010.4.0/build$ gmake VERBOSE=1cd /home/test/packages/BUILD/hugin-2010.4.0/i386/hugin-2010.4.0/build/src/hugin_base && /usr/gcc/4.5/bin/g++ -Dhuginbase_EXPORTS -O2 -g -fPIC -I/home/test/packages/BUILD/hugin-2010.4.0/i386/hugin-2010.4.0/build/src -I/home/test/packages/BUILD/hugin-2010.4.0/i386/hugin-2010.4.0/src/hugin_base -I/home/test/packages/BUILD/hugin-2010.4.0/i386/hugin-2010.4.0/src/foreign -I/home/test/packages/BUILD/hugin-2010.4.0/i386/hugin-2010.4.0/src/foreign/vigra -I/home/test/packages/BUILD/hugin-2010.4.0/i386/hugin-2010.4.0/src/celeste -I/home/test/packages/BUILD/hugin-2010.4.0/i386/hugin-2010.4.0/build/src/celeste -I/home/test/packages/BUILD/hugin-2010.4.0/i386/hugin-2010.4.0/src -I/opt/kde4/include/OpenEXR -I/opt/kde4/include -o CMakeFiles/huginbase.dir/algorithms/nona/NonaImageStitcher.cpp.o -c /home/test/packages/BUILD/hugin-2010.4.0/i386/hugin-2010.4.0/src/hugin_base/algorithms/nona/NonaImageStitcher.cpp
gmake: Nothing to be done for `/home/test/packages/BUILD/hugin-2010.4.0/i386/hugin-2010.4.0/build/src/hugin_base'.

In file included from /opt/kde4/include/boost/thread/detail/platform.hpp:17:0,
                 from /opt/kde4/include/boost/thread/thread.hpp:12,
                 from /opt/kde4/include/boost/thread.hpp:13,
                 from /home/test/packages/BUILD/hugin-2010.4.0/i386/hugin-2010.4.0/src/hugin_base/vigra_ext/MultiThreadOperations.h:31,
                 from /home/test/packages/BUILD/hugin-2010.4.0/i386/hugin-2010.4.0/src/hugin_base/vigra_ext/ImageTransforms.h:42,
                 from /home/test/packages/BUILD/hugin-2010.4.0/i386/hugin-2010.4.0/src/hugin_base/nona/Stitcher.h:49,
                 from /home/test/packages/BUILD/hugin-2010.4.0/i386/hugin-2010.4.0/src/hugin_base/algorithms/nona/NonaImageStitcher.h:36,
                 from /home/test/packages/BUILD/hugin-2010.4.0/i386/hugin-2010.4.0/src/hugin_base/algorithms/nona/NonaImageStitcher.cpp:31:
/opt/kde4/include/boost/config/requires_threads.hpp:47:5: error: #error "Compiler threading support is not turned on. Please set the correct command line options for threading: -pthread (Linux), -pthreads (Solaris) or -mthreads (Mingw32)"

pavel heimlich (tropikhajma) wrote :

also in src/tools/CMakeLists.txt

Yuv (yuv) on 2011-07-19
tags: added: cmake solaris
Changed in hugin:
status: New → Confirmed
Yuv (yuv) wrote :

tried to fix this in changeset 5429:ba85cc921556

can you please try if it works for you?

thanks

Changed in hugin:
status: Confirmed → Fix Committed
Yuv (yuv) on 2011-08-14
Changed in hugin:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers