TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ANSSI SAARI
from: BOB PROHASKA
date: 2020-10-02 03:38:00
subject: Re: brl-cad on a Pi4?

Anssi Saari  wrote:
>
> Looks like I managed to build something that at least starts up. Not
> everything seems to work, I tried a simple tutorial but when it came
> time to ray trace some simple objects I got error messages only.

Looks to me like you've got it. With your instructions and some notes in
doc/README.Linux, Revision: 77316 compiled, made benchmarks, runs and
raytraces. The benchmarks report:


These numbers seem to indicate that this machine is approximately 7234 times
faster than the reference machine being used for comparison, a VAX 11/780
running 4.3 BSD named VGR.  These results are in fact approximately 3.86
orders of magnitude faster than the reference.

My order of actions was not systematic, so it's not clear exactly
which actions were necessary. The doc/README.Linux notes say:

Ubuntu/Debian
-------------

Users of Ubuntu, Debian, and other similar packaging distributions of
Linux will need to ensure that a few essentials are in place before
you will be able to compile BRL-CAD.

Following the build instructions in the INSTALL file.  You will need:

gcc (6+, e.g. 6.0.3)
g++ (6+, e.g. 6.0.3)
make (e.g. gnu make 3.8.0)
cmake (3.0.2 or newer)

All three of those have implicit dependencies on other packages.

You will also want to make sure that you have the X11 development
headers installed:

  apt-get install xserver-xorg-dev libx11-dev libxi-dev libxext-dev

Other development packages needed to build on Debian-based platforms:

  for building the Tcl/Tk libraries:  libfontconfig-dev

  for OpenGL: libglu1-mesa-dev

It seems possible at least some of these are redundant, but I can't
tell which..... All installed without any obvious complaints.

There are still no updates/replies to the support request on SourceForge at
https://sourceforge.net/p/brlcad/support-requests/123/
A followup from you (since you fixed it) or me (if you don't want to bother)
might help things along.

With my thanks!

bob prohaska



:My
> cmake options were:
>
> cmake  -DBRLCAD_ENABLE_STRICT=NO
-DBRLCAD_ENABLE_COMPILER_WARNINGS=NO -DBRLCAD_BUNDLED_LIBS=AUTO
-DCMAKE_BUILD_TYPE=Release
>
> To make it detect X11 and OpenGL I had to add
> /usr/lib/arm-linux-gnueabihf in two files, FindX11.cmake and
> FindGL.cmake. Here's the diffs:
>
> $ diff -u FindX11.cmake.org FindX11.cmake
> --- FindX11.cmake.org   2020-09-30 17:12:37.550501468 +0300
> +++ FindX11.cmake       2020-09-30 21:43:24.734950303 +0300
> @@ -169,7 +169,7 @@
>        set(64BIT_DIRS ${64BIT_DIRS} /usr/lib/X11 /usr/lib)
>      endif(EXISTS "/usr/lib32" OR NOT EXISTS "/usr/lib64")
>    else(SEARCH_64BIT)
> -    set(32BIT_DIRS "/usr/lib32/X11;/usr/lib32;/usr/lib/i386-linux-gnu")
> +    set(32BIT_DIRS
"/usr/lib32/X11;/usr/lib32;/usr/lib/i386-linux-gnu;/usr/lib/arm-linux-gnueabihf
")
>      if(EXISTS "/usr/lib64" OR NOT EXISTS "/usr/lib32")
>        set(32BIT_DIRS ${32BIT_DIRS} /usr/lib/X11 /usr/lib)
>      endif(EXISTS "/usr/lib64" OR NOT EXISTS "/usr/lib32")
>
> $ diff -u FindGL.cmake.org FindGL.cmake
> --- FindGL.cmake.org    2020-09-30 17:18:55.059802235 +0300
> +++ FindGL.cmake        2020-09-30 21:42:35.315081010 +0300
> @@ -172,7 +172,7 @@
>    if(SEARCH_64BIT)
>      set(64BIT_DIRS "/usr/lib64/X11;/usr/lib64;/usr/lib/x86_64-linux-gnu")
>    else(SEARCH_64BIT)
> -    set(32BIT_DIRS "/usr/lib/X11;/usr/lib;/usr/lib/i386-linux-gnu")
> +    set(32BIT_DIRS
"/usr/lib/X11;/usr/lib;/usr/lib/i386-linux-gnu;/usr/lib/arm-linux-gnueabihf")
>    endif(SEARCH_64BIT)
>
>    set(OPENGL_LIB_SEARCH_PATH

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.