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 - falconmick

Pages: [1] 2
1
General / Re: Building the SFML aplication on MAC - sfml-system-d not found
« on: November 27, 2012, 07:31:26 pm »
well, i've changed to framework, add search paths and now I'm getting the following:

Quote
Undefined symbols for architecture i386:
  "sf::RenderWindow::RenderWindow(sf::VideoMode, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int, sf::ContextSettings const&)", referenced from:
      _main in main.o
  "sf::Font::loadFromFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
      _main in main.o
  "sf::Music::openFromFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
      _main in main.o
  "sf::String::String(char const*, std::__1::locale const&)", referenced from:
      _main in main.o
  "sf::Texture::loadFromFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, sf::Rect<int> const&)", referenced from:
      _main in main.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

=.= I know nothing about xcode waah

2
General / Building the SFML aplication on MAC - sfml-system-d not found
« on: November 27, 2012, 02:47:47 pm »
Xcode can't find any of the sfml-system' stuff and I have no idea how to use mac's (well no idea compaired to linux or windows) I had to use terminal just so I could sniff around the back end of the hard drive looking for where it installed SFML (couldn't find it in the end)

=.= the old mac I used to use was easier to use, the explorer actually let u explore the root of the hdd

how can I fix

ld: library not found for -lsfml-system-d

3
General discussions / Re: Installing SFML 2.0 on linux for dummies
« on: November 26, 2012, 09:02:59 pm »
Static libs are not needed because Linux has a very good support for shared libraries. It might be useful until SFML 2 is released, because every version is different, but it's definitely not the final solution.

Debug libraries are not needed unless you plan to debug SFML itself.

good point... didn't even think about that

main reason why I made this posts is I had some troubles getting this thing up and running, so I thought ide try to give back to the comunity what I could

4
General discussions / Re: Installing SFML 2.0 on linux for dummies
« on: November 26, 2012, 07:48:46 pm »
On Linux you probably don't need static and debug libraries. Only release/dynamic is relevant.

how so? I'm new to linux so this actually would be useful to know why

5
General discussions / Installing SFML 2.0 on linux for dummies
« on: November 26, 2012, 06:44:10 pm »
Ok... I've gone through figuring out how to install SFML on my Ubuntu installation and it wasn't easy to be perfectly honest... Allot of the guides did allot of talking and didn't just KISS (keep it simple stupid) So I decided to make this guide.

This guide assumes a fresh install and that you are running Ubuntu... It is how I tested to make sure my commands worked, if you are running a non fresh install OR not running Ubuntu you might either a. already have some of the files I install with apt-get OR they mightn't be working on your distro. If there is a distro where my guide doesn't work please tell me it and I will go about appending this guide to help those who run that OS.

There are two semi-long scripts and a test codeblocks project, if you wish to download them to make things easier/test everything setup correct you may download it from here

The only problem with a guide like this is that it's instructions and tools will become out of date.. If you stumble apon this post in a few years and I havn't updated it, then I would recomend that you look for more up to date guides. If you have problems and this guide is still relivent, there might be an individual problem in your setup which a propper guide can help you with, please see the following guides to help you figure all this out:
sfml-dev.org guide
sfmlcoder.wordpress (better guide)
github (also has other usefull SFML related tutorials)

Well enough jibber jabber, I better get to the guide or I wouldn't be KISS'n

Step 1. Download the latest SFML 2.0 build

open your terminal and create a new directory and cd into it
i.e.
Quote
mkdir sfml2build
cd sfml2build

next download the latest sfml2 build and extract
Quote
wget https://github.com/SFML/SFML/tarball/master
tar zxf master
rm master

then if you look into your sfml2build folder using the folder browser or the dir command you will see one fodler:
LaurentGomila-SFML-59a68f0

Day per day, this folder will change as build's are updated.. so I would recommend changing the filename, this can either be done through linux gui or through this command
Quote
mv #your folder name# sfml2src
sfml2src being the new folder name

next is step two, installing requirements..
Just run the following script (as in, make a text file, coppy/paste this, change permission of file to execute and run

see getReq inside of tools.tar.gz ADD sudo infront of apt-get install g++ in getReq.. forgot the sudo
Quote
sudo apt-get install libpthread-stubs0-dev
sudo apt-get install libgl1-mesa-dev
sudo apt-get install libx11-dev
sudo apt-get install libxrandr-dev
sudo apt-get install libfreetype6-dev
sudo apt-get install libglew1.5-dev
sudo apt-get install libjpeg8-dev
sudo apt-get install libsndfile1-dev
sudo apt-get install libopenal-dev
sudo apt-get install cmake
sudo apt-get install g++
save it is getReq inside of sfml2build folder

you can either double click it to run or (better option) get into the console you used for step one and type ./getReq

it will ask for sudo password (your password) and then it will install all the requirements.
it will ask if you wish to install on each thing it attempts to install, hit enter
Quote
Do you want to continue [Y/n]?

.

Step 3.. Almost done!!

next I will give you a neat little script I made to configure, make and install sfml
first cd into sfml2src or what ever you called it

Quote
cd sfml2src

just coppy/past this quote and do as you did with getReq (call it installer this time and save it inside of sfml2src folder)

see installer inside of tools.tar.gz
Quote
echo Starting SFML 2.0 install
echo see install.log for install output..
echo No.. Really.. Read it, this is my first
echo batch script for linux, so expect bugs
echo especially because I can\'t be stuffed
echo using regex to look for error output


echo building make for dynamic release
cmake -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=TRUE > install.log
echo Complete
echo making
make >> install.log
echo Complete
echo Installing
sudo make install >> install.log
echo Complete

echo building make for dynamic debug
cmake -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=TRUE >> install.log
echo Complete
echo making
make >> install.log
echo Complete
echo Installing
sudo make install >> install.log
echo Complete


echo building make for static release
cmake -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=FALSE >> install.log
echo Complete
echo making
make >> install.log
echo Complete
echo Installing
sudo make install >> install.log
echo Complete


echo building make for static debug
cmake -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=FALSE >> install.log
echo Complete
echo making
make >> install.log
echo Complete
echo Installing
sudo make install >> install.log
echo Complete

you will probably get the following warning:

Quote
CMake Warning at CMakeLists.txt:150 (message):
  No pkg-config files are provided for the static SFML libraries
  (SFML_INSTALL_PKGCONFIG_FILES will be ignored).

I'm pretty sure it's harmless, I ignored it.

and that's it, the latest SFML 2.0 build should be installed :) to test it's working you can download tools.tar.gz

Quote
#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
    sf::CircleShape shape(100.f);
    shape.setFillColor(sf::Color::Green);

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        window.clear();
        window.draw(shape);
        window.display();
    }

    return 0;
}

unfortunatly, I couldn't find where codeblocks liked to store my templtates so I you're gonna have to link it urself.. it's not too hard though

you have 4 linking options (ill use graphics lib as an example)
libsfml-graphics          release with dynamic libraries
libsfml-graphics-d      debug with dynamic libraries
libsfml-graphics-s       release with static libraries
libsfml-graphics-s-d   debug with static libraries

you then also must link (for the demo to work)
libsfml-window( /-d/-s/-s-d)
libsfml-system( /-d/-s/-s-d)

if you build with static libraries you must also include the libraries used by SFML which are:
pthread
GL
X11
Xrandr
freetype
GLEW
jpeg
sndfile
openal
but if you dynamically link you don't need to link these

I hope this helps someone :) any troubles just send me a pm or better yet, reply to this post so I can help people with similar issues!!!

edit 1:
had to re-upload tools.tar.gz, didn't realise, but codeblocks was breaking when I uploaded the project file

edit 2:
added github tutorial link

edit 3:
re-fixed tools.tar.gz, hosting site spazzed

edit 4:
ok... rapidshare is glitchy, changing to localhostr

edit 5:
added source

6
General / Re: Static library linking Linux 2.0
« on: November 26, 2012, 04:18:40 pm »
thanks, ill try it out

7
General / Building snapshot 2.0 for mac - Could not find ZLIB
« on: November 26, 2012, 02:57:40 pm »
I'm now finally down to my last OS to get ready for development, unfortunately it's giving me this:

Quote
The C compiler identification is Clang 4.1.0
The CXX compiler identification is Clang 4.1.0
Check for working C compiler using: Xcode
Check for working C compiler using: Xcode -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Xcode
Check for working CXX compiler using: Xcode -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Found OpenGL: /System/Library/Frameworks/OpenGL.framework
Found Freetype: /usr/X11R6/lib/libfreetype.dylib (found version "2.4.4")
Found GLEW: /Users/falconmick/Documents/SFML2 src/extlibs/libs-osx/lib/libGLEW.a
Found JPEG: /Users/falconmick/Documents/SFML2 src/extlibs/libs-osx/lib/libjpeg.a
CMake Error at /Applications/CMake 2.8-10.app/Contents/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (message):
Could NOT find ZLIB (missing: ZLIB_INCLUDE_DIR)
Call Stack (most recent call first):
/Applications/CMake 2.8-10.app/Contents/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:291 (_FPHSA_FAILURE_MESSAGE)
/Applications/CMake 2.8-10.app/Contents/share/cmake-2.8/Modules/FindZLIB.cmake:85 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
src/SFML/Graphics/CMakeLists.txt:85 (find_package)


CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
OPENGL_INCLUDE_DIR (ADVANCED)
used as include directory in directory /Users/falconmick/Documents/SFML2 src/src/SFML/Window

Configuring incomplete, errors occurred!

Which pretty much means, it can't find zlib... Usually I would just go guns blazing and try to fix this myself, but, zlib doesn't have an installer, you manually compile and install it yourself, AND this is the first time for me using a mac pretty much ever (except for helping my sister out on her laptop) so I'm a little bit weary of trying to smash the mac till it works..

has anyone ever had this problem or understand how to fix?

edit:
also, how would I fix the OPENGL_INCLUDE_DIR problem

8
General / Re: Static library linking Linux 2.0
« on: November 26, 2012, 12:36:06 pm »
neither do I ;(

9
General / Re: Static library linking Linux 2.0
« on: November 25, 2012, 05:22:58 pm »
you wouldn't be able to mention all the linkings required would ya?
I installed em all but no idea what their lib's are

10
General / Re: Static library linking Linux 2.0
« on: November 25, 2012, 06:55:50 am »
http://sfmlcoder.wordpress.com/2011/08/16/building-sfml-2-0-with-make-for-gcc/

I followed this tutorial... I think the issue is that I have to glew that is provided in extLibs/libs-mingw isn't statically built.. or somthing like that...

my cmake commands were this:

Quote
cmake -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=FALSE
make
sudo make install

cmake -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=FALSE
make
sudo make install

how should I use cmake to compile? do I need to edit the cmake file????
I've tried specifying the exlib/ming to the linker search directory and ive idded extlibs/headers to compiler search directory

btw i'm using code::blocks

trying using static and specifying extlibs glew




I also tried building static where I didn't linker settings link libraries libglew and I didn't add search directories for linker or compiler for extlibs

only way it works is with dynamic libraries

11
General / Static library linking Linux 2.0
« on: November 24, 2012, 04:15:18 pm »
For some reason I can't link static libraries, all I can do is use dynamic lib's to get it to work...

any solutions guys?

This is the errors I get

undefined reference to 'glClearColor'
etc etc

12
Graphics / Access violation reading location 0x61724720
« on: January 24, 2012, 07:48:07 pm »
I am getting this violation crash:

Code: [Select]

First-chance exception at 0x76fbfeb8 in SFML tutorials.exe: 0xC0000005: Access violation reading location 0x61724720.
A buffer overrun has occurred in SFML tutorials.exe which has corrupted the program's internal state. Press Break to debug the program or Continue to terminate the program.

For more details please see Help topic 'How to debug Buffer Overrun Issues'.
The program '[1964] SFML tutorials.exe: Native' has exited with code 0 (0x0).


when running the tutorial from here... changing to release mode as stated on thispost didn't fix the issue.

What can I do?

13
Graphics / sf::View leaves screen black
« on: January 24, 2012, 07:43:50 pm »
I'm assuming you have an ATI card... ATI cards are stuffed atm for allota games, inc the graphics part of SFML

14
Window / app freezes on window API use :\
« on: January 24, 2012, 07:25:21 am »
found an apparent fix "atigktxx.dll", it made my PC blue screen -.- dont follow http://www.sfml-dev.org/forum/viewtopic.php?t=3438&postdays=0&postorder=asc&start=15 if u aint feelin lucky punks

15
Window / app freezes on window API use :\
« on: January 24, 2012, 07:04:49 am »
really :( it isn't compatable with HALF the computers in this world ;( whyyyy

Pages: [1] 2
anything