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

Author Topic: sfml 1.6 with cmake  (Read 2721 times)

0 Members and 1 Guest are viewing this topic.

vidjogamer

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
sfml 1.6 with cmake
« on: March 02, 2011, 02:59:16 am »
Im trying to get sfml 1.6 integrated into my cmake build process. We are uncomfortable with 2.0 at this point in time as we need to be able to compile on all operating systems. I used the SFML 2.0 cmake files as reference and got everything to work under 1.6 except for the graphics lib. SFML compiles fine but when I try to use the graphics library in my project I get unresolved external symbols.

Code: [Select]
1>sfml-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol _png_write_end
1>sfml-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol _png_write_png
1>sfml-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol _png_set_rows
1>sfml-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol _png_write_info
1>sfml-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol _png_set_IHDR
1>sfml-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol _png_init_io
1>sfml-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol _png_destroy_write_struct
1>sfml-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol _png_create_info_struct
1>sfml-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol _png_create_write_struct
1>sfml-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol _SOIL_last_result
1>sfml-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol _SOIL_save_image
1>sfml-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol _SOIL_free_image_data
1>sfml-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol _SOIL_load_image
1>sfml-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol _SOIL_load_image_from_memory


Any ideas?

vidjogamer

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
sfml 1.6 with cmake
« Reply #1 on: March 02, 2011, 03:59:51 am »
Nevermind. I figured it out. For some reason I wasnt including the libpng and SOIL directories. ^_^;;

 

anything