Hugin win32 build problem: Cmake wxwidgets problem

40 views
Skip to first unread message

Elvis

unread,
Aug 5, 2009, 2:25:47 AM8/5/09
to hugin and other free panoramic software
Dear all

I follow the steps building hugin for windows with sdk, to setup the
Cmake configuration.

I set wxWidgets_LIB_DIR to ..../hugin_enblend_sdk_msvc2008_v2/
wxMSW-2.8.7/lib/vc_lib

then I click "Show Advanced Values", about half of WX_xx libary are
found.

Still half are not found, like WX_advd, WX_based. I delete them all
and configure again.

But 4 libarys come back to list automatically, althogh I delete them.

They are WX_dbgrid, WX_gl, WX_mono, WX_odbc.

I try to delete, ignore them, but error message keeps showing
"wxWidgets required, please specify it's location",

and I cant find them in my whole dictionary.


I have build hugin for a month, and now I can't go any further, what
should I do ?

Thank you so much.




Guido Kohlmeyer

unread,
Aug 5, 2009, 3:27:41 AM8/5/09
to hugi...@googlegroups.com
Dear Elvis,

If you want to build a current revision of hugin you have to use another
SDK. You will find it here:
http://hugin.panotools.org/sdk/MSVC/Hugin-SDK-20090509-win32.exe

Due to the fact that the guide to build hugin is quite outdated I can
give you some rough hints to build it on win32 platform.

1. Download the SDK and run the file. Decompress it to a directory you
like, e.g. D:\hugin\SDK
2. Create a directory e.g. D:\hugin\SDK\hugin-trunk
3. Right-click > SVN Checkout ...
4. Enter URL of reposity:
https://hugin.svn.sourceforge.net/svnroot/hugin/hugin/trunk
5. Click the radio button "Revision" and enter 4094 in the entry
6. Press ok
7. Run current CMake, which is version 2.6.4. If you have an older
version, please update
8. In entry "Where is the source code:" enter your directory for the
sources, e.g. D:\hugin\SDK\hugin-trunk
9. In entry "Where to build the binaries:" enter your directory for the
applications, e.g. D:\hugin\SDK\hugin
10. Press Configure button.
11. A dialog appears, choose "Visual Studio 9 2008", and press Finish.
12. An error dialog appears, click OK
13. Click the value cell of the line HUGIN_BUILDER, and enter your name,
e.g. "Elvis"
14. Press Configure button.
15. An error dialog appears, click OK
13. Click the value cell of the line HUGIN_BUILDDATE, and enter the
current date, e.g. "2009-08-05"
14. Press Configure, maybe twice until the Generate button is active.
15. Press Generate and your done
16. Open the solution file D:\hugin\SDK\hugin\hugin.sln and build hugin.

Due to the fact the the SDK is not up-to-date, the build process is
broken for some newer revisions as 4094. We are currently investigating
how to extend the SDK to match the hugin sources on win32 platform.
If a new SDK is available I will provide it on the panotools wiki:
http://wiki.panotools.org/Hugin_SDK_%28MSVC_2008%29

Regards,
Guido

Elvis schrieb:

Elvis

unread,
Aug 5, 2009, 4:26:50 AM8/5/09
to hugin and other free panoramic software
Dear Guido

Thank you so much,

I will run the process again with updated environment immediatelly.

I have a question,

Should I rebuild Enblend with updated SDK?

or it doesn't manner that Enblend is built with elder SDK, and Hugin
is builted with updated SDK ?

I really appreciate your help.

Best regards

Elvis
> > Thank you so much.- 隱藏被引用文字 -
>
> - 顯示被引用文字 -

Guido Kohlmeyer

unread,
Aug 5, 2009, 5:58:09 AM8/5/09
to hugi...@googlegroups.com
The SDK which I built and refering in my last post is not appropriate to
build enblend/enfuse. It contains a pre-build version from enblend
homepage. It was discussed to extend the SDK to even build
enblend/enfuse, but so far there is no such SDK version available which
fits all build use scenarios on Win platform.

Guido

Elvis

unread,
Aug 6, 2009, 4:45:27 AM8/6/09
to hugin and other free panoramic software
Thank you so much,

Now I am trying this way, building Hugin with updated SDK.

Elvis
> > Elvis- 隱藏被引用文字 -
>
> - 顯示被引用文字 -

Elvis

unread,
Aug 9, 2009, 11:51:31 PM8/9/09
to hugin and other free panoramic software
Dear sir

I thought I have set the correct path for
Boost_THREAD_LIBARY_DEBUG &
Boost_THREAD_LIBARY_RELEASE,

but error message shows:
MESSAGE(FATAL_ERROR "boost thread library not found. If it is
installed with a\nunrecognized suffix, specify it with -
DBOOST_LIBRARYDIR=<librarydir> and -DBOOST_INCLUDEDIR=<includedir>")

The path should be something like C:\hugin-trunk\boost_1_39_0\stage
\lib


if I randomly set the path directly to one of the the library file,
like
C:\hugin-trunk\boost_1_39_0\stage\lib\libboost_thread-vc90-mt-
s-1_39.lib
C:\hugin-trunk\boost_1_39_0\stage\lib\libboost_thread-vc90-mt-s.lib
C:\hugin-trunk\boost_1_39_0\stage\lib\libboost_thread-vc90-mt-
sgd-1_39.lib
C:\hugin-trunk\boost_1_39_0\stage\lib\libboost_thread-vc90-mt-sgd.lib

then, Cmake can pass it (but i dont know if I am doing right)and show
next error message.

Cmake Error at CMakeModules/FindPackegeHandleStandardArgs.cmake:51
(MESSAGE):
Could not fine REQUIRED package wsWidgers
Call Stack (most recent call first):
C:Program Files/CMake 2.6/share/cmake-2.6/Modules/FindwxWidgets.cmake:
782 (FIND_Package_HANDLE_STANDARD_ARGS)
CMakeLists.txt:106 (FINDPACKAGE)

But the wxWidgets_LIB_DIR has been located previously by Cmake to C:
\hugin-trunk\wxWidgets-2.8.10/lib/vc_lib

I am confused, what should I do to complete CMAKE ?

Thank you so much.

Elvis

btw:
win32
hugin-rc revision: 2094
Cmake vision: 2.6.4
> > - 顯示被引用文字 -- 隱藏被引用文字 -
>
> - 顯示被引用文字 -

Elvis

unread,
Aug 11, 2009, 12:03:30 AM8/11/09
to hugin and other free panoramic software
Dear all

Finally, I have successfully built the hugin project.

I use the old revision hugin:3479.
Cmake vision: 2.6.4
SDK vision: I am not sure, the the file name is
"hugin_enblend_sdk_msvc2008_v2.7z" .

Previously I use Cmake 2.4, and I set lots of path manually, maybe
this is why I fail.

if sdk is extracted to Hugin source code base directory (where SVN
checkout is done ), which is CMake default search path, it would be a
little easier for a newbie.

Best regards

Elvis
Reply all
Reply to author
Forward
0 new messages