trying compiling NxOgre on linux (ubuntu)

maroxe

24-09-2008 22:12:14

Hi again,
i have decided today to (re) install kubuntu. and i am trying now to compile NxOgre.
i compiled Ogre 1.6 RC1, i didn't face any problem
i downloaded and installed Physx SDK for linux(http://developer.download.nvidia.com/Ph ... deb.tar.gz), i didn't have any problem
but with NxOgre, i have those errors when compiling from source(blending):
/home/bachir/NxOgre/NxOgre/include/NxOgreStable.h|55|erreur: OgreNoMemoryMacros.h : Aucun fichier ou dossier de ce type|
/home/bachir/NxOgre/NxOgre/include/NxOgreStable.h|62|erreur: OgreMemoryMacros.h : Aucun fichier ou dossier de ce type|
/home/bachir/NxOgre/NxOgre/include/BetajaenCC.h|119|erreur: expected type-specifier before «SharedAllocator»|
/home/bachir/NxOgre/NxOgre/include/BetajaenCC.h|119|erreur: expected «>» before «SharedAllocator»|
/home/bachir/NxOgre/NxOgre/include/BetajaenCC.h|135|erreur: expected initializer before «SharedAllocator»|
/usr/include/c++/4.2/i486-linux-gnu/bits/gthr.h|33|erreur: expected `}' before end of line|
/usr/include/c++/4.2/i486-linux-gnu/bits/gthr.h|33|erreur: expected declaration before end of line|
||=== Build finished: 7 errors, 0 warnings ===|

soory, my system is frensh. I'll try to translate:
OgreNoMemoryMacros.h : No such file or directory
OgreMemoryMacros.h : No such file or directory
the other error are in english, so i guess they don't need any translation :D

mcaden

25-09-2008 02:35:38

that's a 1.6 issue.

comment out where it asks for those files

OgreNoMemoryMacros.h
OgreMemoryMacros.h

maroxe

25-09-2008 09:22:18

and what about this error:
expected type-specifier before «SharedAllocator»| :?: :?:

maroxe

25-09-2008 17:18:39

this the part of source code wich causes probleme(file BetajaenCC.h, line 117 to 165):
BETAJAEN_CC_NAMESPACE_START

template <class TypePtr, class AllocatorType = SharedAllocator> class Flat;
class SharedAllocator;
template <class BaseType, class AllocatorType = SharedAllocator> class Array;
template <class BaseType, class AllocatorType = SharedAllocator> class SharedList;
template <typename IdentifierType, class BaseType, class AllocatorType = SharedAllocator> class SharedMap;
template <typename IdentifierType, class TypePtr> class Tree;
template <typename> class Vector2;
template <typename> class Vector3;
template <typename> class Vector4;

BETAJAEN_CC_NAMESPACE_END

//////////////////////////////////////////////////////////////////////////

BETAJAEN_CC_NAMESPACE_START

class BETAJAEN_CC_CLASS_EXPORT SharedAllocator {

public:

/////////////////////////////////////////////////////////////

void* Allocate(size_t size)
{
return malloc(size);
}

/////////////////////////////////////////////////////////////

void Deallocate(void* mem)
{
if (mem)
free(mem);
}

/////////////////////////////////////////////////////////////

void* Reallocate(void* mem, size_t size)
{
return realloc(mem, size);
}

/////////////////////////////////////////////////////////////

}; // End of the SharedAllocator class.

BETAJAEN_CC_NAMESPACE_END

maroxe

25-09-2008 21:17:54

if i install Ogre 1.4, will it work fine?

maroxe

26-09-2008 00:00:03

with Ogre 1.49, i have the same problemes :(

Toby

06-10-2008 17:28:44

Hello,

A friend and i will try to compil our game on ubuntu. If it will work fine we tell you how to do.