Stream: Google Code-in

Topic: annotation


view this post on Zulip Lucas Prieels (Dec 19 2017 at 20:29):

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!

view this post on Zulip Sean (Dec 19 2017 at 20:30):

annotations do not occupy volume, so there's nothing to ray trace

view this post on Zulip Sean (Dec 19 2017 at 20:30):

they only show up in the 3D geometry window

view this post on Zulip Lucas Prieels (Dec 19 2017 at 20:32):

And how can I see the 3D geometry window with the command line?

view this post on Zulip Sean (Dec 19 2017 at 20:32):

which tool are you using?

view this post on Zulip Sean (Dec 19 2017 at 20:33):

which gui?

view this post on Zulip Lucas Prieels (Dec 19 2017 at 20:33):

the mac terminal

view this post on Zulip Sean (Dec 19 2017 at 20:34):

no I mean what program did you run? mged? archer? something else?

view this post on Zulip Lucas Prieels (Dec 19 2017 at 20:34):

mged

view this post on Zulip Sean (Dec 19 2017 at 20:34):

is this an mged you compiled?

view this post on Zulip Lucas Prieels (Dec 19 2017 at 20:35):

yes

view this post on Zulip Sean (Dec 19 2017 at 20:35):

ah, and so when you run mged, it doesn't display a GUI for you?

view this post on Zulip Lucas Prieels (Dec 19 2017 at 20:35):

No. It should?

view this post on Zulip Sean (Dec 19 2017 at 20:35):

yep

view this post on Zulip Sean (Dec 19 2017 at 20:36):

so what probably happened is you don't have X11 installed, so it turned off all the GUI aspects of mged

view this post on Zulip Sean (Dec 19 2017 at 20:36):

install this: https://www.xquartz.org

view this post on Zulip Sean (Dec 19 2017 at 20:36):

recompile and you should have the mged GUI

view this post on Zulip Lucas Prieels (Dec 19 2017 at 20:37):

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

view this post on Zulip Sean (Dec 19 2017 at 20:38):

when you run "mged -c" what does it show you?

view this post on Zulip Sean (Dec 19 2017 at 20:38):

should be an Attach... prompt

view this post on Zulip Sean (Dec 19 2017 at 20:38):

nu and maybe other options

view this post on Zulip Lucas Prieels (Dec 19 2017 at 20:40):

It doesn't show anything more than mged

view this post on Zulip Sean (Dec 19 2017 at 20:43):

that doesn't tell me anything useful -- show me :)

view this post on Zulip Sean (Dec 19 2017 at 20:43):

for me, it shows a version number with a wealth of developer info and an attach prompt:

view this post on Zulip Sean (Dec 19 2017 at 20:43):

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]?

view this post on Zulip Lucas Prieels (Dec 19 2017 at 20:45):

GCI-Task-10-help.png

view this post on Zulip Lucas Prieels (Dec 19 2017 at 20:45):

Then it's the same as you :)

view this post on Zulip Sean (Dec 19 2017 at 20:46):

it's not

view this post on Zulip Sean (Dec 19 2017 at 20:46):

you're not reading what it's showing you

view this post on Zulip Sean (Dec 19 2017 at 20:46):

so that tells me the mged you have definitely does not have the GUI compiled into it

view this post on Zulip Sean (Dec 19 2017 at 20:47):

your attach prompt says you have only 'nu' and 'txt' .. notice how mine is different

view this post on Zulip Sean (Dec 19 2017 at 20:48):

also tells me that you compiled that about 3 weeks ago late at night ;)

view this post on Zulip Lucas Prieels (Dec 19 2017 at 20:50):

Oh yes I haven't noticed! What does it change?

view this post on Zulip Lucas Prieels (Dec 19 2017 at 20:51):

And you compiled it at 00:42 :p

view this post on Zulip Sean (Dec 19 2017 at 20:52):

that's a binary app bundle I hijacked so double-clicking on Mac works, but yeah, I tend to work late :)

view this post on Zulip Sean (Dec 19 2017 at 20:52):

what it means is that you should svn up and recompile

view this post on Zulip Lucas Prieels (Dec 19 2017 at 20:52):

I checked the screenshot I uploaded for the 'compile from source' task and I had the same last line as now

view this post on Zulip Lucas Prieels (Dec 19 2017 at 20:53):

What do you mean by svn up?

view this post on Zulip Sean (Dec 19 2017 at 20:53):

ah, yes - also looks like you probably didn't compile from svn source

view this post on Zulip Sean (Dec 19 2017 at 20:53):

you should get an svn checkout

view this post on Zulip Sean (Dec 19 2017 at 20:54):

open up terminal and get a checkout with this:

view this post on Zulip Sean (Dec 19 2017 at 20:54):

svn co https://svn.code.sf.net/p/brlcad/code/brlcad/trunk brlcad.trunk

view this post on Zulip Sean (Dec 19 2017 at 20:54):

that will get the latest sources into a brlcad.trunk directory

view this post on Zulip Sean (Dec 19 2017 at 20:55):

from there, you can cd brlcad.trunk; mkdir .build; cd .build; cmake .. -DCMAKE_INSTALL_PREFIX=/opt/brlcad; make -j4

view this post on Zulip Sean (Dec 19 2017 at 20:56):

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

view this post on Zulip Lucas Prieels (Dec 19 2017 at 21:02):

make -j4 is currently running

view this post on Zulip Sean (Dec 19 2017 at 21:02):

did you check the summary after cmake ran?

view this post on Zulip Lucas Prieels (Dec 19 2017 at 21:03):

Yes and there was a line "X11 support (optional) ................: ON"

view this post on Zulip Sean (Dec 19 2017 at 21:03):

great

view this post on Zulip Lucas Prieels (Dec 19 2017 at 21:03):

Also what is the difference between mged and archer?

view this post on Zulip Lucas Prieels (Dec 19 2017 at 21:06):

I got several fatal erros

view this post on Zulip Lucas Prieels (Dec 19 2017 at 21:06):

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....

view this post on Zulip Lucas Prieels (Dec 19 2017 at 21:06):

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

view this post on Zulip Lucas Prieels (Dec 19 2017 at 21:06):

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

view this post on Zulip Lucas Prieels (Dec 19 2017 at 21:06):

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

view this post on Zulip Lucas Prieels (Dec 19 2017 at 21:09):

I think I know what's wrong

view this post on Zulip Lucas Prieels (Dec 19 2017 at 21:10):

I don't have any space left :) I'll delete some things and try again

view this post on Zulip Sean (Dec 19 2017 at 21:58):

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

view this post on Zulip Lucas Prieels (Dec 19 2017 at 22:01):

The install is now over and it looks like all went alright but when i type mged -c I still have the same output

view this post on Zulip Lucas Prieels (Dec 19 2017 at 22:04):

BRL-CAD Release 7.26.4 Geometry Editor (MGED)
Tue, 28 Nov 2017 22:38:27 +0100, Compilation 0
lucas@

attach (nu|txt)[nu]?

view this post on Zulip Sean (Dec 19 2017 at 22:12):

mged is going to pull mged from your path

view this post on Zulip Sean (Dec 19 2017 at 22:13):

bin/mged is the one you just compiled from the build directory

view this post on Zulip Sean (Dec 19 2017 at 22:13):

note the date on that ... still 28 nov 2017

view this post on Zulip Sean (Dec 19 2017 at 22:13):

type "which mged" to figure out which it ran

view this post on Zulip Lucas Prieels (Dec 19 2017 at 22:20):

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.

view this post on Zulip Lucas Prieels (Dec 19 2017 at 22:37):

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.

view this post on Zulip Sean (Dec 20 2017 at 00:38):

@Lucas Prieels run "make clean" then re-run cmake .. -DCMAKE_INSTALL_PREFIX=/opt/brlcad -DBRLCAD_BUNDLED_LIBS=ON -DBRLCAD_ENABLE_STRICT=OFF

view this post on Zulip Sean (Dec 20 2017 at 00:39):

then make -j4 again

view this post on Zulip Lucas Prieels (Dec 20 2017 at 09:19):

@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.

view this post on Zulip Sean (Dec 20 2017 at 14:41):

@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

view this post on Zulip Sean (Dec 20 2017 at 14:42):

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

view this post on Zulip Sean (Dec 20 2017 at 14:42):

you're doing something wrong, I'm just not sure what it is yet...

view this post on Zulip Sean (Dec 20 2017 at 14:43):

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.

view this post on Zulip Lucas Prieels (Dec 20 2017 at 15:43):

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)

view this post on Zulip Lucas Prieels (Dec 20 2017 at 15:44):

GCI-Task-10-help2.png

view this post on Zulip Sean (Dec 21 2017 at 07:52):

@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.

view this post on Zulip Lucas Prieels (Dec 21 2017 at 08:40):

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?

view this post on Zulip Lucas Prieels (Dec 21 2017 at 08:41):

61F848F5-76F1-4E91-A212-B89036A80B12.png

view this post on Zulip Jeff Sieu (Dec 21 2017 at 08:44):

i think its the correct behaviour, the mged> should be in the white window if the GUI is open, i believe

view this post on Zulip Jeff Sieu (Dec 21 2017 at 08:45):

try make sph1.s sph in the white terminal, and see if anything appears in "MGED 7.27.0 Graphics WIndow"

view this post on Zulip Jeff Sieu (Dec 21 2017 at 08:48):

i think compiling from source and not compiling from source shouldn't make a difference

view this post on Zulip Lucas Prieels (Dec 21 2017 at 10:29):

Yes, it works fine this way


Last updated: Oct 09 2024 at 00:44 UTC