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

Author Topic: Setting up SFML 2.1 on Linux Mint 16 w/ Code::Blocks  (Read 1830 times)

0 Members and 1 Guest are viewing this topic.

CDuck

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Setting up SFML 2.1 on Linux Mint 16 w/ Code::Blocks
« on: May 26, 2014, 07:21:02 pm »
I need some help setting up SFML 2.1 on Code::Blocks 13.12.

The official Linux Mint repositories are outdated most of the time, and they are outdated in the case of SFML.

I downloaded the package and unpacked it into usr/local.

I did not set the compiler or linker paths because the SFML and Linux tutorial told me not to.

Both with and without the SFML_STATIC under the '#defines' tab, I still get the errors about undefined references.  Under Link libraries, I have the libsfml-graphics.so, libsfml-window.so, and libsfml-system.so files added.

How can I get SFML to work?

I am using the code from the tutorial.
« Last Edit: May 26, 2014, 07:31:43 pm by CDuck »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10901
    • View Profile
    • development blog
    • Email
Re: Setting up SFML 2.1 on Linux Mint 16 w/ Code::Blocks
« Reply #1 on: May 26, 2014, 08:43:20 pm »
Did you follow the official tutorial 1:1?
What are the errors exactly?

Btw. you can use the same font as everyone else, looks really odd otherwise.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Turbine

  • Full Member
  • ***
  • Posts: 102
    • View Profile
Re: Setting up SFML 2.1 on Linux Mint 16 w/ Code::Blocks
« Reply #2 on: May 27, 2014, 07:33:50 am »
Compile SFML yourself using git to clone the repo, cmake to create the project build files for Codeblocks with the intent to compile using g++. Build and add correct paths to the libraries.

Under other linking options for shared we're using:
Quote
-lsfml-audio
-lsfml-graphics
-lsfml-network
-lsfml-window
-lsfml-system

With CEGUI:
Quote
-lsfml-audio
-lsfml-graphics
-lsfml-network
-lsfml-window
-lsfml-system
-lCEGUIBase-0
-lCEGUICommonDialogs-0
-lCEGUICoreWindowRendererSet
-lCEGUILuaScriptModule-0
-lCEGUINullRenderer-0
-lCEGUIOpenGLRenderer-0
-lCEGUIRapidXMLParser
-lCEGUISILLYImageCodec
-lCEGUISTBImageCodec
-lCEGUITGAImageCodec
-lfreetype
-lpcre
-lSILLY
-llua
-ljpeg
-lglfw
-lglew
-ltoluapp
-lzlib
-lpng

CDuck

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Setting up SFML 2.1 on Linux Mint 16 w/ Code::Blocks
« Reply #3 on: May 28, 2014, 04:21:49 am »
Thank you, Turbine for your response.  I will work on your suggestion.

eXpl0it3r, I did follow the directions exactly, and here are my errors:
undefined reference to 'jped_finish_compress@LIBJPEG_6.2'
undefined reference to 'jpeg_write_scanlines@LIBJPEG_6.2'

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10901
    • View Profile
    • development blog
    • Email
AW: Setting up SFML 2.1 on Linux Mint 16 w/ Code::Blocks
« Reply #4 on: May 28, 2014, 07:46:01 am »
You didn't link libjpeg or used an incompatible version.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/