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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Incubbus

Pages: [1]
1
General / Visual Studio 12 (2013 preview) static linking
« on: August 28, 2013, 12:46:34 am »
Heya,

I did create the visual studio 12-solutions using CMake (had to use solutions, because my antivir would give me 2 alerts about a trojan when building an nmake-thing)...

When using the shared-libs option in CMake everything works fine (tested with the tutorial code)...

But when i try to use the static libs (sfml-xxx-s-d.lib e.g.) visual studio could not load the following projects, because the the vcxproj-files had invalid entries:

sfml-audio
sfml-graphics
sfml-window
sfml-network

the invalid entries were the "<Lib> <AdditionalOptions>..." -entries...
So i did delete those and added an cpp file to every project which includes the additional dependencies mentioned in the <Lib>-section.

But when i tried building a test-project with static linkage, visual studio reported linking errors to missing external symbols...

After trying some things i got it to work:
I had to add the library files mentioned in the lib-sections manually as additional dependencies.
E.g.:
When using sfml-window-s.lib & sfml-graphics-s.lib i had to do the following:
#pragma comment(lib, "glew.lib")
#pragma comment(lib, "freetype.lib")
#pragma comment(lib, "jpeg.lib")
#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "winmm.lib")
#pragma comment(lib, "gdi32.lib")
(Of course, this would also work then adding them manually in the project properties)...

Anyone knows why i have to do add those libs manually and why they are not included in the sfml-lib-files, and how to fix this?...

2
General / How to build SFML?
« on: May 28, 2010, 03:16:54 am »
I dont know how to build SFML1.6 with VS...

Shall i just open the solution and build it?

If so - i already tried - I 3 failed builds and dont know where to find the libraries :/...

I didn´t even find a tutorial of how to build SFML with VS in the wiki and the tutorial files...

May You provide a straight link to this tutorial (if it exists) or may explain me waht to do?...

3
General / SFML2 and Visual Studio 2010
« on: April 28, 2010, 12:17:53 am »
and... any clues?...

4
General / SFML2 and Visual Studio 2010
« on: April 26, 2010, 03:46:08 pm »
Quote
Is this DLL in a directory contained in the PATH evironment variable, or in the same directory as the executable?


It is in an directoy on my desktop and I did make an entry in the VC-Directories property page

On the following screenshot I show the property pages setting, the error(im sorry - its in german, but it says:
Quote
The program can not be started, because sfml-system-s-d.dll is missing on the system. Please reinstall the application...


[/code]


EDIT: I even did redownload the sfml-package...


EDIT 2: If i copy the dll into the exe-directory and retry running the application, there does occur an application error, that says:
Quote
The Application could not start correctly (0xc0150002). Click "OK" to close the Application.
[/b]

5
General / SFML2 and Visual Studio 2010
« on: April 26, 2010, 02:59:17 pm »
i think im going back to DirectX... it seems way easier to get it running ^^...

6
General / SFML2 and Visual Studio 2010
« on: April 26, 2010, 03:01:36 am »
ok... somehow the compilation and linking succeeds...

but then when the console window does appear there is an system error telling me that the sfml-audio.dll does not exist (and hell it does)...

7
General / SFML2 and Visual Studio 2010
« on: April 26, 2010, 02:07:50 am »
If I want to run the sample from the documentations first page... what libs do i have to include and which macros to define?...

i get way over 250 errors... 51 unresolved external symbols...

e.g.:Error   311   error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl std::operator==<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,char const *)" (__imp_??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBD@Z)   C:\Users\Incubbus\Documents\Visual Studio 2010\Projects\Zeros-Test\Zeros-Test\sfml-graphics-s-d.lib(ImageLoader.obj)

8
General / SFML2 and Visual Studio 2010
« on: April 24, 2010, 07:27:26 pm »
ok... may You please tell us "exactly" what to check and how to set up visual studio for sfml 1.6, please?... I´d be very thankful, since this may help him and me(the lnk-error thread below this one)...

thanks in advance:)...

9
General / SFML2 and Visual Studio 2010
« on: April 24, 2010, 01:23:54 pm »
do they appear to you when u run the exe when not using visual studio to start it?...

10
General / LNK-Error: Unresolved external... when using sf:window
« on: April 24, 2010, 12:43:17 pm »
I´m sorry for the late answer: had work to do...

I am using...:

...SMFL-Version: 1.6
...Runtime Library: Multithreaded Debug DLL (/MDd)

(i already tried setting MSBuild to v09 didnt change anything)...

11
General / LNK-Error: Unresolved external... when using sf:window
« on: April 18, 2010, 02:20:07 am »
why dynamic?... i use the static lib... what i am suprised of, is that the system-header-stuff works...

12
General / LNK-Error: Unresolved external... when using sf:window
« on: April 16, 2010, 08:39:03 pm »
Quote
Error   12   error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)   c:\Users\Incubbus\documents\visual studio 2010\Projects\sfml-window\sfml-window\sfml-window-s.lib(WindowImplWin32.obj)



what the hack?... i did link wiht ANY library and it still does not work...
i only succeeded in compiling the clock-example... hahahah... (yes i have the right directorys included)... i did just copy the examples for creating a window...

anyone may know what i did misconfigure?...

Pages: [1]
anything