• Content count

  • Joined

  • Last visited

Community Reputation

166 Neutral

About Endogenous

  • Rank
  1. Xcode 4 with SDL

    Hmm that all seems reasonable, when I download the runtime library and do ls -lR I get: [source lang="bash"]./SDL.framework: total 24 lrwxr-xr-x 1 endo staff 24 19 Jan 2012 Headers -> Versions/Current/Headers lrwxr-xr-x 1 endo staff 26 19 Jan 2012 Resources -> Versions/Current/Resources lrwxr-xr-x 1 endo staff 20 19 Jan 2012 SDL -> Versions/Current/SDL drwxr-xr-x 4 endo staff 136 19 Jan 2012 Versions ./SDL.framework/Versions: total 8 drwxr-xr-x 5 endo staff 170 19 Jan 2012 A lrwxr-xr-x 1 endo staff 1 19 Jan 2012 Current -> A ./SDL.framework/Versions/A: total 1464 drwxr-xr-x 40 endo staff 1360 19 Jan 2012 Headers drwxr-xr-x 4 endo staff 136 19 Jan 2012 Resources -rwxr-xr-x 1 endo staff 747208 19 Jan 2012 SDL ./SDL.framework/Versions/A/Headers: total 1216 -rw-r--r-- 1 endo staff 3233 19 Jan 2012 SDL.h ... -rw-r--r-- 1 endo staff 1482 19 Jan 2012 close_code.h ./SDL.framework/Versions/A/Resources: total 8 -rw-r--r-- 1 endo staff 1180 19 Jan 2012 Info.plist drwxr-xr-x 3 endo staff 102 19 Jan 2012 SDLMain.nib ./SDL.framework/Versions/A/Resources/SDLMain.nib: total 8 -rw-r--r-- 1 endo staff 1701 19 Jan 2012 objects.nib ./devel-lite: total 40 -rw-r--r-- 1 endo staff 1485 19 Jan 2012 ReadMeDevLite.txt -rw-r--r-- 1 endo staff 374 19 Jan 2012 SDLMain.h -rw-r--r-- 1 endo staff 11197 19 Jan 2012 SDLMain.m[/source] It's the ./SDL.framework/Versions/A/SDL that's 747208 bytes which is the library I think you're looking for. Trying adding that file to the path dyld is looking for. Or just copy the Framework to /Library/Frameworks and hopefully it should work!
  2. Xcode 4 with SDL

    Yup you're right about it missing the shared library. If you install the runtime libraries for SDL you would see it under your /Libraries/Framework/SDL path (which is roughly equivalent to the DLL being under your system32 folder), or you can embed it inside your application package which is where dyld is telling you it can't find it. You can find the shared library by getting the runtime library here: http://www.libsdl.org/download-1.2.php, although the website is acting a bit strange right now and not giving me actual downloads. If that fails you can build it yourself from the development source on the same page. Just open the XCode project, set the SDK/compiler/OS version appropriately and build the Framework, it'll have what you're missing! Good luck!
  3. Implementing Massive levels

    Quote:Original post by loufoque It's potentially up to ten times slower and at least two times slower. That's quite enough to make a difference between a game that runs on the target platforms and one that doesn't. Do you have any references to support the "two times slower" part? Assuming we're talking FPU and not SIMD, most architectures I can think of, with the exception of a few niche ones, internally use at least double precision, meaning that often the only extra cost will be the additional memory (and thus also the bandwidth when filling in the cache).
  4. Question on SDL_net and hostnames

    While I'm not entirely sure which example you're using, I'd guess the TCP single threaded chat example, but you mention not being a UDP endpoint error, which gives me pause. The full out error messages from the example might be helpful (i.e. the "SDLNet_ResolveHost: could'nt resolve hostname"). If you post more details it might make it easier to figure out what's going wrong. The could not resolve hostname generally means either your DNS isn't working or you've entered in the hostname wrong: it means it can't look up the IP address for the hostname you've given it. Another thing to check is to make sure you're using the internal IP adress of the server if you're on a LAN. The connection failing I would suspect means either that the server or the client are firewalled, you'll have to allow your server to listen for connections on the port you're using, and allow your client to make connections.
  5. simple udp ping with sdl_net

    If you have a UDPpacket inpacket, after calling SDLNet_UDP_Recv, the address will be inpacket->address.host, and the port it was sent on will be inpacket->address.port. UDPpacket Cheers.
  6. [java] Q on java performance

    Yes, there are compilers for Java which will turn your code into machine code, the only one I know of off the top of my head is gcj, which is part of gcc.
  7. SDL and glutSwapBuffers

    I'm not sure about the glutPostRedisplay, but the swap buffers is done with SDL_GL_SwapBuffers().
  8. C++ library quetions

    Yar! Just go to the project options->files, then find the file that you want compiled as C++, and select... "Compile as C++". Works for me. :)
  9. Load Times...

    Actually, Dev-C++ comes with gprof, the GNU profiler. I find it a little bit hard to use, but it does work, and you already have it! To use it, you need to enable profiling in your project options, and add -pg to your linker options, and then rebuild your project. When you run your program, a file called gmon.out will be generated, which you can turn into a readable format by passing the file as a parameter to gprof. If it sounds a little confusing, don't worry, it's easier than it sounds! You could also try looking at Optimizing Intro as a place to start. Google can probably find you some more.
  10. SDL: Segmentation fault

    I'd say one problem might be that you're freeing the surface (with SDL_FreeSurface) immediately after drawing it, so any subsequent draws will likely give you a segmentation fault. You also definitely don't want to delete s where you have it (you didn't explicitly 'new' it, and SDL being a c library uses malloc internally, and you don't want to mix malloc and new), if you actually wanted to free it, you'd call SDL_FreeSurface on the pointer when you're actually done with the surface (i.e. at the end of your program). You probably also want to check s for being null, either before you push it onto the vector, or before you draw it. Cheers
  11. Packet Conversion?

    I'm still not sure I get what you're asking. I assume from "he writes a packet into his program it looks way different from the original packet sent" that your friend is receiving the packet, and then doing something with the data that you don't understand. Perhaps he's xor'ing it with a value, or the packet is encrypted somehow? Try posting the code you don't understand. "A6 turns into 46" is a little bit vague. :)
  12. Looks nice and clean, if I use it I'll be sure to tell you about any bugs. All in all, looks like a handy little class. :)
  13. Connecting to msn

    Another thing to try might be to look through the gaim source, I found it fairly informative when writing a little ICQ application.
  14. Another SDL slowness thread

    Heh, your old system has three times the clock speed, three times the ram, and doesn't use the amazing integrated intel onboard graphics (4mb!). :) It might also be worth your while to just use textured quads in OpenGL, for 2d, the learning curve is actually pretty low. I'm currently doing the same, and unless I draw rediculous things (like tens of thousands of sprites in immediate mode) I can maintain a framerate of above 100, even on my old paperweight.
  15. File I/O and Encryption

    atol is expecting a C string, not a std::string, try using atol(Num.c_str()) instead.