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

Pages: [1] 2
1
Network / Declaraion + Linking error
« on: April 28, 2010, 09:15:21 pm »
well that linking worked  . kudos to you

But i am unable to understand its working. if i compile that part of code and run it , i am getting one terminal (assuming server) . Now how do i get the client server communicating with each other .

2
General / Can we call an exe file directly usinh sfml ..?
« on: April 28, 2010, 09:09:44 pm »
I am creating a project completely based on SFML , the thing is i have built things in module and i thought may be if i can call those modules (which r in exe format) directly .

Is there any option where we can directly call an exe program.

3
Network / Declaraion + Linking error
« on: April 19, 2010, 09:27:28 pm »
Well i have already included that , but still i do get error messages in here.

Quote

Linking console executable: bin\Debug\sockets.exe
obj\Debug\main.o: In function `main':
H:/MySfml/sockets/main.cpp:49: undefined reference to `DoServerTCP(unsigned short)'
obj\Debug\main.o: In function `Z11DoClientTCPt':
H:/MySfml/sockets/main.cpp:73: undefined reference to `sf::IPAddress::IPAddress()'
H:/MySfml/sockets/main.cpp:77: undefined reference to `sf::operator>>(std::istream&, sf::IPAddress&)'
H:/MySfml/sockets/main.cpp:78: undefined reference to `sf::IPAddress::IsValid() const'
H:/MySfml/sockets/main.cpp:82: undefined reference to `sf::SocketTCP::SocketTCP()'
H:/MySfml/sockets/main.cpp:85: undefined reference to `sf::SocketTCP::Connect(unsigned short, sf::IPAddress const&, float)'
H:/MySfml/sockets/main.cpp:87: undefined reference to `sf::operator<<(std::ostream&, sf::IPAddress const&)'
H:/MySfml/sockets/main.cpp:92: undefined reference to `sf::SocketTCP::Receive(char*, unsigned int, unsigned int&)'
H:/MySfml/sockets/main.cpp:102: undefined reference to `sf::SocketTCP::Send(char const*, unsigned int)'
H:/MySfml/sockets/main.cpp:107: undefined reference to `sf::SocketTCP::Close()'
obj\Debug\main.o: In function `Z11DoClientUDPt':
H:/MySfml/sockets/main.cpp:113: undefined reference to `sf::IPAddress::IPAddress()'
H:/MySfml/sockets/main.cpp:117: undefined reference to `sf::operator>>(std::istream&, sf::IPAddress&)'
H:/MySfml/sockets/main.cpp:118: undefined reference to `sf::IPAddress::IsValid() const'
H:/MySfml/sockets/main.cpp:122: undefined reference to `sf::SocketUDP::SocketUDP()'
H:/MySfml/sockets/main.cpp:126: undefined reference to `sf::SocketUDP::Send(char const*, unsigned int, sf::IPAddress const&, unsigned short)'
H:/MySfml/sockets/main.cpp:131: undefined reference to `sf::SocketUDP::Close()'
obj\Debug\main.o: In function `Z11DoServerUDPt':
H:/MySfml/sockets/main.cpp:136: undefined reference to `sf::SocketUDP::SocketUDP()'
H:/MySfml/sockets/main.cpp:139: undefined reference to `sf::SocketUDP::Bind(unsigned short)'
H:/MySfml/sockets/main.cpp:143: undefined reference to `sf::IPAddress::IPAddress()'
H:/MySfml/sockets/main.cpp:147: undefined reference to `sf::SocketUDP::Receive(char*, unsigned int, unsigned int&, sf::IPAddress&, unsigned short&)'
H:/MySfml/sockets/main.cpp:151: undefined reference to `sf::operator<<(std::ostream&, sf::IPAddress const&)'
H:/MySfml/sockets/main.cpp:155: undefined reference to `sf::SocketUDP::Close()'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 1 seconds)



4
Network / Declaraion + Linking error
« on: April 18, 2010, 10:44:15 pm »
It may sound ridiculous , but i am getting errors while running the socket example programs like

cannot


 
Quote

H:\MySfml\sockets\main.cpp:68: error: `sf' has not been declared
H:\MySfml\sockets\main.cpp:68: error: `IPAddress' was not declared in this scope
H:\MySfml\sockets\main.cpp:68: error: expected `;' before "ServerAddress"
H:\MySfml\sockets\main.cpp:72: error: `ServerAddress' was not declared in this scope
H:\MySfml\sockets\main.cpp:72: warning: unused variable 'ServerAddress'
H:\MySfml\sockets\main.cpp:74: error: `ServerAddress' was not declared in this scope
H:\MySfml\sockets\main.cpp:77: error: `sf' has not been declared
H:\MySfml\sockets\main.cpp:77: error: `SocketTCP' was not declared in this scope
H:\MySfml\sockets\main.cpp:77: error: expected `;' before "Client"
H:\MySfml\sockets\main.cpp:80: error: `Client' was not declared in this scope
H:\MySfml\sockets\main.cpp:80: error: `sf' has not been declared
H:\MySfml\sockets\main.cpp:80: error: `Done' was not declared in this scope
H:\MySfml\sockets\main.cpp:80: warning: unused variable 'Client'
H:\MySfml\sockets\main.cpp:80: warning: unused variable 'Done'
H:\MySfml\sockets\main.cpp:87: error: `Client' was not declared in this scope
H:\MySfml\sockets\main.cpp:87: error: `sf' has not been declared
H:\MySfml\sockets\main.cpp:87: error: `Done' was not declared in this scope





well there are many and i do understand there is some small linking error .
i would be glad if u could help me out.

5
Audio / Larger .ogg files not being played
« on: March 21, 2010, 06:45:50 pm »
Anything .. i can do to specifically fix this one ...
I mean i will have to later on attach my opengl code in here and do a lot of stuff . since my i have told my team members to built it using 1.5 platform only so .. i cant change it as of now .

6
Audio / Larger .ogg files not being played
« on: March 21, 2010, 05:30:00 pm »
not a problem at all .. the below is the code ..


Code: [Select]


#include <SFML/Graphics.hpp>
#include<SFML/Audio.hpp>
#include<iostream>

 int main()
 {
     // Create the main window
     sf::RenderWindow App(sf::VideoMode(640, 480), "Rahul.Reincarnated ");

     // Load a sprite to display
     sf::Image Image;
     if (!Image.LoadFromFile("image2.png"))
         return EXIT_FAILURE;
     sf::Sprite Sprite(Image);


    // Adding some music to program
    sf::Music Music;
    if (!Music.OpenFromFile("hydrate.ogg"))
        return EXIT_FAILURE;


     // Create a graphical string to display
     sf::Font Arial;
     if (!Arial.LoadFromFile("arial.ttf"))
         return EXIT_FAILURE;
     sf::String Text("\t \t \t \t \t \t \t \t \t \t OpenGL Project \n \t \t \t \t \t \t \t \t By Rahul & Pooja ", Arial, 50);

    // Play it
    Music.Play();





    const int SCROLL_SPEED = 20;    // rendering 20 pixesl per second
    Text.SetY(40);  // text positions is above the screen

//    std::cout<< Text.GetPosition();

    while (App.IsOpened())
     {
         // Process events
         sf::Event Event;
         while (App.GetEvent(Event))
         {
             // Close window : exit
             if (Event.Type == sf::Event::Closed)
                 App.Close();

            if ((Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Key::Escape))
                App.Close();


         }




         // Clear screen
         App.Clear();

         // Draw the sprite
         App.Draw(Sprite);

         // Draw the string
         App.Draw(Text);


         // Increase Y Axis to move down
        Text.Move( 0 ,App.GetFrameTime() * SCROLL_SPEED) ;
        //Text.Move ( 10,100);

        if( Text.GetPosition().y > 400 )
    Text.SetPosition( 0.f, 10 );

         // Update the window
         App.Display();


        // Loop while the music is playing



     }

    std::cout<<" thank you for using the program ";
    getchar();

     return EXIT_SUCCESS;
 }



7
Audio / Larger .ogg files not being played
« on: March 21, 2010, 05:09:58 pm »
Well .. the file kinda worked when i ran the exe version of my program directly , but in the end the program crashed .. i mean while exiting i got an error saying this program has encountered with a problem .

http://  http://www.box.net/shared/rmgphb42xi


The above link has the program in exe and the sound file .

In case u need the code i will post it to.

8
Audio / Larger .ogg files not being played
« on: March 21, 2010, 11:49:55 am »
FLV to AVI MPEG WMV 3GP MP4 iPod Converter is a professional FLV converter software which can convert Flash Video FLV to AVI, FLV to MPEG, FLV to WMV, FLV to MP4 format

It also works on other conversion ..  i have tested it

its built by Aone Technologies .

9
Graphics / Scrolling Text..
« on: March 20, 2010, 07:34:47 pm »
awesome... it worked  :lol:

10
Audio / Larger .ogg files not being played
« on: March 20, 2010, 07:20:29 pm »
Firstly sorry for late reply .

The program is playing original ogg files .
But if i convert mp3 files to ogg format . i dunno why its not playing.

Is the converted flawed .. ?

11
General discussions / Is there any Book For SFML ..?
« on: March 19, 2010, 08:03:32 pm »
Well.. i am not as professional as you guys .. in this field . But i dont want many people to stop using or not learn SFML , just because there is no book or cuz of the fact that  documentation is complex.

With all due respect , i want to write small tutorials of mine (programming at beginning level) and i would be glad if you guys could help me out.

12
General discussions / Is there any Book For SFML ..?
« on: March 18, 2010, 11:29:12 pm »
Hello everyone ..

Unarguable , we know that SFML is one of the fastest and simplest programming tool for graphics and other things.
But , i was wondering if there exist any book which is written for SFML , which helps noobs to learn this in a systematic fashion.

13
Graphics / Scrolling Text..
« on: March 18, 2010, 11:17:09 pm »
Well i tried doing that in various ways . but i am getting errors .

intially i i wrote

Code: [Select]

while (Text.Position() ! = 100 )
Text.Move( 0 ,App.GetFrameTime() * SCROLL_SPEED) ;



I mean , i wanted the scrolling to take place till a certain position

but how do i get to know the position ? I was going through the documentation , but could understand much from it.

14
Audio / Larger .ogg files not being played
« on: March 18, 2010, 09:35:45 pm »
I am running the music playing program from the tutorials , and it works awesome for smaller files which is in Kbs . But for larger files , which are in Mbs are just not being played . Wat could be the  problem .. ?

15
Graphics / Scrolling Text..
« on: March 17, 2010, 06:29:49 pm »
Quote from: Laurent
Quote
But The point is , i want it to scroll it continuously

It should, with the code above. The text is moved slightly at every iteration of the main loop.


Well its not , its just happening once . The test is vertically scrolling and coming down and later the same process is not happening again.

Pages: [1] 2
anything