>>> Source unpacked. * Applying hugin-0.7.0_rc2-as-needed.patch ... [ ok ] >>> Configuring source in /var/tmp/portage/media-gfx/hugin-0.7.0-r1/work/hugin-0.7.0 ... -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc -- Check for working C compiler: /usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -- Check for working CXX compiler: /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done CMake Error at CMakeModules/FindPackageHandleStandardArgs.cmake:51 (MESSAGE): Could not find REQUIRED package wxWidgets Call Stack (most recent call first): /usr/share/cmake/Modules/FindwxWidgets.cmake:765 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:97 (FIND_PACKAGE) -- Configuring incomplete, errors occurred! Reproducible: Always
Strange, it claims wxWidgets is not installed, but wxGTK is certainly listed as a dependency of the ebuild... Please show the output of the commands 'eselect wxwidgets list' and 'emerge -pv x11-libs/wxGTK:2.8'
(In reply to comment #1) > Please show the output of the commands 'eselect wxwidgets list' and 'emerge -pv > x11-libs/wxGTK:2.8' > ~ # eselect wxwidgets list Available wxWidgets profiles: [1] gtk2-ansi-release-2.6 [2] gtk2-unicode-release-2.6 [3] gtk2-unicode-release-2.8 ~ # emerge -pv x11-libs/wxGTK:2.8 [ebuild R ] x11-libs/wxGTK-2.8.9.1 USE="X gnome gstreamer opengl sdl -debug -doc -odbc -pch"
(In reply to comment #2) > (In reply to comment #1) > > Please show the output of the commands 'eselect wxwidgets list' and 'emerge > > -pv x11-libs/wxGTK:2.8' > > ~ # eselect wxwidgets list > Available wxWidgets profiles: > [1] gtk2-ansi-release-2.6 > [2] gtk2-unicode-release-2.6 > [3] gtk2-unicode-release-2.8 from /usr/share/cmake/Modules/FindwxWidgets.cmake 651 # get defaults based on "wx-config --selected-config"$ 652 WX_CONFIG_SELECT_GET_DEFAULT()$ This will not work when no wxwidget profile is selected like above. If there is no selection wx-config fill fail to get the version of wxwidgets. wx-config An error occurred while calling wx-config: No profile currently selected Please use `eselect wxwidgets` to select an available profile and try again. or wx-config --version-full An error occurred while calling wx-config: No profile currently selected Please use `eselect wxwidgets` to select an available profile and try again.
Version hugin-0.7.0 works here even without a wxwidgets profile selected. Maybe it is a problem related to cmake. I have cmake-2.6.2 here and wxwidgets-2.8.8.1.
Mieszko, please run the build again adding '--debug' option to emerge, then attach the build log using 'Create a New Attachment' link. Also show which version of cmake you have installed -- is it different from Daniel?
~ # cmake --version cmake version 2.6-patch 2
Created attachment 169046 [details] build.log from emerge --debug hugin
I got the intention that wxwidgets-2.8.9 is not supported by cmake until now. A look in the windows section from /usr/share/cmake/Modules/FindwxWidgets.cmake (lines 383++) shows no wxwidgets 2.8.9. Also I found this link http://www.cmake.org/pipermail/cmake/2008-October/024429.html. But in the meantime I upgraded to wxwidgets 2.8.9 and hugin compiles fine with it (besides many compiler warnings) too. This seems all very strange. The only difference now is that I use the EAPI1 ebuild and not -r1.
Thanks for your help, Daniel -- can you post your hugin build.log for comparison?
Created attachment 169232 [details] hugin build log Here is the debug output for hugin-0.7.0 with portage-2.1.4.5.
Mieszko, can you try something else to get more output from cmake... In /usr/share/cmake/Modules/FindwxWidgets.cmake (the file which is failing to find wxwidgets), uncomment the extra debug messages by removing '#' before MESSAGE on line 100 MACRO(DBG_MSG _MSG) # MESSAGE(STATUS "${CMAKE_CURRENT_LIST_FILE}(${CMAKE_CURRENT_LIST_LINE}): ${_MSG}") ENDMACRO(DBG_MSG) Also, you might want to try emerging media-gfx/hugin-0.7.0 just in case the later EAPI version did break things (Daniel's successful builds have been with that older ebuild).
After eselecting "gtk2-unicode-release-2.8" hugin compiles.
(In reply to comment #12) > After eselecting "gtk2-unicode-release-2.8" hugin compiles. So in the end it was a problem with eselect. Strange thing is that it worked here with and without a selected profile.