SFML community forums

Bindings - other languages => C => Topic started by: migf1 on June 26, 2015, 11:38:58 am

Title: CSFML 2.3 - Entry point not found in dyamic dll
Post by: migf1 on June 26, 2015, 11:38:58 am
Hello,

I just tried to give CSFML 2.3 a try, before going to SDL2, but got missing functions from the dynamic libs when trying to run the sample program from the docs. More specifically...

(http://i.imgur.com/2NNBmne.png?1)

That's for audio, but same thing happens with other modules too. I'm using mingw 4.8.1 (not mingw-w64, nor tdm-gcc) on Windows 8.1

Steps I took for installing the lib:

1. Downloaded official (http://www.sfml-dev.org/download/csfml/) v2.3 pre-compiled Visual C++ / GCC - 32-bit binaries.
2. Extracted to c:\unix\libs
3. Put c:\unix\libs\csfml\bin to Window's PATH
4. compiled with:
Code: [Select]
gcc example1.c -o example1.exe -std=c99 -g3 -Wall -Wextra -pedantic -IC:\unix\libs\csfml\include -LC:\unix\libs\csfml\lib\gcc -lcsfml-graphics -lcsfml-audio -lcsfml-window -lcsfml-system
Any pointers would be greatly appreciated.

On a side note, I tried to build from sources (also downloaded from the official page, I linked above) by following this guide (http://www.sfml-dev.org/tutorials/2.3/compile-with-cmake.php) (its for SFML but I thought the process would be the same).

Anyway, I'm not familiar with cmake, and frankly I can't spend time to do so right now. So, I had to download cmake too before following the guide. No success. The GUI's configurator first complained about finding sh in the path and suggested to use "MSYS makefiles" instead of "MinGW makefiles". Did that, then it complained abound not finding FindSFML.cmake and some other stuff.

At that point I simply gave up!

Please note that I've successfully built quite a few libs via the standard ( ./configure -prefix=INSTALL_PATH; make; make install) procedure in msys.

Thanks in advance for any responses I may get.

EDIT:

Just tried v2.2 and v2.1 pre-compiled binaries, they both work fine! So it must be something specific to the v2.3 binaries.
Title: Re: CSFML 2.3 - Entry point not found in dyamic dll
Post by: zsbzsb on June 26, 2015, 02:33:16 pm
https://github.com/SFML/CSFML/issues/85

Since eXpl0it3r hasn't recompiled the dlls yet I am working on installing mingw to do it myself.
Title: Re: CSFML 2.3 - Entry point not found in dyamic dll
Post by: migf1 on June 26, 2015, 06:33:11 pm
Thank you!

Just tried the binaries posted by eXpl0it3r about 2 hours ago at github (by following the link you provided, thanks again) and they work.

Although they produce the following message at the console:
Code: [Select]
OpenGL extension SGIS_texture_edge_clamp unavailable
Artifacts may occur along texture edges
Ensure that hardware acceleration is enabled if available

The card in this machine is rather old, a Geforce GTS250, but I just found this post (https://github.com/SFML/SFML/issues/880) where I think states that a fix has been already applied at v2.3.1
Title: Re: CSFML 2.3 - Entry point not found in dyamic dll
Post by: eXpl0it3r on June 26, 2015, 06:35:31 pm
Make sure to get an up-to-date GPU driver from your vendor's website.
Title: Re: CSFML 2.3 - Entry point not found in dyamic dll
Post by: migf1 on June 26, 2015, 06:42:39 pm
Make sure to get an up-to-date GPU driver from your vendor's website.

Yeap, I have the latest drivers( 341.44 to be exact - Feb 24, 2015).

EDIT:

If that matters, the OS and the drivers are 64bit (Windows 8.1) but I'm using the 32-bit version of CSFML.
Title: Re: CSFML 2.3 - Entry point not found in dyamic dll
Post by: binary1248 on June 26, 2015, 07:09:38 pm
Yeah... this has been fixed in 2.3.1 as stated in #880 (https://github.com/SFML/SFML/issues/880). The GTS250 is one of those cards that doesn't expose SGIS_texture_edge_clamp.
Title: Re: CSFML 2.3 - Entry point not found in dyamic dll
Post by: migf1 on June 26, 2015, 07:17:49 pm
Thanks! All good then so far :)