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

Windows: Building against OpenEXR 2.4 fails #799

Closed
kamgha opened this issue Nov 29, 2019 · 2 comments
Closed

Windows: Building against OpenEXR 2.4 fails #799

kamgha opened this issue Nov 29, 2019 · 2 comments
Labels
Milestone

Comments

@kamgha
Copy link
Contributor

@kamgha kamgha commented Nov 29, 2019

Building against OpenEXR 2.4 (static) fails with this message:

[ 41%] Building C++ object built/tmp/panda_panda.obj
panda.cxx
[ 41%] Linking dynamic library built/bin/libpanda.dll
   Creating library built/lib/libpanda.lib and object built/lib/libpanda.exp
IlmImf-2_4.lib(ImfChromaticities.cpp.obj) : error LNK2001: unresolved external s
ymbol "public: __cdecl Imath_2_4::SingMatrixExc::SingMatrixExc(char const *)" (?
?0SingMatrixExc@Imath_2_4@@QEAA@PEBD@Z)
IlmImf-2_4.lib(ImfChromaticities.cpp.obj) : error LNK2001: unresolved external s
ymbol "public: __cdecl Imath_2_4::SingMatrixExc::SingMatrixExc(class Imath_2_4::
SingMatrixExc const &)" (??0SingMatrixExc@Imath_2_4@@QEAA@AEBV01@@Z)
IlmImf-2_4.lib(ImfChromaticities.cpp.obj) : error LNK2001: unresolved external s
ymbol "public: virtual __cdecl Imath_2_4::SingMatrixExc::~SingMatrixExc(void)" (
??1SingMatrixExc@Imath_2_4@@UEAA@XZ)
built/bin/libpanda.dll : fatal error LNK1120: 3 unresolved externals
Storing dependency cache.
Elapsed Time: 11 min 31 sec
The following command returned a non-zero value: link /nologo  /NOD:MFC90.LIB /N
OD:MFC80.LIB /NOD:LIBCMT /NOD:LIBCI.LIB /DEBUG /nod:libc /nod:libcmtd /nod:atlth
unk /nod:atls /nod:atlsd /DLL /MAP:NUL /LTCG /NOD:MSVCRTD.LIB /NOD:MSVCPRTD.LIB
/NOD:MSVCIRTD.LIB /FIXED:NO /OPT:REF /STACK:4194304 /INCREMENTAL:NO  /OUT:built/
bin/libpanda.dll /NOD:python37.lib /SUBSYSTEM:CONSOLE,5.02 /IMPLIB:built/lib/lib
panda.lib /LIBPATH:thirdparty/win-python3.7-x64/libs built/tmp/panda_panda.obj b
uilt/tmp/p3recorder_composite1.obj built/tmp/p3recorder_composite2.obj built/tmp
/p3pgraphnodes_composite1.obj built/tmp/p3pgraphnodes_composite2.obj built/tmp/p
3pgraph_nodePath.obj built/tmp/p3pgraph_composite1.obj built/tmp/p3pgraph_compos
ite2.obj built/tmp/p3pgraph_composite3.obj built/tmp/p3pgraph_composite4.obj bui
lt/tmp/p3cull_composite1.obj built/tmp/p3cull_composite2.obj built/tmp/p3movies_
composite1.obj built/tmp/p3grutil_multitexReducer.obj built/tmp/p3grutil_composi
te1.obj built/tmp/p3grutil_composite2.obj built/tmp/p3chan_composite1.obj built/
tmp/p3chan_composite2.obj built/tmp/p3pstatclient_composite1.obj built/tmp/p3pst
atclient_composite2.obj built/tmp/p3char_composite1.obj built/tmp/p3char_composi
te2.obj built/tmp/p3collide_composite1.obj built/tmp/p3collide_composite2.obj bu
ilt/tmp/p3device_composite1.obj built/tmp/p3device_composite2.obj built/tmp/p3dg
raph_composite1.obj built/tmp/p3dgraph_composite2.obj built/tmp/p3display_graphi
csStateGuardian.obj built/tmp/p3display_composite1.obj built/tmp/p3display_compo
site2.obj built/tmp/p3pipeline_composite1.obj built/tmp/p3pipeline_composite2.ob
j built/tmp/p3pipeline_contextSwitch.obj built/tmp/p3event_composite1.obj built/
tmp/p3event_composite2.obj built/tmp/p3gobj_composite1.obj built/tmp/p3gobj_comp
osite2.obj built/tmp/p3gsgbase_composite1.obj built/tmp/p3linmath_composite1.obj
 built/tmp/p3linmath_composite2.obj built/tmp/p3mathutil_composite1.obj built/tm
p/p3mathutil_composite2.obj built/tmp/p3parametrics_composite1.obj built/tmp/p3p
arametrics_composite2.obj built/tmp/p3pnmimagetypes_composite1.obj built/tmp/p3p
nmimagetypes_composite2.obj built/tmp/p3pnmimage_composite1.obj built/tmp/p3pnmi
mage_composite2.obj built/tmp/p3pnmimage_convert_srgb_sse2.obj built/tmp/p3text_
composite1.obj built/tmp/p3text_composite2.obj built/tmp/p3tform_composite1.obj
built/tmp/p3tform_composite2.obj built/tmp/p3putil_composite1.obj built/tmp/p3pu
til_composite2.obj built/tmp/p3audio_composite1.obj built/tmp/p3pgui_composite1.
obj built/tmp/p3pgui_composite2.obj built/tmp/p3net_composite1.obj built/tmp/p3n
et_composite2.obj built/tmp/p3nativenet_composite1.obj built/tmp/p3pandabase_pan
dabase.obj built/lib/libpandaexpress.lib built/tmp/p3dxml_composite1.obj built/l
ib/libp3dtoolconfig.lib built/lib/libp3dtool.lib built/tmp/p3pnmtext_composite1.
obj wsock32.lib ws2_32.lib user32.lib winmm.lib gdi32.lib advapi32.lib iphlpapi.
lib setupapi.lib thirdparty/win-libs-vc14-x64/png/lib/libpng16_static.lib thirdp
arty/win-libs-vc14-x64/tiff/lib/tiff.lib thirdparty/win-libs-vc14-x64/openexr/li
b/IlmImf-2_4.lib thirdparty/win-libs-vc14-x64/openexr/lib/IlmThread-2_4.lib thir
dparty/win-libs-vc14-x64/openexr/lib/Iex-2_4.lib thirdparty/win-libs-vc14-x64/op
enexr/lib/Half-2_4.lib thirdparty/win-libs-vc14-x64/zlib/lib/zlibstatic.lib thir
dparty/win-libs-vc14-x64/freetype/lib/freetype.lib thirdparty/win-libs-vc14-x64/
harfbuzz/lib/harfbuzz.lib thirdparty/win-libs-vc14-x64/squish/lib/squish.lib thi
rdparty/win-libs-vc14-x64/vorbis/lib/ogg.lib thirdparty/win-libs-vc14-x64/vorbis
/lib/vorbis.lib thirdparty/win-libs-vc14-x64/vorbis/lib/vorbisfile.lib
Build terminated.

Note that makepanda.py will need this addition at line 608 to find OpenEXR 2.4:

        elif os.path.isfile(GetThirdpartyDir() + "openexr/lib/IlmImf-2_4.lib"):
            suffix = "-2_4"
@rdb

This comment has been minimized.

Copy link
Member

@rdb rdb commented Nov 30, 2019

In the output I see:

thirdparty/win-libs-vc14-x64/openexr/lib/IlmImf-2_4.lib
thirdparty/win-libs-vc14-x64/openexr/lib/IlmThread-2_4.lib
thirdparty/win-libs-vc14-x64/openexr/lib/Iex-2_4.lib

Is there another library that OpenEXR ships with now that we missed?

@rdb rdb added the build label Nov 30, 2019
@kamgha

This comment has been minimized.

Copy link
Contributor Author

@kamgha kamgha commented Nov 30, 2019

My build of OpenEXR 2.4 gives me 7 libraries, same with version 2.3.

openexr\lib>dir /B *.lib
Half-2_4.lib
Iex-2_4.lib
IexMath-2_4.lib
IlmImf-2_4.lib
IlmImfUtil-2_4.lib
IlmThread-2_4.lib
Imath-2_4.lib
kamgha added a commit to kamgha/panda3d that referenced this issue Nov 30, 2019
This fixes issue panda3d#799
@rdb rdb added this to the 1.10.5 milestone Dec 7, 2019
@rdb rdb closed this in 6e36abf Dec 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.