Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: sfTheora 1.3.5 and SFML 1.6 VS 2010 Problem  (Read 3618 times)

0 Members and 1 Guest are viewing this topic.

primu

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
sfTheora 1.3.5 and SFML 1.6 VS 2010 Problem
« on: May 14, 2012, 09:53:21 pm »
Hello, I have a problem sfTheora 1.3.5 working under SFML 1.6 and VS2010. SFML 1.6 projects are ok, there are no problem compiling and running them. When I try to run project with Theora (doesn't matter if its Release or Debug) I receive linker errors:


//EDIT: I put this topic in wrong place. Can somebody move it?

Quote
1>sfml-system-d.lib(Clock.obj) : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/OPT:ICF' specification
1>SFMLTheora_d.lib(Video.obj) : warning LNK4217: locally defined symbol ??1Image@sf@@QAE@XZ (public: __thiscall sf::Image::~Image(void)) imported in function "public: void __thiscall SFMLTheora::Video::Update(float)" (?Update@Video@SFMLTheora@@QAEXM@Z)
1>SFMLTheora_d.lib(Video.obj) : warning LNK4217: locally defined symbol ??0Image@sf@@QAE@XZ (public: __thiscall sf::Image::Image(void)) imported in function "public: void __thiscall SFMLTheora::Video::Update(float)" (?Update@Video@SFMLTheora@@QAEXM@Z)
1>SFMLTheora_d.lib(Video.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::Sprite::~Sprite(void)" (__imp_??1Sprite@sf@@UAE@XZ) referenced in function "public: virtual __thiscall SFMLTheora::Video::~Video(void)" (??1Video@SFMLTheora@@UAE@XZ)
1>SFMLTheora_d.lib(Video.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Texture::Texture(void)" (__imp_??0Texture@sf@@QAE@XZ) referenced in function "public: __thiscall SFMLTheora::Video::Video(void)" (??0Video@SFMLTheora@@QAE@XZ)
1>SFMLTheora_d.lib(Video.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Sprite::Sprite(void)" (__imp_??0Sprite@sf@@QAE@XZ) referenced in function "public: __thiscall SFMLTheora::Video::Video(void)" (??0Video@SFMLTheora@@QAE@XZ)
1>SFMLTheora_d.lib(Video.obj) : error LNK2001: unresolved external symbol "private: virtual void __thiscall sf::Sprite::Draw(class sf::RenderTarget &,class sf::RenderStates)const " (?Draw@Sprite@sf@@EBEXAAVRenderTarget@2@VRenderStates@2@@Z)
1>SFMLTheora_d.lib(Video.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Texture::~Texture(void)" (__imp_??1Texture@sf@@QAE@XZ) referenced in function "public: virtual __thiscall SFMLTheora::Video::~Video(void)" (??1Video@SFMLTheora@@UAE@XZ)
1>SFMLTheora_d.lib(Video.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: float __thiscall sf::Time::AsSeconds(void)const " (__imp_?AsSeconds@Time@sf@@QBEMXZ) referenced in function "public: void __thiscall SFMLTheora::Video::Update(class sf::Time)" (?Update@Video@SFMLTheora@@QAEXVTime@sf@@@Z)
1>SFMLTheora_d.lib(Video.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Sprite::SetTexture(class sf::Texture const &,bool)" (__imp_?SetTexture@Sprite@sf@@QAEXABVTexture@2@_N@Z) referenced in function "public: void __thiscall SFMLTheora::Video::Update(float)" (?Update@Video@SFMLTheora@@QAEXM@Z)
1>SFMLTheora_d.lib(Video.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Texture::SetSmooth(bool)" (__imp_?SetSmooth@Texture@sf@@QAEX_N@Z) referenced in function "public: void __thiscall SFMLTheora::Video::Update(float)" (?Update@Video@SFMLTheora@@QAEXM@Z)
1>SFMLTheora_d.lib(Video.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall sf::Texture::LoadFromImage(class sf::Image const &,class sf::Rect<int> const &)" (__imp_?LoadFromImage@Texture@sf@@QAE_NABVImage@2@ABV?$Rect@H@2@@Z) referenced in function "public: void __thiscall SFMLTheora::Video::Update(float)" (?Update@Video@SFMLTheora@@QAEXM@Z)
1>SFMLTheora_d.lib(Video.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Image::Create(unsigned int,unsigned int,unsigned char const *)" (__imp_?Create@Image@sf@@QAEXIIPBE@Z) referenced in function "public: void __thiscall SFMLTheora::Video::Update(float)" (?Update@Video@SFMLTheora@@QAEXM@Z)
1>SFMLTheora_d.lib(AudioInterface.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Mutex::~Mutex(void)" (__imp_??1Mutex@sf@@QAE@XZ) referenced in function __unwindfunclet$??0AudioInterface@SFMLTheora@@QAE@PAVTheoraVideoClip@@HH@Z$0
1>SFMLTheora_d.lib(AudioInterface.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::SoundStream::~SoundStream(void)" (__imp_??1SoundStream@sf@@UAE@XZ) referenced in function __unwindfunclet$??0AudioInterface@SFMLTheora@@QAE@PAVTheoraVideoClip@@HH@Z$0
1>SFMLTheora_d.lib(AudioInterface.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: void __thiscall sf::SoundStream::Initialize(unsigned int,unsigned int)" (__imp_?Initialize@SoundStream@sf@@IAEXII@Z) referenced in function "public: __thiscall SFMLTheora::AudioInterface::AudioInterface(class TheoraVideoClip *,int,int)" (??0AudioInterface@SFMLTheora@@QAE@PAVTheoraVideoClip@@HH@Z)
1>SFMLTheora_d.lib(AudioInterface.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Mutex::Mutex(void)" (__imp_??0Mutex@sf@@QAE@XZ) referenced in function "public: __thiscall SFMLTheora::AudioInterface::AudioInterface(class TheoraVideoClip *,int,int)" (??0AudioInterface@SFMLTheora@@QAE@PAVTheoraVideoClip@@HH@Z)
1>SFMLTheora_d.lib(AudioInterface.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: __thiscall sf::SoundStream::SoundStream(void)" (__imp_??0SoundStream@sf@@IAE@XZ) referenced in function "public: __thiscall SFMLTheora::AudioInterface::AudioInterface(class TheoraVideoClip *,int,int)" (??0AudioInterface@SFMLTheora@@QAE@PAVTheoraVideoClip@@HH@Z)
1>SFMLTheora_d.lib(AudioInterface.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Lock::~Lock(void)" (__imp_??1Lock@sf@@QAE@XZ) referenced in function "public: virtual void __thiscall SFMLTheora::AudioInterface::insertData(float * *,int)" (?insertData@AudioInterface@SFMLTheora@@UAEXPAPAMH@Z)
1>SFMLTheora_d.lib(AudioInterface.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::SoundStream::Play(void)" (__imp_?Play@SoundStream@sf@@QAEXXZ) referenced in function "public: virtual void __thiscall SFMLTheora::AudioInterface::insertData(float * *,int)" (?insertData@AudioInterface@SFMLTheora@@UAEXPAPAMH@Z)
1>SFMLTheora_d.lib(AudioInterface.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: enum sf::SoundSource::Status __thiscall sf::SoundStream::GetStatus(void)const " (__imp_?GetStatus@SoundStream@sf@@QBE?AW4Status@SoundSource@2@XZ) referenced in function "public: virtual void __thiscall SFMLTheora::AudioInterface::insertData(float * *,int)" (?insertData@AudioInterface@SFMLTheora@@UAEXPAPAMH@Z)
1>SFMLTheora_d.lib(AudioInterface.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Lock::Lock(class sf::Mutex &)" (__imp_??0Lock@sf@@QAE@AAVMutex@1@@Z) referenced in function "public: virtual void __thiscall SFMLTheora::AudioInterface::insertData(float * *,int)" (?insertData@AudioInterface@SFMLTheora@@UAEXPAPAMH@Z)
1>SFMLTheora_d.lib(AudioInterface.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::SoundStream::Pause(void)" (__imp_?Pause@SoundStream@sf@@QAEXXZ) referenced in function "public: virtual void __thiscall SFMLTheora::AudioInterface::pause(void)" (?pause@AudioInterface@SFMLTheora@@UAEXXZ)
1>SFMLTheora_d.lib(AudioInterface.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::SoundStream::Stop(void)" (__imp_?Stop@SoundStream@sf@@QAEXXZ) referenced in function "public: virtual void __thiscall SFMLTheora::AudioInterface::stop(void)" (?stop@AudioInterface@SFMLTheora@@UAEXXZ)
1>P:\TheOrAPlayer\SFMLTheora-1.3.5-full\SFMLTheoraTest\SFMLTheoraTest\\SFMLTheoraTest_d.exe : fatal error LNK1120: 21 unresolved externals

Unfortunately, I cannot move to SFML 2.0, it is not possible. I have all the DLLs from Theora and SFML in project folder (in Debug or Release).
Can you help me somehow? I will be very grateful :)
« Last Edit: May 14, 2012, 09:59:32 pm by primu »

zorexx

  • Full Member
  • ***
  • Posts: 109
    • View Profile
    • zorexx@site
Re: sfTheora 1.3.5 and SFML 1.6 VS 2010 Problem
« Reply #1 on: May 15, 2012, 02:12:41 pm »
Did you recompile SFMLTheora 1.3.5 with SFML1.6?
Because the precompiled binaries were compiled with SFML 2 (unstable svn version).

primu

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: sfTheora 1.3.5 and SFML 1.6 VS 2010 Problem
« Reply #2 on: May 15, 2012, 06:58:27 pm »
No I didn't. I used precompiled version. I will try to recompile it and say if it works

//EDIT:


Now I have problems with recompiling it, I get:
Quote
LINK : fatal error LNK1181: cannot open input file 'libtheoraplayer_d.lib'


Any ideas?
« Last Edit: May 17, 2012, 01:00:21 pm by primu »

zorexx

  • Full Member
  • ***
  • Posts: 109
    • View Profile
    • zorexx@site
Re: sfTheora 1.3.5 and SFML 1.6 VS 2010 Problem
« Reply #3 on: May 18, 2012, 02:58:42 pm »
Oh, to recompile, you'll need to make sure you have the dependencies.

But anyway, I just realized I have one compiled for 1.6 for someone last time, which I uploaded to my server (link should be somewhere in this forum or my blog).
Here's the link to it: www.zorexxlkl.com/files/downloads/SFMLTheora-1.3.5-SFML_1.6.zip

 

anything