I made the following error: On Linux (and Windows) Hugin must probably be - 
or it is easier if it is - built using dynamic (not static) libraries.
On Linux I now installed "Overlay triplets" like here described:
https://devblogs.microsoft.com/cppblog/vcpkg-2019-06-update/

So I installed OpenExr as dynamic library with:
./vcpkg install openexr:x64-linux-dynamic 
--overlay-triplets=../custom-triplets
I build vigra with this dynamic OpenExr, so I must correct the paths again:

OPENEXR_HALF_LIBRARY                   
/home/user/dev/hugin++-2021-1-1-source/vcpkg/packages/openexr_x64-linux-dynamic/lib/libHalf-2_5.so
OPENEXR_IEX_LIBRARY                      
/home/user/dev/hugin++-2021-1-1-source/vcpkg/packages/openexr_x64-linux-dynamic/lib/libIex-2_5.so
OPENEXR_ILMIMF_LIBRARY              
/home/user/dev/hugin++-2021-1-1-source/vcpkg/packages/openexr_x64-linux-dynamic/lib/libIlmImf-2_5.so
OPENEXR_ILMTHREAD_LIBRARY        
/home/user/dev/hugin++-2021-1-1-source/vcpkg/packages/openexr_x64-linux-dynamic/lib/libIlmThread-2_5.so
OPENEXR_IMATH_LIBRARY          
/home/user/dev/hugin++-2021-1-1-source/vcpkg/packages/openexr_x64-linux-dynamic/lib/libImath-2_5.so
OPENEXR_INCLUDE_DIR             
/home/user/dev/hugin++-2021-1-1-source/vcpkg/packages/openexr_x64-linux-dynamic/include/OpenEXR

After installing vigra the CMake Gui for Hugin++ does not complain any more 
about missing OpenExr support.

The next missing library is EXIV2. I hope it works with vcpkg.
Florian Königstein schrieb am Donnerstag, 19. August 2021 um 10:12:00 UTC+2:

> I made some errors with the paths that should be entered in CMake for my 
> Hugin build on Linux:
> This should be correct:
>
> OPENEXR_HALF_LIBRARY                   
> /home/user/dev/hugin-2020.0.0/vcpkg/packages/openexr_x64-linux/lib/libHalf-2_5.a
> OPENEXR_IEX_LIBRARY                      
> /home/user/dev/hugin-2020.0.0/vcpkg/packages/openexr_x64-linux/lib/libIex-2_5.a
> OPENEXR_ILMIMF_LIBRARY              
> /home/user/dev/hugin-2020.0.0/vcpkg/packages/openexr_x64-linux/lib/libIlmImf-2_5.a
> OPENEXR_ILMTHREAD_LIBRARY        
> /home/user/dev/hugin-2020.0.0/vcpkg/packages/openexr_x64-linux/lib/libIlmThread-2_5.a
> OPENEXR_IMATH_LIBRARY          
> /home/user/dev/hugin-2020.0.0/vcpkg/packages/openexr_x64-linux/lib/libImath-2_5.a
> OPENEXR_INCLUDE_DIR             
> /home/user/dev/hugin-2020.0.0/vcpkg/packages/openexr_x64-linux/include/OpenEXR
>
> Now I have built vigra on Linux with OpenEXR support. The CMake for 
> Hugin++ finds my vigra installation, but it claims about missing
> OpenEXR support in vigra (before I compiled vigra without OpenEXR support, 
> but then with it).
>
>
>
> Florian Königstein schrieb am Donnerstag, 19. August 2021 um 07:21:25 
> UTC+2:
>
>> With this I meant that (at least on Windows) most of the libraries could 
>> not be found automatically and some "doing by hands" and try-and-error will 
>> be necessary.
>> I myself have never CREATED CMakeList.txt and related files for CMake, 
>> and so I'm far from beeing an expert with CMake.
>>
>> I find it good if you ask here, so this thread can also be seen as a help 
>> for others who want to compile Hugin or Hugin++.
>>
>> From your error messages it seems that the variables containing the vigra 
>> version information are not defined.
>> Maybe I find the time to try it myself on Linux.
>> ChameleonScales schrieb am Donnerstag, 19. August 2021 um 01:22:13 UTC+2:
>>
>>> I originally had openexr installed on my system. Installing it via vcpkg 
>>> fixed that issue.
>>>
>>> I also built vigra from source and set the path to .
>>> /usr/local/bin/vigra-config
>>> But now I have this :
>>>
>>> CMake Error at CMakeModules/FindVIGRA.cmake:58 (IF):
>>> if given arguments:
>>>
>>> "VERSION_EQUAL" "VIGRA_FIND_VERSION" "OR" "VERSION_GREATER" 
>>> "VIGRA_FIND_VERSION"
>>>
>>> Unknown arguments specified
>>>
>>>
>>> Call Stack (most recent call first):
>>>
>>> vcpkg/scripts/buildsystems/vcpkg.cmake:784 (_find_package)
>>> CMakeLists.txt:223 (FIND_PACKAGE)
>>>
>>> When you said "the next error is Vigra", did you mean I should expect 
>>> several more? Maybe this is destined for people who have good knowledge of 
>>> cmake. I don't want to waste people's time and clutter the conversation so 
>>> I may give up.
>>>
>>

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/e487736c-d6e8-42ff-b2a3-6dd54a48a73cn%40googlegroups.com.

Reply via email to