Research status of compiling BRL-CAD on MINGWBRL-CAD
Status: ClosedTime to complete: 48 hrs Mentors: SeanTags: research, compilation, mingw, cmake

BRL-CAD compiles on a number of platforms but is rarely compiled under mingw. A cygwin compilation was last successfuly performed a few years ago with relatively minor effort, but mingw hasn't been tested.

This task involves attempting to compile BRL-CAD under mingw (AFTER successfully compiling with MSVC). Follow the CMake documentation and edit our build system accordingly. Report on what fails and write up a tutorial on the BRL-CAD wiki.

References:

Code:

  • CMakeLists.txt
  • misc/CMake/*
Uploaded Work
File name/URLFile sizeDate submitted
log.txt1.9 KBJanuary 08 2013 21:56 UTC
log.txt500.7 KBJanuary 09 2013 18:42 UTC
Comments
Vlad Andrewon November 28 2012 17:33 UTCTask Claimed

I would like to work on this task.

Harmanpreet Singh on November 28 2012 17:35 UTCTask Assigned

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

Vlad Andrewon November 28 2012 18:06 UTCClaim Removed

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

Alexandur Osenovon January 4 2013 17:21 UTCTask Claimed

I would like to work on this task.

Alexandur Osenovon January 4 2013 17:23 UTCHow to

Ok so i need to compile and generate brlcad with MSV and compile with visual studio and then?

Sean on January 4 2013 17:56 UTCTask Assigned

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

Alexandur Osenovon January 5 2013 08:33 UTCmore info

can i get a bit more explanation?

Sean on January 6 2013 14:49 UTCspecific question

You'll need to state a more specific question if you need help.  See http://brlcad.org/wiki/Compiling for some background information, but the task description and links above cover most of what you need.

Melange on January 6 2013 17:56 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 7 2013 15:50 UTCCan i get more time?

Can i get more time?

Daniel Rossberg on January 7 2013 15:58 UTCDeadline extended

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

Alexandur Osenovon January 7 2013 17:11 UTCCompilation

1. So i should configure and generate brld-cad with cmake using visual studio?


2. If so is it normal for many of the libraries not to be found?


3. Is it a problem that i am under Windows 7 (64bit)


4. After generating the project which file to compile? In the wiki the command make is used .. so should i use nmake? or make with mingw shell??

Sean on January 8 2013 09:44 UTCquestions

1. you will need to run cmake, but you should only compile with visual studio as an exercise to make sure it compiles cleanly (so if you run into a problem, you know it's mingw-specific)


2. on windows, absolutely.  we bundle almost everything needed to compile.


3. no


4. Compile everything.  At a minimum, you should attempt a make benchmark compile.  Given this tasks' goal is to compile with mingw, I'd think you'd want to use make within mingw shell, no?  You shouldn't need to involve visual studio at all. 

Alexandur Osenovon January 8 2013 13:40 UTCCompile

After configuring and generating brld-cad with CMAKE i navigated to the build directory using the mingw shell and tried running make aaaaad : 


make: *** No targets specified and no makefile found. Stop.

Alexandur Osenovon January 8 2013 21:56 UTCIts seems like it cannot be compiled

It fails with the ouput in the log .

Alexandur Osenovon January 8 2013 21:56 UTCReady for review

The work on this task is ready to be reviewed.

Sean on January 8 2013 23:31 UTCirc

Alexandur, that last pastebin you provided via IRC was perfect.  If you run that minw make with "VERBOSE=1 -k" and upload that entire log file, that should be sufficient to close out this task. 

Sean on January 8 2013 23:31 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.

Sean on January 9 2013 05:22 UTCDeadline extended

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

Alexandur Osenovon January 9 2013 18:42 UTCReady for review

The work on this task is ready to be reviewed.

Sean on January 9 2013 20:26 UTCTask Closed

Congratulations, this task has been completed successfully.