elliotwoods / ofxSquash

Compress and decompress data using a large range of compression codecs supplied by libsquash
29 stars 9 forks source link

compile Win32 #10

Open jordiexvision opened 8 years ago

jordiexvision commented 8 years ago

Trying to compile the library for 32 bits but encounter the following errors:

3>------ Build started: Project: simpleExample, Configuration: Debug Win32 ------
3>  main.cpp
3>  ofApp.cpp
3>ofxSquashLibd_Win32.lib(Codec.obj) : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/SAFESEH' specification
3>     Creating library bin\simpleExample_debug.lib and object bin\simpleExample_debug.exp
3>ofxSquashLibd_Win32.lib(Codec.obj) : error LNK2019: unresolved external symbol __imp__squash_status_to_string referenced in function "public: unsigned int __thiscall ofxSquash::Codec::compress(void *,unsigned int,void const *,unsigned int)const " (?compress@Codec@ofxSquash@@QBEIPAXIPBXI@Z)
3>ofxSquashLibd_Win32.lib(Codec.obj) : error LNK2019: unresolved external symbol __imp__squash_codec_init referenced in function "public: __thiscall ofxSquash::Codec::Codec(struct SquashCodec_ *)" (??0Codec@ofxSquash@@QAE@PAUSquashCodec_@@@Z)
3>ofxSquashLibd_Win32.lib(Codec.obj) : error LNK2019: unresolved external symbol __imp__squash_codec_get_name referenced in function "public: __thiscall ofxSquash::Codec::Codec(struct SquashCodec_ *)" (??0Codec@ofxSquash@@QAE@PAUSquashCodec_@@@Z)
3>ofxSquashLibd_Win32.lib(Codec.obj) : error LNK2019: unresolved external symbol __imp__squash_codec_get_uncompressed_size referenced in function "public: unsigned int __thiscall ofxSquash::Codec::getUncompressedSize(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (?getUncompressedSize@Codec@ofxSquash@@QBEIABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
3>ofxSquashLibd_Win32.lib(Codec.obj) : error LNK2019: unresolved external symbol __imp__squash_codec_get_max_compressed_size referenced in function "public: unsigned int __thiscall ofxSquash::Codec::getMaxCompressedSize(unsigned int)const " (?getMaxCompressedSize@Codec@ofxSquash@@QBEII@Z)
3>ofxSquashLibd_Win32.lib(Codec.obj) : error LNK2019: unresolved external symbol __imp__squash_codec_compress referenced in function "public: unsigned int __thiscall ofxSquash::Codec::compress(void *,unsigned int,void const *,unsigned int)const " (?compress@Codec@ofxSquash@@QBEIPAXIPBXI@Z)
3>ofxSquashLibd_Win32.lib(Codec.obj) : error LNK2019: unresolved external symbol __imp__squash_codec_decompress referenced in function "public: unsigned int __thiscall ofxSquash::Codec::decompress(void *,unsigned int,void const *,unsigned int)const " (?decompress@Codec@ofxSquash@@QBEIPAXIPBXI@Z)
3>ofxSquashLibd_Win32.lib(Codec.obj) : error LNK2019: unresolved external symbol __imp__squash_get_codec referenced in function "public: __thiscall ofxSquash::Codec::Codec(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (??0Codec@ofxSquash@@QAE@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
3>ofxSquashLibd_Win32.lib(Initializer.obj) : error LNK2019: unresolved external symbol __imp__squash_set_default_search_path referenced in function "void __cdecl ofxSquash::initialize(void)" (?initialize@ofxSquash@@YAXXZ)
3>ofxSquashLibd_Win32.lib(ofxSquash.obj) : error LNK2019: unresolved external symbol __imp__squash_foreach_codec referenced in function "class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class ofxSquash::Codec,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class ofxSquash::Codec> > > __cdecl ofxSquash::getCodecList(bool)" (?getCodecList@ofxSquash@@YA?AV?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@VCodec@ofxSquash@@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@VCodec@ofxSquash@@@std@@@2@@std@@_N@Z)
3>bin\simpleExample_debug.exe : fatal error LNK1120: 10 unresolved externals
========== Build: 2 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Why it does not find those definitions? The ofxSquashLib seems to compile fine... any idea?

elliotwoods commented 8 years ago

the built squash libs are currently only available for vs/x64 and osx/x64[image: pasted1] you'd also need to rebuild whichever plugins you wanted for 32bit

sorry i don't have a build environment any more so can't help rapidly with that

elliot

elliotwoods commented 7 years ago

old : closing.