Discussion:
[brlcad-devel] Problems while building on Windows
Mario Meissner
2017-06-19 10:50:20 UTC
Permalink
Hello everyone.
I'm Mario Meissner, I have been elected to work for BRLCAD during the
summer, in case SOCIS happens. Apparently, they are having administrative
issues and the start of the coding period has been delayed. Anyway I
decided to at least set myself up and start on my own.
I'm trying to set up a Windows working environment, building with the MinGW
compiler tools and CMake with Eclipse as a target since it's the IDE I have
currently installed.

Steps I performed:

svn checkout svn://svn.code.sf.net/p/brlcad/code/brlcad/trunk brlcad-svn-trunk

Open cmake gui

configure... eclipse cdt4 mingw makefiles, use default native compilers

This is how it looks like: Loading Image...

a long test script runs, and errors occur at the end.

In particular, the errors that seem to break the configuration process
are the following:

CMake Error at CMakeLists.txt:2738 (file):
file failed to open for reading (No such file or directory):

C:/Users/Mario/Desktop/brlcad/bin/CMakeTmp/BRLCAD_BUILD_HOST

CMake Error at CMakeLists.txt:2739 (string):
string sub-command STRIP requires two arguments.

I can confirm that there are several files inside cmaketmp, including
BRLCAD_BUILD_COUNT and BRLCAD_BUILD_USER.

However, no BRLCAD_BUILD_HOST file.

The second error is probably related to the first one. Here is the line
that fails inside cmakelists:


file(READ "${BRLCAD_HOSTNAME_FILE}" BRLCAD_COMPILE_HOST)
string(STRIP ${BRLCAD_COMPILE_HOST} BRLCAD_COMPILE_HOST)
DISTCLEAN("${BRLCAD_HOSTNAME_FILE}")


It's surely failing because of the previous error where the file was not
found.

Here are the trace files it generated, in case you need extra information.
https://transfer.sh/O32GJ/CMakeOutput.log
https://transfer.sh/27Qo8/CMakeError.log
Loading Image...

Thank you in advance for helping me out,
and I apologize for my incompetence.
Mario.
Daniel Roßberg
2017-06-19 14:43:33 UTC
Permalink
Hi Mario,

I'm not aware of a successful BRL-CAD build with MinGW. All attempts
I know about got stuck during the CMake configuration, as you did.
What you could do is
- Use MS Visual Studio
- Use Linux in a virtual machine (there is an image among the BRL-CAD downloads)
- Fix BRL-CAD's CMake files (not recommended if you aren't fit in writing them)

Therefore, I'm afraid the answer is negative.


Regards,
Daniel
Post by Mario Meissner
Hello everyone.
I'm Mario Meissner, I have been elected to work for BRLCAD during the
summer, in case SOCIS happens. Apparently, they are having administrative
issues and the start of the coding period has been delayed. Anyway I decided
to at least set myself up and start on my own.
I'm trying to set up a Windows working environment, building with the MinGW
compiler tools and CMake with Eclipse as a target since it's the IDE I have
currently installed.
svn checkout svn://svn.code.sf.net/p/brlcad/code/brlcad/trunk
brlcad-svn-trunk
Open cmake gui
configure... eclipse cdt4 mingw makefiles, use default native compilers
This is how it looks like: http://i.imgur.com/CMNnICz.png
a long test script runs, and errors occur at the end.
In particular, the errors that seem to break the configuration process are
C:/Users/Mario/Desktop/brlcad/bin/CMakeTmp/BRLCAD_BUILD_HOST
string sub-command STRIP requires two arguments.
I can confirm that there are several files inside cmaketmp, including
BRLCAD_BUILD_COUNT and BRLCAD_BUILD_USER.
However, no BRLCAD_BUILD_HOST file.
The second error is probably related to the first one. Here is the line that
file(READ "${BRLCAD_HOSTNAME_FILE}" BRLCAD_COMPILE_HOST)
string(STRIP ${BRLCAD_COMPILE_HOST} BRLCAD_COMPILE_HOST)
DISTCLEAN("${BRLCAD_HOSTNAME_FILE}")
It's surely failing because of the previous error where the file was not
found.
Here are the trace files it generated, in case you need extra information.
https://transfer.sh/O32GJ/CMakeOutput.log
https://transfer.sh/27Qo8/CMakeError.log
http://i.imgur.com/6ZRiFyu.png
Thank you in advance for helping me out,
and I apologize for my incompetence.
Mario.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Developer mailing list
https://lists.sourceforge.net/lists/listinfo/brlcad-devel
Mario Meissner
2017-06-19 14:49:51 UTC
Permalink
Well at least now I know! I'll build with Visual Studio and reply to this
with the results.
Thank you!

El 19 jun. 2017 16:43, "Daniel Roßberg" <***@gmail.com>
escribió:

Hi Mario,

I'm not aware of a successful BRL-CAD build with MinGW. All attempts
I know about got stuck during the CMake configuration, as you did.
What you could do is
- Use MS Visual Studio
- Use Linux in a virtual machine (there is an image among the BRL-CAD
downloads)
- Fix BRL-CAD's CMake files (not recommended if you aren't fit in writing
them)

Therefore, I'm afraid the answer is negative.


Regards,
Daniel
Post by Mario Meissner
Hello everyone.
I'm Mario Meissner, I have been elected to work for BRLCAD during the
summer, in case SOCIS happens. Apparently, they are having administrative
issues and the start of the coding period has been delayed. Anyway I decided
to at least set myself up and start on my own.
I'm trying to set up a Windows working environment, building with the MinGW
compiler tools and CMake with Eclipse as a target since it's the IDE I have
currently installed.
svn checkout svn://svn.code.sf.net/p/brlcad/code/brlcad/trunk
brlcad-svn-trunk
Open cmake gui
configure... eclipse cdt4 mingw makefiles, use default native compilers
This is how it looks like: http://i.imgur.com/CMNnICz.png
a long test script runs, and errors occur at the end.
In particular, the errors that seem to break the configuration process are
C:/Users/Mario/Desktop/brlcad/bin/CMakeTmp/BRLCAD_BUILD_HOST
string sub-command STRIP requires two arguments.
I can confirm that there are several files inside cmaketmp, including
BRLCAD_BUILD_COUNT and BRLCAD_BUILD_USER.
However, no BRLCAD_BUILD_HOST file.
The second error is probably related to the first one. Here is the line that
file(READ "${BRLCAD_HOSTNAME_FILE}" BRLCAD_COMPILE_HOST)
string(STRIP ${BRLCAD_COMPILE_HOST} BRLCAD_COMPILE_HOST)
DISTCLEAN("${BRLCAD_HOSTNAME_FILE}")
It's surely failing because of the previous error where the file was not
found.
Here are the trace files it generated, in case you need extra information.
https://transfer.sh/O32GJ/CMakeOutput.log
https://transfer.sh/27Qo8/CMakeError.log
http://i.imgur.com/6ZRiFyu.png
Thank you in advance for helping me out,
and I apologize for my incompetence.
Mario.
------------------------------------------------------------
------------------
Post by Mario Meissner
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Developer mailing list
https://lists.sourceforge.net/lists/listinfo/brlcad-devel
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Mario Meissner
2017-06-19 19:39:12 UTC
Permalink
I've been able to build successfully with VS Tools.
Awaiting further instructions to get started.

Mario.
Post by Daniel Roßberg
Hi Mario,
I'm not aware of a successful BRL-CAD build with MinGW. All attempts
I know about got stuck during the CMake configuration, as you did.
What you could do is
- Use MS Visual Studio
- Use Linux in a virtual machine (there is an image among the BRL-CAD downloads)
- Fix BRL-CAD's CMake files (not recommended if you aren't fit in writing them)
Therefore, I'm afraid the answer is negative.
Regards,
Daniel
Post by Mario Meissner
Hello everyone.
I'm Mario Meissner, I have been elected to work for BRLCAD during the
summer, in case SOCIS happens. Apparently, they are having administrative
issues and the start of the coding period has been delayed. Anyway I
decided
Post by Mario Meissner
to at least set myself up and start on my own.
I'm trying to set up a Windows working environment, building with the
MinGW
Post by Mario Meissner
compiler tools and CMake with Eclipse as a target since it's the IDE I
have
Post by Mario Meissner
currently installed.
svn checkout svn://svn.code.sf.net/p/brlcad/code/brlcad/trunk brlcad-svn-trunk
Open cmake gui
configure... eclipse cdt4 mingw makefiles, use default native compilers
This is how it looks like: http://i.imgur.com/CMNnICz.png
a long test script runs, and errors occur at the end.
In particular, the errors that seem to break the configuration process
are
Post by Mario Meissner
C:/Users/Mario/Desktop/brlcad/bin/CMakeTmp/BRLCAD_BUILD_HOST
string sub-command STRIP requires two arguments.
I can confirm that there are several files inside cmaketmp, including
BRLCAD_BUILD_COUNT and BRLCAD_BUILD_USER.
However, no BRLCAD_BUILD_HOST file.
The second error is probably related to the first one. Here is the line
that
Post by Mario Meissner
file(READ "${BRLCAD_HOSTNAME_FILE}" BRLCAD_COMPILE_HOST)
string(STRIP ${BRLCAD_COMPILE_HOST} BRLCAD_COMPILE_HOST)
DISTCLEAN("${BRLCAD_HOSTNAME_FILE}")
It's surely failing because of the previous error where the file was not
found.
Here are the trace files it generated, in case you need extra
information.
Post by Mario Meissner
https://transfer.sh/O32GJ/CMakeOutput.log
https://transfer.sh/27Qo8/CMakeError.log
http://i.imgur.com/6ZRiFyu.png
Thank you in advance for helping me out,
and I apologize for my incompetence.
Mario.
------------------------------------------------------------
------------------
Post by Mario Meissner
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Developer mailing list
https://lists.sourceforge.net/lists/listinfo/brlcad-devel
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Developer mailing list
https://lists.sourceforge.net/lists/listinfo/brlcad-devel
Christopher Sean Morrison
2017-06-20 16:36:57 UTC
Permalink
Mario,



After getting a successful build, I suggest working through a few of the user modeling tutorials so you understand how some of the tools and commands work.  The "Introduction to MGED" at

http://brlcad.org/wiki/Documentation is a good place to start.  I suggest browsing through most of the available documentation as well.


Cheers!

Sean






On Jun 19, 2017, at 03:40 PM, Mario Meissner <***@gmail.com> wrote:


I've been able to build successfully with VS Tools.

Awaiting further instructions to get started.


Mario.



2017-06-19 16:43 GMT+02:00 Daniel Roßberg <***@gmail.com>:

Hi Mario,

I'm not aware of a successful BRL-CAD build with MinGW.  All attempts
I know about got stuck during the CMake configuration, as you did.
What you could do is
- Use MS Visual Studio
- Use Linux in a virtual machine (there is an image among the BRL-CAD downloads)
- Fix BRL-CAD's CMake files (not recommended if you aren't fit in writing them)

Therefore, I'm afraid the answer is negative.


Regards,
    Daniel
Post by Mario Meissner
Hello everyone.
I'm Mario Meissner, I have been elected to work for BRLCAD during the
summer, in case SOCIS happens. Apparently, they are having administrative
issues and the start of the coding period has been delayed. Anyway I decided
to at least set myself up and start on my own.
I'm trying to set up a Windows working environment, building with the MinGW
compiler tools and CMake with Eclipse as a target since it's the IDE I have
currently installed.
svn checkout svn://svn.code.sf.net/p/brlcad/code/brlcad/trunk
brlcad-svn-trunk
Open cmake gui
configure... eclipse cdt4 mingw makefiles, use default native compilers
This is how it looks like: http://i.imgur.com/CMNnICz.png
a long test script runs, and errors occur at the end.
In particular, the errors that seem to break the configuration process are
     C:/Users/Mario/Desktop/brlcad/bin/CMakeTmp/BRLCAD_BUILD_HOST
string sub-command STRIP requires two arguments.
I can confirm that there are several files inside cmaketmp, including
BRLCAD_BUILD_COUNT and BRLCAD_BUILD_USER.
However, no BRLCAD_BUILD_HOST file.
The second error is probably related to the first one. Here is the line that
file(READ "${BRLCAD_HOSTNAME_FILE}"  BRLCAD_COMPILE_HOST)
string(STRIP ${BRLCAD_COMPILE_HOST} BRLCAD_COMPILE_HOST)
DISTCLEAN("${BRLCAD_HOSTNAME_FILE}")
It's surely failing because of the previous error where the file was not
found.
Here are the trace files it generated, in case you need extra information.
https://transfer.sh/O32GJ/CMakeOutput.log
https://transfer.sh/27Qo8/CMakeError.log
http://i.imgur.com/6ZRiFyu.png
Thank you in advance for helping me out,
and I apologize for my incompetence.
Mario.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Developer mailing list
https://lists.sourceforge.net/lists/listinfo/brlcad-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Developer mailing list
brlcad-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Continue reading on narkive:
Loading...