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 09-Jul-2006, 19:13
Flannel Flannel is offline
New Member
 
Join Date: Jul 2006
Posts: 2
Flannel is on a distinguished road

FLTK2 (r5253) compiling under Cygwin as Mingw


I'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.
Attached Files
File Type: txt errors.txt (2.7 KB, 23 views)
Last edited by Flannel : 09-Jul-2006 at 19:15. Reason: clarity
  #2  
Old 09-Jul-2006, 19:42
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

Re: FLTK2 (r5253) compiling under Cygwin as Mingw


Hello 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  
Old 10-Jul-2006, 16:18
Flannel Flannel is offline
New Member
 
Join Date: Jul 2006
Posts: 2
Flannel is on a distinguished road

Re: FLTK2 (r5253) compiling under Cygwin as Mingw


While 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 GIDBlogVista ?Widgets? on Windows XP by LocalTech

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
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

All times are GMT -6. The time now is 03:09.


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