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/
File name/URL | File size | Date submitted | |
---|---|---|---|
cygwinCompile.odt | 8.1 KB | December 02 2012 21:47 UTC | |
cygwinCompile.odt | 9.5 KB | December 03 2012 23:55 UTC | |
cygwinCompile.odt | 22.7 KB | December 10 2012 22:36 UTC |
I would like to work on this task.
This task has been assigned to BrendenD15. You have 72 hours to complete this task, good luck!
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.
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.
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. ;)
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.
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!
I'll send in the work so far.
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.
The work on this task is ready to be reviewed.
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 has detected that the deadline has passed and no more work can be submitted. The submitted work should be reviewed.
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.
The deadline of the task has been extended with 1 days and 0 hours.
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.
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.
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 has detected that the deadline has passed and no more work can be submitted. The submitted work should be reviewed.
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.
The deadline of the task has been extended with 2 days and 0 hours.
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.
I have some questions about some of the errors that I received from CMake. The errors are:
/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
/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?
By the way. I am off of school tomorrow, so I will have most of the day to work on the task.
Melange has detected that the final deadline has passed and it has reopened the task.
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.
I would like to work on this task.
This task has been assigned to BrendenD15. You have 72 hours to complete this task, good luck!
I'll try what you suggested and try again.
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.
By the way. I did clean up everything just like you suggested.
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.
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.
The work on this task is ready to be reviewed.
Melange has detected that the deadline has passed and no more work can be submitted. The submitted work should be reviewed.
Congratulations, this task has been completed successfully.
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!
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.