Re: [ft-devel] Invalid Preprocessor directive: #include FT_FREETYPE_H
Werner LEMBERG wrote: It is the correct way; I only mean that you shouldn't add the values manually but use code like this within your makefile: freetype_cflags = `freetype-config --cflags` freetype_libs = `freetype-config --libs` CFLAGS += $freetype_cflags LDFLAGS += $freetype_libs Werner Guys, I am compiling on a Windows system (Win 7) I just figured out that freetype-config(.in) is in the unix folder. Is there something different I have to do to get this working ? Thanks -- View this message in context: http://old.nabble.com/Invalid-Preprocessor-directive%3A--include-FT_FREETYPE_H-tp19778956p29901782.html Sent from the Freetype - Dev mailing list archive at Nabble.com. ___ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] Invalid Preprocessor directive: #include FT_FREETYPE_H
Guys, I am compiling on a Windows system (Win 7) I just figured out that freetype-config(.in) is in the unix folder. Is there something different I have to do to get this working ? For MS compilers, what about using one of the project files in builds/win32? For a Cygwin or Mingw environment, this *is* Unix (kind of). In particular, both GNU make and bash are expected to work. Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] Invalid Preprocessor directive: #include FT_FREETYPE_H
Werner LEMBERG wrote: I got the paths with `freetype-config --cflags' and `freetype-config --libs' Then I added them to my Eclipse Project options. Is this the wrong way to do? How is the correct one? It is the correct way; I only mean that you shouldn't add the values manually but use code like this within your makefile: freetype_cflags = `freetype-config --cflags` freetype_libs = `freetype-config --libs` CFLAGS += $freetype_cflags LDFLAGS += $freetype_libs Werner Old Post.. sorry but I really need some help. I am cross compiling for ARM cortex M3 codesourcery lite GDB OpenOCD I am trying to link a compiled FreeType library file with my simple application. I have com I have put these lines directly into my makefile as per above post But I get errors !! -here is an exerpt... - IPATH=. IPATH+=drivers IPATH+=/inc IPATH+=/ IPATH+=/FreeType/include freetype_cflags = `freetype-config --cflags` freetype_libs = `freetype-config --libs` CFLAGS += $freetype_cflags LDFLAGS += $freetype_libs # # The default rule, which causes the uart_echo example to be built. # all: ${COMPILER} all: ${COMPILER}/uart_echo.axf . ${COMPILER}/uart_echo.axf: c:/Freetype/objs/libfreetype.a etc, etc --- Build errors: Build of configuration Debug for project uartecho make all arm-none-eabi-gcc: reetype_cflags: No such file or directory arm-none-eabi-gcc: reetype_cflags: No such file or directory arm-none-eabi-gcc: reetype_cflags: No such file or directory arm-none-eabi-gcc: reetype_cflags: No such file or directory LDgcc/uart_echo.axf C:\StellarisIDEstuff\CodeSourcery\Sourcery G++ Lite\bin\arm-none-eabi-ld.EXE: reetype_libs: No such file: No such file or directory make: *** [gcc/uart_echo.axf] Error 1 Please Help ! -- View this message in context: http://old.nabble.com/Invalid-Preprocessor-directive%3A--include-FT_FREETYPE_H-tp19778956p29892236.html Sent from the Freetype - Dev mailing list archive at Nabble.com. ___ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] Invalid Preprocessor directive: #include FT_FREETYPE_H
RustyBucket wrote: CFLAGS += $freetype_cflags LDFLAGS += $freetype_libs arm-none-eabi-gcc: reetype_cflags: No such file or directory Welcome to the make command. You MUST bracket all variable names longer than a character - $freetype_cflags is the variable $f followed by the string reetype_cflags - since you don't have a $f defined, that becomes the empty string, followed by the string reetype_cflags. You need to change the makefile to: CFLAGS += ${freetype_cflags} LDFLAGS += ${freetype_libs} -- -Alan Coopersmith-alan.coopersm...@oracle.com Oracle Solaris Platform Engineering: X Window System ___ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] Invalid Preprocessor directive: #include FT_FREETYPE_H
CFLAGS += $freetype_cflags LDFLAGS += $freetype_libs arm-none-eabi-gcc: reetype_cflags: No such file or directory Welcome to the make command. You MUST bracket all variable names longer than a character - $freetype_cflags is the variable $f followed by the string reetype_cflags - since you don't have a $f defined, that becomes the empty string, followed by the string reetype_cflags. You need to change the makefile to: CFLAGS += ${freetype_cflags} LDFLAGS += ${freetype_libs} *Blush* :-) Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] Invalid Preprocessor directive: #include FT_FREETYPE_H
Werner LEMBERG wrote: CFLAGS += $freetype_cflags LDFLAGS += $freetype_libs arm-none-eabi-gcc: reetype_cflags: No such file or directory Welcome to the make command. You MUST bracket all variable names longer than a character - $freetype_cflags is the variable $f followed by the string reetype_cflags - since you don't have a $f defined, that becomes the empty string, followed by the string reetype_cflags. You need to change the makefile to: CFLAGS += ${freetype_cflags} LDFLAGS += ${freetype_libs} *Blush* :-) Heh. I remember that one from having gotten it wrong too many times in my makefiles - my problem is usually going the other way, trying to write Makefile variables into shell scripts, and then finding my script is deciding $(FOO) means run the command FOO, not expand the variable FOO. -- -Alan Coopersmith-alan.coopersm...@oracle.com Oracle Solaris Platform Engineering: X Window System ___ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] Invalid Preprocessor directive: #include FT_FREETYPE_H
Alan Coopersmith-3 wrote: Heh. I remember that one from having gotten it wrong too many times in my makefiles - my problem is usually going the other way, trying to write Makefile variables into shell scripts, and then finding my script is deciding $(FOO) means run the command FOO, not expand the variable FOO. How does anyone learn this stuff to start off with ? It seems like its how a baby learns, after years of seeing it and hearing it, eventually it all just sinks in and your a pro :) -- View this message in context: http://old.nabble.com/Invalid-Preprocessor-directive%3A--include-FT_FREETYPE_H-tp19778956p29893538.html Sent from the Freetype - Dev mailing list archive at Nabble.com. ___ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] Invalid Preprocessor directive: #include FT_FREETYPE_H
Hi, thanky fior helping me. The only problem was that I diidnt link against the lib. I had to tell the gcc -I/usr/include/freetype2 and -lfreetype -lz now its working! ;) greetings -- View this message in context: http://www.nabble.com/Invalid-Preprocessor-directive%3A--include-FT_FREETYPE_H-tp19778956p20884552.html Sent from the Freetype - Dev mailing list archive at Nabble.com. ___ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] Invalid Preprocessor directive: #include FT_FREETYPE_H
The only problem was that I diidnt link against the lib. I had to tell the gcc -I/usr/include/freetype2 and -lfreetype -lz now its working! ;) You should use `freetype-config --cflags' and `freetype-config --libs' for that. Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] Invalid Preprocessor directive: #include FT_FREETYPE_H
Werner LEMBERG wrote: The only problem was that I diidnt link against the lib. I had to tell the gcc -I/usr/include/freetype2 and -lfreetype -lz now its working! ;) You should use `freetype-config --cflags' and `freetype-config --libs' for that. Werner I got the paths with `freetype-config --cflags' and `freetype-config --libs' Then I added them to my Eclipse Project options. Is this the wrong way to do? How is the correct one? Lukas -- View this message in context: http://www.nabble.com/Invalid-Preprocessor-directive%3A--include-FT_FREETYPE_H-tp19778956p20886179.html Sent from the Freetype - Dev mailing list archive at Nabble.com. ___ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] Invalid Preprocessor directive: #include FT_FREETYPE_H
I got the paths with `freetype-config --cflags' and `freetype-config --libs' Then I added them to my Eclipse Project options. Is this the wrong way to do? How is the correct one? It is the correct way; I only mean that you shouldn't add the values manually but use code like this within your makefile: freetype_cflags = `freetype-config --cflags` freetype_libs = `freetype-config --libs` CFLAGS += $freetype_cflags LDFLAGS += $freetype_libs Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] Invalid Preprocessor directive: #include FT_FREETYPE_H
Werner LEMBERG wrote: I got the paths with `freetype-config --cflags' and `freetype-config --libs' Then I added them to my Eclipse Project options. Is this the wrong way to do? How is the correct one? It is the correct way; I only mean that you shouldn't add the values manually but use code like this within your makefile: freetype_cflags = `freetype-config --cflags` freetype_libs = `freetype-config --libs` CFLAGS += $freetype_cflags LDFLAGS += $freetype_libs Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel Ok, thats clear! ;) Thank you -- View this message in context: http://www.nabble.com/Invalid-Preprocessor-directive%3A--include-FT_FREETYPE_H-tp19778956p20886305.html Sent from the Freetype - Dev mailing list archive at Nabble.com. ___ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] Invalid Preprocessor directive: #include FT_FREETYPE_H
sorry, I read that too quickly :-) mpsuzuki is right, you're missing the freetype2-config --cflags on your command-line 2008/11/2 David Turner [EMAIL PROTECTED] hmmm, your compiler is not ANSI-C compliant, since #include MACRO_NAME is defined by the standard as a valid construct. You should get a better compiler, or write a script to replace all occurences of #include MACRO_NAME with #include corresponding/header.h 2008/10/2 ccube [EMAIL PROTECTED] Hi, I want to use the FT2 library in my own programm. For testing, i use this sample code from the Freetype Project: #include ft2build.h #include FT_FREETYPE_H FT_Library library; ... error = FT_Init_FreeType( library ); if ( error ) { ... an error occurred during library initialization ... } When compiling, i always get an error like Invalid Preprocessor directive: #include FT_FREETYPE_H What is missing? My Systems are Ubutnu 8.04, 8.10, x64, x86 Everywhere the same error. Compiler is the standard ubuntu gcc compiler. Can anyone help me? Regards, Lukas -- View this message in context: http://www.nabble.com/Invalid-Preprocessor-directive%3A--include-FT_FREETYPE_H-tp19778956p19778956.html Sent from the Freetype - Dev mailing list archive at Nabble.com. ___ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel ___ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] Invalid Preprocessor directive: #include FT_FREETYPE_H
hmmm, your compiler is not ANSI-C compliant, since #include MACRO_NAME is defined by the standard as a valid construct. You should get a better compiler, or write a script to replace all occurences of #include MACRO_NAME with #include corresponding/header.h 2008/10/2 ccube [EMAIL PROTECTED] Hi, I want to use the FT2 library in my own programm. For testing, i use this sample code from the Freetype Project: #include ft2build.h #include FT_FREETYPE_H FT_Library library; ... error = FT_Init_FreeType( library ); if ( error ) { ... an error occurred during library initialization ... } When compiling, i always get an error like Invalid Preprocessor directive: #include FT_FREETYPE_H What is missing? My Systems are Ubutnu 8.04, 8.10, x64, x86 Everywhere the same error. Compiler is the standard ubuntu gcc compiler. Can anyone help me? Regards, Lukas -- View this message in context: http://www.nabble.com/Invalid-Preprocessor-directive%3A--include-FT_FREETYPE_H-tp19778956p19778956.html Sent from the Freetype - Dev mailing list archive at Nabble.com. ___ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel ___ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel
[ft-devel] Invalid Preprocessor directive: #include FT_FREETYPE_H
Hi, I want to use the FT2 library in my own programm. For testing, i use this sample code from the Freetype Project: #include ft2build.h #include FT_FREETYPE_H FT_Library library; ... error = FT_Init_FreeType( library ); if ( error ) { ... an error occurred during library initialization ... } When compiling, i always get an error like Invalid Preprocessor directive: #include FT_FREETYPE_H What is missing? My Systems are Ubutnu 8.04, 8.10, x64, x86 Everywhere the same error. Compiler is the standard ubuntu gcc compiler. Can anyone help me? Regards, Lukas -- View this message in context: http://www.nabble.com/Invalid-Preprocessor-directive%3A--include-FT_FREETYPE_H-tp19778956p19778956.html Sent from the Freetype - Dev mailing list archive at Nabble.com. ___ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] Invalid Preprocessor directive: #include FT_FREETYPE_H
On Thu, 2 Oct 2008 06:10:53 -0700 (PDT) ccube [EMAIL PROTECTED] wrote: #include ft2build.h #include FT_FREETYPE_H When compiling, i always get an error like Invalid Preprocessor directive: #include FT_FREETYPE_H What is missing? Have you reflected the output of freetype-config --cflags to your CFLAGS? Regards, mpsuzuki ___ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel