Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coin3D 3.1.3 make errors #87

Open
marinen767 opened this issue Mar 2, 2017 · 10 comments
Open

Coin3D 3.1.3 make errors #87

marinen767 opened this issue Mar 2, 2017 · 10 comments

Comments

@marinen767
Copy link

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Author

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
Copy link
Contributor

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
Copy link
Author

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
Copy link

nikorose87 commented Feb 1, 2018

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants