Fix Visual Studio Express build issuesBRL-CAD
Status: ClosedTime to complete: 72 hrs Mentors: starseekerTags: C, C++, portability, compile, warnings, errors

This is a follow-on task to http://www.google-melange.com/gci/task/view/google/gci2013/5857193869967360

Станислав was able to get BRL-CAD compiled using Visual Studio Express 2012 but only after making several modifications.  The purpose of this task is to turn those quick fixes into more permanent, proper corrections.

Looking at the build notes, this minimally will include fixing (if not already fixed):

  • a syntax error in dm-wgl.c
  • an unresolved symbol, db5_attr_std
  • some include path failure (shouldn't need to copy zlib.h/zconf.h/regex.h, they're in other dirs that should be searched during compilation where needed)
If you cannot figure out the include path failure, at least submit a succinct compilation example (from the verbose compilation log) that shows the compile line and the compile error that results.

References:

  • http://brlcad.org/wiki/Patches

Using our latest trunk sources from SVN, submit a patch file of changes that get BRL-CAD compiling by default with Visual Studio Express.

 

Uploaded Work
File name/URLFile sizeDate submitted
BRL-CAD.zip243.4 KBDecember 22 2013 21:00 UTC
Comments
Станислав Береговon December 19 2013 16:45 UTCTask Claimed

I would like to work on this task.

Mandeep Kaur on December 19 2013 16:57 UTCTask Assigned

This task has been assigned to Станислав Берегов. You have 72 hours to complete this task, good luck!

Станислав Береговon December 21 2013 17:49 UTCCmake under Windows

These were the errors some days ago. Now, using the latest trunk sources /revisions 58904-59108/, the build system fails and Visual Studio returns this error: 


error MSB6006: "cmd.exe" exited with code -1073741515.


during the generation of attr_std_table_xml and attr_std_list_xml.


I'm struggling from hours now and can't find any problems in the make lists or in the code except that Cmake crashes. The configuration passes without any errors, this happens during the compilation. What can cause the 0xc0000135 exception in Cmake?


 


 


 


 

starseeker on December 21 2013 23:02 UTCProblem

There is a script file that is attempting to run a program that should be located in the build directory: misc/attributes/gen-attributes-file (or possibly misc/attributes/gen-attributes-file.exe)  The next step is to locate that program and try running it directly from the Windows command prompt.  If it works, there's likely a problem with the CMake logic - otherwise, it's probably an issue with the program itself.

Станислав Береговon December 21 2013 23:48 UTC

Well, great, there is a problem with libbu.dll, which exists, but is not found by the gen-attributes-file.exe. I should check where the executable expects it to be and fix it.

Станислав Береговon December 22 2013 00:14 UTC

When the libraries are in /misc/attributes/Release/ it works, but they must be loaded from /Release/bin

Станислав Береговon December 22 2013 16:39 UTCLibrary output path can't be resolved

I tried so many things to fix the bin path problem. In Visual Studio all of the gen-attributes-file references are correct. My final chance was to include the '${CMAKE_BINARY_DIR}/Release/bin/' directory into the  gen-attributes-file's CMakeList - again without any success.  The libraries and the executable are there, just VS can't link them at runtime. Also the bin folder depends on the solution configuration and the path varies.

Melange on December 22 2013 16:57 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.

Daniel Rossberg on December 22 2013 18:31 UTCUpload a report of the failure to this task

similar to what you did in the previous task.  It looks like you found an additional issue which prevents you from solving one of the others.


There will be follow on tasks too for fixing all these issues.

Daniel Rossberg on December 22 2013 18:31 UTCDeadline extended

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

Станислав Береговon December 22 2013 21:01 UTCReady for review

The work on this task is ready to be reviewed.

starseeker on December 22 2013 22:05 UTCThis is a consequence of a more general issue..

Having to do with how path searching for libraries works on Windows.  The supplied information is enough to successfully identify the issue, and resolving it is a tough problem.

starseeker on December 22 2013 22:05 UTCTask Closed

Congratulations, this task has been completed successfully.