0 Members and 2 Guests are viewing this topic.
The static libraries have the -s suffix (sfml-system-s, sfml-window-s, etc.).
Not in my folder, they are just normal.....
Can you help me outwith the cmake part?
QuoteNot in my folder, they are just normal.....So you compiled the dynamic libraries.QuoteCan you help me outwith the cmake part?Sure. Tell me exactly what you did, and I'll tell you what's wrong.
Well, what about reading the tutorial first? PS: you could make your image less large, it makes some of the forum buttons go outside the visible area. We don't need all that empty space.
where in the tutorial does it say how to build it statically in cmake?
BUILD_SHARED_LIBSThis boolean option controls whether you build the dynamic (shared) libraries of SFML, or the static ones.
Visula studio doesn't give me all the options like you said it would btw
Quotewhere in the tutorial does it say how to build it statically in cmake?There:Quote from: "tutorial"BUILD_SHARED_LIBSThis boolean option controls whether you build the dynamic (shared) libraries of SFML, or the static ones.QuoteVisula studio doesn't give me all the options like you said it would btwWhere did I say that?
Do you mean that other projects contain errors? Which ones?
C:\SFML\build\src\SFML\Audio\sfml-audio.vcxproj : error : Unable to read the project file "sfml-audio.vcxproj".C:\SFML\build\src\SFML\Audio\sfml-audio.vcxproj(112,29): The project file could not be loaded. An error occurred while parsing EntityName. Line 112, position 29.C:\SFML\build\src\SFML\Graphics\sfml-graphics.vcxproj : error : Unable to read the project file "sfml-graphics.vcxproj".C:\SFML\build\src\SFML\Graphics\sfml-graphics.vcxproj(112,29): The project file could not be loaded. An error occurred while parsing EntityName. Line 112, position 29.C:\SFML\build\src\SFML\Network\sfml-network.vcxproj : error : Unable to read the project file "sfml-network.vcxproj".C:\SFML\build\src\SFML\Network\sfml-network.vcxproj(112,29): The project file could not be loaded. An error occurred while parsing EntityName. Line 112, position 29.C:\SFML\build\src\SFML\Window\sfml-window.vcxproj : error : Unable to read the project file "sfml-window.vcxproj".C:\SFML\build\src\SFML\Window\sfml-window.vcxproj(112,29): The project file could not be loaded. An error occurred while parsing EntityName. Line 112, position 29.
Do you use the latest revision of SFML? This kind of problem was fixed a few weeks ago.http://www.sfml-dev.org/forum/viewtopic.php?t=3519
1>------ Build started: Project: Easy_Image_Handler, Configuration: Debug Win32 ------1>Main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::RenderWindow::~RenderWindow(void)" (__imp_??1RenderWindow@sf@@UAE@XZ) referenced in function _main1>Main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Window::Display(void)" (__imp_?Display@Window@sf@@QAEXXZ) referenced in function _main1>Main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::RenderTarget::Clear(class sf::Color const &)" (__imp_?Clear@RenderTarget@sf@@QAEXABVColor@2@@Z) referenced in function _main1>Main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Color::Color(unsigned char,unsigned char,unsigned char,unsigned char)" (__imp_??0Color@sf@@QAE@EEEE@Z) referenced in function _main1>Main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall sf::Window::IsOpened(void)const " (__imp_?IsOpened@Window@sf@@QBE_NXZ) referenced in function _main1>Main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Window::Create(class sf::VideoMode,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned long,struct sf::ContextSettings const &)" (__imp_?Create@Window@sf@@QAEXVVideoMode@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KABUContextSettings@2@@Z) referenced in function _main1>Main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (__imp_??0VideoMode@sf@@QAE@III@Z) referenced in function _main1>Main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::RenderWindow::RenderWindow(void)" (__imp_??0RenderWindow@sf@@QAE@XZ) referenced in function _main1>C:\Users\kid account\Documents\Visual Studio 2010\Projects\Easy_Image_Handler\Debug\Easy_Image_Handler.exe : fatal error LNK1120: 8 unresolved externals========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
#include <SFML\Graphics.hpp>int main(){ sf::RenderWindow App; App.Create(sf::VideoMode(800,600,8),"Hello"); // Start game loop while (App.IsOpened()) { App.Clear(); App.Display(); }}
I did that and now its's not building the dll's in vc++
QuoteI did that and now its's not building the dll's in vc++Can you give more details when you have a new error? It's not easy to help you if I have to guess what you did and what happens.