Compiling Gravit

24 views
Skip to first unread message

Emanuel Larsson

unread,
Dec 27, 2010, 4:15:21 PM12/27/10
to gra...@googlegroups.com
Hi all,

This might not be the place but I´m lost and have not a clue even where to start digging.
I have little programing experience but more than none. TurboPascal7 for DOS, Scheme/Lisp,
VisualBasic (office) and a little C++. But really, not a lot of experience. I can figure things out
but Google-ling GCC, GNU, OpenGL, SDL, Make etc seams to be to big of a pile to dig in.

I would like to play around with and then compile the GNU OpenSource project/app Gravit.
This is originally compiled with GCC / GNU Make but that is quite abstract to me even thou I
can handle the Dos promt. So now I looked for alternative windows comilers with GUI and 
have come across Code::Blocks and Dev-C++ to mention two. Code::Blocks has drawn more
of my attention. 

Gravit on the web...

Site: http://gravit.slowchop.com/ 
Program: http://gravit.slowchop.com/dist/gravit-0.4.2-win32-installer.exe
Source code: http://gravit.slowchop.com/dist/gravit-0.4.2.tar.gz

Now I've dragged the gravit's main.c and gravit.h into Code::Blocks (I allso tryed to drag all
in source code provided c-files and h-files but also doesn't seam to help). It wont compile
succesfully and I think I understood I need some kind of SDL and OpenGL files. Google this 
gives me thousands and thousands of hits and really doesn't help me.

So I would really need the mercy of a real programmer to guide me step by step to import
this source code into a project and compile it. I could then start look into and play with the 
code. The program to use could be I guess CodeBlocks or other if necessary.

I've installed MinGW but it executes only with the error that msys-1.0.dll is not present. ???
Make install but then what? What do I execute? No GUI?
GCC? Can I use Code::Blocks? 
Where do I get the OpenGL and SDL files needed? I belive I´ve found their oficial sites but
wich of all downloadable files is the one I need?

So, I'm quite lost and in great need of a patient coder to learn some basic steps.

Sincerely

Emanuel

Gerald Kaszuba

unread,
Dec 27, 2010, 5:16:13 PM12/27/10
to gra...@googlegroups.com
Hi Emanuel,


On Tuesday, December 28, 2010 8:15:21 AM UTC+11, Emanuel Larsson wrote:

I would like to play around with and then compile the GNU OpenSource project/app Gravit.
This is originally compiled with GCC / GNU Make but that is quite abstract to me even thou I
can handle the Dos promt. So now I looked for alternative windows comilers with GUI and 
have come across Code::Blocks and Dev-C++ to mention two. Code::Blocks has drawn more
of my attention. 
 
I've installed MinGW but it executes only with the error that msys-1.0.dll is not present. ???
Make install but then what? What do I execute? No GUI?
GCC? Can I use Code::Blocks? 
Where do I get the OpenGL and SDL files needed? I belive I´ve found their oficial sites but
wich of all downloadable files is the one I need?

So, I'm quite lost and in great need of a patient coder to learn some basic steps.

I haven't tried compiling Gravit in MinGW, but technically it should be possible. I also haven't seen Code::Blocks before.

In the past I've used Microsoft Visual Studio for compiling in Windows. The Gravit sources contains a Visual Studio project file with all the Gravit source files included in the project. There is a free version available called Visual Studio Express at:

As for SDL, you'll need SDL, SDL_image and SDL_ttf. Here are the links to each:

In Windows you'll need the "devel" versions, e.g. SDL_ttf-devel-2.0.10-VC.zip. Set up your include and library paths in the project to point to them.

Good luck!

Gerald

Emanuel Larsson

unread,
Dec 27, 2010, 5:52:34 PM12/27/10
to gra...@googlegroups.com
Thanks for the answer,

Sorry I haven't managed to even get close to compile the source yet. Tryed before. I have looked at GCC but it seams to be something nearly impossible to understand for the unintroduced. So for MinGW wich I downloaded and installed but only runs presenting an error message of an missing file... so great tool.

Wich part of the MS Studio Express should I install and import the source into? (C#, C++ or Basic)

What then do I import? The Gravit's main.c -file? Will the rest of the source code then be linked into the project when compiling?

http://www.libsdl.org/download-1.2.php at this page would I need the runtime library for windows: SDL-1.2.14-win32.zip
or wich one of the development libraries: SDL-devel-1.2.14-VC6.zip (Visual C++ 6.0) or SDL-devel-1.2.14-VC8.zip 
(Visual C++ 2005 Service Pack 1) or SDL-devel-1.2.14-mingw32.tar.gz (Mingw32)?

Ok... this is what I tryed...

* I opened ...Express C++ - choosed New Project - choosed Win32 app
* Dragged Gravit's main.c file into the project
* Downloaded and extracted SDL_image-devel-1.2.10-VC; SDL_ttf-devel-2.0.10-VC and SDL-devel-1.2.14-VC6 
* Included the paths to theese zip-file's folder's Include and Lib in the list of paths Include and Library of the project.
* Started Debugging... wich gave me an application with a white screen only File menu with Exit and a empty Help menu.

This are the errors/log of the Debugging:

'Gravit.exe': Loaded 'D:\Documents\Visual Studio 2010\Projects\Gravit\Debug\Gravit.exe', Symbols loaded.
'Gravit.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'Gravit.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'Gravit.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'Gravit.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file
'Gravit.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file
'Gravit.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Cannot find or open the PDB file
'Gravit.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Cannot find or open the PDB file
'Gravit.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the PDB file
'Gravit.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open the PDB file
'Gravit.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the PDB file
'Gravit.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the PDB file
'Gravit.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the PDB file
'Gravit.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open the PDB file
'Gravit.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.
'Gravit.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Cannot find or open the PDB file
'Gravit.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Cannot find or open the PDB file
'Gravit.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Cannot find or open the PDB file
'Gravit.exe': Loaded 'C:\Program Files (x86)\Gizmo\ghook.dll', Binary was not built with debug information.
'Gravit.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll', Cannot find or open the PDB file
'Gravit.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll', Cannot find or open the PDB file
'Gravit.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Cannot find or open the PDB file
The program '[6460] Gravit.exe: Native' has exited with code 0 (0x0).

So... I guess some furter steps/hints/instructions needed. Should I drag all c and/or h -files into the compiler?
Is it a Win32 app project, a console app or what else?

Emanuel


Date: Mon, 27 Dec 2010 14:16:13 -0800
From: gerald....@gmail.com
To: gra...@googlegroups.com
Subject: [gravit] Re: Compiling Gravit
--
You received this message because you are subscribed to the Google Groups "Gravit mailing list" group.
To post to this group, send email to gra...@googlegroups.com.
To unsubscribe from this group, send email to gravit+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gravit?hl=en.
Reply all
Reply to author
Forward
0 new messages