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

Pages: [1]
1
SFML wiki / Re: Animated Sprite class
« on: March 26, 2014, 08:45:26 pm »
Ughh... yea, Im dumb..
This was caused by not linking properly. KNOW your compiler/linker!!

Ok, I wasn't compiling all the files for ones so,
instead of
g++-c main.cpp
needed to do
g++ -c main.cpp Animation.cpp AnimatedSprite.cpp

and during the linker stage needed to do,
g++ AnimatedSprite.o Animation.o main.o -o sfml-app -lsfml-graphics -lsfml-window -lsfml-system

ughh sorry bout all that.

2
SFML wiki / Re: Animated Sprite class
« on: March 26, 2014, 06:23:51 pm »
A big class that I don't have to write myself score!
Seriously thank you for writing this tutorial.

Hmm I can't get to seem to get it to work though.

From the wiki I copied pasted, the individual files and made them into files. main,animations,animated sprites

When I run through g++ I get it to compile
g++ -c main.cpp ...........GOOD
g++ main.o -o sfml-app -lsfml-graphics -lsfml-window -lsfml-system .........FAIL
So the linking fails,

g++ main.o -o sfml-app -lsfml-graphics -lsfml-window -lsfml-system
main.o: In function `main':
main.cpp:(.text+0x254): undefined reference to `Animation::Animation()'
main.cpp:(.text+0x26d): undefined reference to `Animation::setSpriteSheet(sf::Textur\
e const&)'
main.cpp:(.text+0x2b1): undefined reference to `Animation::addFrame(sf::Rect<int>)'
main.cpp:(.text+0x2f5): undefined reference to `Animation::addFrame(sf::Rect<int>)'
main.cpp:(.text+0x339): undefined reference to `Animation::addFrame(sf::Rect<int>)'
main.cpp:(.text+0x37d): undefined reference to `Animation::addFrame(sf::Rect<int>)'
main.cpp:(.text+0x38c): undefined reference to `Animation::Animation()'
main.cpp:(.text+0x3a5): undefined reference to `Animation::setSpriteSheet(sf::Textur\
e const&)'
main.cpp:(.text+0x3e9): undefined reference to `Animation::addFrame(sf::Rect<int>)'
main.cpp:(.text+0x42d): undefined reference to `Animation::addFrame(sf::Rect<int>)'
main.cpp:(.text+0x471): undefined reference to `Animation::addFrame(sf::Rect<int>)'
main.cpp:(.text+0x4b5): undefined reference to `Animation::addFrame(sf::Rect<int>)'
main.cpp:(.text+0x4c4): undefined reference to `Animation::Animation()'
main.cpp:(.text+0x4dd): undefined reference to `Animation::setSpriteSheet(sf::Textur\
etc...

Not sure why, thoughts?

3
General / Re: illegal instruction (core dumped)
« on: March 23, 2014, 05:36:44 am »
(gdb) trace
Tracepoint 1 at 0xb48201a3

(gdb) bt
#0  0xb48201a3 in ?? ()
#1  0x083602c4 in ?? ()
(gdb) trace
Tracepoint 1 at 0xb48201a3

Ok here is what I was pretty much getting earlier when I tried to do start this -this morning.
I had found a way to get the cores via some core-generate command,
that I couldn't remember now but it had the same info as these...

not really sure what it means now that I have found out that it is this/these stack references?

(gdb) bt full
#0  0xb48201a3 in ?? ()
No symbol table info available.
#1  0x083602c4 in ?? ()
No symbol table info available.
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

(gdb) info threads
  Id   Target Id         Frame
* 1    Thread 0xb78d2700 (LWP 2170) "sfml-app" 0xb48201a3 in ?? ()


Yes thank you Jepsper Juhl and Exploiter for help so far.
@Jesper thank you for the laundry list of stuff to check :p
Seriously I'm sure I will have to use he advice it in more than this endeavour.

4
General / Re: illegal instruction (core dumped)
« on: March 23, 2014, 05:23:22 am »
Damn I had posted the stack trace per ....Jesper Juhl, and Exploits suggestions... I will have to do it again on other os.

Ok, well.
I just verified my process of setting up sfml2.0, via a fresh install on ubuntu12.04 on clean drive.
Following the sfml, 2.0 setup from onlyakiss and adding the libudev-dev, and build-essential libraries does quickly enough.
Had found a forum thread saying (possible)problem about the glut 1.5 but can't seem to find it again.
Don't know that I needed to but, Installed freeglut3-dev too.

Now to get the stack trace...

5
General / Re: illegal instruction (core dumped)
« on: March 21, 2014, 07:38:46 am »
Ok, thanks for the help foremost... Yeah, cus I have no idea what is happening.
@Jesper, Ok I am looking into the how my Oracle VM emulates my processor. Thanks for that intuition.
@ exploiter, Ok messing around with the VM's settings to see if I can get it to do something... nothing yet.
(I should just reinstall linux on my spare drive.. to see if I can get it to work on that in the mean time)

Um as far as providing the call stack, well I will try, Never done this or anything like it before, So should I use strace,lsof,or ltrace and copy paste...

Been long time since wrote on a forum, so don't remember how separate code etc.. and didn't want to elongate thread so here is my attempt at getting my call stack.. attached, using strace.

6
General / illegal instruction (core dumped)
« on: March 20, 2014, 06:32:09 pm »
Ok, so new to this forum posting thing(long time listener first time caller)...

I have been trying to setup sfml 2.0 on a Oracle Vm running, Ubuntu 12.04.
Clean installation. I follow the example perfectly,
http://www.sfml-dev.org/tutorials/2.0/start-linux.php
compiles correctly/link good. with g++/emacs
But when I try to run it from the terminal I get, illegal instruction (core dumped).

So that is the problem, I'm not sure what it means... stackframe something messed up?

I first tried this as well with the same above but with Ubuntu sever 13ish.
But failed to load the sample project.. after compiling and linking with libs fine, but when trying
to run... resulted in a seg fault...

My rig is a y410p Lenevo i7 4th, nvida 755mm, Win7.

Pages: [1]