[SOLVED] Building Panda3D with --static

Hello everyone,
I just need help on something important and wanna ask you guys :frowning:
My English is bad, but I will try to explain the situation to you as much as I can.

The operating system I use is x64 architecture and IDE is VisualStudio 19 (v142).
First, I downloaded the Panda3D SDK from the website. (I downloaded the x32 one and didnā€™t pay enough attention to it.)
And create a blank C++ console project (i followed manual) and start working on itā€¦

Everything was fine! I was able to compile the projectā€¦ Running my gameā€¦ etcā€¦ like i said everything was okā€¦
But then i decided to build my game and try to run on another PC. Obviously it did not work :slight_smile:
Because it needs some libraries/dlls etcā€¦ I searched on the internet and found out that I need to build Panda3D source statically. (with the ā€œā€“staticā€ option)
And i build it with PowerShell;

makepanda\makepanda.bat --everything --installer --msvc-version=14.2 --windows-sdk=10  --threads=2 --static

Successfully builded and i installed SDK with ā€œPanda3D-1.11.0-py3.8-x64.exeā€
I saw that the size of lib files increased because of static build and i think thats a good thing. Thats what i was looking for! :slight_smile:
And i just realised its x64!
I went back to my project and made some adjustments;
-Changed Solution Platform on VS19 from Release x32 to Release x64
-Changed Additional Include Paths
-Changed Additional Lib Paths

Here is some project configurations;


Dependencies that i added myself;

libp3framework.lib
libpanda.lib
libpandaexpress.lib
libp3dtool.lib
libp3dtoolconfig.lib
libp3direct.lib

But now i cant build my project :frowning: Here is the compiler errors;

I canā€™t solve this problem and I think Iā€™m stuck, I need your help.
Thank you for your time, best regards.

You donā€™t need a static build, just place your exe file in the bin folder that is being built with the SDK. After that, you can run your application on another computer, provided that the platform matches.

It is a good practice to build pandas from sources with the libraries and plugins required for your application. Next, you can place your executable file next to the dll.

Thanks for the answer but im sorry, i dont understand the point.
I donā€™t have an .EXE file because i canā€™t build it.
The problem is why i canā€™t build my project?

  • I builded Panda
  • I add adt. include path
  • I add adt. lib path
  • I add adt. dependencies
  • There is no error in my codes
    Yet error says:
LNK2001	unresolved external symbol "__declspec(dllimport) public: void __cdecl PandaFramework::close_framework(void)

But i added already ā€œlibp3framework.libā€
So, why? :slight_smile:

I kind of noted that you donā€™t have to build a panda with a static binding

When you first launched the project, you needed to place your exe file in the bin folder for distribution. Only then did it work on another computer.

Yes yes i know and thank you for that i really appreciate it.
Im Just wondering why I canā€™t build it? This is ridiculous :slight_smile:
Maybe i should try x32 againā€¦

I tried to build Panda3D as 32bit (x86) again with ā€œā€“staticā€ option.
Still getting same errors btw :frowning:

@rdb Hello, do you have any idea? :frowning:

I tried to build Panda3D (1.10.13) as 32bit (x86) again with ā€œā€“staticā€ option.
Still getting same linking errorsā€¦

Youā€™re missing a LINK_ALL_STATIC preprocessor definition, I think.

When i add LINK_ALL_STATIC;

Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK2001	unresolved external symbol _init_libpandaegg	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libp3framework.lib(p3framework_composite1.obj)	1	
Error	LNK2001	unresolved external symbol "void __cdecl init_libpandagl(void)" (?init_libpandagl@@YAXXZ)	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libp3framework.lib(p3framework_composite1.obj)	1	
Error	LNK2001	unresolved external symbol _cgCreateContext	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetLastListing	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgCreateProgram	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgDestroyProgram	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetProgramString	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetProgramProfile	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetNamedParameter	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetFirstParameter	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetNextParameter	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetFirstStructParameter	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetArrayParameter	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetArraySize	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetParameterName	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetParameterType	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetParameterBaseType	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetParameterClass	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetParameterRows	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetParameterColumns	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetParameterResource	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetParameterResourceIndex	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetParameterVariability	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetParameterDirection	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgIsParameterReferenced	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetProfileString	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetProfile	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetProfileProperty	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetProgramDomain	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetError	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetErrorString	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetNumProgramDomains	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgCombinePrograms	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetProgramDomainProgram	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _cgGetParameterResourceName	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _deflate	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _deflate	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpandaexpress.lib(p3express_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _deflateEnd	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _deflateEnd	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpandaexpress.lib(p3express_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _inflate	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _inflate	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpandaexpress.lib(p3express_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _inflateEnd	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _inflateEnd	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpandaexpress.lib(p3express_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _deflateInit_	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _deflateInit_	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpandaexpress.lib(p3express_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _inflateInit_	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol "void __cdecl squish::CompressMasked(unsigned char const *,int,void *,int)" (?CompressMasked@squish@@YAXPBEHPAXH@Z)	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol "void __cdecl squish::Decompress(unsigned char *,void const *,int)" (?Decompress@squish@@YAXPAEPBXH@Z)	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol "int __cdecl squish::GetStorageRequirements(int,int,int)" (?GetStorageRequirements@squish@@YAHHHH@Z)	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3gobj_composite2.obj)	1	
Error	LNK2001	unresolved external symbol __imp__gethostname@8	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pstatclient_composite1.obj)	1	
Error	LNK2001	unresolved external symbol __imp__gethostname@8	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3net_composite1.obj)	1	
Error	LNK2001	unresolved external symbol _hb_buffer_create	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3text_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _hb_buffer_destroy	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3text_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _hb_buffer_set_content_type	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3text_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _hb_buffer_set_direction	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3text_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _hb_buffer_guess_segment_properties	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3text_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _hb_buffer_reset	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3text_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _hb_buffer_add	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3text_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _hb_buffer_get_length	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3text_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _hb_buffer_get_glyph_infos	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3text_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _hb_buffer_get_glyph_positions	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3text_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _hb_shape	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3text_composite2.obj)	1	
Error	LNK2001	unresolved external symbol _jpeg_std_error	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1	
Error	LNK2001	unresolved external symbol _jpeg_CreateCompress	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1	
Error	LNK2001	unresolved external symbol _jpeg_CreateDecompress	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1	
Error	LNK2001	unresolved external symbol _jpeg_destroy_compress	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1	
Error	LNK2001	unresolved external symbol _jpeg_destroy_decompress	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1	
Error	LNK2001	unresolved external symbol _jpeg_set_defaults	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1	
Error	LNK2001	unresolved external symbol _jpeg_set_quality	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1	
Error	LNK2001	unresolved external symbol _jpeg_start_compress	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1	
Error	LNK2001	unresolved external symbol _jpeg_write_scanlines	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1	
Error	LNK2001	unresolved external symbol _jpeg_finish_compress	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1	
Error	LNK2001	unresolved external symbol _jpeg_write_marker	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1	
Error	LNK2001	unresolved external symbol _jpeg_read_header	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1	
Error	LNK2001	unresolved external symbol _jpeg_start_decompress	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1	
Error	LNK2001	unresolved external symbol _jpeg_read_scanlines	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1	
Error	LNK2001	unresolved external symbol _jpeg_finish_decompress	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1	
Error	LNK2001	unresolved external symbol _jpeg_save_markers	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1	
Error	LNK2001	unresolved external symbol _jpeg_resync_to_restart	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1	
Error	LNK2001	unresolved external symbol "public: __thiscall Imf::Header::Header(int,int,float,class Imath::Vec2<float> const &,float,enum Imf::LineOrder,enum Imf::Compression)" (??0Header@Imf@@QAE@HHMABV?$Vec2@M@Imath@@MW4LineOrder@1@W4Compression@1@@Z)	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1	
Error	LNK2001	unresolved external symbol "public: __thiscall Imf::Header::~Header(void)" (??1Header@Imf@@QAE@XZ)	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1	
Error	LNK2001	unresolved external symbol "public: class Imath::Box<class Imath::Vec2<int> > const & __thiscall Imf::Header::dataWindow(void)const " (?dataWindow@Header@Imf@@QBEABV?$Box@V?$Vec2@H@Imath@@@Imath@@XZ)	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1	
Error	LNK2001	unresolved external symbol "public: class Imf::ChannelList & __thiscall Imf::Header::channels(void)" (?channels@Header@Imf@@QAEAAVChannelList@2@XZ)	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1	
Error	LNK2001	unresolved external symbol "public: class Imf::ChannelList const & __thiscall Imf::Header::channels(void)const " (?channels@Header@Imf@@QBEABVChannelList@2@XZ)	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1	
Error	LNK2001	unresolved external symbol "public: __thiscall Imf::Slice::Slice(enum Imf::PixelType,char *,unsigned int,unsigned int,int,int,double,bool,bool)" (??0Slice@Imf@@QAE@W4PixelType@1@PADIIHHN_N2@Z)	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1	
Error	LNK2001	unresolved external symbol "public: void __thiscall Imf::FrameBuffer::insert(char const * const,struct Imf::Slice const &)" (?insert@FrameBuffer@Imf@@QAEXQBDABUSlice@2@@Z)	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1	
Error	LNK2001	unresolved external symbol "int __cdecl Imf::globalThreadCount(void)" (?globalThreadCount@Imf@@YAHXZ)	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1	
Error	LNK2001	unresolved external symbol "bool __cdecl Imf::isImfMagic(char const * const)" (?isImfMagic@Imf@@YA_NQBD@Z)	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1	
Error	LNK2001	unresolved external symbol "public: virtual __thiscall Imf::IStream::~IStream(void)" (??1IStream@Imf@@UAE@XZ)	Valkera	C:\Users\SIMONPC\Desktop\Panda3D\Projects\ValkeraOnline\Valkera\libpanda.lib(p3pnmimagetypes_composite1.obj)	1
...
MORE ERROR

And if i add all libs to additional dependencies;

When you statically link you also need to add all the thirdparty libraries that Panda uses.

In the latest one youā€™re still missing the SSL libs.

Iā€™m sorry I was unavailable and unable to reply for a few days.
And yes like you said @rdb thirdparty libs needs to be add
but I think Iā€™ve changed my mind about going with a static build :slight_smile:
like @serega-kkz said i can copy from bin/ folder. Thanks anywayā€¦
I am happy to get answers from you on the forum when I have a problem :heart:

Yes, a static build is significantly more work.

If you want to go down this path, for final distribution of your game, I would suggest compiling Panda3D from source code so you have full control over the entire build process, including which features you enable, and this would allow you to create a more optimized build as well.

2 Likes