Hey! I have a problem: I'm trying to draw an annotation for the GCI task so now I'm just trying to run the same example as in https://brlcad.org/wiki/Annot and when I ray trace it I use the command "rt -s2048 -o annot.png" but when I open the annot.png file it's only a black screen... Can anyone help me? Thanks!
annotations do not occupy volume, so there's nothing to ray trace
they only show up in the 3D geometry window
And how can I see the 3D geometry window with the command line?
which tool are you using?
which gui?
the mac terminal
no I mean what program did you run? mged? archer? something else?
mged
is this an mged you compiled?
yes
ah, and so when you run mged, it doesn't display a GUI for you?
No. It should?
yep
so what probably happened is you don't have X11 installed, so it turned off all the GUI aspects of mged
install this: https://www.xquartz.org
recompile and you should have the mged GUI
Now that you tell it I think the first time I compiled there was a GUI displayed. And I have X11 installed
I don't know what I'm doing different
when you run "mged -c" what does it show you?
should be an Attach... prompt
nu and maybe other options
It doesn't show anything more than mged
that doesn't tell me anything useful -- show me :)
for me, it shows a version number with a wealth of developer info and an attach prompt:
agua:rel-7.24.0 morrison$ DYLD_FALLBACK_LIBRARY_PATH=lib bin/mged -c
BRL-CAD Release 7.24.0 Geometry Editor (MGED)
Fri, 14 Jun 2013 00:42:52 -0400, Compilation 0
morrison@sushi.local:/usr/brlcad/rel-7.24.0
attach (nu|X|ogl)[nu]?
Then it's the same as you :)
it's not
you're not reading what it's showing you
so that tells me the mged you have definitely does not have the GUI compiled into it
your attach prompt says you have only 'nu' and 'txt' .. notice how mine is different
also tells me that you compiled that about 3 weeks ago late at night ;)
Oh yes I haven't noticed! What does it change?
And you compiled it at 00:42 :p
that's a binary app bundle I hijacked so double-clicking on Mac works, but yeah, I tend to work late :)
what it means is that you should svn up and recompile
I checked the screenshot I uploaded for the 'compile from source' task and I had the same last line as now
What do you mean by svn up?
ah, yes - also looks like you probably didn't compile from svn source
you should get an svn checkout
open up terminal and get a checkout with this:
svn co https://svn.code.sf.net/p/brlcad/code/brlcad/trunk brlcad.trunk
that will get the latest sources into a brlcad.trunk directory
from there, you can cd brlcad.trunk; mkdir .build; cd .build; cmake .. -DCMAKE_INSTALL_PREFIX=/opt/brlcad; make -j4
then you should have a shiny new X11-enabled mged in bin/mged -- but check the output after the cmake step to make sure X11 is enabled
make -j4 is currently running
did you check the summary after cmake ran?
Yes and there was a line "X11 support (optional) ................: ON"
great
Also what is the difference between mged and archer?
I got several fatal erros
fatal error: error in backend: IO failure on output stream.
make[2]: [src/other/gdal/port/CMakeFiles/gdal_cpl_obj.dir/cpl_conv.cpp.o] Error 1
make[1]: [src/other/gdal/port/CMakeFiles/gdal_cpl_obj.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
fatal error: error in backend: IO failure on output stream.
make[2]: [src/librt/CMakeFiles/librt-obj.dir/primitives/dsp/dsp_brep.cpp.o] Error 1
make[1]: [src/librt/CMakeFiles/librt-obj.dir/all] Error 2
fatal error: error in backend: IO failure on output stream.
make[2]: [src/other/proj-4/src/CMakeFiles/proj.dir/PJ_poly.c.o] Error 1
make[1]: [src/other/proj-4/src/CMakeFiles/proj.dir/all] Error 2
fatal error: error in backend: IO failure on output stream.
make[2]: [src/other/gdal/apps/CMakeFiles/gdal_apps_obj.dir/gdalwarp_lib.cpp.o] Error 1
make[2]: Waiting for unfinished jobs....
fatal error: error in backend: IO failure on output stream.
make[2]: [src/other/gdal/apps/CMakeFiles/gdal_apps_obj.dir/nearblack_lib.cpp.o] Error 1
fatal error: error in backend: IO failure on output stream.
make[2]: [src/other/gdal/apps/CMakeFiles/gdal_apps_obj.dir/gdaldem_lib.cpp.o] Error 1
fatal error: error in backend: IO failure on output stream.
make[2]: [src/other/gdal/apps/CMakeFiles/gdal_apps_obj.dir/ogr2ogr_lib.cpp.o] Error 1
make[1]: [src/other/gdal/apps/CMakeFiles/gdal_apps_obj.dir/all] Error 2
make: *** [all] Error 2
MacBook-Pro-de-Lucas:.build lucas$ cmake .. -DCMAKE_INSTALL_PREFIX=/opt/brlcad
I think I know what's wrong
I don't have any space left :) I'll delete some things and try again
Also what is the difference between mged and archer?
mged is the classic editor most associate with BRL-CAD. archer is a rewrite of the GUI to be a little more user friendly, interactive, discoverable, and a stepping stone to our 3rd GUI coming out later
The install is now over and it looks like all went alright but when i type mged -c I still have the same output
BRL-CAD Release 7.26.4 Geometry Editor (MGED)
Tue, 28 Nov 2017 22:38:27 +0100, Compilation 0
lucas@
attach (nu|txt)[nu]?
mged is going to pull mged from your path
bin/mged is the one you just compiled from the build directory
note the date on that ... still 28 nov 2017
type "which mged" to figure out which it ran
Can't find a usable tk.tcl in the following directories:
/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/Scripts/tk8.5 /System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/Scripts/tk8.5/Resources/Scripts /System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tk8.5 /System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tk8.5/Resources/Scripts /Users/lucas/lib/tk8.5 /Users/lucas/lib/tk8.5/Resources/Scripts ~/Library/Tcl/tk8.5 ~/Library/Tcl/tk8.5/Resources/Scripts /Library/Tcl/tk8.5 /Library/Tcl/tk8.5/Resources/Scripts /System/Library/Tcl/tk8.5 /System/Library/Tcl/tk8.5/Resources/Scripts /System/Library/Tcl/8.5/tk8.5 /System/Library/Tcl/8.5/tk8.5/Resources/Scripts ~/Library/Frameworks/tk8.5 ~/Library/Frameworks/tk8.5/Resources/Scripts /Library/Frameworks/tk8.5 /Library/Frameworks/tk8.5/Resources/Scripts /System/Library/Frameworks/tk8.5 /System/Library/Frameworks/tk8.5/Resources/Scripts /Users/lucas/lib/itcl3.4/tk8.5 /Users/lucas/lib/itcl3.4/tk8.5/Resources/Scripts /Users/lucas/share/tclscripts/tk8.5 /Users/lucas/share/tclscripts/tk8.5/Resources/Scripts /Users/lucas/share/tclscripts/lib/tk8.5 /Users/lucas/share/tclscripts/lib/tk8.5/Resources/Scripts /Users/lucas/share/tclscripts/util/tk8.5 /Users/lucas/share/tclscripts/util/tk8.5/Resources/Scripts /Users/lucas/share/tclscripts/mged/tk8.5 /Users/lucas/share/tclscripts/mged/tk8.5/Resources/Scripts /Users/lucas/share/tclscripts/geometree/tk8.5 /Users/lucas/share/tclscripts/geometree/tk8.5/Resources/Scripts /Users/lucas/share/tclscripts/rtwizard/tk8.5 /Users/lucas/share/tclscripts/rtwizard/tk8.5/Resources/Scripts /Users/lucas/share/tclscripts/archer/tk8.5 /Users/lucas/share/tclscripts/archer/tk8.5/Resources/Scripts /Users/lucas/share/tclscripts/boteditor/tk8.5 /Users/lucas/share/tclscripts/boteditor/tk8.5/Resources/Scripts /Users/lucas/share/tclscripts/lod/tk8.5 /Users/lucas/share/tclscripts/lod/tk8.5/Resources/Scripts /System/Library/Tcl/8.5/vfs1.4.1/template/tk8.5 /System/Library/Tcl/8.5/vfs1.4.1/template/tk8.5/Resources/Scripts /System/Library/Tcl/tcllib1.12/tk8.5 /System/Library/Tcl/tcllib1.12/tk8.5/Resources/Scripts /System/Library/Tcl/tklib0.5/tk8.5 /System/Library/Tcl/tklib0.5/tk8.5/Resources/Scripts /Users/lib/tk8.5 /Users/lucas/library
This probably means that tk wasn't installed properly.
I have downloaded Tk but I now have
Can't find a usable tk.tcl in the following directories:
/Users/lucas/lib
/Users/lucas/lib/tk.tcl: version conflict for package "Tk": have 8.5.9, need exactly 8.5.19
version conflict for package "Tk": have 8.5.9, need exactly 8.5.19
while executing
"package require -exact Tk 8.5.19"
(file "/Users/lucas/lib/tk.tcl" line 18)
invoked from within
"source /Users/lucas/lib/tk.tcl"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list source $file]"
This probably means that tk wasn't installed properly.
@Lucas Prieels run "make clean" then re-run cmake .. -DCMAKE_INSTALL_PREFIX=/opt/brlcad -DBRLCAD_BUNDLED_LIBS=ON -DBRLCAD_ENABLE_STRICT=OFF
then make -j4 again
@Sean I still have the same error
Can't find a usable tk.tcl in the following directories:
/Users/lucas/lib
/Users/lucas/lib/tk.tcl: version conflict for package "Tk": have 8.5.9, need exactly 8.5.19
version conflict for package "Tk": have 8.5.9, need exactly 8.5.19
while executing
"package require -exact Tk 8.5.19"
(file "/Users/lucas/lib/tk.tcl" line 18)
invoked from within
"source /Users/lucas/lib/tk.tcl"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list source $file]"
This probably means that tk wasn't installed properly.
@Lucas Prieels then something isn't right in how you're running because that's trying to load a tk from /Users/lucas whereas the build steps I gave you should've had it looking in /opt/brlcad
the only way to follow what you're doing without guessing is for you to post your entire transcript, every command you're running and all the output from the commands
you're doing something wrong, I'm just not sure what it is yet...
just a note for future reference, don't just paste errors -- that lacks context. paste the command you ran that resulted in the error as well as the output leading up to the error.
Actually when I run bin/mgedfrom Users/lucas it launches the same old version (28 November) and when I run it from brlcad.trunk/.build it launches the app but I can't type commands in the terminal (I'll make a screenshot)
@Lucas Prieels when you say you can't type commands in the terminal -- do you mean the smaller black window in the upper right or the larger white window on the upper left? the left one is the mged command window -- that's where you type modeling commands.
The black one. Before, when I typed « mged » in the black one it was written « mged> » and i could type commands like make sph1.s sph which worked (I recieved output) but didn’t show the sphere. (See screenshot)
Now the mged> isn’t written and I can’t type anything in the black one but it launches the white screen instead.
Which one is the one I should have? And if it’s the second one, what does it change from the version I didn’t compiled from source?
61F848F5-76F1-4E91-A212-B89036A80B12.png
i think its the correct behaviour, the mged>
should be in the white window if the GUI is open, i believe
try make sph1.s sph
in the white terminal, and see if anything appears in "MGED 7.27.0 Graphics WIndow"
i think compiling from source and not compiling from source shouldn't make a difference
Yes, it works fine this way
Last updated: Jan 10 2025 at 00:48 UTC