FLTK logo

Re: [fltk.coredev] Regression in CMake-based build

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 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Regression in CMake-based build Greg Ercolano Aug 29, 2020  
 
On 2020-08-29 08:15, Greg Ercolano wrote:
> 	Question about the cmake constructed fltk-config(s):
> 
> 	Maybe it's a work in progress, but it seems like after a 'cmake .. && make',
> 	/two/ fltk-config's are constructed:
> 
> 		> "build/fltk-config" (which works)
> 		> "build/bin/fltk-config" (which doesn't)


    Thought I should report too, I get a weird error on my Mac 10.10.5 machine when
    building a simple c++ file with the fltk-config's:

$ cat > foo.cxx
#include <stdio.h>
int main() {
    printf("Hello\n");
    return 0;
}
^D

$ bin/fltk-config --compile foo.cxx
/Library/Developer/CommandLineTools/usr/bin/c++ -I/usr/local/include -isysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT -o 'foo' 'foo.cxx' /usr/local/lib/libfltk.a -lm -lpthread -framework Cocoa
clang: error: no such file or directory: '/usr/local/lib/libfltk.a'   <-- EXPECTED (I GUESS)
clang: warning: no such sysroot directory: '-D_LARGEFILE_SOURCE'      <-- NOT EXPECTED
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

$ ./fltk-config --compile foo.cxx
/Library/Developer/CommandLineTools/usr/bin/c++ -I/usr/local/src/fltk-1.4.x-git/build -I/usr/local/src/fltk-1.4.x-git -isysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT -o 'foo' 'foo.cxx' /usr/local/src/fltk-1.4.x-git/build/lib/libfltk.a -lm -lpthread -framework Cocoa
clang: warning: no such sysroot directory: '-D_LARGEFILE_SOURCE'      <-- NOT EXPECTED
foo.cxx:1:10: fatal error: 'stdio.h' file not found                   <--
#include <stdio.h>                                                    <--
         ^
1 error generated.


    On linux I get:

$ bin/fltk-config --compile foo.cxx
/bin/c++ -I/usr/local/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT -o 'foo' 'foo.cxx' /usr/local/lib64/libfltk.a -lm -lX11 -lXext -lpthread -lXinerama -lXfixes -lXcursor -lXft -lXrender -lm -lfontconfig -ldl
c++: error: /usr/local/lib64/libfltk.a: No such file or directory     <-- NO INSTALL

$ ./fltk-config --compile foo.cxx
/bin/c++ -I/usr/local/src/fltk-1.4.x-git/build -I/usr/local/src/fltk-1.4.x-git -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT -o 'foo' 'foo.cxx' /usr/local/src/fltk-1.4.x-git/build/lib/libfltk.a -lm -lX11 -lXext -lpthread -lXinerama -lXfixes -lXcursor -lXft -lXrender -lm -lfontconfig -ldl
$                                                                     <-- WORKED OK


-- 
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/8813184a-569c-821e-a51e-563af75626d5%40seriss.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

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