NxOgre in Linux, and Ogre 1.7

jonathanblacknight

20-04-2010 18:28:06

Hi,
I'm new in ogre programming, i want to use physX for physics, i'm using code::blocks, ogre 1.7, ubuntu 10.04, i was searching in NxOgre wiki and i didn't find anything about linux.

Can I use nxOgre 100% in linux? I procced exactlly like in Windows?

thanks

betajaen

20-04-2010 20:23:37

I don't have access to the Linux PhysX SDK anymore, so I can't write any Linux specific code for it.

However, if you have access to it. Your welcome to try and port it.

jonathanblacknight

20-04-2010 20:44:09

sorry for my ignorance but is not here? http://developer.nvidia.com/object/physx_archives.html

betajaen

20-04-2010 22:13:36

Your right! I must of missed those.

They are old versions though, the latest public is on 2.8.3, but you can try them out and see if they work with NxOgre or not.

jonathanblacknight

21-04-2010 02:07:57

I download the physX sdk, and download NxOgre Bloody Mess, i use the Code::Blocks to open NxOgre.VC9.cbp and try to compile and i get:


-------------- Build: Debug Win32 in NxOgre ---------------

Compiling: source/nedmalloc.cpp
In file included from /home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/nedmalloc.cpp:63:
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:499:21: error: windows.h: Arquivo ou diretório não encontrado
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:660:1: warning: "M_TRIM_THRESHOLD" redefined
In file included from /home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/nedmalloc.cpp:38:
/usr/include/malloc.h:125:1: warning: this is the location of the previous definition
In file included from /home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/nedmalloc.cpp:63:
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:662:1: warning: "M_MMAP_THRESHOLD" redefined
In file included from /home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/nedmalloc.cpp:38:
/usr/include/malloc.h:127:1: warning: this is the location of the previous definition
In file included from /home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/nedmalloc.cpp:63:
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:696: error: redefinition of ‘struct mallinfo’
/usr/include/malloc.h:94: error: previous definition of ‘struct mallinfo’
In file included from /home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/nedmalloc.cpp:63:
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:1336: error: ‘LONG’ does not name a type
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:1337: error: ‘LONG’ does not name a type
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h: In function ‘void* win32mmap(size_t)’:
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:1488: error: ‘MEM_RESERVE’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:1488: error: ‘MEM_COMMIT’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:1488: error: ‘PAGE_READWRITE’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:1488: error: ‘VirtualAlloc’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h: In function ‘void* win32direct_mmap(size_t)’:
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:1494: error: ‘MEM_RESERVE’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:1494: error: ‘MEM_COMMIT’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:1494: error: ‘MEM_TOP_DOWN’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:1495: error: ‘PAGE_READWRITE’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:1495: error: ‘VirtualAlloc’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h: In function ‘int win32munmap(void*, size_t)’:
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:1501: error: ‘MEMORY_BASIC_INFORMATION’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:1501: error: expected ‘;’ before ‘minfo’
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:1504: error: ‘minfo’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:1504: error: ‘VirtualQuery’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:1506: error: ‘minfo’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:1507: error: ‘MEM_COMMIT’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:1509: error: ‘MEM_RELEASE’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:1509: error: ‘VirtualFree’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:1511: error: ‘minfo’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h: In function ‘long int win32_getcurrentthreadid()’:
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:1760: error: ‘GetCurrentThreadId’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h: In function ‘int win32_acquire_lock(win32_mlock_t*)’:
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:1774: error: ‘_InterlockedExchange’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:1783: error: ‘FALSE’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:1783: error: ‘SleepEx’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h: In function ‘void win32_release_lock(win32_mlock_t*)’:
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:1792: error: ‘_InterlockedExchange’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h: In function ‘int win32_try_lock(win32_mlock_t*)’:
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:1804: error: ‘_InterlockedExchange’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h: In function ‘int init_mparams()’:
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:2963: error: ‘SYSTEM_INFO’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:2963: error: expected ‘;’ before ‘system_info’
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:2964: error: ‘system_info’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:2964: error: ‘GetSystemInfo’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:3017: error: ‘GetTickCount’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h: In function ‘malloc_chunk* mmap_resize(malloc_state*, malloc_chunk*, size_t)’:
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:3704: error: ‘MREMAP_DEFAULT’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h: In function ‘int sys_trim(malloc_state*, size_t)’:
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:4137: error: ‘MREMAP_DEFAULT’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h: In function ‘void* internal_realloc(malloc_state*, void*, size_t)’:
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:4355: error: ‘memcpy’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h: In function ‘void** ialloc(malloc_state*, size_t, size_t*, int, void**)’:
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:4529: error: ‘memset’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h: In function ‘malloc_state* init_user_mstate(char*, size_t)’:
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:4950: error: ‘memset’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h: In function ‘void* mspace_calloc(void*, size_t, size_t)’:
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:5274: error: ‘memset’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/nedmalloc.cpp: At global scope:
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/nedmalloc.cpp:100: error: ‘LPVOID’ does not name a type
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/nedmalloc.cpp:197: error: ‘DWORD’ does not name a type
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/nedmalloc.cpp: In function ‘nedalloc::threadcache* nedalloc::AllocCache(nedalloc::nedpool*)’:
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/nedmalloc.cpp:371: error: ‘struct nedalloc::nedpool_t’ has no member named ‘mycache’
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/nedmalloc.cpp:371: error: ‘TlsSetValue’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/nedmalloc.cpp: In function ‘int nedalloc::InitPool(nedalloc::nedpool*, size_t, int)’:
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/nedmalloc.cpp:550: error: ‘memset’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/nedmalloc.cpp:551: error: ‘struct nedalloc::nedpool_t’ has no member named ‘mycache’
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/nedmalloc.cpp:551: error: ‘TlsAlloc’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/nedmalloc.cpp:551: error: ‘TLS_OUT_OF_INDEXES’ was not declared in this scope
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/nedmalloc.cpp:551: error: ‘struct nedalloc::nedpool_t’ has no member named ‘mycache’
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/nedmalloc.cpp:567: error: ‘struct nedalloc::nedpool_t’ has no member named ‘mycache’
Process terminated with status 1 (0 minutes, 0 seconds)
50 errors, 4 warnings


Anyone know why this lot of errors to help me :D???

Amnuriak

21-04-2010 06:37:40

/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/msvc/source/malloc.c.h:499:21: error: windows.h: Arquivo ou diretório não encontrado the "windows.h" will most likely be the issue. Seeing how you build with
-------------- Build: Debug Win32 in NxOgre --------------- you should modify the build settings so it won't search for windows specific headers.

jonathanblacknight

21-04-2010 06:46:59

thanks,
sorry for noob question, but how i can do this?

Amnuriak

21-04-2010 07:43:06

I suggest you set up a new build mode, e.g. "Debug Linux" or "Debug Linux 32" (don't know if latter makes sense at all with Linux), so you don't mess up your "originally working" mode. Then you copy all the settings from "Debug Win32" to "Debug Linux" which make sense for a Linux environment. The preprocessor definition "WIN32" would not make sense in this way ...
Well, basically you just need to configure your build to match your environment. That requires some basics in build setup but should not be so difficult for NxOgre as it is pretty well defined. If you have some previous project which compiled (and ran) fine then just use that as a base and try to modify those settings to match the ones originally imported from NxOgre.
No worry about the noob question, I consider myself one as well ;-)

Tsh't

03-05-2010 07:46:05

Just tried to compile my multi platform project on linux with bloodymess... So I need too to have NxOgre working on linux.
If I manage to I might create a CMake file (but trying with c::b for now)... If betajean don't do the job first :p

toglia

03-05-2010 20:54:58

Hey Tsh't, I'm also very interested on having Bloddy Mess on Linux. Please let me know If you get something ready. Although I'm not an experienced programmer I managed to build version 0.9 of NxOgre a couple days ago, but I got stuck after trying to use NXS shapes, this is my post:
viewtopic.php?f=6&t=12535

tuftux

03-05-2010 21:39:35

I'm also very interested ! :)

Tsh't

09-05-2010 14:56:16

Hello. I finished compiling it for Code::Blocks & Linux.
I will now test runtime, even if my application is not complex enough to test it all... I don't know how to share it... I make a significant number of changes. If you wish I may make a patch file ? (and Betajean could review it...)

tuftux

09-05-2010 19:20:02

Oh yeah, please share :)

betajaen

09-05-2010 19:22:59

Post what you've got in the attachments here.

jonathanblacknight

09-05-2010 20:29:54

i don't know if i'm right, but i created a copy of Debug Win32, i named Debug Linux32, and in build options -> #defines i remove the options win32 and _WINDOWS.

i still get some erros in build like

||=== NxOgre, Debug Linux32 ===|
source/NxOgreConfiguration.h|15|error: NxOgreCompiler.h: Arquivo ou diretório não encontrado|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreAccumulativeSceneTimer.cpp|30|error: NxPhysics.h: Arquivo ou diretório não encontrado|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreMemory.h|42|error: expected initializer before ‘Memory’|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreSingleton.h|66|error: declaration of ‘operator new’ as non-function|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreSingleton.h|66|error: expected ‘;’ before ‘(’ token|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreSingleton.h|71|error: expected ‘;’ before ‘void’|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreSingleton.h|73|error: ‘NxOgre::Memory’ has not been declared|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgrePointerClass.h|59|error: declaration of ‘operator new’ as non-function|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgrePointerClass.h|59|error: expected ‘;’ before ‘(’ token|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgrePointerClass.h|64|error: expected ‘;’ before ‘void’|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgrePointerClass.h|64|error: declaration of ‘operator new’ as non-function|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgrePointerClass.h|64|error: expected ‘;’ before ‘(’ token|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgrePointerClass.h|69|error: expected ‘;’ before ‘void’|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgrePointerClass.h|69|error: declaration of ‘operator new []’ as non-function|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgrePointerClass.h|69|error: expected ‘;’ before ‘(’ token|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgrePointerClass.h|74|error: expected ‘;’ before ‘void’|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgrePointerClass.h|76|error: ‘NxOgre::Memory’ has not been declared|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgrePointerClass.h|81|error: ‘NxOgre::Memory’ has not been declared|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|58|error: expected nested-name-specifier before ‘T’|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|58|error: expected ‘;’ before ‘*’ token|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|127|error: ‘TIterator’ has not been declared|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|127|error: ‘TIterator’ has not been declared|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|127|error: ‘TIterator’ has not been declared|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|160|error: ‘TIterator’ has not been declared|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|160|error: ‘TIterator’ has not been declared|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|166|error: ‘TIterator’ has not been declared|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|166|error: ‘TIterator’ has not been declared|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|173|error: ‘TIterator’ does not name a type|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h||In constructor ‘NxOgre::Functions::SharedArray<T>::SharedArray(int)’:|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|62|error: ‘_First’ was not declared in this scope|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|62|error: ‘_Last’ was not declared in this scope|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|62|error: ‘_End’ was not declared in this scope|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h||In destructor ‘NxOgre::Functions::SharedArray<T>::~SharedArray()’:|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|69|error: ‘_First’ was not declared in this scope|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|71|error: ‘_End’ was not declared in this scope|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|72|error: ‘NxOgre::Memory’ has not been declared|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|74|error: ‘_First’ was not declared in this scope|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|74|error: ‘_Last’ was not declared in this scope|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|74|error: ‘_End’ was not declared in this scope|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|79|error: ‘NxOgre::Memory’ has not been declared|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|84|error: ‘NxOgre::Memory’ has not been declared|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h||In member function ‘size_t NxOgre::Functions::SharedArray<T>::size()’:|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|89|error: ‘_Last’ was not declared in this scope|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|89|error: ‘_First’ was not declared in this scope|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h||In member function ‘size_t NxOgre::Functions::SharedArray<T>::capacity()’:|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|94|error: ‘_End’ was not declared in this scope|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|94|error: ‘_First’ was not declared in this scope|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h||In member function ‘T& NxOgre::Functions::SharedArray<T>::get(size_t)’:|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|99|error: ‘_First’ was not declared in this scope|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h||In member function ‘size_t NxOgre::Functions::SharedArray<T>::where(const T&)’:|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|104|error: ‘TIterator’ was not declared in this scope|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|104|error: expected ‘;’ before ‘begin’|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|105|error: ‘begin’ was not declared in this scope|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|105|error: ‘last’ was not declared in this scope|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|107|error: ‘_First’ was not declared in this scope|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h||In member function ‘void NxOgre::Functions::SharedArray<T>::insert(T)’:|
/home/jonathan/dev/NxOgre.1.5.5.BloodyMess/build/source/NxOgreArray.h|113|error: ‘_End’ was not declared in this scope|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|

i know i need to set the PhysX_dir, but in linux is /usr/sbin/PhysX_Samples_2.8.1_FC4 or /usr/lib/PhysX/v2.8.1

Tsh't

10-05-2010 00:12:32

Ok this compiles on windows (for all) and linux (for nxogre and Ogre3Drenderer, didn't tested the others). With code::blocks : added Linux Debug and Linux Release.
I hope there is no missing files.

Path is hardcoded in c::b sorry. But if you dpkg physx 2.8.1 and installed Ogre on linux, as path is fixed, everything should go smoothly.

To try just copy files and run the c::b workspace which is in "linux" subdirectory of build. This is messy... Could be done way better.

I didn't test the runtime :wink:

EDIT : I updated it for ld issue and Addon project in c::b...

betajaen

10-05-2010 00:28:13

Thanks. I'll have a look at it and see what the changes are.

Ideally, I would like to write extra code into Pasta so it can generate the Code::Blocks files for you.

Tsh't

11-05-2010 13:31:18

If somebody tried it, it needs some modifications for the ld step (like I think putting every "extern inline" in a inline def in .h at first glance).

jonathanblacknight

11-05-2010 20:25:47

very thanks for the modifications, i'll try it assap

jonathanblacknight

12-05-2010 05:33:49

i downloaded it, and tried to compile and i get a lot of errors like:

WARNING: Can't read file's timestamp: /home/jonathan/dev/nx-ogre/diffs_nxogre/build/source/NxOgreAccumulativeSceneTimer.cpp

and

g++: Release Linux/source/NxOgreAccumulativeSceneTimer.o: No Such file or directory

i searched in the build/source folder and i didn't find it

one last question: The project NxOgreAddonCharacterController, don't have Release Linux, is this right?

thanks again :D

Tsh't

12-05-2010 20:51:49

Hello. I made some corrections for ld but here stays some :
ld: warning: libNxCooking.so.1, needed by NxOgre.so, not found (try using -rpath or -rpath-link)
ld: warning: cannot find entry symbol _start; not setting start address
/usr/lib/libPhysXLoader.so.1: undefined reference to `dlsym'
/usr/lib/libPhysXLoader.so.1: undefined reference to `dlopen'
/usr/lib/libPhysXLoader.so.1: undefined reference to `dlclose'

does physx use dlmalloc, and/or is there a conflict with nxogre's dlmalloc, that's the question...

I made the c::b linux debug and release for NxOgreAddonCharacterController (which is not in my zip).
For the file you search... I think I did not modify it so you should use the one in NxOgre you downloaded, it's only diffed files I put into the zip.

I'll replace the zip shortly.

Tsh't

12-05-2010 22:45:16

I just replaced it.

jonathanblacknight

13-05-2010 03:34:17

Thanks again guy, i'll try it and post the results :D

betajaen

13-05-2010 15:02:17

I've had a go at porting Detritus over to Linux using Code::Blocks. So far, so good. I've believe I've fixed the majority of the problems, and now it's the Windows related and nit-picking code that needs finishing off.

I am using a very old copy of PhysX 2.8.0 to compile with though, so I had to put some "hacks" in so it compiles in both versions I have. I'll come up with a better solution, once I have it fully compiled.

tuftux

18-05-2010 18:45:50

Some news :) ?
Actually I have many problems compiling the package that Tsh't maked us, and don't have the skills to correct them :(

jonathanblacknight

20-05-2010 06:19:12

Ohhh great guys finally with the Tsh't patch i build the nxOgre (debug and release) project without errors.

I compile the GLUTRenderSystem and I have some problems, but i solved it, in build options of project, #defines, change WIN32 to LINUX, and it's ok

i compile Ogre3DRenderSystem without problems too,

and i compile nxOgreAddonCharacterController without problems too.

tuftux what are your compilation problems?
copy and paste here.

now that i build it, i'll try use in my project

i'll post the results...

thank you very, very much

jonathanblacknight

20-05-2010 07:35:31

I try to run the first example in nxogre wiki

http://www.ogre3d.org/wiki/index.php/Bl ... l_2_Source


and i get :

-------------- Build: Release in FirstOgreProject ---------------

Compiling: main.cpp
In file included from ../../../dev/nxOgre/build/source/NxOgreStable.h:29,
from ../../../dev/nxOgre/build/source/NxOgreAccumulativeSceneTimer.h:29,
from ../../../dev/nxOgre/build/linux/source/NxOgre.h:29,
from /home/jonathan/workspace/teste/FirstOgreProject/main.cpp:3:
../../../dev/nxOgre/build/linux/source/NxOgreConfiguration.h:93: warning: ignoring #pragma warning
../../../dev/nxOgre/build/linux/source/NxOgreConfiguration.h:96: warning: ignoring #pragma warning
../../../dev/nxOgre/build/linux/source/NxOgreConfiguration.h:99: warning: ignoring #pragma warning
../../../dev/nxOgre/build/linux/source/NxOgreConfiguration.h:102: warning: ignoring #pragma warning
../../../dev/nxOgre/build/linux/source/NxOgreConfiguration.h:105: warning: ignoring #pragma warning
../../../dev/nxOgre/build/linux/source/NxOgreConfiguration.h:108: warning: ignoring #pragma warning
In file included from ../../../dev/nxOgre/build/source/NxOgreErrorStream.h:34,
from ../../../dev/nxOgre/build/source/NxOgreCommon.h:31,
from ../../../dev/nxOgre/build/source/NxOgreAccumulativeSceneTimer.h:30,
from ../../../dev/nxOgre/build/linux/source/NxOgre.h:29,
from /home/jonathan/workspace/teste/FirstOgreProject/main.cpp:3:
../../../dev/nxOgre/build/source/NxOgreSharedStringStream.h: In function ‘NxOgre::SharedStringStream& NxOgre::operator<<(NxOgre::SharedStringStream&, double)’:
../../../dev/nxOgre/build/source/NxOgreSharedStringStream.h:216: warning: format ‘%Lf’ expects type ‘long double’, but argument 4 has type ‘double’
../../../dev/nxOgre/build/source/NxOgreSharedStringStream.h:216: warning: format ‘%Lf’ expects type ‘long double’, but argument 4 has type ‘double’
In file included from ../../../dev/nxOgre/build/source/NxOgreCommon.h:35,
from ../../../dev/nxOgre/build/source/NxOgreAccumulativeSceneTimer.h:30,
from ../../../dev/nxOgre/build/linux/source/NxOgre.h:29,
from /home/jonathan/workspace/teste/FirstOgreProject/main.cpp:3:
../../../dev/nxOgre/build/source/NxOgreSharedBuffer.h: In member function ‘void NxOgre::SharedBuffer<T>::reserve(size_t, bool)’:
../../../dev/nxOgre/build/source/NxOgreSharedBuffer.h:117: warning: suggest explicit braces to avoid ambiguous ‘else’
../../../dev/nxOgre/build/source/NxOgreSharedBuffer.h: In member function ‘void NxOgre::SharedBuffer<T*>::reserve(size_t, bool)’:
../../../dev/nxOgre/build/source/NxOgreSharedBuffer.h:219: warning: suggest explicit braces to avoid ambiguous ‘else’
In file included from ../../../dev/nxOgre/build/source/NxOgreFluidDescription.h:32,
from ../../../dev/nxOgre/build/linux/source/NxOgre.h:58,
from /home/jonathan/workspace/teste/FirstOgreProject/main.cpp:3:
../../../dev/nxOgre/build/source/NxOgreSimple.h: In function ‘void NxOgre::Functions::SimpleShapeToActorDescription(NxActorDesc&, NxOgre::SimpleShape*)’:
../../../dev/nxOgre/build/source/NxOgreSimple.h:108: warning: enumeration value ‘SimpleShape_Capsule’ not handled in switch
../../../dev/nxOgre/build/source/NxOgreSimple.h:108: warning: enumeration value ‘SimpleShape_PointCloud’ not handled in switch
../../../dev/nxOgre/build/source/NxOgreSimple.h:108: warning: enumeration value ‘SimpleShape_TriangleMesh’ not handled in switch
Linking executable: ./FirstOgreProject
obj/Release/main.o: In function `NxOgre::String::~String()':
main.cpp:(.text._ZN6NxOgre6StringD1Ev[NxOgre::String::~String()]+0x2f): undefined reference to `NxOgre::Memory::unallocate(void*)'
main.cpp:(.text._ZN6NxOgre6StringD1Ev[NxOgre::String::~String()]+0x40): undefined reference to `NxOgre::Memory::unallocate(void*)'
obj/Release/main.o: In function `BloodyMessTutorial2Listener::frameStarted(Ogre::FrameEvent const&)':
main.cpp:(.text._ZN27BloodyMessTutorial2Listener12frameStartedERKN4Ogre10FrameEventE[BloodyMessTutorial2Listener::frameStarted(Ogre::FrameEvent const&)]+0x1a): undefined reference to `NxOgre::TimeController::advance(float)'
obj/Release/main.o: In function `BloodyMessTutorial2::createScene()':
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0xff): undefined reference to `NxOgre::WorldDescription::WorldDescription()'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x10d): undefined reference to `NxOgre::World::createWorld(NxOgre::WorldDescription const&)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x11e): undefined reference to `NxOgre::SceneDescription::SceneDescription()'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x150): undefined reference to `NxOgre::Vec3::Vec3(float const&, float const&, float const&)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x16c): undefined reference to `NxOgre::Vec3::operator=(NxOgre::Vec3 const&)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x1b5): undefined reference to `NxOgre::Memory::copy(void*, void const*, unsigned int)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x1d0): undefined reference to `NxOgre::World::createScene(NxOgre::SceneDescription const&)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x1e8): undefined reference to `NxOgre::Scene::getMaterial(unsigned short const&)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x1f8): undefined reference to `NxOgre::Material::setStaticFriction(float)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x210): undefined reference to `NxOgre::Scene::getMaterial(unsigned short const&)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x220): undefined reference to `NxOgre::Material::setDynamicFriction(float)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x238): undefined reference to `NxOgre::Scene::getMaterial(unsigned short const&)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x248): undefined reference to `NxOgre::Material::setRestitution(float)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x297): undefined reference to `NxOgre::Memory::allocate(unsigned int, unsigned int, char const*, unsigned int)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x2ac): undefined reference to `OGRE3DRenderSystem::OGRE3DRenderSystem(NxOgre::Scene*, Ogre::SceneManager*)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x2bd): undefined reference to `NxOgre::RigidBodyDescription::RigidBodyDescription()'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x30f): undefined reference to `NxOgre::Vec3::Vec3(float const&, float const&, float const&)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x333): undefined reference to `NxOgre::Memory::allocate(unsigned int, unsigned int, char const*, unsigned int)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x33d): undefined reference to `NxOgre::ShapeBlueprint::ShapeBlueprint()'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x361): undefined reference to `NxOgre::Memory::allocate(unsigned int, unsigned int, char const*, unsigned int)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x387): undefined reference to `NxOgre::Box::Box(float, float, float, NxOgre::ShapeBlueprint*)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x3bd): undefined reference to `OGRE3DRenderSystem::createBody(NxOgre::Shape*, NxOgre::Vec3, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, NxOgre::RigidBodyDescription const&)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x3fb): undefined reference to `NxOgre::Memory::unallocate(void*)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x40a): undefined reference to `NxOgre::Memory::unallocate(void*)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x420): undefined reference to `NxOgre::RigidBodyDescription::RigidBodyDescription()'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x472): undefined reference to `NxOgre::Vec3::Vec3(float const&, float const&, float const&)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x496): undefined reference to `NxOgre::Memory::allocate(unsigned int, unsigned int, char const*, unsigned int)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x4a0): undefined reference to `NxOgre::ShapeBlueprint::ShapeBlueprint()'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x4c4): undefined reference to `NxOgre::Memory::allocate(unsigned int, unsigned int, char const*, unsigned int)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x4ea): undefined reference to `NxOgre::Box::Box(float, float, float, NxOgre::ShapeBlueprint*)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x520): undefined reference to `OGRE3DRenderSystem::createBody(NxOgre::Shape*, NxOgre::Vec3, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, NxOgre::RigidBodyDescription const&)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x55e): undefined reference to `NxOgre::Memory::unallocate(void*)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x56d): undefined reference to `NxOgre::Memory::unallocate(void*)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x5ad): undefined reference to `NxOgre::Vec3::Vec3(float const&, float const&, float const&)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x5cf): undefined reference to `NxOgre::Actor::addForce(NxOgre::Vec3 const&, NxOgre::Enums::ForceMode, bool)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x5dd): undefined reference to `NxOgre::RigidBodyDescription::RigidBodyDescription()'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x71f): undefined reference to `NxOgre::Matrix44::Matrix44(float const&, float const&, float const&, float const&, float const&, float const&, float const&, float const&, float const&, float const&, float const&, float const&, float const&, float const&, float const&, float const&)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x757): undefined reference to `NxOgre::Vec3::Vec3(float const&, float const&, float const&)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x77b): undefined reference to `NxOgre::Memory::allocate(unsigned int, unsigned int, char const*, unsigned int)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x791): undefined reference to `NxOgre::PlaneGeometry::PlaneGeometry(float, NxOgre::Vec3)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x7c0): undefined reference to `NxOgre::Scene::createSceneGeometry(NxOgre::Shape*, NxOgre::Matrix44 const&, NxOgre::RigidBodyDescription const&)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x7e8): undefined reference to `NxOgre::Memory::unallocate(void*)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0x7f7): undefined reference to `NxOgre::Memory::unallocate(void*)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0xacd): undefined reference to `NxOgre::Memory::unallocate(void*)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0xadc): undefined reference to `NxOgre::Memory::unallocate(void*)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0xaf3): undefined reference to `NxOgre::Memory::reallocate(void*, unsigned int)'
main.cpp:(.text._ZN19BloodyMessTutorial211createSceneEv[BloodyMessTutorial2::createScene()]+0xb17): undefined reference to `NxOgre::Memory::reallocate(void*, unsigned int)'
Process terminated with status 1 (0 minutes, 3 seconds)
50 errors, 13 warnings



i think the problem is something, in linker settings or in seach directories, but i don't know what.

tuftux

07-06-2010 18:42:46

Sorry, haven't been here for a while. Here are my compiler errors for NxOgre :

||=== NxOgre, Release Linux ===|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreMemory.h|69|error: expected ‘;’ before ‘(’ token|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreMemory.h|78|error: ‘size_t’ has not been declared|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreMemory.h|87|error: ‘size_t’ has not been declared|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreSingleton.h|66|error: declaration of ‘operator new’ as non-function|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreSingleton.h|66|error: expected ‘;’ before ‘(’ token|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreSingleton.h|71|error: expected ‘;’ before ‘void’|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgrePointerClass.h|59|error: declaration of ‘operator new’ as non-function|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgrePointerClass.h|59|error: expected ‘;’ before ‘(’ token|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgrePointerClass.h|64|error: expected ‘;’ before ‘void’|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgrePointerClass.h|64|error: declaration of ‘operator new’ as non-function|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgrePointerClass.h|64|error: expected ‘;’ before ‘(’ token|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgrePointerClass.h|69|error: expected ‘;’ before ‘void’|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgrePointerClass.h|69|error: declaration of ‘operator new []’ as non-function|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgrePointerClass.h|69|error: expected ‘;’ before ‘(’ token|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgrePointerClass.h|74|error: expected ‘;’ before ‘void’|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreArray.h|79|error: ‘allocate’ is not a member of ‘NxOgre::Memory’|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreArray.h||In member function ‘void NxOgre::Functions::SharedArray<T>::resize(size_t)’:|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreArray.h|149|error: ‘allocate’ is not a member of ‘NxOgre::Memory’|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreArray.h|213|error: ‘allocate’ is not a member of ‘NxOgre::Memory’|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreArray.h|332|error: ‘allocate’ is not a member of ‘NxOgre::Memory’|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreArray.h||In constructor ‘NxOgre::Array<T*>::Array()’:|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreArray.h|639|error: ‘allocate’ is not a member of ‘NxOgre::Memory’|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreArray.h||In constructor ‘NxOgre::Array<T*>::Array(int)’:|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreArray.h|648|error: ‘allocate’ is not a member of ‘NxOgre::Memory’|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreString.h||In member function ‘void NxOgre::StringBase::allocate(unsigned int)’:|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreString.h|66|error: ‘allocate’ is not a member of ‘NxOgre::Memory’|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreMath.h||In function ‘int NxOgre::Math::abs(int)’:|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreMath.h|109|error: ‘::abs’ has not been declared|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreMath.h||In function ‘long int NxOgre::Math::abs(long int)’:|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreMath.h|114|error: ‘::labs’ has not been declared|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreMath.h||In function ‘void NxOgre::Math::seedRandom(unsigned int)’:|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreMath.h|283|error: ‘::srand’ has not been declared|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreMath.h||In function ‘float NxOgre::Math::random()’:|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreMath.h|288|error: ‘::rand’ has not been declared|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreMath.h|288|error: ‘RAND_MAX’ was not declared in this scope|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreMath.h||In function ‘double NxOgre::Math::randomD()’:|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreMath.h|293|error: ‘::rand’ has not been declared|
/home/tuft/LSV/Dependances/NxOgre_linux_Bloodymess/build/source/NxOgreMath.h|293|error: ‘RAND_MAX’ was not declared in this scope|
../../dependencies/bml/vector.h|39|error: declaration of ‘typedef Type bml::Vector2< <template-parameter-1-1> >::Type’|
../../dependencies/bml/vector.h|34|error: shadows template parm ‘class Type’|
../../dependencies/bml/vector.h||In member function ‘Type bml::Vector2< <template-parameter-1-1> >::magnitude() const’:|
../../dependencies/bml/vector.h|115|error: ‘bml::math’ has not been declared|
../../dependencies/bml/vector.h||In member function ‘void bml::Vector2< <template-parameter-1-1> >::min(const bml::Vector2< <template-parameter-1-1> >&)’:|
../../dependencies/bml/vector.h|120|error: ‘bml::math’ has not been declared|
../../dependencies/bml/vector.h|121|error: ‘bml::math’ has not been declared|
../../dependencies/bml/vector.h||In member function ‘void bml::Vector2< <template-parameter-1-1> >::max(const bml::Vector2< <template-parameter-1-1> >&)’:|
../../dependencies/bml/vector.h|126|error: ‘bml::math’ has not been declared|
../../dependencies/bml/vector.h|127|error: ‘bml::math’ has not been declared|
../../dependencies/bml/vector.h||In member function ‘bml::Vector2< <template-parameter-1-1> > bml::Vector2< <template-parameter-1-1> >::lerp(const bml::Vector2< <template-parameter-1-1> >&, const Type&) const’:|
../../dependencies/bml/vector.h|147|error: ‘math’ is not a member of ‘bml’|
../../dependencies/bml/vector.h|147|error: ‘math’ is not a member of ‘bml’|
../../dependencies/bml/vector.h|300|error: declaration of ‘typedef Type bml::Vector3< <template-parameter-1-1> >::Type’|
../../dependencies/bml/vector.h|295|error: shadows template parm ‘class Type’|
../../dependencies/bml/vector.h||In member function ‘Type bml::Vector3< <template-parameter-1-1> >::magnitude() const’:|
../../dependencies/bml/vector.h|412|error: ‘bml::math’ has not been declared|
../../dependencies/bml/vector.h||In member function ‘void bml::Vector3< <template-parameter-1-1> >::min(const bml::Vector3< <template-parameter-1-1> >&)’:|
../../dependencies/bml/vector.h|417|error: ‘bml::math’ has not been declared|
../../dependencies/bml/vector.h|418|error: ‘bml::math’ has not been declared|
../../dependencies/bml/vector.h|419|error: ‘bml::math’ has not been declared|
../../dependencies/bml/vector.h||In member function ‘void bml::Vector3< <template-parameter-1-1> >::max(const bml::Vector3< <template-parameter-1-1> >&)’:|
../../dependencies/bml/vector.h|424|error: ‘bml::math’ has not been declared|
../../dependencies/bml/vector.h|425|error: ‘bml::math’ has not been declared|
../../dependencies/bml/vector.h|426|error: ‘bml::math’ has not been declared|
../../dependencies/bml/vector.h||In member function ‘bml::Vector3< <template-parameter-1-1> > bml::Vector3< <template-parameter-1-1> >::lerp(const bml::Vector3< <template-parameter-1-1> >&, const Type&) const’:|
../../dependencies/bml/vector.h|446|error: ‘math’ is not a member of ‘bml’|
../../dependencies/bml/vector.h|446|error: ‘math’ is not a member of ‘bml’|
../../dependencies/bml/vector.h|446|error: ‘math’ is not a member of ‘bml’|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|

jonathanblacknight

24-06-2010 13:28:35

try to get the lastest version of NxOgre from here: http://github.com/betajaen/nxogre

and donwload the lastest nx_diff.zip Tsh't's post, join the files and try again

nocrazy

02-07-2010 03:08:33

Hi I follow all tips on this topic, and when I try compile NxOgre I get the above errors:

/usr/include/PhysX/v2.8.1/SDKs/Foundation/include/NxSimpleTypes.h:114: error: overflow in array dimension
/usr/include/PhysX/v2.8.1/SDKs/Foundation/include/NxSimpleTypes.h:114: error: conflicting declaration ‘char NX_CompileTimeAssert [-1]’
/usr/include/PhysX/v2.8.1/SDKs/Foundation/include/NxSimpleTypes.h:110: error: ‘NX_CompileTimeAssert’ has a previous declaration as ‘char NX_CompileTimeAssert [1]’

has anyone this problems?

nocrazy

03-07-2010 03:11:50

Hi, My problem was because I try compile in 64 system.
so I solve my problem going to build options and add -m32 param in other options to compile gnu gcc, and epecify the location of the the PhysXLoader, because with param -m32, the compile skipping the lib diretory.

jonathanblacknight

21-07-2010 12:38:47

Hi... I have two problems with the project using NxOgre...

in debug :

builds is ok...

but when will start in console show the message:

error while loading shared libraries: libNxCooking.so.1: cannot open shared object file: No such file or directory

in release:

Linking executable: ./OgreTest

/home/jonathan/dev/nxOgre/build/linux/lib/libNxOgreOGRE3D.a(OGRE3DRenderSystem.o): In function `Ogre::NedAllocPolicy::deallocateBytes(void*)':
OGRE3DRenderSystem.cpp:(.text._ZN4Ogre14NedAllocPolicy15deallocateBytesEPv[Ogre::NedAllocPolicy::deallocateBytes(void*)]+0xd): undefined reference to `Ogre::NedAllocImpl::deallocBytes(void*)'
/home/jonathan/dev/nxOgre/build/linux/lib/libNxOgreOGRE3D.a(OGRE3DRenderable.o): In function `Ogre::NedAllocPolicy::allocateBytes(unsigned int, char const*, int, char const*)':
OGRE3DRenderable.cpp:(.text._ZN4Ogre14NedAllocPolicy13allocateBytesEjPKciS2_[Ogre::NedAllocPolicy::allocateBytes(unsigned int, char const*, int, char const*)]+0x22): undefined reference to `Ogre::NedAllocImpl::allocBytes(unsigned int, char const*, int, char const*)'
/home/jonathan/dev/nxOgre/build/linux/lib/libNxOgreOGRE3D.a(OGRE3DRenderable.o): In function `OGRE3DRenderable::_initialise()':
OGRE3DRenderable.cpp:(.text._ZN16OGRE3DRenderable11_initialiseEv[OGRE3DRenderable::_initialise()]+0x2f): undefined reference to `Ogre::VertexData::VertexData()'
/home/jonathan/dev/nxOgre/build/linux/lib/libNxOgreOGRE3D.a(OGRE3DRenderable.o):(.rodata._ZTV16OGRE3DRenderable[vtable for OGRE3DRenderable]+0x80): undefined reference to `Ogre::ShadowCaster::generateShadowVolume(Ogre::EdgeData*, Ogre::HardwareIndexBufferSharedPtr const&, Ogre::Light const*, std::vector<Ogre::ShadowRenderable*, std::allocator<Ogre::ShadowRenderable*> >&, unsigned long)'
/home/jonathan/dev/nxOgre/build/linux/lib/libNxOgreOGRE3D.a(OGRE3DRenderable.o):(.rodata._ZTV16OGRE3DRenderable[vtable for OGRE3DRenderable]+0xb0): undefined reference to `Ogre::MovableObject::detatchFromParent()'
/home/jonathan/dev/nxOgre/build/linux/lib/libNxOgreOGRE3D.a(OGRE3DRenderable.o):(.rodata._ZTV16OGRE3DRenderable[vtable for OGRE3DRenderable]+0x180): undefined reference to `non-virtual thunk to Ogre::SimpleRenderable::getMaterial() const'
/home/jonathan/dev/nxOgre/build/linux/lib/libNxOgreOGRE3D.a(OGRE3DRenderable.o):(.rodata._ZTV16OGRE3DRenderable[vtable for OGRE3DRenderable]+0x188): undefined reference to `non-virtual thunk to Ogre::SimpleRenderable::getRenderOperation(Ogre::RenderOperation&)'
/home/jonathan/dev/nxOgre/build/linux/lib/libNxOgreOGRE3D.a(OGRE3DRenderable.o):(.rodata._ZTV16OGRE3DRenderable[vtable for OGRE3DRenderable]+0x194): undefined reference to `non-virtual thunk to Ogre::SimpleRenderable::getWorldTransforms(Ogre::Matrix4*) const'
/home/jonathan/dev/nxOgre/build/linux/lib/libNxOgreOGRE3D.a(OGRE3DRenderable.o):(.rodata._ZTV16OGRE3DRenderable[vtable for OGRE3DRenderable]+0x1a0): undefined reference to `non-virtual thunk to Ogre::SimpleRenderable::getLights() const'
/home/jonathan/dev/nxOgre/build/linux/lib/libNxOgreOGRE3D.a(OGRE3DRenderable.o):(.rodata._ZTIPN4Ogre17UserDefinedObjectE[typeinfo for Ogre::UserDefinedObject*]+0xc): undefined reference to `typeinfo for Ogre::UserDefinedObject'

jonathanblacknight

24-07-2010 09:58:14

This error happens in this line:


mRenderSystem = new OGRE3DRenderSystem(mScene);


any idea?