SFML community forums

Help => General => Topic started by: gandalf3 on June 24, 2016, 04:58:08 am

Title: CodeBlocks set up error
Post by: gandalf3 on June 24, 2016, 04:58:08 am
I attempted to set up sfml on codeblocks using the pre built binaries. When this did not work, I decided to build my own using CMake. After setting up the correct build options according to the tutorial on sfml-dev.org/, I still get the following errors:


||=== Build: Debug in SFML (compiler: GNU GCC Compiler) ===|
ld.exe||cannot find -ljpeg|
ld.exe||cannot find -lfreetype|
||error: ld returned 1 exit status|
||=== Build failed: 3 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
 


The following are my linker settings:

https://www.dropbox.com/s/pl16uuug3yi9f03/linker.png?dl=0

Title: Re: CodeBlocks set up error
Post by: eXpl0it3r on June 24, 2016, 10:19:44 am
Since you link against jpeg and freetype yourself, you'll also have to copy them from the SFML extlibs directory or even better when building SFML specify a CMAKE_INSTALL_PREFIX and compile the install target.