Forum de la communauté SFML

Aide => Général => Discussion démarrée par: Polpopolitan le Septembre 03, 2012, 01:19:47 am

Titre: [SFGUI] Enormes problèmes successifs pour réussir à l'installer
Posté par: Polpopolitan le Septembre 03, 2012, 01:19:47 am
Bonjour/Bonsoir à tous.

Après plus de 4 heures (vraiment) passées à tenter d'installer ce fichu plug-in, j'abandonne et je m'en remet aux forums. Voilà, dans l'ordre (ou pas), la liste simplifiée de ce que j'ai essayé (j'utilise Visual Studio 2010) :


Je demande votre aide, exténué, car je suis à court d'idées. J'ai tout essayé et rien ne fonctionne, et même google hausse les épaules. Puisqu'il semble que très peu de personnes ont mon problème, ça doit probablement être un oubli de ma part ; mais à mes yeux tout est correct dans mes configurations. 

Merci d'avance  :-\
Titre: Re : [SFGUI] Enormes problèmes successifs pour réussir à l'installer
Posté par: Laurent le Septembre 03, 2012, 01:36:09 am
Si tu ne donnes de détail sur aucune de tes tentatives, ça va être compliqué ;)

Décris nous très précisément ce que tu as fait, et donne nous les messages d'erreurs exacts.

Si tu veux on peut essayer de commencer par l'installation normale, et puis voir le reste si vraiment ça ne fonctionne pas.
Titre: Re : [SFGUI] Enormes problèmes successifs pour réussir à l'installer
Posté par: Polpopolitan le Septembre 03, 2012, 01:59:24 am
Merci de cette réponse rapide à une heure si tardive.

Pour ce qui est de l'installation standard,  les erreurs sont différentes suivant si j'utilise les librairies statiques ou dynamiques.

Librairies dynamiques :

- SFML_DYNAMIC est définie.
- mon projet est en release.
- j'ai correctement link sfgui.lib, sfml-graphics.lib, sfml-window.lib, sfml-system.lib et sfml-network.lib (j'utilise celle-ci dans mon projet).
- les DLL qui sont présentes dans la solution sont : sfgui.dll, sfml-graphics-2.dll, ...(etc) ainsi que libsndfile-1.dll et openal32.dll.

L'erreur est présente après le lancement de l'application : SquidoChatServer.exe - Entry Point Not Found

The procedure entry point ?getFont@Text@sf@@QBEPBVFont@2@XZ could not be located in the dynamic link library sfml-graphics-2.dll.

C'est pourtant la seule version de sfml-graphics-2.dll présente dans les sources.

Librairies statiques :

- SFML_DYNAMIC n'est pas définie.
- l'erreur est présente que SFML_STATIC soit définie ou non.
- les bibliothèques sont link elles-aussi.
- mon projet est en release.

La console me renvoie 38 LNK2001 :
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sfg::Label::SetText(class sf::String const &)" (__imp_?SetText@Label@sfg@@QAEXABVString@sf@@@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class sfg::SharedPtr<class sfg::Label> __cdecl sfg::Label::Create(class sf::String const &)" (__imp_?Create@Label@sfg@@SA?AV?$SharedPtr@VLabel@sfg@@@2@ABVString@sf@@@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sfg::Desktop::Add(class sfg::SharedPtr<class sfg::Widget>)" (__imp_?Add@Desktop@sfg@@QAEXV?$SharedPtr@VWidget@sfg@@@2@@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sfg::Desktop::HandleEvent(class sf::Event const &)" (__imp_?HandleEvent@Desktop@sfg@@QAEXABVEvent@sf@@@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sfg::Desktop::Update(float)" (__imp_?Update@Desktop@sfg@@QAEXM@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sfg::Desktop::~Desktop(void)" (__imp_??1Desktop@sfg@@QAE@XZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sfg::Desktop::Desktop(void)" (__imp_??0Desktop@sfg@@QAE@XZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sfg::Window::SetTitle(class sf::String const &)" (__imp_?SetTitle@Window@sfg@@QAEXABVString@sf@@@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class sfg::SharedPtr<class sfg::Window> __cdecl sfg::Window::Create(int)" (__imp_?Create@Window@sfg@@SA?AV?$SharedPtr@VWindow@sfg@@@2@H@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sfg::Box::Pack(class sfg::SharedPtr<class sfg::Widget> const &,bool,bool)" (__imp_?Pack@Box@sfg@@QAEXABV?$SharedPtr@VWidget@sfg@@@2@_N1@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class sfg::SharedPtr<class sfg::Box> __cdecl sfg::Box::Create(enum sfg::Box::Orientation,float)" (__imp_?Create@Box@sfg@@SA?AV?$SharedPtr@VBox@sfg@@@2@W4Orientation@12@M@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class sfg::Signal & __thiscall sfg::Object::GetSignal(unsigned int &)" (__imp_?GetSignal@Object@sfg@@QAEAAVSignal@2@AAI@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sfg::SFGUI::Display(class sf::RenderTarget &)" (__imp_?Display@SFGUI@sfg@@QAEXAAVRenderTarget@sf@@@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sfg::SFGUI::~SFGUI(void)" (__imp_??1SFGUI@sfg@@QAE@XZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sfg::SFGUI::SFGUI(void)" (__imp_??0SFGUI@sfg@@QAE@XZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sfg::Container::Add(class sfg::SharedPtr<class sfg::Widget> const &)" (__imp_?Add@Container@sfg@@QAEXABV?$SharedPtr@VWidget@sfg@@@2@@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned int sfg::Widget::OnLeftClick" (__imp_?OnLeftClick@Widget@sfg@@2IA)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: static unsigned int sfg::Signal::m_serial" (__imp_?m_serial@Signal@sfg@@0IA)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class sfg::SharedPtr<class sfg::Button> __cdecl sfg::Button::Create(class sf::String const &)" (__imp_?Create@Button@sfg@@SA?AV?$SharedPtr@VButton@sfg@@@2@ABVString@sf@@@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::RenderWindow::~RenderWindow(void)" (__imp_??1RenderWindow@sf@@UAE@XZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::RenderWindow::RenderWindow(class sf::VideoMode,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int,struct sf::ContextSettings const &)" (__imp_??0RenderWindow@sf@@QAE@VVideoMode@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IABUContextSettings@1@@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Window::display(void)" (__imp_?display@Window@sf@@QAEXXZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall sf::Window::pollEvent(class sf::Event &)" (__imp_?pollEvent@Window@sf@@QAE_NAAVEvent@2@@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall sf::Window::isOpen(void)const " (__imp_?isOpen@Window@sf@@QBE_NXZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Window::close(void)" (__imp_?close@Window@sf@@QAEXXZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::String::String(char const *,class std::locale const &)" (__imp_??0String@sf@@QAE@PBDABVlocale@std@@@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: float __thiscall sf::Time::asSeconds(void)const " (__imp_?asSeconds@Time@sf@@QBEMXZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class sf::Time __thiscall sf::Clock::restart(void)" (__imp_?restart@Clock@sf@@QAE?AVTime@2@XZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Clock::Clock(void)" (__imp_??0Clock@sf@@QAE@XZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (__imp_??0VideoMode@sf@@QAE@III@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::RenderTarget::resetGLStates(void)" (__imp_?resetGLStates@RenderTarget@sf@@QAEXXZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::RenderTarget::clear(class sf::Color const &)" (__imp_?clear@RenderTarget@sf@@QAEXABVColor@2@@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Color::Color(unsigned char,unsigned char,unsigned char,unsigned char)" (__imp_??0Color@sf@@QAE@EEEE@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::String::~String(void)" (__imp_??1String@sf@@QAE@XZ)
1>ServerWindow.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: virtual bool __thiscall sf::RenderWindow::activate(bool)" (__imp_?activate@RenderWindow@sf@@EAE_N_N@Z)
1>ServerWindow.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual void __thiscall sf::RenderWindow::onResize(void)" (__imp_?onResize@RenderWindow@sf@@MAEXXZ)
1>ServerWindow.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual void __thiscall sf::RenderWindow::onCreate(void)" (__imp_?onCreate@RenderWindow@sf@@MAEXXZ)
1>ServerWindow.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual class sf::Vector2<unsigned int> __thiscall sf::RenderWindow::getSize(void)const " (__imp_?getSize@RenderWindow@sf@@UBE?AV?$Vector2@I@2@XZ)
1>D:\Programmation\Visual-Studio-Projects\SquidoChatServer\Release\SquidoChatServer.exe : fatal error LNK1120: 38 unresolved externals

Je pense que je n'ai rien oublié.
Titre: Re : [SFGUI] Enormes problèmes successifs pour réussir à l'installer
Posté par: Laurent le Septembre 03, 2012, 10:28:32 am
Dynamique : tu utilises bien le build de SFML fourni sur le site de SFGUI, et non la release candidate ?

Statique : j'imagine qu'il faut aussi définir un truc du genre SFGUI_STATIC.
Titre: Re : [SFGUI] Enormes problèmes successifs pour réussir à l'installer
Posté par: Polpopolitan le Septembre 03, 2012, 11:50:04 am
Je n'avais pas pensé à ça  ???

Ça marche bien, j'ai du mettre à jour les pilotes de ma (très vieille) carte graphique.

Merci pour votre aide très précieuse :D