Hey, could you reply to this topic instead? @vasugarg
i was just following this guide-
http://brlcad.org/wiki/Compiling
Did you follow the instructions exactly? What are your system specifications? (i.e. operating system)
Screenshot-from-2018-01-07-11-51-25.png
That's the right topic, thanks! I'm not used to Tk, but I think you have to install it
@Mahdi i did follow the steps exactly
Here: https://www.tcl.tk/software/tcltk/download.html
@Mahdi Yes i did
Did you install xserver?
aptitude install xserver-xorg-dev
@Lucas Prieels which one exactly ?
@ it's downloading
Since you're running on (presumably) stock ubuntu you should install the 4 dependencies
@Mahdi i hadn' t downloaded it previously
There's your issue :)
no i was referring to xserver
as far as dependencies are concerned
i have downloaded all of them
aptitude install sed byacc flex xsltproc aptitude install libncursesw5-dev libfontconfig-dev aptitude install xserver-xorg-dev aptitude install libx11-dev
These are all installed?
yup
every step is complete apart from the last step which requires us to run the mged or archer cmnd
sorry
not the last step
run one is working
as i mentioned previously
had*
it's just that step which is causing problems
It still isn't working?
no
all the dependencies were already installed.
i am sending the screenshot Screenshot-from-2018-01-07-12-22-58.png
What version of ubuntu are you running
17.10
You could always try a fresh build ;\
i have already tried doing this several times
Hey @vasugarg I recommend you to check whether all dependencies are installed properly
And try a different version of xserver
@Siddharth Yes they are
is there anything , that had not been mentioned in the guide
was supposed to be done
and *
Did anyone come up with some a solution to this error ?
Try a different version of xserver
Or you could try checking out from svn
k
i'll try this
@vasugarg once you install the x11 dev packages, you have to recompile
and by recompile, I mean delete your build directory, recreate it, and do it again ... this time paying attention to the summary at the end of running cmake -- to make sure it says X11 is on or off
@Sean i did what you said
but the result was same
@vasugarg please show me your cmake summary
the result is irrelevant if something went wrong earlier that you didn't notice
@vasugarg so tell me the steps of what you did
http://brlcad.org/wiki/Compiling
so that's a web page with lots of info and different steps for different people
it doesn't tell me what YOU did :)
I exactly followed each and every step.
until the last step where i couldn't do i t further
@vasugarg no you're missing the point
Compiling has a lot of "here are things you need to do" ... not steps
it tries to explain things because the actual steps necessary are going to be a little different for everyone
what's the first thing you did?
How exactly should i explain ?
the fact that you're telling me you "followed each and every step" really tells me that you didn't actually understand what you were reading... and that you were mostly copy-pasting commands you saw
which isn't going to work
sought of
hardly ever
Pls i want to learn this
tell me what you did
I'm trying to help you, but you're not telling me any useful information yet
tell me what you did ... pointing me at a web page isn't telling me what you did
i am not just able to
if you can't tell me what you did, how am I supposed to tell you what you did wrong?
put it out in words
then show me
every command you ran
Ok
i can do that
Screenshot-from-2018-01-07-14-01-15.png
This step basically involves installing Cmake
there is no package named "Cmake" ... as it's telling you right there
so right away, that's wrong
that's i haven' t remvd
the previous one
because*
sorry i made a mistake
i'll do it again
no, it's not because you hadn't removed the previous
it's literally telling you that "Cmake" is not a package because that is NOT the name of the package
it's "cmake" ... not "Cmake"
Yeah
details like that matter a lot when you work with software
a LOT
i figured it just now
Screenshot-from-2018-01-07-14-09-02.png
that's the correct one
okay, so you installed some essential tools
and cmake and make
so then what was next?
installing Dependencies
Screenshot-from-2018-01-07-14-13-39.png
okay and next
okay I get it you installed a bunch of things via aptitude ... then what did you do?
Download Brl cad
using this cmnd - svn checkout svn://svn.code.sf.net/p/brlcad/code/brlcad/trunk brlcad-svn-trunk
okay, then what
configuring the build
how did you configure your build?
@vasugarg are you there?
@vasugarg Did it work?
You won't get this feeling in an easy task, getting rejected 5-6 times, trying again and again, but when you achieve the goal of the task, you feel that ecstasy
@Sean
using these commands -
cd brlcad-svn-trunk
mkdir .build
cd .build
cmake .. -DBRLCAD_ENABLE_STRICT=NO -DBRLCAD_BUNDLED_LIBS=ON -DCMAKE_BUILD_TYPE=Release
Did u try using the cmake gui?
Its alot easier
where to find it ?
@William Cook ?
Do a search.
@vasugarg post the entire output from running those commands,
the most important bits are what is displayed at the end of running cmake
the cmake one ?
Screenshot-from-2018-01-08-14-02-24.png
@Sean well here i did it differently
as in i didn't use those commands
instead i just downloaded the Cmake from https://cmake.org/download/
and then configured it as you would generally configure a tar.gz file
using ./configure
after ofc extracting it
@ sean are you there ?
I am, but I'm in the middle of another conversation -- please be patient
k
i'll wait
@vasugarg I'm very confused as to what you're doing now ... because you're showing me a screenshot of you compiling cmake
you already installed cmake a long time ago, in the very first step ... you ran aptitude install cmake
so why are you compiling cmake?
why did you even download cmake source code?
the instructions said "If needed, compiling from their source distribution is actually very easy." ... but you didn't need to because you ran aptitude install cmake...
@vasugarg it looks like this was your previous topic
k
shall we start then ?
@vasugarg I only have a few minutes, but I posted several questions for you already
earlier, which you never responded
we can't keep backtracking, you have to read everything
@Sean Yeah i read that
what should i do now
as in that was attempt to make sure that i had every necessary file
answer the questions... :)
but it doesn't make sense, or implies you are heavily guessing
you installed cmake
y
but now you're asking questions about cmake compilation and installation, which you were doing right because you weren't reading their instructions too...
compiling software is rarely ever going to tell you exactly what you need to do
you need to think and understand (and read a lot)
if you skip any of those three, you will always run into problems
at this point, I'm not even sure where you were at ... you were running cmake and I asked you for a log and you never replied
@Sean
using these commands -
cd brlcad-svn-trunk
mkdir .build
cd .build
cmake .. -DBRLCAD_ENABLE_STRICT=NO -DBRLCAD_BUNDLED_LIBS=ON -DCMAKE_BUILD_TYPE=Release
you posted this
@vasugarg post the entire output from running those commands,
I posted this in reply
the most important bits are what is displayed at the end of running cmake
and this
yeah initially i did follow this method to install cmake
that is not a method to install cmake
you installed cmake when you ran "aptitude install cmake"
aptitude is a method for installing cmake
downloading and building cmake is another method for installing cmake
running "cd brlcad-svn-trunk ... mkdir .build ... cmake .. -DBRLCAD_ENABLE..." is not a method to install cmake
okay sorry that was to build configuration
those are configuration steps for RUNNING cmake
for configuring BRL-CAD
Yes
so I'll ask again
you ran the configuration steps -- show me them
including the entire output from running cmake
k
Screenshot-from-2018-01-09-01-18-04.png
when i run this step - mkdir .build , it says mkdir: cannot create directory ‘.build’: File exists
you've had too many failures and confusions... I really need to see everything, the entire log of commands and all the output from cmake
on the surface, that summary looks correct
should i first run make command
?
no, you should post your entire log like I asked
and then show you the output ?
@vasugarg after you show the entire output from running those commands you posted
actually i think zulip has some character limit ,
you can upload the log file.
@Sean like i said it isn' t allowing me to make the . build dir now
on windows?
n o
linux
ubuntu
@vasugarg maybe because you already made it once? what's the error?
17.10
I'm on 17.10 too
ls
and see if .build
was already there
you just showed me a screenshot where you ran cmake in your current source directory, so that made it also your .build directory
but
when i try to access it
it says no dir found
you can upload the log file.
thats what i was going to suggest :)
@vasugarg I think you've gotten turned around one too many times
:D
you need to start over from a fresh checkout
Should i just remove everything
I suggest you delete your BRL-CAD source and build trees
you should, AFAIK
rm -rf /home/defengartner01/brlcad-svn-trunk
then:
svn co https://svn.code.sf.net/p/brlcad/code/brlcad/trunk brlcad.trunk
cd brlcad.trunk
mkdir .build
cd .build
cmake ..
make
post the entire output including everything you type and everything they print -- not just screenshots
times up for me, see you all later
good luck!
this should be done in which dir ?
this should be done in which dir ?
it doesn't matter much, in /home/defengartner01 is fine
what's -rf
? I mostly use -r
I think f is force
@Sean when i was trying to run this --> root@vasugarg1:/home/defengartner01/brlcad.trunk/.build# cmake ..
CMake Error: The source directory "/home/defengartner01/brlcad.trunk" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
above error occured
Did your svn checkout get corrupted or something? I believe it should have a top-level CMakeLists.txt. Maybe svn got interrupted halfway or something
In BRL-CAD is z up or is y up?
Y is up, that rule is universal @caleb parks
Z is a 3d attribute
I have worked in programs where z is up and I have worked in programs where y is up so I didn't know.
Oh ok, i didnt know, but yeah im pretty sure y is up
No, the Z axis is the vertical axis, (up and down). While the X and Y axis are facing "forwards" or "sideways", depending on your camera's rotation.
@caleb parks which programs have you worked on?
blender, unity maybe more but I can't think of any at the moment. in blender Z is up whereas in unity Y is up.
@Jeff Sieu it didn't
It didn't have a CMakeLists.txt file?
@jeff sieuYEP >
it didn't
@vasugarg That's the problem, there should be a CMakeLists.txt inside brlcad-svn-trunk, or whatever the name of the folder you checked out brlcad into is.
GAH, Nooooooo.. Z+ is UP!
that's an ancient debate
systems that started out view-centric (e.g., games) tend to think of the computer display first with X being horizontal and Y being vertical, thus Z going forward and backwards
systems that are model-centric focus on the model where X and Y are your coordinates on the ground and Z is your vertical axis or height off the ground
CAD industry, airline industry, military industry, weather industry ... all use +Z is up in their software and systems
When we're drawing, We always use Y as up. I always thought that's how it should be in 3D.
gaming industry, animation, and content modelers (e.g., movie industry) tend to use +Y for up
@Naseef that's because when you're drawing, you are view-centric -- focused on the screen
So, In 3D, Our view is top-down. Right?
and there it certainly makes sense... what we don't think makes sense is to extend that into 3D domain because that's just not how physical systems are represented or how you would model them
not necessarily, no
rarely even
if you were modeling on paper on a desk, you'd almost certainly start with X/Y coordinates and then .. Z would be up
Well, When we model a house plan, etc. We draw it from top view, and then build the walls along Z.
sometimes, that's a specific style of modeling
and that's even still consistent with Z is up
that's an ancient debate
Now I understand why it's a debate, LOL
basically it just depends if the focus is more on the computer screen or the thing "in" the computer screen (the model)
nearly any field with a physical counterpart, something real, uses Z for up
things focused on animation and rendering tend to use Y for up
Last updated: Jan 10 2025 at 00:48 UTC