![]() |
|
#1
|
|||
|
|||
FLTK compile helpI 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
|
||||
|
||||
|
Quote:
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.
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
|
||||
|
||||
|
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
|
|||
|
|||
|
Yeah I'm beginning to not like dev cpp either. What editor, or environment u use with g++?
__________________
spasms!!! |
|
#5
|
||||
|
||||
|
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
|
|||
|
|||
|
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:
__________________
spasms!!! |
|
#7
|
||||
|
||||
|
Quote:
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
|
|||
|
|||
|
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
|
||||
|
||||
|
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:
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 GIDBlog
Halfway done! by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
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