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), GCC, and a number of other compilers. One we have not tested in a long time is Bloodshed Software's Dev-C++ IDE (available for Windows, based on Mingw)
This task involves attempting to compile BRL-CAD using the Dev-C++ IDE. You'll need to download our source code, CMake, and Dev-C++. Compile BRL-CAD using Dev-C++ and keep notes of everything you do along the way. You'll report back any failures and otherwise document all the steps you take. Submit a complete build log and your notes documenting everything you did.
Bonus points if you make any fixes that get it working.
Resources:
- http://brlcad.org/wiki/Compiling
- http://www.cmake.org/
- http://www.bloodshed.net/devcpp.html
File name/URL | File size | Date submitted | |
---|---|---|---|
cmakelog.txt | 26.5 KB | December 02 2012 15:20 UTC | |
cmakelog.txt | 31.4 KB | December 02 2012 15:23 UTC | |
log.txt | 1.2 MB | December 03 2012 14:33 UTC | |
Alexandur-cmake-log.txt | 1.8 KB | December 30 2012 07:59 UTC | |
Alexandur -log.txt | 860 bytes | December 30 2012 07:59 UTC | |
Alexandur -log.txt | 1.0 KB | January 01 2013 21:23 UTC | |
devcpp.zip | 19.6 KB | January 07 2013 02:36 UTC | |
build-2-logs.zip | 30.9 KB | January 07 2013 16:42 UTC |
I would like to work on this task.
This task has been assigned to Adrián Arroyo Calle. You have 48 hours to complete this task, good luck!
I submit a text file with logs and information. The first log is the CMake generator log. The second log is the next CMake log. The third log is the mingw32-make. Fails in a part of the compilation.
The work on this task is ready to be reviewed.
The latest file that you uploaded contains errors in build log. You are welcomed to come and discuss them on IRC. Completing the task involves sucessfully building BRL-CAD. As you can see, your build fails at 0%.
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.
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.
From your build log I see it stopped at 9% but I can't see an error(or the reason) that caused the build to stop? Did you stop it ? Could you explain if and what errors you encountered?
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.
The errors are linker error. You don't probably see this because I use -k option (always continue). So I see what are the errors and I also see unrecognized options: -Gs, -fp:strict,... So I think that the code can't compile on MinGW because it's optimized for Visual C++. Sorry, but I can't compile BRL-CAD.
The work on this task is ready to be reviewed.
The claim on this task has been removed, someone else can claim it now.
I would like to work on this task.
This task has been assigned to Awesomeness. You have 48 hours to complete this task, good luck!
The claim on this task has been removed, someone else can claim it now.
I would like to work on this task.
This task has been assigned to Andrei Tudorica. You have 48 hours to complete this task, good luck!
I would like to contact you via IRC... how can I do that?
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 got no response to the rquest for contact data (IRC) so I'm afraid I will need more time to get this task done.
Melange has detected that the final deadline has passed and it has reopened the task.
I would like to work on this task.
This task has been assigned to Andrei Tudorica. You have 48 hours to complete this task, good luck!
it is finals week in my highschool and i don't have much time to work on the task but I am almost there. It would be nice of you to give me a bit more time.
Thank you,
Andrei
The deadline of the task has been extended with 2 days and 0 hours.
No problem, but this is the last extension since you've claimed the task twice now.
Please see http://brlcad.org/wiki/IRC regarding how to use IRC. When you ask questions, you have to wait for a response which can take seconds or hours. So if you can't or are unwilling to wait, then IRC probably isn't the best place to ask. People are there all the time, but not always able to immediately respond. We don't just sit there waiting to answer questions, after all... ;)
That said, the best way to use IRC is to join and stay on IRC. I'm on 24/7, even when I'm not at my desk, even if my computer is turned off. screen+irssi ftw!
Any progress on the task?
yes! I managed to compile it using cmake on ubuntu, but I didn't save it in a log and I don't know how I can do that :-?
so the task is almost ready.:d
There's always copy-paste.
Sorry, but I can't compile it... I tried to understand. I studied programming for 7 years in C++,I used Mingw and DevC++, but I haven't ever use Cmake and I can't understand it... it's a bit busy period for me in school too and I am tired. I will try again if no one solves the task.
The claim on this task has been removed, someone else can claim it now.
There are plenty of other tasks, so it's okay. Thanks for trying a different task. It's not meant to be discouraging, so that's really good to see. If you get stuck, please do ask questions and provide details so we can help you through problems that you encounter.
I would like to work on this task.
The claim on this task has been removed, someone else can claim it now.
I would like to work on this task.
This task has been assigned to RikuMiyao. You have 48 hours to complete this task, good luck!
The claim on this task has been removed, someone else can claim it now.
I would like to work on this task.
This task has been assigned to Stefan. You have 48 hours to complete this task, good luck!
The claim on this task has been removed, someone else can claim it now.
I would like to work on this task.
This task has been assigned to Alexandur Osenov. You have 48 hours to complete this task, good luck!
Hi! i cant find you in irc so i want to ask how to compile it.. With cmake and manually choose dev c++ compilers or through dev c++??
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.
Melange has detected that the final deadline has passed and it has reopened the task.
I would like to work on this task.
This task has been assigned to Alexandur Osenov. You have 48 hours to complete this task, good luck!
Which cmake generator should i use?
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.
You should use any generator that works with Dev-C++.
The deadline of the task has been extended with 0 days and 12 hours.
So Dev is based on MINGW so i selected mingw makefiles and also selected specified compilers-and selected dev c++ compilers
And get an error that says that my compiler is broken (which is not true) and "cant compile simple test program"
Whats you irc chat name? I urgently need to ask you something.. And please give me more time for my task...
What I`ve tried so far:
1. Try to build brl-cad with Dev-C++ compilers - failed
2. Succeded in building brl-cad with MVS 2010
3. Succeded in generating brl-cad with MVS 2010
4. Failed to generate it with MINGW makefile generator and Dev-C++ compilers - The reason is that in cmakelists there is a rule in line 549 that prevents me from generating
it the project which was build the day before.
The deadline of the task has been extended with 1 days and 0 hours.
Alexander, there are lots of folks on IRC, so just join the channel and ask your question or ask your question here. See http://brlcad.org/wiki/IRC particularly the etiquette section as you are expected to stay on IRC if you ask a question. Asking and leaving is like entering a room, farting, and leaving. Moreover, don't ask if someone is there -- just ask your question and wait for an answer.
As for this task, the most interesting aspect is the first point that you note, that you tried to build with Dev-C++ and it failed. You need to look at what failed and why, keep a log of everthing you tried, keep log files of all output, and be prepared to fix any simple errors. At a minimum, you'll submit your logs.
Todays log:
5. Installed both MinGW and Dev-C++ and added their bin folders to my OS environment variables, but CMAKE failed to build the project with MinGW makefile generator and dev-C++ compilers.Tried creating new build folder and deleting cache and running cmake as administrator, but it still fails to compile.
Alexander, you should put all of the steps into a text file (including the exact commands you ran, not just the summary you've provided here in comments) and upload it here. You should also upload the cmake log and build log outputs, even if they fail. We can usually tell whether an error is some problem on your end, a cmake problem, or some other build problem.
The deadline of the task has been extended with 1 days and 0 hours.
Can you check the cmake log ? Its the error i recieve and its probabbly something releated to the cmakelist..
From your cmake log, it's failing on the very first test. That's not good as it's not even as far along as the previous attempt. That's probably an indication that you're using either an old version of cmake or an old version of mingw/dev-c++. Make sure you're using the latest versions of both and that you're using an up-to-date checkout of BRL-CAD too.
The deadline of the task has been extended with 1 days and 0 hours.
Well my brld-cad is the latests from the svn and my cmake and Dev-c++ aswell.. As far as the previous attempt is concerned the dev-c++ used is another one (with wxDev-C++ extension) not the official one ...
The claim on this task has been removed, someone else can claim it now.
I would like to work on this task.
This task has been assigned to Alexandur Osenov. You have 48 hours to complete this task, good luck!
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 generated the project aaand?
The work on this task is ready to be reviewed.
The claim on this task has been removed, someone else can claim it now.
I would like to work on this task.
This task has been assigned to Alexandur Osenov. You have 48 hours to complete this task, good luck!
Hi Alexandur,
If you want your submitted work reviewed you should keep the task claimed. Since you unclaimed the task after submitting your work and then reclaim it, so now your work in not in the queue of tasks awaiting review.
Mark the task as completed so that mentors can review and take decision whether it needs more work or enough to close the task.
but after i generated it with cmake whats next? For example in the docs its described that if you generate it with MVS you`ll get a project file and so on.. So i am expecting to get the same for Dev-c++..
Alexander, that's what this task has you figure out. What is next? You tell us. Several other people have attempted this task and gotten farther, so you should review the entire prior discussion here and look at all the previous attempts to see how it compares with what you are seeing. You may also need to search the web for more information, especially on how to use Dev-C++.
The claim on this task has been removed, someone else can claim it now.
I would like to work on this task.
Compilation stops at 9% with '-k' flag to make. All output including errors are logged. Should I just submit the logs or does this task involve fixing the errors also?(I'm asking because I've seen that there are usually "fix compilation" tasks after "attempt compilation" tasks.)
This task has been assigned to Skriptkid. You have 48 hours to complete this task, good luck!
The work on this task is ready to be reviewed.
As far as I can see you havn't used the Dev-C++ IDE. Is it possible to generate project files for this IDE with CMake and build BRL-CAD with these? What you did was simply using the GNU compiler which came with the Dev-C++ IDE. (Correct me if I'm wrong.)
Concerning your build error: Your log says something about "remade". Could there probable be an old (cygwin, mingw, ...) build in the way? If not, you could BRLCAD_ENABLE_VERBOSE_PROGRESS to get more information about the error.
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.
Cmake does not support Dev C++ yet. You can generate only Visual Studio, MinGW, Unix and some other makefiles. But no Dev C++. I did try a workaround. I generated Visual Studio project files and tried importing them in Dev C++, but that's not possible either, since Cmake generates VS project files and Dev C++ can import VC++ project files only. And also, Dev C++ uses the gcc compiler(which it comes with, along with other MinGW files.) So nope, can't use the IDE. Do correct me if I'm wrong anywhere.(I don't assume my knowledge never betrays me.) And as for the "remade" part, I'll re-build and submit.
The work on this task is ready to be reviewed.
cmake -G "CodeBlocks - Unix Makefiles"
and import these in Dev C++?
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.
Dev C++ cannot import CodeBlocks project. Only the other way around is possible. :) http://www.cplusplus.com/forum/beginner/44033/
There is a way to build it with Unix Makefiles, but it would be too messy and a new makefile will be needed as the directory structure cannot be maintained(Dev C++ adds only files but not folders into it's projects.)
http://stackoverflow.com/questions/13544684/running-a-project-in-dev-c
The work on this task is ready to be reviewed.
Congratulations, this task has been completed successfully.