On 01-05-2015 15:31, Bruce Dubbs wrote:
> Fernando de Oliveira wrote:
>> On 30-04-2015 23:24, Bruce Dubbs wrote:
>>> I think we are missing a dependency for freeglut.  At least it wouldn't
>>> build for me without glu using the current instructions.  I think glu is
>>> only used for demos and may be able to be disabled, but we don't mention
>>> it at all.
>>>
>>> Can someone confirm?
>>
>> It used to have glu as required.
>>
>> Removed at r15678.
>> Timestamp:
>>      21 Mar 2015 18:38:26 (6 weeks ago)
>> Author:
>>      bdubbs
>>
>>
>> But I found moments ago in "cmake . -LH":
>>
>> // Be a replacement for GLUT
>> FREEGLUT_REPLACE_GLUT:BOOL=ON
> 
> I'm starting to get concerned about my memory.  I don't remember doing
> that at all.  :(
> 
> Checking the other options, I suppose we should use
> DFREEGLUT_BUILD_STATIC_LIBS=OFF too.
> 
> I removed GLU and tried:
> 
> cmake -DCMAKE_INSTALL_PREFIX=/usr \
>       -DCMAKE_BUILD_TYPE=Release  \
>       -DFREEGLUT_BUILD_STATIC_LIBS=OFF \
>       -DFREEGLUT_REPLACE_GLUT=ON \
>       -DFREEGLUT_BUILD_DEMOS=OFF \
>       -DFREEGLUT_GLES=ON \
>       ..
> 
> And it built without GLU.  Changing DEMOS to ON crashed at 77% through
> the build.  Reinstalling GLU, it still failed.  Also turning off GLES
> allowed the build to complete, but no demos were installed.  It appears
> that if the demos are desired, they need to be copied manually:
> 
> cp bin/* /usr/bin/  (or some other location)
> 
> I ran the demos and I do not recommend that they be installed.  They can
> be run in place to see what they do, but they are very simple and do not
> add value to a system.
> 
> If we agree, I'll update the book to recommend GLU, turn off building
> the static lib, and turn off demos.
> 
> So what we end up with is:
> 
> cmake -DCMAKE_INSTALL_PREFIX=/usr \
>       -DCMAKE_BUILD_TYPE=Release  \
>       -DFREEGLUT_BUILD_STATIC_LIBS=OFF \
>       -DFREEGLUT_BUILD_DEMOS=OFF \

Yes, please. Sounds good to me.

On the other hand, if you choose FREEGLUT_REPLACE_GLUT=ON, does it mean
we could archive freeglut?

Does it replace the freeglut in the system? If we keep freeglut but it
can be overwritten, some warning is necessary. What do you think?


-- 
[]s,
Fernando
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to