Compile BRL-CAD on Windows using CygwinBRL-CAD
Status: ClosedTime to complete: 72 hrs Mentors: SeanTags: windows, cygwin, compile

BRL-CAD builds pervasively on a number of different operating systems, hardware, and compilers.  We actively seek out new compilation environments and like to get them working as best as we can.  We regularly build with Microsoft Visual Studio (the professional one you have to pay for).  One we have not tried in a while a compile of BRL-CAD on Cygwin.

This task involves attempting to compile BRL-CAD on Windows on Cygwin.  You'll need to download our source code, CMake, and Cygwin.  Try to get BRL-CAD to compile and keep notes of what you attempt along the way.  You'll report back any failures and otherwise document all the steps you take along the way.  Submit a complete build log (whether it succeeds or fails) and your notes documenting everything you did. 

Resources:

  • http://brlcad.org/wiki/Compiling
  • http://www.cmake.org/
  • http://www.cygwin.com/
Uploaded Work
File name/URLFile sizeDate submitted
cygwinCompile.odt8.1 KBDecember 02 2012 21:47 UTC
cygwinCompile.odt9.5 KBDecember 03 2012 23:55 UTC
cygwinCompile.odt22.7 KBDecember 10 2012 22:36 UTC
Comments
BrendenD15on November 29 2012 22:23 UTCTask Claimed

I would like to work on this task.

Andrei Popescu on November 29 2012 22:39 UTCTask Assigned

This task has been assigned to BrendenD15. You have 72 hours to complete this task, good luck!

BrendenD15on November 30 2012 02:33 UTCThanks

I'm working on setting up my computer tonight. Tomorrow I will begin compiling the code and documenting the results. I do have to add, though, that I'm not running a standard version of Windows. I am using the release preview of Windows 8. However, this shouldn't affect the results.

BrendenD15on December 1 2012 17:00 UTCCygwin Installation Issues

I'm having trouble installing Cygwin. I have downloaded all of the files that it needs, however when I go to install it I get an error that says, "The program can't start because cygintl-8.dll is missing from your computer. Try reinstalling the program to fix this problem." Is it possible to just get this file without having to re-download everything. I have a limited amount of download data I can use.

Sean on December 2 2012 06:18 UTCsorry

Sorry, I can't help you with Cygwin installation issues.  That's beyond the scope of this task and, more importantly, I'm not familiar with what those issues are. ;)


 

BrendenD15on December 2 2012 21:30 UTCI fixed it

That's alright, I got it fixed now. Now I'm working on configuring the source code so that my machine can build it. However, it may take my machine close to the full hour to compile the code. So it will be past the deadline when my computer finishes the build, if it does. I have made a lot of progress though. I believe that I have figured out why CMake cannot configure the code, and I am fixing that, as well as documenting everything I do. If you want I can send a copy of what I have done so far.

Andrei Popescu on December 2 2012 21:34 UTCextension

Could you please  upload your work so far? If you made any progress, I will extend the deadline for the task so don't worry about it!

BrendenD15on December 2 2012 21:47 UTCSounds Good

I'll send in the work so far.

BrendenD15on December 2 2012 21:50 UTCSide Note

I should note that I tried configuring the code using the CMake GUI and Visual Studio. The program did configure the files correctly, however, I did not keep these because I was only testing that Visual Studio was working with CMake.

BrendenD15on December 2 2012 22:21 UTCReady for review

The work on this task is ready to be reviewed.

BrendenD15on December 2 2012 22:23 UTCSorry for the Wait

I thought I'd sent file, but I apparently didn't realize that I had to click another button after I uploaded the work. Sorry about that.

Melange on December 2 2012 22:39 UTCNo more Work can be submitted

Melange has detected that the deadline has passed and no more work can be submitted. The submitted work should be reviewed.

BrendenD15on December 2 2012 23:28 UTCConfigured using different method

I decided to try configuring the code using the CMake GUI since I was getting nowhere trying to use CMake inside of Cygwin. I was able to set Visual Studio as the compiler and my computer completed the configuration. However, it encountered some errors which I will try to address. I will be able to resume work tomorrow after school so it will be roughly 24 hours until I can work on this again pending your decision on an extension.

Sean on December 3 2012 00:10 UTCDeadline extended

The deadline of the task has been extended with 1 days and 0 hours.

Sean on December 3 2012 00:14 UTCwithout visual studio

So one of the core goals of this task is to compile BRL-CAD without Visual Studio.  It's a free UNIX environment for Windows, so you should be able to compile using cygwin-provided (full-install) tools, e.g., gcc: http://www.eecg.utoronto.ca/~aamodt/ece242/cygwin.html


Ideally, we'll either end up with neat build steps that we can turn into a tutorial or we'll end up with a transcript of build issues that we can fix.


 

BrendenD15on December 3 2012 12:53 UTCI'll get on that

That's fine. I'll just have to figure out why CMake is giving the error that says it is unable to configure the code. Then I will hopefully be able to configure and build the code correctly. 

BrendenD15on December 4 2012 00:01 UTCI might be on to something

It looks like I will have to determine a way to satisfy each variable that CMake is unable to automatically create. However, it is possible that it is infact my OS's fault CMake is having these difficulties. I have noticed that other programs not designed for Windows 8 have similar issues figuring out the OS variables. I'll see if running Cygwin and CMake in compatibility mode yields better results.

Melange on December 4 2012 00:26 UTCNo more Work can be submitted

Melange has detected that the deadline has passed and no more work can be submitted. The submitted work should be reviewed.

BrendenD15on December 4 2012 00:34 UTCGood News and Bad News

I'll start with the bad news first. It really isn't bad, just inconvenient. The Compatibility Settings didn't solve anything. Which means that I still have to determine the missing variables. Good news is though, once the CMAKE_MAKE_PROGRAM and CMAKE_C_COMPILER_ENV_VAR variables were satisfied, CMake was able to begin configuring. However, it encountered several errors that I will have to smooth out.


 


 

Sean on December 5 2012 04:45 UTCDeadline extended

The deadline of the task has been extended with 2 days and 0 hours.

Sean on December 5 2012 04:45 UTCTask Needs More Work

One of the mentors has sent this task back for more work. Talk to the mentor(s) assigned to this task to satisfy the requirements needed to complete this task, submit your work again and mark the task as complete once you re-submit your work.

BrendenD15on December 6 2012 03:57 UTCMissing .exe files

I have some questions about some of the errors that I received from CMake. The errors are:



  • CMake Error: Unable to find the executable at any of:


  /home/Brenden/brlcad/.build/CMakeTmp/CMakeFiles/CMakeTmp/cmTryCompileExec4277939579.exe


  /home/Brenden/brlcad/.build/CMakeTmp/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec4277939579.exe


  /home/Brenden/brlcad/.build/CMakeTmp/CMakeFiles/CMakeTmp/Development/cmTryCompileExec4277939579.exe


 



  • CMake Error: Unable to find the executable at any of:


  /home/Brenden/brlcad/.build/CMakeTmp/CMakeFiles/CMakeTmp/cmTryCompileExec3599065332.exe


  /home/Brenden/brlcad/.build/CMakeTmp/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec3599065332.exe


  /home/Brenden/brlcad/.build/CMakeTmp/CMakeFiles/CMakeTmp/Development/cmTryCompileExec3599065332.exe






I can tell that CMake is looking for some executeables. However, I don't know what these files are for or how to generate them. Are they something that I have to specify before I configure, or are they something that I have to find or make myself?



BrendenD15on December 6 2012 23:36 UTCNo school

By the way. I am off of school tomorrow, so I will have most of the day to work on the task.

Melange on December 7 2012 19:33 UTCTask Reopened

Melange has detected that the final deadline has passed and it has reopened the task.

Sean on December 7 2012 19:37 UTCReclaim

Brenden, you're welcome to reclaim this task and since you've obviously put some work into it, I encourage you to do so.  We don't want your efforts to be a waste.


As for that error, there are way too many variables to diagnose from that little snippet of an error by itself.  You'll need to make sure you have a clean checkout of BRL-CAD where cmake has NEVER been run, then run cmake capturing all output so we can review the log.


Once you start editing things and re-running tools, it becomes much harder to diagnose problems.  It's usually better to start over.


 

BrendenD15on December 7 2012 20:19 UTCTask Claimed

I would like to work on this task.

Sean on December 7 2012 20:20 UTCTask Assigned

This task has been assigned to BrendenD15. You have 72 hours to complete this task, good luck!

BrendenD15on December 7 2012 20:34 UTCThanks for the suggestion

I'll  try what you suggested and try again.

BrendenD15on December 9 2012 17:47 UTCProblems with make

CMake seems to have configured the source files correctly. However, when I try to use the "make" command to compile, I don't get anything. I type in the command and it sits there for about two seconds and then it just takes me back to my input line. I even had it capture what it was supposed to be doing to a log file, and it was completely blank.

BrendenD15on December 9 2012 17:48 UTCEverything's clean

By the way. I did clean up everything just like you suggested.

Melange on December 10 2012 20:20 UTCInitial Deadline passed

Melange has detected that the initial deadline has passed and it has set the task status to ActionNeeded. The student has 24 hours to submit the work before the task is reopened and sent back to the pool for other students to claim.

BrendenD15on December 10 2012 22:34 UTCStill not working

I've tried "make" again and I still don't get anything. I'll send in what I have so that it can get looked over. The log for the makeflie build is near the very end of the document.

BrendenD15on December 10 2012 22:37 UTCReady for review

The work on this task is ready to be reviewed.

Melange on December 11 2012 20:20 UTCNo more Work can be submitted

Melange has detected that the deadline has passed and no more work can be submitted. The submitted work should be reviewed.

Sean on December 12 2012 15:39 UTCTask Closed

Congratulations, this task has been completed successfully.

Sean on December 12 2012 15:41 UTCSo it's a mixed bag

Brenden, thanks for all your efforts.  Compiling on CMake seems to either be a substantial issue right now or your Cygwin setup is horribly configured.  We may post the task again for someone else to give it a go, but your efforts and logs are appreciated.  Either way, kudos for putting signficant effort into trying to get a compile to behave and for providing your logs and steps taken.  (took a while to review it all!)  Thanks again! 

BrendenD15on December 12 2012 22:46 UTCGlad to help

Thanks, I was more than happy to help. You may be right about my Cygwin, but as I did some searching to fix the problem I found several cases where the "make" command failed much like how mine did. So it may be a problem with the program itself. 


Thanks again for all of your help and support.