compilation errors, /usr/bin/ld: cannot find -lXi, and so on

View: New views
3 Messages — Rating Filter:   Alert me  

Parent Message unknown compilation errors, /usr/bin/ld: cannot find -lXi, and so on

by jiasheng diao :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi, All:

     On a linux system I am compiling Mesa 7.2 including the three files: MesaDemos-7.2.tar  MesaGLUT-7.2.tar  MesaLib-7.2.tar.
     uname -a gives me the following information on my system.
     Linux  2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:14 EST 2007 x86_64 x86_64 x86_64 GNU/Linux
     I used "make linux-x86-64" for compilation.
     The following is the end of compilation output. What should I do next? Do my computer miss some library or the library exists somewhere else which can not be found by gcc? Thanks.

Sincerely,
Diao Jiasheng
----------------------------------------------------------------------------------------------------------------------------------------------------
 /bin/sh ../../../bin/mklib -o glut -linker 'gcc' -ldflags '' \
                -major 3 -minor 7 -patch 1 \
                 -install ../../../lib64 \
                -id /usr/local/lib64/libglut.3.dylib \
                -L../../../lib64 -lGLU -lGL -L/usr/X11R6/lib64 -lX11 -lXmu -lXi -lm glut_8x13.o glut_9x15.o glut_bitmap.o glut_bwidth.o glut_cindex.o glut_cmap.o glut_cursor.o glut_dials.o glut_dstr.o glut_event.o glut_ext.o glut_fcb.o glut_fullscrn.o glut_gamemode.o glut_get.o glut_glxext.o glut_hel10.o glut_hel12.o glut_hel18.o glut_init.o glut_input.o glut_joy.o glut_key.o glut_keyctrl.o glut_keyup.o glut_menu.o glut_menu2.o glut_mesa.o glut_modifier.o glut_mroman.o glut_overlay.o glut_roman.o glut_shapes.o glut_space.o glut_stroke.o glut_swap.o glut_swidth.o glut_tablet.o glut_teapot.o glut_tr10.o glut_tr24.o glut_util.o glut_vidresize.o glut_warp.o glut_win.o glut_winmisc.o layerutil.o
mklib: Making Linux shared library:  libglut.so.3.7.1
/usr/bin/ld: cannot find -lXi
collect2: ld returned 1 exit status
mklib: Installing libglut.so.3.7.1 libglut.so.3 libglut.so in ../../../lib64
mv: cannot stat `libglut.so.3.7.1': No such file or directory
make[3]: *** [../../../lib64/libglut.so] Error 1
make[3]: Leaving directory `/home/diao/Mesa/Mesa-7.2/src/glut/glx'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/home/diao/Mesa/Mesa-7.2/src'
make[1]: *** [default] Error 1
make[1]: Leaving directory `/home/diao/Mesa/Mesa-7.2'
make: *** [linux-x86-64] Error 2



Stay up to date on your PC, the Web, and your mobile phone with Windows Live. See Now
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mesa3d-users mailing list
Mesa3d-users@...
https://lists.sourceforge.net/lists/listinfo/mesa3d-users

Re: compilation errors, /usr/bin/ld: cannot find -lXi, and so on

by FD Cami :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Diao,

A "yum provides libXi" on my EL5 gives me the following result :
libXi.i386 : X.Org X11 libXi runtime library
libXi.x86_64 : X.Org X11 libXi runtime library

By the way, 2.6.18-8.el5 is completely outdated...

Best,

Francois


On Sun, 5 Oct 2008 14:45:54 -0400
jiasheng diao <diaojs@...> wrote:

> Hi, All:
>
>      On a linux system I am compiling Mesa 7.2 including the three files: MesaDemos-7.2.tar  MesaGLUT-7.2.tar  MesaLib-7.2.tar.
>      uname -a gives me the following information on my system.
>      Linux  2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:14 EST 2007 x86_64 x86_64 x86_64 GNU/Linux
>      I used "make linux-x86-64" for compilation.
>    
> The following is the end of compilation output. What should I do next?
> Do my computer miss some library or the library exists somewhere else
> which can not be found by gcc? Thanks.
>
> Sincerely,
> Diao Jiasheng
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>  /bin/sh ../../../bin/mklib -o glut -linker 'gcc' -ldflags '' \
>                 -major 3 -minor 7 -patch 1 \
>                  -install ../../../lib64 \
>                 -id /usr/local/lib64/libglut.3.dylib \
>                
> -L../../../lib64 -lGLU -lGL -L/usr/X11R6/lib64 -lX11 -lXmu -lXi -lm
> glut_8x13.o glut_9x15.o glut_bitmap.o glut_bwidth.o glut_cindex.o
> glut_cmap.o glut_cursor.o glut_dials.o glut_dstr.o glut_event.o
> glut_ext.o glut_fcb.o glut_fullscrn.o glut_gamemode.o glut_get.o
> glut_glxext.o glut_hel10.o glut_hel12.o glut_hel18.o glut_init.o
> glut_input.o glut_joy.o glut_key.o glut_keyctrl.o glut_keyup.o
> glut_menu.o glut_menu2.o glut_mesa.o glut_modifier.o glut_mroman.o
> glut_overlay.o glut_roman.o glut_shapes.o glut_space.o glut_stroke.o
> glut_swap.o glut_swidth.o glut_tablet.o glut_teapot.o glut_tr10.o
> glut_tr24.o glut_util.o glut_vidresize.o glut_warp.o glut_win.o
> glut_winmisc.o layerutil.o
> mklib: Making Linux shared library:  libglut.so.3.7.1
> /usr/bin/ld: cannot find -lXi
> collect2: ld returned 1 exit status
> mklib: Installing libglut.so.3.7.1 libglut.so.3 libglut.so in ../../../lib64
> mv: cannot stat `libglut.so.3.7.1': No such file or directory
> make[3]: *** [../../../lib64/libglut.so] Error 1
> make[3]: Leaving directory `/home/diao/Mesa/Mesa-7.2/src/glut/glx'
> make[2]: *** [subdirs] Error 1
> make[2]: Leaving directory `/home/diao/Mesa/Mesa-7.2/src'
> make[1]: *** [default] Error 1
> make[1]: Leaving directory `/home/diao/Mesa/Mesa-7.2'
> make: *** [linux-x86-64] Error 2
>
>
> _________________________________________________________________
> Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
> http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mesa3d-users mailing list
Mesa3d-users@...
https://lists.sourceforge.net/lists/listinfo/mesa3d-users

Re: compilation errors, /usr/bin/ld: cannot find -lXi, and so on

by jiasheng diao :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,  Cami:

    I am new to Linux. I typed two commands "find" and "yum" on my system. The following is the output. It seems to me that I have the libraries installed, but the mesa compiling does not recognize the name of the library or which directory the library resides in. Thanks.

Sincerely,
Diao Jiasheng
 
[root@ lib]#  find / -name "libXi*"
/usr/lib64/libXinerama.so.1.0.0
/usr/lib64/libXi.so.6
/usr/lib64/libXi.so.6.0.0
/usr/lib64/libXinerama.so.1
/usr/share/doc/libXinerama-1.0.1
/usr/share/doc/libXi-1.0.1
/usr/lib/libXinerama.so.1.0.0
/usr/lib/libXi.so.6
/usr/lib/libXi.so.6.0.0
/usr/lib/libXinerama.so.1
/var/cache/yum/rhel-x86_64-client-workstation-5/headers/libXinerama-devel-1.0.1-2.1.x86_64.hdr
/var/cache/yum/rhel-x86_64-client-workstation-5/headers/libXi-devel-1.0.1-3.1.x86_64.hdr


[root@ lib]# yum provides libXi
Loading "rhnplugin" plugin
rhel-x86_64-client-workst 100% |=========================| 1.4 kB    00:00    
rhel-x86_64-client-5      100% |=========================| 1.4 kB    00:00    
libXi.i386 : X.Org X11 libXi runtime library

libXi.x86_64 : X.Org X11 libXi runtime library

libXi.i386 : X.Org X11 libXi runtime library
libXi.x86_64 : X.Org X11 libXi runtime library



----------------------------------------

> Date: Sun, 5 Oct 2008 21:08:05 +0200
> From: francois.cami@...
> To: diaojs@...
> CC: mesa3d-users@...
> Subject: Re: [Mesa3d-users] compilation errors, /usr/bin/ld: cannot find -lXi, and so on
>
>
> Hi Diao,
>
> A "yum provides libXi" on my EL5 gives me the following result :
> libXi.i386 : X.Org X11 libXi runtime library
> libXi.x86_64 : X.Org X11 libXi runtime library
>
> By the way, 2.6.18-8.el5 is completely outdated...
>
> Best,
>
> Francois
>
>
> On Sun, 5 Oct 2008 14:45:54 -0400
> jiasheng diao  wrote:
>
>> Hi, All:
>>
>>      On a linux system I am compiling Mesa 7.2 including the three files: MesaDemos-7.2.tar  MesaGLUT-7.2.tar  MesaLib-7.2.tar.
>>      uname -a gives me the following information on my system.
>>      Linux  2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:14 EST 2007 x86_64 x86_64 x86_64 GNU/Linux
>>      I used "make linux-x86-64" for compilation.
>>    
>> The following is the end of compilation output. What should I do next?
>> Do my computer miss some library or the library exists somewhere else
>> which can not be found by gcc? Thanks.
>>
>> Sincerely,
>> Diao Jiasheng
>> ----------------------------------------------------------------------------------------------------------------------------------------------------
>>  /bin/sh ../../../bin/mklib -o glut -linker 'gcc' -ldflags '' \
>>                 -major 3 -minor 7 -patch 1 \
>>                  -install ../../../lib64 \
>>                 -id /usr/local/lib64/libglut.3.dylib \
>>                
>> -L../../../lib64 -lGLU -lGL -L/usr/X11R6/lib64 -lX11 -lXmu -lXi -lm
>> glut_8x13.o glut_9x15.o glut_bitmap.o glut_bwidth.o glut_cindex.o
>> glut_cmap.o glut_cursor.o glut_dials.o glut_dstr.o glut_event.o
>> glut_ext.o glut_fcb.o glut_fullscrn.o glut_gamemode.o glut_get.o
>> glut_glxext.o glut_hel10.o glut_hel12.o glut_hel18.o glut_init.o
>> glut_input.o glut_joy.o glut_key.o glut_keyctrl.o glut_keyup.o
>> glut_menu.o glut_menu2.o glut_mesa.o glut_modifier.o glut_mroman.o
>> glut_overlay.o glut_roman.o glut_shapes.o glut_space.o glut_stroke.o
>> glut_swap.o glut_swidth.o glut_tablet.o glut_teapot.o glut_tr10.o
>> glut_tr24.o glut_util.o glut_vidresize.o glut_warp.o glut_win.o
>> glut_winmisc.o layerutil.o
>> mklib: Making Linux shared library:  libglut.so.3.7.1
>> /usr/bin/ld: cannot find -lXi
>> collect2: ld returned 1 exit status
>> mklib: Installing libglut.so.3.7.1 libglut.so.3 libglut.so in ../../../lib64
>> mv: cannot stat `libglut.so.3.7.1': No such file or directory
>> make[3]: *** [../../../lib64/libglut.so] Error 1
>> make[3]: Leaving directory `/home/diao/Mesa/Mesa-7.2/src/glut/glx'
>> make[2]: *** [subdirs] Error 1
>> make[2]: Leaving directory `/home/diao/Mesa/Mesa-7.2/src'
>> make[1]: *** [default] Error 1
>> make[1]: Leaving directory `/home/diao/Mesa/Mesa-7.2'
>> make: *** [linux-x86-64] Error 2
>>
>>
>> _________________________________________________________________
>> Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
>> http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/

_________________________________________________________________
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mesa3d-users mailing list
Mesa3d-users@...
https://lists.sourceforge.net/lists/listinfo/mesa3d-users
LightInTheBox - Buy quality products at wholesale price!