Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[osg] Build error #27191

Closed
Makstein opened this issue Oct 12, 2022 · 4 comments
Closed

[osg] Build error #27191

Makstein opened this issue Oct 12, 2022 · 4 comments
Assignees
Labels
requires:repro The issue is not currently repro-able Stale

Comments

@Makstein
Copy link

Host Environment

  • OS: Windows 10
  • Compiler: MSVC

To Reproduce

Steps to reproduce the behavior:

vcpkg install osg:x64-windows

Failure logs

Computing installation plan...
warning: vcpkg appears to be in a Visual Studio prompt targeting x86 but is installing packages for x64-windows. Consider using --triplet x86-windows or --triplet x86-uwp.
The following packages will be built and installed:
    osg[core,default-features,fontconfig,freetype,nvtt,openexr,plugins]:x64-windows -> 3.6.5#18
Detecting compiler hash for triplet x64-windows...
-- Automatically setting HTTP(S)_PROXY environment variables to "127.0.0.1:7890".
Restored 0 package(s) from C:\Users\jc\AppData\Local\vcpkg\archives in 231.4 us. Use --debug to see more details.
Installing 1/1 osg:x64-windows...
Building osg[core,default-features,fontconfig,freetype,nvtt,openexr,plugins]:x64-windows...
-- Using cached openscenegraph-OpenSceneGraph-OpenSceneGraph-3.6.5.tar.gz.
-- Cleaning sources at D:/vcpkg/buildtrees/osg/src/raph-3.6.5-41fa3cfd98.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/vcpkg/downloads/openscenegraph-OpenSceneGraph-OpenSceneGraph-3.6.5.tar.gz
-- Applying patch link-libraries.patch
-- Applying patch collada.patch
-- Applying patch fix-sdl.patch
-- Applying patch fix-nvtt-squish.patch
-- Applying patch plugin-pdb-install.patch
-- Applying patch use-boost-asio.patch
-- Applying patch osgdb_zip_nozip.patch
-- Applying patch openexr3.patch
-- Applying patch unofficial-export.patch
-- Using source at D:/vcpkg/buildtrees/osg/src/raph-3.6.5-41fa3cfd98.clean
-- Found external ninja('1.10.2').
-- Configuring x64-windows
-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:131 (message):
    Command failed: "C:/Program Files/CMake/bin/cmake.exe" --build . --config Debug --target install -- -v -j9
    Working Directory: D:/vcpkg/buildtrees/osg/x64-windows-dbg
    See logs for more information:
      D:\vcpkg\buildtrees\osg\install-x64-windows-dbg-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/osg/portfile.cmake:132 (vcpkg_cmake_install)
  scripts/ports.cmake:147 (include)


error: building osg:x64-windows failed with: BUILD_FAILED
error: Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
    https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+osg
You can submit a new issue at:
    https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[osg]+Build+error
Include '[osg] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
    vcpkg-tool version: 2022-09-20-522aa94e9d261c7d7b2f079bf2591ca62df5c714
    vcpkg-scripts version: 083f103cf 2022-10-09 (2 days ago)

The requested file is
install-x64-windows-dbg-out.log

@Makstein Makstein added the category:port-bug The issue is with a library, which is something the port should already support label Oct 12, 2022
@FrankXie05
Copy link
Contributor

ReaderWriterEXR.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) private: static short __cdecl half::convert(int)" (__imp_?convert@half@@CAFH@Z) referenced in function "public: __cdecl half::half(float)" (??0half@@QEAA@M@Z)
ReaderWriterEXR.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl Imf_3_1::Header::Header(int,int,float,class Imath_2_5::Vec2<float> const &,float,enum Imf_3_1::LineOrder,enum Imf_3_1::Compression)" (__imp_??0Header@Imf_3_1@@QEAA@HHMAEBV?$Vec2@M@Imath_2_5@@MW4LineOrder@1@W4Compression@1@@Z) referenced in function "protected: bool __cdecl ReaderWriterEXR::writeEXRStream(class osg::Image const &,class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (?writeEXRStream@ReaderWriterEXR@@IEBA_NAEBVImage@osg@@AEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@5@@Z)
ReaderWriterEXR.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class Imath_2_5::Box<class Imath_2_5::Vec2<int> > const & __cdecl Imf_3_1::RgbaInputFile::dataWindow(void)const " (__imp_?dataWindow@RgbaInputFile@Imf_3_1@@QEBAAEBV?$Box@V?$Vec2@H@Imath_2_5@@@Imath_2_5@@XZ) referenced in function "unsigned char * __cdecl exr_load(class std::basic_istream<char,struct std::char_traits<char> > &,int *,int *,int *,unsigned int *)" (?exr_load@@YAPEAEAEAV?$basic_istream@DU?$char_traits@D@std@@@std@@PEAH11PEAI@Z)
ReaderWriterEXR.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) private: static union half::uif const * const half::_toFloat" (__imp_?_toFloat@half@@0QBTuif@1@B) referenced in function "public: __cdecl half::operator float(void)const " (??Bhalf@@QEBAMXZ)
ReaderWriterEXR.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) private: static unsigned short const * const half::_eLut" (__imp_?_eLut@half@@0QBGB) referenced in function "public: __cdecl half::half(float)" (??0half@@QEAA@M@Z)
src\osgPlugins\exr\osgdb_exrd.dll : fatal error LNK1120: 5 unresolved externals

@dg0yt
Copy link
Contributor

dg0yt commented Oct 12, 2022

Since #26862, openexr uses the half stuff from the separate imath port.
Do you have the latest openexr port installed? i.e.

vcpkg upgrade [--no-dry-run]

@Makstein
Copy link
Author

@dg0yt Yes
image

@FrankXie05 FrankXie05 added requires:repro The issue is not currently repro-able and removed category:port-bug The issue is with a library, which is something the port should already support labels Apr 19, 2023
@github-actions
Copy link

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

@github-actions github-actions bot added the Stale label Jun 28, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires:repro The issue is not currently repro-able Stale
Projects
None yet
Development

No branches or pull requests

3 participants