![]() |
|
#1
|
|||
|
|||
FLTK2 (r5253) compiling under Cygwin as MingwI'm attempting to make FLTK2 (the most recent weekly snapshot) to use it with some code I'm creating under Eclipse (and cygwin)
I plan on distributing this program to some friends, and as such, am building with -mno-cygwin option. After downloading, I ran (this is all in a cygwin shell) 'autoconf' then ./configure then make. Then deleted the object files, ran configure with the --disable-cygwin option, and then make again. First I got a undefined type U32 error, which I fixed (not sure if I did it 100% right for compatability, or what the problem was caused by, but it compiles now). And now I get some errors in fl_png.cxx, the first of which is 'FILE' undeclared (the complete error text is attached). This is the first external library I've linked, and I'm not sure if I did all the pre-make steps correctly (configure wasn't working until I did autoconf, and I don't know if I shouldve deleted anything before running config with the option the second time), or where I should be looking to fix this error. I'm also unsure as to what else I should be supplying to you all. Thank you all for your time. Last edited by Flannel : 09-Jul-2006 at 19:15.
Reason: clarity
|
|||
|
#2
|
||||
|
||||
Re: FLTK2 (r5253) compiling under Cygwin as MingwHello and Welcome to GIDForums™ Flannel. I'm not at my CygWin machine right now so I can't test this out, but I have had problems with 2.x like you describe.
When building using cygwin and then not I found that if you delete config.h and config.cache these problems tend to disappear. Then just rerun configure with the --disable-cygwin (or --enable when going back) options and config.h and the cache will be recreated. Let us know if this helped. If not, I'll have a look myself later this week when I get back 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 |
|
#3
|
|||
|
|||
Re: FLTK2 (r5253) compiling under Cygwin as MingwWhile that didn't help, I did some more poking around and discovered that a good deal of the things at the end of config.log (after confdefs.h header) were not in my config.h, some of these included the U32/16 defines, as well as other things like my image library availability.
I copied the appropriate defines from the log to the header file when they were undefined (by default) there, and then everything built. I'm unsure as to why they weren't included to begin with, but it was infact an error with the configure, and not the code itself. |
Recent GIDBlog
Vista ?Widgets? on Windows XP by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| C++ Compiling Error | pointer | MS Visual C++ / MFC Forum | 3 | 12-May-2005 04:08 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The