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.


Topics - ztx_ryan

Pages: [1]
1
After having worked on project for a while with no major problems, it now suddenly crashes when build, and prints out this list of errors in the console:

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jaricom.o)" - no debug information available for "jaricom.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jcapimin.o)" - no debug information available for "jcapimin.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jcapistd.o)" - no debug information available for "jcapistd.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jcarith.o)" - no debug information available for "jcarith.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jccoefct.o)" - no debug information available for "jccoefct.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jccolor.o)" - no debug information available for "jccolor.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jcdctmgr.o)" - no debug information available for "jcdctmgr.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jchuff.o)" - no debug information available for "jchuff.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jcinit.o)" - no debug information available for "jcinit.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jcmainct.o)" - no debug information available for "jcmainct.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jcmarker.o)" - no debug information available for "jcmarker.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jcmaster.o)" - no debug information available for "jcmaster.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jcomapi.o)" - no debug information available for "jcomapi.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jcparam.o)" - no debug information available for "jcparam.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jcprepct.o)" - no debug information available for "jcprepct.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jcsample.o)" - no debug information available for "jcsample.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jdatadst.o)" - no debug information available for "jdatadst.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jerror.o)" - no debug information available for "jerror.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jfdctflt.o)" - no debug information available for "jfdctflt.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jfdctfst.o)" - no debug information available for "jfdctfst.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jfdctint.o)" - no debug information available for "jfdctint.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jutils.o)" - no debug information available for "jutils.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jmemmgr.o)" - no debug information available for "jmemmgr.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jmemnobs.o)" - no debug information available for "jmemnobs.c".


I am pretty lost in my search for the cause of this error. I have not made any changes, that I have not tried to undo, but I cannot get my program to run. Does anyone know what could cause this to happen, or in what direction I should look for a solution?

Any help is much appreciated :)

2
Graphics / Help with vsync and SFML on a MAC
« on: May 09, 2012, 03:53:53 pm »
Hi fellow SFML'ers.

I've just starting using SFML 1.6, and I have some trouble getting smooth animation when using vsync. When I print out the time passed since the last frame to the console, I get a list of VERY scattered values like this:

0.016885
0.016948
0.016119
0.0061512
0.0270939
0.0174539
0.0332918
0.0162151
0.017309
0.032944
0.016253
0.0176249
0.0328569
0.00567698
0.0282021
0.0331681
0.016572
0.0166841
0.0172169
0.0327649
0.016468
0.0166309
0.0182922
0.032073
0.016552
0.01722

And the animation looks extremely jerky. By looking at the numbers, it seems like it skips a frame pretty often (when the numbers are in the 0.03'ies, but whats the reason behind a value like 0.0061512..?) And shouldnt these numbers be VERY consistant around 0.01667 (60 FPS)?

In this example, all I do is draw a single moving square to the screen, so it is not the logic updates that are holding things back. When I disable vsync, things look alot smoother, and the values look something like this:

0.000458956
0.000432014
0.000494003
0.000482082
0.000458956
0.000513077
0.000463963
0.000466824
0.000482082
0.000499964
0.000500917
0.000490904
0.000501156

But there is lot of screen tearing, so I dont really like that solution either.

At the very top of my gameloop, I calculate the time passed since the last frame like this:

while (App.IsOpened())
{
      float FrameTime = UpdateClock.GetElapsedTime();  //UpdateClock created outside the gameloop
      UpdateClock.Reset();
...

and multiply this value into the velocity of my box, to make its logic updates independent of the specific computers' power:

       box->Update(FrameTime);
         
Then I just create a rectangle from the values stored in my box object, and draw it to the screen:
            
      sf::Shape rectangle = sf::Shape::Rectangle(box->GetX(), box->GetY(),
                                                  box->GetX() + 100, box->GetY() + 100, sf::Color::Green);
      
      App.Clear();
      
      App.Draw(rectangle);
      
      App.Display();
}

What am I doing wrong?

Has anyone here succeded in making a gameloop with smooth animation running on a Mac?

Sorry if this post seems a little confusing, I've never posted before, and just putting this down on paper turned out to be harder than i thought  :)

Pages: [1]