iat-cener / tonatiuh

A Monte Carlo ray tracer for the optical simulation of solar concentrating systems
http://iat-cener.github.io/tonatiuh/
GNU General Public License v3.0
54 stars 14 forks source link

Coin3D 3.1.3 make errors #87

Open marinen767 opened 7 years ago

marinen767 commented 7 years ago

Hi,

I am trying to install Coin3D 3.1.3. by instructions given on this link: https://github.com/iat-cener/tonatiuh/wiki/Installing-Coin3D-For-Windows64

After I complete all that is written on this link and start make process, I get error: .... In file included from SoCenterballDragger.cpp:118:0: ../../src/SbBasicP.h:29:1: error: expected primary-expression before 'class' class SoAction; ^ make[4]: [SoCenterballDragger.lo] Error 1 make[4]: Leaving directory `/usr/home/Peko/Coin-3.1.3/src/draggers' make[3]: [all-recursive] Error 1 make[3]: Leaving directory /usr/home/Peko/Coin-3.1.3/src' make[2]: *** [all] Error 2 make[2]: Leaving directory/usr/home/Peko/Coin-3.1.3/src' make[1]: [all-recursive] Error 1 make[1]: Leaving directory `/usr/home/Peko/Coin-3.1.3' make: [all] Error 2

Please, could somebody help me with this?!

amutuberria commented 7 years ago

Hi, Could you send the version of MinGW, Qt and other libraries that you are using. We would try to compile it and see what errors we found. Regards,

marinen767 commented 7 years ago

Hi, certainly, here are all information that I have:

I need Coin in order to install GraspIt sw, so I followed their installation tutorial and hence I have installed all mentioned above.

Thank you for the help!

amutuberria commented 7 years ago

Hello, Could you send me the exact links to download needed files? Thank you. One of the users sent us the following changes to compile using Linux. You can also try them:

  1. Change coin3d-3.1.3/scr/fonts/freetype.cpp at line 49 to

ifdef __cplusplus

include /this is the change/ extern "C" { #endif / __cplusplus /

2 .Change the beginning of coin3d-3.1.3/include/Inventor/SbBasic.h to:

ifndef COIN_SBBASIC_H

include <Inventor/C/errors/debugerror.h> /added this line/ #define COIN_SBBASIC_H

marinen767 commented 7 years ago

Hello, I will try what you suggested, but I don't understand which links do you need!? Please, could you be more specific? Thank you!

amutuberria commented 7 years ago

Hello again, In the download list that you specified, you said that you have downloaded the mintty 2.7.3 (x86_64-pc-msys) from http://www.mingw.org/wiki/Getting_Started. But I can't find where to click to start the download process. because if I go to "Download" section there are many files that I could select and I can't file one called minty.
Another example for Qt 5.8.0, are you using the installer in this web page "https://www.qt.io/download-open-source/#section-2"? If it is correct, are downloading the code to compile using mingw 64 bits?

marinen767 commented 7 years ago

Hi, sorry for late reply. Regarding mingw, on that page I clicked mingw-get-setup.exe which led me to link: https://sourceforge.net/projects/mingw/files/latest/download for download. I followed all instruction and installed mingw 64 bits. Regarding Qt, I downloaded from https://www.qt.io/download-open-source/#section-2 (version Qt 5.8.0 for Windows 64-bit (VS 2015, 1.0 GB)) Did I answer all your questions? I will try the changes you suggested now and let you know if I succeeded.

marinen767 commented 7 years ago

I am sorry, I made a mistake, I installed version Qt 5.8.0 for Windows 64-bit (VS 2013, 958 MB) (because I have VS 2013)

amutuberria commented 7 years ago

Hi, I have downloaded mingw from the link facilitated and I compiled it with the proposed changes successfully. So if you have problems please tell us.

marinen767 commented 7 years ago

Hi, unfortunately, this didn't solve my problem... I still get the same error: ... In file included from SoCenterballDragger.cpp:118:0: ../../src/SbBasicP.h:29:1: error: expected primary-expression before 'class' class SoAction; ^ make[4]: [SoCenterballDragger.lo] Error 1 make[4]: Leaving directory `/usr/home/Peko/Coin-3.1.3/src/draggers' make[3]: [all-recursive] Error 1 make[3]: Leaving directory /usr/home/Peko/Coin-3.1.3/src' make[2]: *** [all] Error 2 make[2]: Leaving directory/usr/home/Peko/Coin-3.1.3/src' make[1]: [all-recursive] Error 1 make[1]: Leaving directory `/usr/home/Peko/Coin-3.1.3' make: [all] Error 2

nikorose87 commented 6 years ago

Hi, Could you please help me with this error:

Makefile:713: recipe for target 'SoGLRenderAction.lo' failed
make[4]: *** [SoGLRenderAction.lo] Error 1
make[4]: Leaving directory '/home/nikorose/Workspace/Coin-3.1.3/src/actions'
Makefile:2022: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/nikorose/Workspace/Coin-3.1.3/src'
Makefile:779: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/nikorose/Workspace/Coin-3.1.3/src'
Makefile:1851: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/nikorose/Workspace/Coin-3.1.3'
Makefile:1725: recipe for target 'all' failed
make: *** [all] Error 2

I followed the instructions, however, I didn't know where to put the code in the file ~/Coin-3.1.3/include/Inventor/SbBasic.h due to I didn't find the line +#include <Inventor/C/errors/debugerror.h> after configuring.

Where can I put this?:

#ifdef __cplusplus
 #include <cstdlib>
 extern "C" {
 #endif /* __cplusplus */>

Thanks!