Code::Blocks Forums

User forums => Help => Topic started by: JackDawson on July 08, 2011, 01:59:15 am

Title: FREEGLUT can work with C::B as default ( Now on Wiki for C::B )
Post by: JackDawson on July 08, 2011, 01:59:15 am
UPDATE : You can see this tutorial on WIKI :

http://wiki.codeblocks.org/index.php?title=Using_FreeGlut_with_Code::Blocks (http://wiki.codeblocks.org/index.php?title=Using_FreeGlut_with_Code::Blocks)
Title: Re: FREEGLUT can work with C::B as default (Win7-64Bit - It will work with others.)
Post by: ollydbg on July 08, 2011, 02:43:21 am
Good, hopefully can you put this great information can be put in c::b's wiki?
Title: Re: FREEGLUT can work with C::B as default (Win7-64Bit - It will work with others.)
Post by: JackDawson on July 08, 2011, 02:46:51 am
Good, hopefully can you put this great information can be put in c::b's wiki?

I'm not a moderator or anything. I am not even on this forum much. I just happen to be looking for some freeglut tutorials and I saw that no one here on this forum had a true answer to freeglut and how to get it working, so I thought I would share the info. I don't mind if someone takes this and puts it on wiki. That would be cool. :)

EDIT : P.S. Olly, love your debugger.  :) I am a FASM user, and your debugger program does make things easier.
Title: Re: FREEGLUT can work with C::B as default (Win7-64Bit - It will work with others.)
Post by: oBFusCATed on July 08, 2011, 09:32:40 am
Jack:
1. you can use your forum login name/password to log in the wiki.codeblocks.org and then create a page.
2. Ollydbg is not the developer of the Ollydbg :)
Title: Re: FREEGLUT can work with C::B as default (Win7-64Bit - It will work with others.)
Post by: ollydbg on July 08, 2011, 09:35:01 am
2. Ollydbg is not the developer of the Ollydbg :)
That always confuse someone.
Hopefully:
@administrator: Can I change my forum Id name? I don't want to register a new ID, because I have 2K posts records  :wink:
Title: Re: FREEGLUT can work with C::B as default (Win7-64Bit - It will work with others.)
Post by: JackDawson on July 08, 2011, 09:44:34 am
Jack:
1. you can use your forum login name/password to log in the wiki.codeblocks.org and then create a page.
2. Ollydbg is not the developer of the Ollydbg :)


Ok cool, i'll see what I can do. :)

EDIT : Give me 1 to 2 days and i'll have a nice looking Wiki page with more detailed info and pictures.
Title: Re: FREEGLUT can work with C::B as default (Win7-64Bit - It will work with others.)
Post by: active0000 on July 08, 2011, 10:39:22 am
“If some memory should be reused, they are variables (or const variable)
If some operations should be re-used them to
Function, if they occur together, then their class.”Thank you to share!
Title: Re: FREEGLUT can work with C::B as default (Win7-64Bit - It will work with others.)
Post by: xunxun on July 08, 2011, 11:12:02 am
EDIT : P.S. Olly, love your debugger.  :) I am a FASM user, and your debugger program does make things easier.
.....
Ollydbg 2.x in windows 7 is not as very good, so I usually use Ollydbg 1.x in windows XP.

And I think we should improve cb OpenGL Project as JackDawson's method.
Title: Re: FREEGLUT can work with C::B as default (Win7-64Bit - It will work with others.)
Post by: oBFusCATed on July 08, 2011, 11:30:58 am
And I think we should improve cb OpenGL Project as JackDawson's method.
Patches welcome, probably:)
Title: Re: FREEGLUT can work with C::B as default (Win7-64Bit - It will work with others.)
Post by: JackDawson on July 08, 2011, 01:46:32 pm
And I think we should improve cb OpenGL Project as JackDawson's method.
Patches welcome, probably:)

Well I have already started to alter my Code::Blocks in many ways..  testing out different libraries using OpenGL and C::B..  the only one I so far have not gotten working is the GLTools because its not a stable library yet and once I get it solved, then i'll post info about it. Because people who paid for the OpenGL SuperBible 5th Edition..  well lets just say, we all are VERY disappointed with the author. I will be buying the 4th edition SuperBible because its stable. But the 5th edition sucks.

Also, the wiki is up and running, but I am improving the layout right now. So its not finished.

UPDATE : Wiki is now finished.

http://wiki.codeblocks.org/index.php?title=Using_FreeGlut_with_Code::Blocks (http://wiki.codeblocks.org/index.php?title=Using_FreeGlut_with_Code::Blocks)
Title: Re: FREEGLUT can work with C::B as default (Win7-64Bit - It will work with others.)
Post by: ollydbg on July 09, 2011, 04:23:25 pm
UPDATE : Wiki is now finished.

http://wiki.codeblocks.org/index.php?title=Using_FreeGlut_with_Code::Blocks (http://wiki.codeblocks.org/index.php?title=Using_FreeGlut_with_Code::Blocks)

Great job, and this wiki page is very nice!!!

Hope the changed wizard script and cbp template files can be put in trunk.
Title: Re: FREEGLUT can work with C::B as default (Win7-64Bit - It will work with others.)
Post by: JackDawson on July 09, 2011, 05:50:40 pm
UPDATE : Wiki is now finished.

http://wiki.codeblocks.org/index.php?title=Using_FreeGlut_with_Code::Blocks (http://wiki.codeblocks.org/index.php?title=Using_FreeGlut_with_Code::Blocks)

Great job, and this wiki page is very nice!!!

Hope the changed wizard script and cbp template files can be put in trunk.

Hey thanks..  keep in mind though, I feel there should be a seperate "Button" option for freeGlut. In otherwords show the Glut that comes with C::B. But name it Glut32 and then have ANOTHER option as freeGlut. I would hate to have to write up another tutorial on how to install Glut32 for those who don't get it.. LMAO
Title: Re: FREEGLUT can work with C::B as default ( Now on Wiki for C::B )
Post by: xunxun on July 10, 2011, 09:16:29 pm
I think the default lib name of newest freeglut (svn) is libglut-0.dll, libglut.a and libglut.dll.a.
Title: Re: FREEGLUT can work with C::B as default ( Now on Wiki for C::B )
Post by: JackDawson on July 10, 2011, 11:07:12 pm
I think the default lib name of newest freeglut (svn) is libglut-0.dll, libglut.a and libglut.dll.a.

Hello, could you post where you got your info ?  Because in my tutorials I show that you only need the actual binaries and where to put them. I also show a picture in my tutorial that has the ACTUAL name in the folder ( freeglut.dll ). And those files you listed here are no where in them.  I even checked the Glut32 download and its not in those either. I even did a search in my MinGW folders and no reference to them in their either.

The original Glut32 written by Mark Kilgard was ported over by Nate Robins. And you can get the ported Glut32 Binaries if you want to see it.
http://www.xmission.com/~nate/glut.html

NOTE : The latest version of the Glut32 library is 3.7.6 ( Dated Nov 8, 2001 )

This is the freeglut download links.
http://freeglut.sourceforge.net/index.php#download

in that link you will see the title : Prepackaged Releases and the first link takes you to the binaries to be downloaded on this link
http://www.transmissionzero.co.uk/software/freeglut-devel/

Its in there where you will see the MinGW download package that I describe in the tutorial.  ( NOTE : Latest Binary release is dated January 23rd 2010 )
Download freeglut 2.6.0‑3 for MinGW     -------->  freeglut-MinGW.zip

This was in reference to Windows and Linux packages according to their website.

And please keep in mind, my tutorial is only about the freeglut binary stable release version, NOT about source code that you have to compile. And the tutorial is not about Glut32 either. So please, if I am missing something here, please let me know and I'll update the Wiki accordingly. Thanks. :)
Title: Re: FREEGLUT can work with C::B as default ( Now on Wiki for C::B )
Post by: xunxun on July 11, 2011, 09:00:07 am
I use freeglut dev svn : https://freeglut.svn.sourceforge.net/svnroot/freeglut/trunk
You can build yourselves:
Code
./autogen.sh
./configure --prefix=/mingw
make
make install
Title: Re: FREEGLUT can work with C::B as default ( Now on Wiki for C::B )
Post by: JackDawson on July 11, 2011, 12:40:34 pm
I use freeglut dev svn : https://freeglut.svn.sourceforge.net/svnroot/freeglut/trunk
You can build yourselves:
Code
./autogen.sh
./configure --prefix=/mingw
make
make install

Ahh yea, as I previously stated, the tutorial is about pre-compiled binaries. Those that are new to C::B have a hard time if I go into explaining how to compile the code too. I am trying to keep this as simple as possible for them. However, can you take a screen shot of those three above related files you mention after compiling ? Can you also write up a small tutorial on how to compile it and it showing those files for linux users ? I would love to add that to the wiki and I can go into more detail on how to use this in Linux for Linux users.
Title: Re: FREEGLUT can work with C::B as default ( Now on Wiki for C::B )
Post by: xunxun on July 11, 2011, 03:15:50 pm
Ahh yea, as I previously stated, the tutorial is about pre-compiled binaries. Those that are new to C::B have a hard time if I go into explaining how to compile the code too. I am trying to keep this as simple as possible for them. However, can you take a screen shot of those three above related files you mention after compiling ? Can you also write up a small tutorial on how to compile it and it showing those files for linux users ? I would love to add that to the wiki and I can go into more detail on how to use this in Linux for Linux users.
I'm on Win7.
If you want to compile the svn code yourselves on windows, you should have msys and mingw/mingw64 gcc compiler.
then you can follow my words:
Code
./autogen.sh
./configure --prefix=/mingw
make
make install
You 'll see precompiled libs in /mingw.
Title: Re: FREEGLUT can work with C::B as default ( Now on Wiki for C::B )
Post by: JackDawson on July 11, 2011, 04:09:57 pm
Ahh yea, as I previously stated, the tutorial is about pre-compiled binaries. Those that are new to C::B have a hard time if I go into explaining how to compile the code too. I am trying to keep this as simple as possible for them. However, can you take a screen shot of those three above related files you mention after compiling ? Can you also write up a small tutorial on how to compile it and it showing those files for linux users ? I would love to add that to the wiki and I can go into more detail on how to use this in Linux for Linux users.
I'm on Win7.
If you want to compile the svn code yourselves on windows, you should have msys and mingw/mingw64 gcc compiler.
then you can follow my words:
Code
./autogen.sh
./configure --prefix=/mingw
make
make install
You 'll see precompiled libs in /mingw.

Ok well that's my point, I tried that on Windows and I still never got those files..  what I been asking you for several messages now, is can you SHOW me where you find those files.

"Posted by: xunxun1982
Insert Quote
I think the default lib name of newest freeglut (svn) is libglut-0.dll, libglut.a and libglut.dll.a."

I cannot find any of those files even if I compile it under windows using MSys. I'm asking you to please show me where you got this info. Your saying stuff that I have not been able to see verified and if there is some proof of it, I would like to correct my mistake on the Wiki. Otherwise, your confusing all the new ones to this topic and it has no barring on this thread. So I ask again please, in kindness and all due respect to you, to show me where I need to correct my mistake. Because so far, I cannot find those files even AFTER I compile it.

I still end up with freeglut.dll.


UPDATE EDIT :  I think I get now what your trying to say, it makes those files durring compile time. I paid attention to the output options of GCC more when it compiled the DLL.

EXAMPLE : --out-implib, libexample_dll.a

You can use that type of command when compiling. But as a default, without that command, it will make a DLL with the freeglut code. So its how I missed it in the first place. But again, back to what this thread is about, there is no need to make those pre-compiled libraries since the DLL works on both linux and Windows for C::B already. However, I have seen a couple reports on how people have tried to do it with a DLL and failed. My humble opinion on that is that they just don't know how to do it properly. I have read a few posts on other forums that they were successful at it for linux.
Title: Re: FREEGLUT can work with C::B as default ( Now on Wiki for C::B )
Post by: xunxun on July 15, 2011, 01:51:42 am
I don't know how you build the code, and I use the lastest svn code, don't you?
This is the images:
(http://pcxprj.googlecode.com/svn/wiki/images/freeglut-bin.jpg)
(http://pcxprj.googlecode.com/svn/wiki/images/freeglut-include.jpg)
(http://pcxprj.googlecode.com/svn/wiki/images/freeglut-lib.jpg)
Title: Re: FREEGLUT can work with C::B as default ( Now on Wiki for C::B )
Post by: JackDawson on July 15, 2011, 02:35:25 am
Yes, I use the latest and I still do not get those odd files. So we'll just have to call this one a mystery.
Title: Re: FREEGLUT can work with C::B as default ( Now on Wiki for C::B )
Post by: xunxun on July 15, 2011, 02:45:14 am
Did you use the latest svn or you use latest release code?
The svn source image:
(http://pcxprj.googlecode.com/svn/wiki/images/freeglut-svn.jpg)
You can get the code with:
Code
svn co https://freeglut.svn.sourceforge.net/svnroot/freeglut freeglut
You can build with msys/mingw:
Code
./autogen.sh
./configure --prefix=/mingw
make
make install
then you can get these files in /mingw.
Title: Re: FREEGLUT can work with C::B as default ( Now on Wiki for C::B )
Post by: JackDawson on July 15, 2011, 02:49:00 am
EDIT. . never mind. I just now saw your link..  hahahaha  i'll check it out.  Thanks. :)


EDIT 2 : Wow.. I don't see that at all. In fact, your version is showing symbols other then English. ( Chinese ? ). I don't see any of that at all. And I am in the folder that your pointing me too.

I think I just solved it though. Your using Visual Studio to compile this ? Because your files are showing Visual Studio icons. ( Under the SVN green check mark icon )

I do not have any Microsoft compiler installed. I use strictly MinGW with C::B.
Title: Re: FREEGLUT can work with C::B as default ( Now on Wiki for C::B )
Post by: xunxun on July 15, 2011, 03:36:16 am
EDIT. . never mind. I just now saw your link..  hahahaha  i'll check it out.  Thanks. :)


EDIT 2 : Wow.. I don't see that at all. In fact, your version is showing symbols other then English. ( Chinese ? ). I don't see any of that at all. And I am in the folder that your pointing me too.

I think I just solved it though. Your using Visual Studio to compile this ? Because your files are showing Visual Studio icons. ( Under the SVN green check mark icon )

I do not have any Microsoft compiler installed. I use strictly MinGW with C::B.

No, I use msys+mingw.
You must build in the msys, then you can get these files.
Title: Re: FREEGLUT can work with C::B as default ( Now on Wiki for C::B )
Post by: JackDawson on July 15, 2011, 03:42:03 am
Ahh that explains it. I have used Msys..  but only once to test a shell that a source code needed. It can pass some odd perimeters. Remember Msys is NOT a compiler, but more like a unix like shell. But it can let you pass some interesting perimeters.

So that brings us back to ..  i'm not getting those files when I compile. Its the strangest thing. Either way.. we could debate this forever..  but really..  the binaries is all the noobs need and I have already explained that in the tutorial.

One thing about it though, I appreciate you taking the time to try to show this. I will definitely have to ponder over this and write something in the tutorial about compiling the code from source. Thank you.