Compilng Celestia SVN on Fedora15

Report bugs, bug fixes and workarounds here.
Topic author
NIGHTCAST2000
Posts: 146
Joined: 09.10.2006
With us: 18 years 1 month

Compilng Celestia SVN on Fedora15

Post #1by NIGHTCAST2000 » 29.06.2011, 17:56

Hi alll,
I have a problem with Celestia. I have downloaded the latest SVN version(Rev5163). I have tried with either gtk,KDE,glut,and qt as a frontend. THe trouble is I keep getting this error when running make:

Code: Select all

/../thirdparty/Eigen/Eigen/src/Core/util/Memory.h:343:13: error: ‘ptrdiff_t’ does not name a type


My graphics card is a Nvidia Geforce 6,800 GT (Nv40) with the latest Nouveau Driver from the git repositories.

Having looking at the forum today, I see these discussions using the QT4 creator (I have installed it using yum) I would like to know on exactly how to use it on the downloaded SVN code. As far as I know I have the dependencies installed...

Regards,
NIGHTCAST2000
Motherboard:Asus Sabretooth 990FX
Processor: AMD Athlon II X3 46
Memory: 4 Gb DDR3 SDRAM
Graphics Card: Nvidia 560 GTX 1Gb
SoundCard: Asus onboard
Hardrive:Seagate Barracuda 1TB GB 7200rpm SATA 23Mb Cache

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

Re: Compilng Celestia SVN on Fedora15

Post #2by John Van Vliet » 30.06.2011, 08:40

--- edit ---
Last edited by John Van Vliet on 19.10.2013, 07:31, edited 1 time in total.

Topic author
NIGHTCAST2000
Posts: 146
Joined: 09.10.2006
With us: 18 years 1 month

Re: Compilng Celestia SVN on Fedora15

Post #3by NIGHTCAST2000 » 30.06.2011, 19:44

Hi john Van Vliet,
I'd like to thank you for the advice. I had put in

Code: Select all

#include <cstddef>
in the top of /thirdparty/Eigen/Eigen/src/Core/util/Memory.h like this:

Code: Select all

#include <cstddef>
#ifndef EIGEN_MEMORY_H
#define EIGEN_MEMORY_H

// FreeBSD 6 seems to have 16-byte aligned malloc
// See http://svn.freebsd.org/viewvc/base/stable/6/lib/libc/stdlib/malloc.c?view=markup
// FreeBSD 7 seems to have 16-byte aligned malloc except on ARM and MIPS architectures
// See http://svn.freebsd.org/viewvc/base/stable/7/lib/libc/stdlib/malloc.c?view=markup
#if defined(__FreeBSD__) && !defined(__arm__) && !defined(__mips__)
#define EIGEN_FREEBSD_MALLOC_ALREADY_ALIGNED 1
#else
#define EIGEN_FREEBSD_MALLOC_ALREADY_ALIGNED 0
#endif]
the addition of the code is on line 26 in that file. The full path is: "/trunk/celestia/thirdparty/Eigen/Eigen/src/Core/util/Memory.h"

The compilation got me a lot further than before,but unfortunately,I've hit another snag.

Code: Select all

est -f 'dsodb.cpp' || echo './'`dsodb.cpp
In file included from ../../src/celengine/vertexprog.h:14:0,
                 from ../../src/celengine/glcontext.h:13,
                 from ../../src/celengine/deepskyobj.h:18,
                 from ../../src/celengine/dsoname.h:17,
                 from ../../src/celengine/dsodb.h:18,
                 from dsodb.cpp:23:
../../thirdparty/glew/include/GL/glew.h:1606:9: error: ‘ptrdiff_t’ does not name a type
../../thirdparty/glew/include/GL/glew.h:1607:9: error: ‘ptrdiff_t’ does not name a type
../../thirdparty/glew/include/GL/glew.h:1611:65: error: ‘GLsizeiptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:1612:68: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:1612:85: error: ‘GLsizeiptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:1620:71: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:1620:88: error: ‘GLsizeiptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:2548:82: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:2548:99: error: ‘GLsizeiptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:2792:96: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:2792:117: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:2792:139: error: ‘GLsizeiptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:3357:77: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:3357:94: error: ‘GLsizeiptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:3358:73: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:3358:90: error: ‘GLsizeiptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:4283:99: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:4283:116: error: ‘GLsizeiptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:4451:9: error: ‘ptrdiff_t’ does not name a type
../../thirdparty/glew/include/GL/glew.h:4452:9: error: ‘ptrdiff_t’ does not name a type
../../thirdparty/glew/include/GL/glew.h:4455:68: error: ‘GLsizeiptrARB’ has not been declared
../../thirdparty/glew/include/GL/glew.h:4456:71: error: ‘GLintptrARB’ has not been declared
../../thirdparty/glew/include/GL/glew.h:4456:91: error: ‘GLsizeiptrARB’ has not been declared
../../thirdparty/glew/include/GL/glew.h:4461:74: error: ‘GLintptrARB’ has not been declared
../../thirdparty/glew/include/GL/glew.h:4461:94: error: ‘GLsizeiptrARB’ has not been declared
../../thirdparty/glew/include/GL/glew.h:5362:18: error: ISO C++ forbids declaration of ‘GLintptr’ with no type [-fpermissive]
../../thirdparty/glew/include/GL/glew.h:5362:18: error: typedef ‘GLintptr’ is initialized (use decltype instead)
../../thirdparty/glew/include/GL/glew.h:5362:32: error: ‘PFNGLGETUNIFORMOFFSETEXTPROC’ was not declared in this scope
In file included from ../../src/celengine/vertexprog.h:14:0,
                 from ../../src/celengine/glcontext.h:13,
                 from ../../src/celengine/deepskyobj.h:18,
                 from ../../src/celengine/dsoname.h:17,
                 from ../../src/celengine/dsodb.h:18,
                 from dsodb.cpp:23:
../../thirdparty/glew/include/GL/glew.h:5705:85: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:5705:102: error: ‘GLsizeiptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:5732:79: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:5732:96: error: ‘GLsizeiptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:5755:81: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:5755:98: error: ‘GLsizeiptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:5800:73: error: ‘GLsizeiptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:5801:76: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:5801:93: error: ‘GLsizeiptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:5802:104: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:5802:125: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:5802:147: error: ‘GLsizeiptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:5874:135: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:5875:113: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:5876:126: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:5877:123: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:5878:159: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:5879:124: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:5880:144: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:5881:138: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:5882:157: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:5883:178: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:5884:136: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:7682:103: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:7683:102: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:7683:119: error: ‘GLsizeiptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:9514:102: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:9515:101: error: ‘GLintptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:9515:118: error: ‘GLsizeiptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:9629:109: error: ‘GLsizeiptr’ has not been declared
../../thirdparty/glew/include/GL/glew.h:11931:17: error: ‘PFNGLGETUNIFORMOFFSETEXTPROC’ does not name a type
make[3]: *** [libcelengine_a-dsodb.o] Error 1
make[3]: Leaving directory `/home/steve/trunk/celestia/src/celengine'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/steve/trunk/celestia/src'
make[1]: *** [all-recursive] Error 1
I've had a look at the ./configure options to see if I could direct the compilation to my packaged verion of Mesa,or point it to my git version.

Regards,
NIGHTCAST2,000
Motherboard:Asus Sabretooth 990FX
Processor: AMD Athlon II X3 46
Memory: 4 Gb DDR3 SDRAM
Graphics Card: Nvidia 560 GTX 1Gb
SoundCard: Asus onboard
Hardrive:Seagate Barracuda 1TB GB 7200rpm SATA 23Mb Cache

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

Re: Compilng Celestia SVN on Fedora15

Post #4by John Van Vliet » 30.06.2011, 20:41

--- edit ---
Last edited by John Van Vliet on 19.10.2013, 07:31, edited 1 time in total.

Topic author
NIGHTCAST2000
Posts: 146
Joined: 09.10.2006
With us: 18 years 1 month

Re: Compilng Celestia SVN on Fedora15

Post #5by NIGHTCAST2000 » 30.06.2011, 22:05

Hi John,
I guess I wouldn't blame you for not going through the "growing pains" of going through form one version of GCC to another. I do vaguely remember those times from upgrading from one distribution version to another. Personally, GCC-4.6 hasn't been too bad,it does throw the odd wobbly now and again,but generally it has been fine. Hopefully,when GCC-4.6.1 comes out,things will be better. I'll see if I can get GCC-4.5 from yum and I'll use that for the time being if I do have it available.

I would like to thank you for trying to help me out John.

Regards,
NIGHCAST2,000
Motherboard:Asus Sabretooth 990FX
Processor: AMD Athlon II X3 46
Memory: 4 Gb DDR3 SDRAM
Graphics Card: Nvidia 560 GTX 1Gb
SoundCard: Asus onboard
Hardrive:Seagate Barracuda 1TB GB 7200rpm SATA 23Mb Cache


Return to “Bugs”