GIDForums  

Go Back   GIDForums > Computer Programming Forums > FLTK Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 01-Mar-2005, 21:44
machinated machinated is offline
Regular Member
 
Join Date: Mar 2004
Location: victoria, canada
Posts: 324
machinated has a spectacular aura aboutmachinated has a spectacular aura about

FLTK compile help


I just got FLTK. I'm trying to use it with Devcpp. I've been to fltk.org and other tutorials, but unfortunately none of them go into details of how to compile simple fluid examples that they've given, especially on windows. I downloaded FLTK using package manager from within devcpp. I have 2 questions: Where does the code go? am i supposed to put it in a cpp file inside dev cpp or launch fluid from msdos and then put it in there?
And how do i compile?!!! A simple step by step howto would be helpful. thx.
__________________
spasms!!!
  #2  
Old 02-Mar-2005, 04:11
cable_guy_67's Avatar
cable_guy_67 cable_guy_67 is offline
Senior Member
 
Join Date: Oct 2004
Location: Nescopeck, PA
Posts: 1,109
cable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the rough
Quote:
Originally Posted by machinated
I just got FLTK. I'm trying to use it with Devcpp. I've been to fltk.org and other tutorials, but unfortunately none of them go into details of how to compile simple fluid examples that they've given, especially on windows. I downloaded FLTK using package manager from within devcpp. I have 2 questions: Where does the code go? am i supposed to put it in a cpp file inside dev cpp or launch fluid from msdos and then put it in there?
And how do i compile?!!! A simple step by step howto would be helpful. thx.

Ok machinated, I will give it my best shot.

DISCLAIMER:
I don't use Dev any more (perhaps someone that does could weigh in) but from the little I have used it I may be able to help here.
  • Create your fluid project and choose write code from the new menu option.
  • Start Dev and choose FLTK for your project type. This should give you the correct includes for fltk.
  • Add the code fluid created to your project. (both the .cxx and .h)
  • Compile and enjoy.

Try it with the fluid project code from this thread and let me know if it worked.

Mark

EDIT: Actually, I just fired up Dev and the standard fltk project includes quite a bit in the file it creates. I'll take a poke at it later and get back to you on this. The project I refer to (thread 4955) includes the main in the fluid project which will be redundant from what I can see. I'll make some modifications and get you something to work with. (this is one of the things I don't like about Dev)
__________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work."
--Thomas Alva Edison
"Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety."
--Benjamin Franklin
"A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes."
--Hugh Downs
Last edited by cable_guy_67 : 02-Mar-2005 at 05:30.
  #3  
Old 03-Mar-2005, 19:21
cable_guy_67's Avatar
cable_guy_67 cable_guy_67 is offline
Senior Member
 
Join Date: Oct 2004
Location: Nescopeck, PA
Posts: 1,109
cable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the rough
Sorry mach, I now remember why I don't use Dev anymore. Too many options to get set up right. :-?

Hopefully someone else using Dev could lend a hand? Now if you want to use your regular compiler and build fltk I could be more useful. 8-)

I have just been building fltk from the subversion repository and using g++. If things get messy just mash up a makefile and we'll be off to the races.

Mark
__________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work."
--Thomas Alva Edison
"Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety."
--Benjamin Franklin
"A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes."
--Hugh Downs
  #4  
Old 03-Mar-2005, 20:17
machinated machinated is offline
Regular Member
 
Join Date: Mar 2004
Location: victoria, canada
Posts: 324
machinated has a spectacular aura aboutmachinated has a spectacular aura about
Yeah I'm beginning to not like dev cpp either. What editor, or environment u use with g++?
__________________
spasms!!!
  #5  
Old 03-Mar-2005, 20:28
cable_guy_67's Avatar
cable_guy_67 cable_guy_67 is offline
Senior Member
 
Join Date: Oct 2004
Location: Nescopeck, PA
Posts: 1,109
cable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the rough
I have been using CygWin on W2K. All you really need to be able to do is compile from the command line. I like CygWin since it has let me slowly acclimate to using unix tools. For the console I use bash. You will need to get the source package for fltk or if you can use subversion I would reccomend getting it from there. 1.1.x has been solid and the up to date stuff hasn't given me much trouble. I think it is almost about to become 1.1.7 in the very near future.

If you are running under windows I would recommend the above. I am using version 3.4.1 of g++ but 3.3.3 was just fine. I haven't really noticed the difference. If you are runing Linux it should be even easier.

Mark

EDIT: The editor I use is ConText. Works well with the unix tools. It's an easy google.
__________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work."
--Thomas Alva Edison
"Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety."
--Benjamin Franklin
"A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes."
--Hugh Downs
  #6  
Old 05-Mar-2005, 11:24
machinated machinated is offline
Regular Member
 
Join Date: Mar 2004
Location: victoria, canada
Posts: 324
machinated has a spectacular aura aboutmachinated has a spectacular aura about
thx. However I don't want something that emulates a linux environment on windows. I want a compiler like gcc/g++ to directly run on windows and also a simple editor. I'm using win 98 SE on a pentium MMX. As you can imagine emulation wouldn't do that great on my system. Any ideas?

Quote:
Originally Posted by cable_guy_67
I have been using CygWin on W2K. All you really need to be able to do is compile from the command line. I like CygWin since it has let me slowly acclimate to using unix tools. For the console I use bash. You will need to get the source package for fltk or if you can use subversion I would reccomend getting it from there. 1.1.x has been solid and the up to date stuff hasn't given me much trouble. I think it is almost about to become 1.1.7 in the very near future.

If you are running under windows I would recommend the above. I am using version 3.4.1 of g++ but 3.3.3 was just fine. I haven't really noticed the difference. If you are runing Linux it should be even easier.

Mark

EDIT: The editor I use is ConText. Works well with the unix tools. It's an easy google.
__________________
spasms!!!
  #7  
Old 05-Mar-2005, 11:34
cable_guy_67's Avatar
cable_guy_67 cable_guy_67 is offline
Senior Member
 
Join Date: Oct 2004
Location: Nescopeck, PA
Posts: 1,109
cable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the rough
Quote:
Originally Posted by machinated
thx. However I don't want something that emulates a linux environment on windows. I want a compiler like gcc/g++ to directly run on windows and also a simple editor. I'm using win 98 SE on a pentium MMX. As you can imagine emulation wouldn't do that great on my system. Any ideas?

Well, check out context. Maybe you could get the MingW ports from here:

SourceForge Project
ConTEXT Home

Mark
__________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work."
--Thomas Alva Edison
"Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety."
--Benjamin Franklin
"A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes."
--Hugh Downs
  #8  
Old 05-Mar-2005, 14:42
machinated machinated is offline
Regular Member
 
Join Date: Mar 2004
Location: victoria, canada
Posts: 324
machinated has a spectacular aura aboutmachinated has a spectacular aura about
yeah thx. I've already d/led Mingw. works great. compiles the c++ files that devcpp was having trouble compiling for some reason.
__________________
spasms!!!
  #9  
Old 05-Mar-2005, 14:52
cable_guy_67's Avatar
cable_guy_67 cable_guy_67 is offline
Senior Member
 
Join Date: Oct 2004
Location: Nescopeck, PA
Posts: 1,109
cable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the rough
Cool, just get the 1.1.6 source package http://www.fltk.org/software.php or get the subversion version if you have svn. cd to the base directory and do:

Code:
autoconf //If you need to configure further ./configure --options make make install

It would be great if you could get fltk installed so you could test some of this stuff I have been working on. Or at least verify this fluid code I have been posting.

Mark
__________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work."
--Thomas Alva Edison
"Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety."
--Benjamin Franklin
"A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes."
--Hugh Downs
 
 

Recent GIDBlogNot selected for officer school by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FLTK && fluid In Motion cable_guy_67 FLTK Forum 4 20-Mar-2008 03:52
[Tutorial] GUI programming with FLTK dsmith FLTK Forum 10 03-Oct-2005 15:41
FLTK with GLUT usmsci FLTK Forum 4 26-Nov-2004 16:21
fltk and ncurses podarok FLTK Forum 2 08-Nov-2004 07:45
Welcome to the FLTK Forums dsmith FLTK Forum 0 08-Sep-2004 06:58

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 11:36.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.