FLTK logo

STR #56

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | Roadmap 1.1 | SVN ⇄ GIT ]

STR #56

Application:FLTK Library
Status:2 - Closed w/o Resolution
Priority:3 - Moderate, e.g. unable to compile the software
Scope:3 - Applies to all machines and operating systems
Subsystem:Config Files
Summary:fltk.config --prefix=DIR not working
Version:1.1.4rc1
Created By:ciudadsatan.hotmail
Assigned To:mike
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files


Trouble Report Comments:


Name/Time/Date Text  
 
#1 ciudadsatan.hotmail
09:07 May 28, 2003
Given this command:
  fltk-config --prefix=/home/fltk114cvs --compile dd.cxx

It executes:
  gcc -I/usr/local/include   [...]

shouldn't it include /home/fltk114cvs/ ?
A trailing "/" in the prefix doesn't help, either.
The "--prefix=DIR" option works only with the "--prefix" and "--exec-prefix" options, which isn't... er... useful.
 
 
#2 mike
11:45 May 29, 2003
The --prefix functionality has never worked, and it will be removed in a future release.  The correct method is to use the --prefix option at configure time and then use the corresponding version of fltk-config.  
 
#3 greg.ercolano
17:47 Aug 29, 2003
Hmm, it still doesn't seem to work, even if you build
FLTK (1.1.4rc2) with 'config --prefix /some/path' first:

---- snip
% cd /usr/local/src/fltk-1.1.4rc2
% ./configure --prefix /usr/local/src/fltk-1.1.4rc2
[no errors]
% make
[no errors]
% cd /var/tmp
% /usr/local/src/fltk-1.1.4rc2/fltk-config --compile foo.cxx
gcc -I/usr/local/src/fltk-1.1.4rc2/include [..]
--- snip                           ^^^^^^^                          

The problem with the above is the "/include" appended to the -I prefix path; the fltk base directory does not have an 'include' subdir; "FL" is at the top level.

I can work around if I go into the fltk-1.1.4rc2 directory and create an 'include' symlink to ".", then it will work:

----
% cd /usr/local/src/fltk-1.1.4rc2
% ln -s . include
% cd /var/tmp
% /usr/local/src/fltk-1.1.4rc2/fltk-config --compile foo.cxx
gcc -I/usr/local/src/fltk-1.1.4rc2/include [..]
[compiles OK]
----
 
 
#4 greg.ercolano
17:54 Aug 29, 2003
PS. Hmm, somehow the form posting wordwrapped my carats (^^^^^^^) to the next line during submit, even though the WYSIWYG text viewer didn't show it :/  Might be my Mozilla client, or it might be the php.  
 
#5 mike
18:10 Aug 29, 2003
Try using the --includedir=foo option when you configure.

The fltk-config script isn't designed for use with a non-installed source build, and we don't support it as such.
 
 
#6 greg.ercolano
19:21 Aug 29, 2003
Thanks; Re-resolved.

I found if I make the prefix same as the includedir, it worked. Thought they'd be the same by default, but I can see why by default they're not.

So this worked for me:

./configure --prefix /usr/local/src/fltk-1.1.4rc2 --includedir=/usr/local/src/fltk-1.1.4rc2

 
     

Return to Bugs & Features ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.