Compile BRL-CAD using Dev-C++BRL-CAD
Status: ClosedTime to complete: 48 hrs Mentors: SeanTags: compile, dev-c++, windows

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
Uploaded Work
File name/URLFile sizeDate submitted
cmakelog.txt26.5 KBDecember 02 2012 15:20 UTC
cmakelog.txt31.4 KBDecember 02 2012 15:23 UTC
log.txt1.2 MBDecember 03 2012 14:33 UTC
Alexandur-cmake-log.txt1.8 KBDecember 30 2012 07:59 UTC
Alexandur -log.txt860 bytesDecember 30 2012 07:59 UTC
Alexandur -log.txt1.0 KBJanuary 01 2013 21:23 UTC
devcpp.zip19.6 KBJanuary 07 2013 02:36 UTC
build-2-logs.zip30.9 KBJanuary 07 2013 16:42 UTC
Comments
Adrián Arroyo Calleon December 1 2012 14:43 UTCTask Claimed

I would like to work on this task.

Sean on December 1 2012 14:44 UTCTask Assigned

This task has been assigned to Adrián Arroyo Calle. You have 48 hours to complete this task, good luck!

Adrián Arroyo Calleon December 2 2012 15:22 UTCCompile fails

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.

Adrián Arroyo Calleon December 2 2012 15:22 UTCReady for review

The work on this task is ready to be reviewed.

Andrei Popescu on December 2 2012 19:49 UTCFeedback

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

Andrei Popescu on December 2 2012 19:49 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.

Adrián Arroyo Calleon December 3 2012 14:34 UTCReady for review

The work on this task is ready to be reviewed.

Melange on December 3 2012 14:44 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.

Andrei Popescu on December 3 2012 17:47 UTCStop?

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?


 

Andrei Popescu on December 3 2012 17:48 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.

Adrián Arroyo Calleon December 3 2012 17:59 UTCThe errors

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.

Adrián Arroyo Calleon December 3 2012 19:52 UTCReady for review

The work on this task is ready to be reviewed.

Adrián Arroyo Calleon December 4 2012 14:33 UTCClaim Removed

The claim on this task has been removed, someone else can claim it now.

Awesomenesson December 4 2012 15:29 UTCTask Claimed

I would like to work on this task.

Daniel Rossberg on December 4 2012 15:41 UTCTask Assigned

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

Awesomenesson December 4 2012 15:49 UTCClaim Removed

The claim on this task has been removed, someone else can claim it now.

Andrei Tudoricaon December 7 2012 19:05 UTCTask Claimed

I would like to work on this task.

Sean on December 7 2012 19:10 UTCTask Assigned

This task has been assigned to Andrei Tudorica. You have 48 hours to complete this task, good luck!

Andrei Tudoricaon December 9 2012 18:58 UTCirc

I would like to contact you via IRC... how can I do that?

Melange on December 9 2012 19:10 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.

Andrei Tudoricaon December 10 2012 17:15 UTCtime

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 on December 10 2012 19:10 UTCTask Reopened

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

Andrei Tudoricaon December 10 2012 19:11 UTCTask Claimed

I would like to work on this task.

Sean on December 11 2012 01:13 UTCTask Assigned

This task has been assigned to Andrei Tudorica. You have 48 hours to complete this task, good luck!

Andrei Tudoricaon December 12 2012 16:05 UTCfinals

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

Sean on December 12 2012 16:06 UTCDeadline extended

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

Sean on December 12 2012 16:07 UTCSure, but last one

No problem, but this is the last extension since you've claimed the task twice now.

Sean on December 13 2012 14:26 UTCIRC

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?


 

Andrei Tudoricaon December 13 2012 18:53 UTCtask

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

Sean on December 13 2012 20:13 UTCcopy-paste

There's always copy-paste.

Andrei Tudoricaon December 14 2012 22:39 UTC...

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. 

Andrei Tudoricaon December 14 2012 22:41 UTCClaim Removed

The claim on this task has been removed, someone else can claim it now.

Sean on December 15 2012 06:15 UTCno worries

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.

RikuMiyaoon December 19 2012 04:42 UTCTask Claimed

I would like to work on this task.

RikuMiyaoon December 19 2012 04:42 UTCClaim Removed

The claim on this task has been removed, someone else can claim it now.

RikuMiyaoon December 19 2012 04:44 UTCTask Claimed

I would like to work on this task.

Sean on December 19 2012 04:45 UTCTask Assigned

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

RikuMiyaoon December 20 2012 02:01 UTCClaim Removed

The claim on this task has been removed, someone else can claim it now.

Stefanon December 20 2012 08:11 UTCTask Claimed

I would like to work on this task.

Harmanpreet Singh on December 20 2012 08:19 UTCTask Assigned

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

Stefanon December 21 2012 18:26 UTCClaim Removed

The claim on this task has been removed, someone else can claim it now.

Alexandur Osenovon December 22 2012 11:45 UTCTask Claimed

I would like to work on this task.

Sean on December 22 2012 13:28 UTCTask Assigned

This task has been assigned to Alexandur Osenov. You have 48 hours to complete this task, good luck!

Alexandur Osenovon December 23 2012 11:14 UTCSome explanation

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 on December 24 2012 13:28 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.

Melange on December 25 2012 13:28 UTCTask Reopened

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

Alexandur Osenovon December 25 2012 16:07 UTCTask Claimed

I would like to work on this task.

Sean on December 25 2012 18:34 UTCTask Assigned

This task has been assigned to Alexandur Osenov. You have 48 hours to complete this task, good luck!

Alexandur Osenovon December 27 2012 08:12 UTCWhich cmake generator should i use?

Which cmake generator should i use?

Melange on December 27 2012 18:34 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.

Sean on December 28 2012 08:54 UTCthe one that works?

You should use any generator that works with Dev-C++.

Sean on December 28 2012 08:55 UTCDeadline extended

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

Alexandur Osenovon December 28 2012 16:50 UTCgenerators

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"

Alexandur Osenovon December 28 2012 21:39 UTCmentor

Whats you irc chat name? I urgently need to ask you something.. And please give me more time for my task...

Alexandur Osenovon December 28 2012 21:43 UTCSo far

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.

Sean on December 28 2012 22:00 UTCDeadline extended

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

Sean on December 29 2012 05:25 UTClots of folks on IRC

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.

Alexandur Osenovon December 29 2012 22:49 UTCNeed more time for investigation

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.

Sean on December 30 2012 03:43 UTClogs

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.

Sean on December 30 2012 03:43 UTCDeadline extended

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

Alexandur Osenovon December 30 2012 08:00 UTCCheck

Can you check the cmake log ? Its the error i recieve and its probabbly something releated to the cmakelist..

Sean on December 30 2012 16:37 UTCfails too quickly

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.


 

Sean on December 30 2012 16:37 UTCDeadline extended

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

Alexandur Osenovon December 30 2012 22:51 UTCPrevious attempt

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

Alexandur Osenovon December 30 2012 22:54 UTCClaim Removed

The claim on this task has been removed, someone else can claim it now.

Alexandur Osenovon December 30 2012 23:29 UTCTask Claimed

I would like to work on this task.

Harmanpreet Singh on December 31 2012 03:41 UTCTask Assigned

This task has been assigned to Alexandur Osenov. You have 48 hours to complete this task, good luck!

Melange on January 2 2013 03:41 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.

Alexandur Osenovon January 2 2013 09:48 UTCcheck new log

i`ve generated the project aaand?

Alexandur Osenovon January 3 2013 00:10 UTCReady for review

The work on this task is ready to be reviewed.

Alexandur Osenovon January 3 2013 02:30 UTCClaim Removed

The claim on this task has been removed, someone else can claim it now.

Alexandur Osenovon January 3 2013 02:30 UTCTask Claimed

I would like to work on this task.

Harmanpreet Singh on January 3 2013 03:39 UTCTask Assigned

This task has been assigned to Alexandur Osenov. You have 48 hours to complete this task, good luck!

Harmanpreet Singh on January 3 2013 03:59 UTCKeep the task claimed if you want your submitted work reviewed

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.


 

Alexandur Osenovon January 3 2013 11:58 UTCok

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

Sean on January 3 2013 17:47 UTCThat's what you're supposed to figure out

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


 

Alexandur Osenovon January 4 2013 17:08 UTCClaim Removed

The claim on this task has been removed, someone else can claim it now.

Skriptkidon January 6 2013 17:05 UTCTask Claimed

I would like to work on this task.

Skriptkidon January 6 2013 18:28 UTCCompilation Stops

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

Erik on January 6 2013 20:55 UTCTask Assigned

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

Skriptkidon January 7 2013 02:36 UTCReady for review

The work on this task is ready to be reviewed.

Daniel Rossberg on January 7 2013 13:36 UTCWhere is the IDE?

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.

Daniel Rossberg on January 7 2013 13:36 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.

Skriptkidon January 7 2013 15:35 UTCNope

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.

Skriptkidon January 7 2013 16:41 UTCReady for review

The work on this task is ready to be reviewed.

Daniel Rossberg on January 7 2013 18:57 UTCCan you create CodeBlocks files with CMake

cmake -G "CodeBlocks - Unix Makefiles"


and import these in Dev C++?

Daniel Rossberg on January 7 2013 18:58 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.

Skriptkidon January 8 2013 04:11 UTCCan't

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

Skriptkidon January 8 2013 04:11 UTCReady for review

The work on this task is ready to be reviewed.

Daniel Rossberg on January 8 2013 07:44 UTCTask Closed

Congratulations, this task has been completed successfully.