[GRASSLIST:9788] Re: NVIZ fails to build on an up-to-date Ubuntu Hoary (was: errors building today's NVIZ)
Dylan Beaudette
dylan.beaudette at gmail.com
Wed Jan 11 02:59:43 EST 2006
On Jan 10, 2006, at 7:52 PM, Glynn Clements wrote:
>
>>>> This worked for me:
>>>>
>>>> add
>>>> "-lXxf86vm"
>>>>
>>>> to the /nviz/src/Makefile
>>>
>>> Dylan,
>>>
>>> Sorry for my ignorance, but where do I exactly put it in this file?
>>
>> Should have been a bit more clear:
>>
>> I added it to the Makefile located at:
>>
>> altering the following line:
>> OGL_LIBS = $(OPENGLULIB) $(OPENGLLIB) $(OPENGL32) $(XLIB) -lXmu -lXext
>> $(MATHLIB) $(DLLIB) $(XDRLIB) $(XEXTRALIBS) $(XLIBPATH) -lXxf86vm
>>
>> See where I added '-lXxf86vm' at the end ?
>
> That setting is quite badly wrong. It should probably be:
>
> OGL_LIBS = $(XLIBPATH) $(OPENGLULIB) $(OPENGLLIB) $(OPENGL32) -lXmu
> -lXxf86vm -lXext $(XLIB) $(XEXTRALIBS) $(DLLIB) $(XDRLIB) $(MATHLIB)
>
> (all on one line).
>
> If you're using static libraries, the order in which libraries appear
> in the link command is signficant. Dependencies must come after the
> libraries which depend upon them; e.g. Xlib must come after all other
> X libraries, libXext must come after libXxf86vm, etc.
>
> --
> Glynn Clements <glynn at gclements.plus.com>
>
>
Thanks for the clarification. It is now apparent that I know enough
about these things to get me into serious trouble!
Cheers!
--
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341
More information about the grass-user
mailing list