> You either do not have Imlib2 installed
> or you have it installed somewhere where
> the dynamic linker can not find it, look
> in /etc/ld.so.conf and if the lib
> directory where Imlib2 is installed is
> not listed in that file, add it then run
> /sbin/ldconfig then retry.
AFAIK ld.so.conf/.cache has nothing to do with the actual
linking, it's used by loader during program execution.
Both above problems can be solved by adding gcc parameters
(maybe use CFLAGS environment variable?):
-I/path/to/imlib2/includes and -L/path/to/imlib2/libraries.
So, let's suppose imlib2 is installed with PREFIX=/usr/local,
then -I/usr/local/include -L/usr/local/lib should do the job.
[root@localhost Imlib2-Perl-1.0.0]# make
gcc -c -I/usr/local/include -I/usr/X11R6/include -I/usr/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -march=i386 -mcpu=i686 -g -DVERSION=\"0.02\" -DXS_VERSION=\"0.02\" -fPIC "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" Imlib2.c
Imlib2.xs:5:20: Imlib2.h: No such file or directory
In file included from Imlib2.xs:6:
Imlib2Types.h:2: parse error before '*' token
Imlib2Types.h:2: warning: data definition has no type or storage class
Imlib2Types.h:8: parse error before '*' token
Imlib2Types.h:8: warning: data definition has no type or storage class
Imlib2Types.h:9: parse error before '*' token
Imlib2Types.h:9: warning: data definition has no type or storage class
Imlib2Types.h:10: parse error before '*' token
Imlib2Types.h:10: warning: data definition has no type or storage class
Imlib2.c: In function `XS_Imlib2_load_image':
Imlib2.c:26: parse error before "RETVAL"
Imlib2.xs:14: `RETVAL' undeclared (first use in this function)
Imlib2.xs:14: (Each undeclared identifier is reported only once
Imlib2.xs:14: for each function it appears in.)
Imlib2.c: In function `XS_Imlib2_create_image_using_data':
Imlib2.c:45: `DATA32' undeclared (first use in this function)
Imlib2.c:45: `data' undeclared (first use in this function)
Imlib2.c:46: parse error before "RETVAL"
Imlib2.c:50: parse error before ')' token
Imlib2.xs:26: `RETVAL' undeclared (first use in this function)
Imlib2.c: In function `XS_Imlib2_image_get_data':
Imlib2.c:73: `DATA32' undeclared (first use in this function)
Imlib2.c:73: `RETVAL' undeclared (first use in this function)
Imlib2.c: In function `XS_Imlib2_image_put_back_data':
Imlib2.c:90: `DATA32' undeclared (first use in this function)
Imlib2.c:90: `data' undeclared (first use in this function)
Imlib2.c:91: `RETVAL' undeclared (first use in this function)
Imlib2.c:95: parse error before ')' token
Imlib2.c: In function `XS_Imlib2_image_get_data_for_reading_only':
Imlib2.c:113: `DATA32' undeclared (first use in this function)
Imlib2.c:113: `RETVAL' undeclared (first use in this function)
Imlib2.c: In function `XS_Imlib2_set_context':
Imlib2.c:145: parse error before "image"
Imlib2.c:149: `image' undeclared (first use in this function)
Imlib2.c:149: called object is not a function
Imlib2.c: In function `XS_Imlib2_blend_image_onto_image':
Imlib2.c:195: parse error before "source_image"
Imlib2.c:208: `source_image' undeclared (first use in this function)
Imlib2.c:208: called object is not a function
Imlib2.xs: In function `XS_Imlib2_get_filename':
Imlib2.xs:108: warning: assignment makes pointer from integer without a cast
Imlib2.c: In function `XS_Imlib2_create_image':
Imlib2.c:279: parse error before "RETVAL"
Imlib2.xs:117: `RETVAL' undeclared (first use in this function)
Imlib2.c: In function `XS_Imlib2_create_image_from_drawable':
Imlib2.c:302: parse error before "RETVAL"
Imlib2.xs:130: `RETVAL' undeclared (first use in this function)
Imlib2.c: In function `XS_Imlib2_clone_image':
Imlib2.c:634: parse error before "RETVAL"
Imlib2.xs:276: `RETVAL' undeclared (first use in this function)
Imlib2.c: In function `XS_Imlib2_create_cropped_image':
Imlib2.c:655: parse error before "RETVAL"
Imlib2.xs:287: `RETVAL' undeclared (first use in this function)
Imlib2.c: In function `XS_Imlib2_create_cropped_scaled_image':
Imlib2.c:678: parse error before "RETVAL"
Imlib2.xs:300: `RETVAL' undeclared (first use in this function)
Imlib2.c: In function `XS_Imlib2_context_set_font':
Imlib2.c:824: parse error before "font"
Imlib2.c:828: `font' undeclared (first use in this function)
Imlib2.c:828: called object is not a function
Imlib2.c: In function `XS_Imlib2_context_get_font':
Imlib2.c:846: parse error before "RETVAL"
Imlib2.xs:361: `RETVAL' undeclared (first use in this function)
Imlib2.c: In function `XS_Imlib2_load_font':
Imlib2.c:864: parse error before "RETVAL"
Imlib2.xs:369: `RETVAL' undeclared (first use in this function)
Imlib2.c: In function `XS_Imlib2_context_set_color_modifier':
Imlib2.c:966: parse error before "modifier"
Imlib2.c:970: `modifier' undeclared (first use in this function)
Imlib2.c:970: called object is not a function
Imlib2.c: In function `XS_Imlib2_context_get_color_modifier':
Imlib2.c:988: parse error before "RETVAL"
Imlib2.xs:422: `RETVAL' undeclared (first use in this function)
Imlib2.c: In function `XS_Imlib2_create_color_modifier':
Imlib2.c:1005: parse error before "RETVAL"
Imlib2.xs:429: `RETVAL' undeclared (first use in this function)
Imlib2.c: In function `XS_Imlib2_copy_alpha_to_image':
Imlib2.c:1181: parse error before "image_source"
Imlib2.c:1187: `image_source' undeclared (first use in this function)
Imlib2.c:1187: called object is not a function
Imlib2.c: In function `XS_Imlib2_copy_alpha_rectangle_to_image':
Imlib2.c:1205: parse error before "image_source"
Imlib2.c:1215: `image_source' undeclared (first use in this function)
Imlib2.c:1215: called object is not a function
Imlib2.c: In function `XS_Imlib2_context_set_color_range':
Imlib2.c:1309: parse error before "color_range"
Imlib2.c:1313: `color_range' undeclared (first use in this function)
Imlib2.c:1313: called object is not a function
Imlib2.c: In function `XS_Imlib2_get_color_range':
Imlib2.c:1331: parse error before "RETVAL"
Imlib2.c: In function `XS_Imlib2_create_color_range':
Imlib2.c:1346: parse error before "RETVAL"
Imlib2.xs:576: `RETVAL' undeclared (first use in this function)
make: *** [Imlib2.o] Error 1
yeah... i really have no idea what it is, but that's what i get, any idea how to fix it?
> I have some problems installing the
> Imlib2-Perl module:
>
> [root@desarrollo
> Imlib2-Perl-1.0.0]#make
%
> LD_RUN_PATH="/usr/lib:/usr/X11R6/lib"
> gcc -o blib/arch/auto/Imlib2/Imlib2.so
> -shared -L/usr/local/lib Imlib2.o
> -L/usr/local/lib -L/usr/lib
> -L/usr/X11R6/lib -lImlib2 -lXext -lX11
> -ljpeg -lttf -lm -ldl
> /usr/bin/ld: cannot find -lImlib2
> collect2: ld returned 1 exit status
> make: ***
> [blib/arch/auto/Imlib2/Imlib2.so] Error
> 1
>
You either do not have Imlib2 installed or you have it installed somewhere where the dynamic linker can not find it, look in /etc/ld.so.conf and if the lib directory where Imlib2 is installed is not listed in that file, add it then run /sbin/ldconfig then retry.
- All comments
Recent commentsRe: Imlib2-Perl installation problem
> You either do not have Imlib2 installed
> or you have it installed somewhere where
> the dynamic linker can not find it, look
> in /etc/ld.so.conf and if the lib
> directory where Imlib2 is installed is
> not listed in that file, add it then run
> /sbin/ldconfig then retry.
AFAIK ld.so.conf/.cache has nothing to do with the actual
linking, it's used by loader during program execution.
Both above problems can be solved by adding gcc parameters
(maybe use CFLAGS environment variable?):
-I/path/to/imlib2/includes and -L/path/to/imlib2/libraries.
So, let's suppose imlib2 is installed with PREFIX=/usr/local,
then -I/usr/local/include -L/usr/local/lib should do the job.
installation errors
i get this error:
[root@localhost Imlib2-Perl-1.0.0]# make
gcc -c -I/usr/local/include -I/usr/X11R6/include -I/usr/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -march=i386 -mcpu=i686 -g -DVERSION=\"0.02\" -DXS_VERSION=\"0.02\" -fPIC "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" Imlib2.c
Imlib2.xs:5:20: Imlib2.h: No such file or directory
In file included from Imlib2.xs:6:
Imlib2Types.h:2: parse error before '*' token
Imlib2Types.h:2: warning: data definition has no type or storage class
Imlib2Types.h:8: parse error before '*' token
Imlib2Types.h:8: warning: data definition has no type or storage class
Imlib2Types.h:9: parse error before '*' token
Imlib2Types.h:9: warning: data definition has no type or storage class
Imlib2Types.h:10: parse error before '*' token
Imlib2Types.h:10: warning: data definition has no type or storage class
Imlib2.c: In function `XS_Imlib2_load_image':
Imlib2.c:26: parse error before "RETVAL"
Imlib2.xs:14: `RETVAL' undeclared (first use in this function)
Imlib2.xs:14: (Each undeclared identifier is reported only once
Imlib2.xs:14: for each function it appears in.)
Imlib2.c: In function `XS_Imlib2_create_image_using_data':
Imlib2.c:45: `DATA32' undeclared (first use in this function)
Imlib2.c:45: `data' undeclared (first use in this function)
Imlib2.c:46: parse error before "RETVAL"
Imlib2.c:50: parse error before ')' token
Imlib2.xs:26: `RETVAL' undeclared (first use in this function)
Imlib2.c: In function `XS_Imlib2_image_get_data':
Imlib2.c:73: `DATA32' undeclared (first use in this function)
Imlib2.c:73: `RETVAL' undeclared (first use in this function)
Imlib2.c: In function `XS_Imlib2_image_put_back_data':
Imlib2.c:90: `DATA32' undeclared (first use in this function)
Imlib2.c:90: `data' undeclared (first use in this function)
Imlib2.c:91: `RETVAL' undeclared (first use in this function)
Imlib2.c:95: parse error before ')' token
Imlib2.c: In function `XS_Imlib2_image_get_data_for_reading_only':
Imlib2.c:113: `DATA32' undeclared (first use in this function)
Imlib2.c:113: `RETVAL' undeclared (first use in this function)
Imlib2.c: In function `XS_Imlib2_set_context':
Imlib2.c:145: parse error before "image"
Imlib2.c:149: `image' undeclared (first use in this function)
Imlib2.c:149: called object is not a function
Imlib2.c: In function `XS_Imlib2_blend_image_onto_image':
Imlib2.c:195: parse error before "source_image"
Imlib2.c:208: `source_image' undeclared (first use in this function)
Imlib2.c:208: called object is not a function
Imlib2.xs: In function `XS_Imlib2_get_filename':
Imlib2.xs:108: warning: assignment makes pointer from integer without a cast
Imlib2.c: In function `XS_Imlib2_create_image':
Imlib2.c:279: parse error before "RETVAL"
Imlib2.xs:117: `RETVAL' undeclared (first use in this function)
Imlib2.c: In function `XS_Imlib2_create_image_from_drawable':
Imlib2.c:302: parse error before "RETVAL"
Imlib2.xs:130: `RETVAL' undeclared (first use in this function)
Imlib2.c: In function `XS_Imlib2_clone_image':
Imlib2.c:634: parse error before "RETVAL"
Imlib2.xs:276: `RETVAL' undeclared (first use in this function)
Imlib2.c: In function `XS_Imlib2_create_cropped_image':
Imlib2.c:655: parse error before "RETVAL"
Imlib2.xs:287: `RETVAL' undeclared (first use in this function)
Imlib2.c: In function `XS_Imlib2_create_cropped_scaled_image':
Imlib2.c:678: parse error before "RETVAL"
Imlib2.xs:300: `RETVAL' undeclared (first use in this function)
Imlib2.c: In function `XS_Imlib2_context_set_font':
Imlib2.c:824: parse error before "font"
Imlib2.c:828: `font' undeclared (first use in this function)
Imlib2.c:828: called object is not a function
Imlib2.c: In function `XS_Imlib2_context_get_font':
Imlib2.c:846: parse error before "RETVAL"
Imlib2.xs:361: `RETVAL' undeclared (first use in this function)
Imlib2.c: In function `XS_Imlib2_load_font':
Imlib2.c:864: parse error before "RETVAL"
Imlib2.xs:369: `RETVAL' undeclared (first use in this function)
Imlib2.c: In function `XS_Imlib2_context_set_color_modifier':
Imlib2.c:966: parse error before "modifier"
Imlib2.c:970: `modifier' undeclared (first use in this function)
Imlib2.c:970: called object is not a function
Imlib2.c: In function `XS_Imlib2_context_get_color_modifier':
Imlib2.c:988: parse error before "RETVAL"
Imlib2.xs:422: `RETVAL' undeclared (first use in this function)
Imlib2.c: In function `XS_Imlib2_create_color_modifier':
Imlib2.c:1005: parse error before "RETVAL"
Imlib2.xs:429: `RETVAL' undeclared (first use in this function)
Imlib2.c: In function `XS_Imlib2_copy_alpha_to_image':
Imlib2.c:1181: parse error before "image_source"
Imlib2.c:1187: `image_source' undeclared (first use in this function)
Imlib2.c:1187: called object is not a function
Imlib2.c: In function `XS_Imlib2_copy_alpha_rectangle_to_image':
Imlib2.c:1205: parse error before "image_source"
Imlib2.c:1215: `image_source' undeclared (first use in this function)
Imlib2.c:1215: called object is not a function
Imlib2.c: In function `XS_Imlib2_context_set_color_range':
Imlib2.c:1309: parse error before "color_range"
Imlib2.c:1313: `color_range' undeclared (first use in this function)
Imlib2.c:1313: called object is not a function
Imlib2.c: In function `XS_Imlib2_get_color_range':
Imlib2.c:1331: parse error before "RETVAL"
Imlib2.c: In function `XS_Imlib2_create_color_range':
Imlib2.c:1346: parse error before "RETVAL"
Imlib2.xs:576: `RETVAL' undeclared (first use in this function)
make: *** [Imlib2.o] Error 1
yeah... i really have no idea what it is, but that's what i get, any idea how to fix it?
Re: Imlib2-Perl installation problem
> I have some problems installing the
> Imlib2-Perl module:
>
> [root@desarrollo
> Imlib2-Perl-1.0.0]#make
%
> LD_RUN_PATH="/usr/lib:/usr/X11R6/lib"
> gcc -o blib/arch/auto/Imlib2/Imlib2.so
> -shared -L/usr/local/lib Imlib2.o
> -L/usr/local/lib -L/usr/lib
> -L/usr/X11R6/lib -lImlib2 -lXext -lX11
> -ljpeg -lttf -lm -ldl
> /usr/bin/ld: cannot find -lImlib2
> collect2: ld returned 1 exit status
> make: ***
> [blib/arch/auto/Imlib2/Imlib2.so] Error
> 1
>
You either do not have Imlib2 installed or you have it installed somewhere where the dynamic linker can not find it, look in /etc/ld.so.conf and if the lib directory where Imlib2 is installed is not listed in that file, add it then run /sbin/ldconfig then retry.
>
> Any help is welcome.
Imlib2-Perl installation problem
I have some problems installing the Imlib2-Perl module:
[root@desarrollo Imlib2-Perl-1.0.0]#make
LD_RUN_PATH="/usr/lib:/usr/X11R6/lib" gcc -o blib/arch/auto/Imlib2/Imlib2.so -shared -L/usr/local/lib Imlib2.o -L/usr/local/lib -L/usr/lib -L/usr/X11R6/lib -lImlib2 -lXext -lX11 -ljpeg -lttf -lm -ldl
/usr/bin/ld: cannot find -lImlib2
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/Imlib2/Imlib2.so] Error 1
Any help is welcome.