Jump to content
  • Advertisement

CaptNeo

Member
  • Content Count

    13
  • Joined

  • Last visited

Community Reputation

122 Neutral

About CaptNeo

  • Rank
    Member
  1. CaptNeo

    SDL, eclipse & MacOS X

    Thx for the troubles, but I think I'll go with XCode and Objective C then. Wont hurt me that much to wrap my head around that Apple way of doing things. Thx again.
  2. CaptNeo

    SDL, eclipse & MacOS X

    Nope, still the same error (Thx for not giving up on me)
  3. CaptNeo

    SDL, eclipse & MacOS X

    The framework resides at "~/Library/Frameworks/SDL.framework" already. That was what I did in the first place. I also added that as Include path for the compiler (not for the linker as I was told, that one cant use -framework together with -l).
  4. CaptNeo

    SDL, eclipse & MacOS X

    Thx again, sorry I really messed that up. In fact there is a new and informative error message now: make all Building target: SDL_OpenGL_test Invoking: MacOS X C++ Linker g++ -framework Cocoa -framework SDL /Users/Shared/Cpp_workspace/SDL_OpenGL_test/src/SDLMain.m -o "SDL_OpenGL_test" ./src/SDL_OpenGL_test.o ld: framework not found SDL collect2: ld returned 1 exit status make: *** [SDL_OpenGL_test] Error 1 I don't have full admin permissions here, so I put the framework into my home directory.
  5. CaptNeo

    SDL, eclipse & MacOS X

    Thx again, but has not changed anything :-( (sure bout changing the include to SDLMain.m? Isn't that a circle reference?) Could it be, that for some weird reason eclipse may not access the Framework-Folder while XCode can (it's located on a server)?
  6. CaptNeo

    SDL, eclipse & MacOS X

    The include states: #include <SDL/SDL.h>
  7. CaptNeo

    SDL, eclipse & MacOS X

    Edit: IGNORE THAT! Thx again, I found out, that the '~' is not part of the '*absolute path to your*' placeholder. Now I only get one error left: g++ -framework Cocoa -framework SDL ~/Users/Shared/Cpp_workspace/SDL_OpenGL_test/src/SDLMain.m -o "SDL_OpenGL_test" ./src/SDL_OpenGL_test.o i686-apple-darwin9-g++-4.0.1: /Network/Servers/coleman.informatik.RWTH-Aachen.DE/Volumes/RAID2/Hiwis/kurtz/Users/Shared/Cpp_workspace/SDL_OpenGL_test/src/SDLMain.m: No such file or directory make: *** [SDL_OpenGL_test] Error 1 Edit: IGNORE THAT!
  8. CaptNeo

    SDL, eclipse & MacOS X

    I thought, that's what i have done: g++ -I/Network/Servers/coleman.informatik.RWTH-Aachen.DE/Volumes/RAID2/Hiwis/kurtz/Library/Frameworks/SDL.framework/Versions/A/Headers -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/SDL_OpenGL_test.d" -MT"src/SDL_OpenGL_test.d" -o"src/SDL_OpenGL_test.o" "../src/SDL_OpenGL_test.cpp" (I know, the line is bit lenghty, but it the framework is set as include path) and g++ -framework Cocoa -framework SDL /Users/Shared/Cpp_workspace/SDL_OpenGL_test/src/SDLMain.m -o "SDL_OpenGL_test" ./src/SDL_OpenGL_test.o All the files are where they are supposed to be (if I'm not missing anything because I'm unaware of Mac specifics)
  9. CaptNeo

    SDL, eclipse & MacOS X

    Thx for the quick response! I'm working with an eclipse project. So I can't do what you asked for. The sample compiles fine with XCode btw. I'm trying to use eclipse though because I want the project to be portable to my windows PC :-)
  10. Hello, currently I'm trying to compile a simple SDL sample with eclipse on a Mac (OS X Leopard). I followed the guide on http://meandmarkpublishing.blogspot.com/2006/12/setting-up-sdl-for-eclipse-on-mac-os-x.html to the best of my knowledge. I'm a Mac noob still so I can't be sure, I missunderstood something. I'm getting errors about the sdl/sdl.h not being where it is supposed to be, though I added the include path for the framework. make all Building file: ../src/SDL_OpenGL_test.cpp Invoking: GCC C++ Compiler g++ -I/Network/Servers/coleman.informatik.RWTH-Aachen.DE/Volumes/RAID2/Hiwis/kurtz/Library/Frameworks/SDL.framework/Versions/A/Headers -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/SDL_OpenGL_test.d" -MT"src/SDL_OpenGL_test.d" -o"src/SDL_OpenGL_test.o" "../src/SDL_OpenGL_test.cpp" Finished building: ../src/SDL_OpenGL_test.cpp Building target: SDL_OpenGL_test Invoking: MacOS X C++ Linker g++ -framework Cocoa -framework SDL /Users/Shared/Cpp_workspace/SDL_OpenGL_test/src/SDLMain.m -o "SDL_OpenGL_test" ./src/SDL_OpenGL_test.o /Users/Shared/Cpp_workspace/SDL_OpenGL_test/src/SDLMain.m:8:21: error: SDL/SDL.h: No such file or directory /Users/Shared/Cpp_workspace/SDL_OpenGL_test/src/SDLMain.m: In function '-[SDLApplication terminate:]': /Users/Shared/Cpp_workspace/SDL_OpenGL_test/src/SDLMain.m:75: error: 'SDL_Event' undeclared (first use in this function) /Users/Shared/Cpp_workspace/SDL_OpenGL_test/src/SDLMain.m:75: error: (Each undeclared identifier is reported only once /Users/Shared/Cpp_workspace/SDL_OpenGL_test/src/SDLMain.m:75: error: for each function it appears in.) /Users/Shared/Cpp_workspace/SDL_OpenGL_test/src/SDLMain.m:75: error: syntax error before 'event' /Users/Shared/Cpp_workspace/SDL_OpenGL_test/src/SDLMain.m:76: error: 'event' undeclared (first use in this function) /Users/Shared/Cpp_workspace/SDL_OpenGL_test/src/SDLMain.m:76: error: 'SDL_QUIT' undeclared (first use in this function) make: *** [SDL_OpenGL_test] Error 1 Thx for any ideas that might come up.
  11. Update: I've found, that sdlmain was missing. To make sure, I did not forget anything else, I've reshuffled the libs to confirm with an old VS project (should have done so in the first place for sure, sorry). So I get another error, which seems to be SDL specific: **** Build of configuration Debug for project opengl_sdl2 **** **** Internal Builder is used for build **** g++ -LC:\Programme\MinGW\lib\Development\SDL -LC:\Programme\MinGW\lib -oopengl_sdl2.exe src\opengl_sdl2.o -lmingw32 -lopengl32 -lglu32 -lsdlmain -lsdl C:\Programme\MinGW\lib\Development\SDL/libsdlmain.a(SDL_win32_main.o): In function `console_main': /Users/hercules/trunk/SDL-1.2/./src/main/win32/SDL_win32_main.c:246: undefined reference to `SDL_main' collect2: ld returned 1 exit status Build error occurred, build is stopped Time consumed: 235 ms.
  12. Thx, I've tried it. The following is my console output: **** Build of configuration Debug for project opengl_sdl2 **** **** Internal Builder is used for build **** g++ -IC:\Programme\MinGW\include\Development -O0 -g3 -Wall -c -fmessage-length=0 -osrc\opengl_sdl2.o ..\src\opengl_sdl2.cpp g++ -LC:\Programme\MinGW\lib\Development\SDL -LC:\Programme\MinGW\lib -mwindows -oopengl_sdl2.exe src\opengl_sdl2.o -lmingw32 -lsdl -lopengl32 -lglu32 C:\Programme\MinGW\lib/libmingw32.a(main.o):main.c:(.text+0x104): undefined reference to `WinMain@16' collect2: ld returned 1 exit status Build error occurred, build is stopped Time consumed: 625 ms.
  13. Hello, up to now I've been working with VS, but got employed last week to work on a Mac-Project. Because I don't know better, I decided to set up a C++ environment with eclipse, so that I can work with one IDE at work and at home without having to convert Project-Formats between VS and X Code. On Windows however I can't get the simplest SDL/OpenGL example compiled (which runs fine with VS 2008), because the linker tells me: C:\Programme\MinGW\lib/libmingw32.a(main.o):main.c:(.text+0x104): undefined reference to `WinMain@16' A quick and dirty diagnosis: As far as I could find out on the Internet this has to do with the Project not being pure and proper Win32, meaning the compiler tries to create a console application. Sadly the Project creation dialog does not give me any options to influence this like in VS. I also been through the whole project settings dialogs and could not find anything that worked. Anyone familiar with eclipse with the mingw g++ compiler and what project settings checkbox/compiler parameter to set in order to get it right? Thx! CaptNeo
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!