Report any bugs here and we'll post fixes
Moderators: Sascha Willems, Thomas
by hpesoj » Mon Jan 05, 2009 7:36 pm
Indeed I do.
-
hpesoj
-
- Posts: 90
- Joined: Sun Jan 09, 2005 4:36 pm
- Location: Cambridge/Bristol, UK
by Julio Jerez » Tue Jan 06, 2009 11:53 am
OK I made the 32 and 64 builds.
To get the ball rolling I will upload it to the same download, you can try the new build and see if the same bug happens on your side. Then I will try the make the demo.
Question, when I run the demos under Kgbd I can debug the SDK demos, but no any file from the engine even if I build then with the option –O0
It is something special I have to do to debug file in a library?
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by martinsm » Tue Jan 06, 2009 3:11 pm
Maybe -g. It will add debugging symbols to executable (similary like /Zi does for MSVC).
-
martinsm
-
- Posts: 86
- Joined: Mon Dec 19, 2005 3:15 pm
- Location: Latvia
by hpesoj » Tue Jan 06, 2009 3:19 pm
I think you probably need to tell the debugger where your source codes are for the library. I'm not sure what the option is though.
And unfortunately it seems the bug is still there

. Ask if you need any help building Ogre. Thanks for your continued efforts

.
-
hpesoj
-
- Posts: 90
- Joined: Sun Jan 09, 2005 4:36 pm
- Location: Cambridge/Bristol, UK
by Julio Jerez » Tue Jan 06, 2009 11:20 pm
hpesoj wrote:And unfortunately it seems the bug is still there

. Ask if you need any help building Ogre
OK I will move to face two.
I will recreat you test in one of eth demo and see if it works, mayeb I can fin d teh BUG.
If not then I try Ogre.
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by hpesoj » Wed Jan 07, 2009 10:57 am
But as I said, the segfault only happens when you load the Ogre library. Whether this is a bug in Newton or the RenderSystem_GL library I don't know. I have uploaded the 64-bit Ogre libraries here:
http://www.changi.f9.co.uk/random/ogrelibs.tar.bz2
-
hpesoj
-
- Posts: 90
- Joined: Sun Jan 09, 2005 4:36 pm
- Location: Cambridge/Bristol, UK
by Julio Jerez » Wed Jan 07, 2009 11:38 am
I tried to adapt the SDK to build you crash test by I get teh buill error forn teh missing Ogre file I nee to add.
thsi ar eteh errors
make
gcc -m64 -O0 -mtune=generic -c -Wall -D_LINUX_VER -g -I sdkDemos -I sdkDemos/demos -I ../sdk/dMath -I ../sdk -o sdkDemos/OgreCrash.o sdkDemos/OgreCrash.cpp
sdkDemos/OgreCrash.cpp:14:22: error: OgreRoot.h: No such file or directory
sdkDemos/OgreCrash.cpp:22: error: ‘Ogre’ has not been declared
sdkDemos/OgreCrash.cpp:22: error: expected initializer before ‘pluginPath’
sdkDemos/OgreCrash.cpp: In function ‘int main()’:
sdkDemos/OgreCrash.cpp:118: error: ‘Ogre’ has not been declared
sdkDemos/OgreCrash.cpp:118: error: ‘root’ was not declared in this scope
sdkDemos/OgreCrash.cpp:118: error: expected type-specifier before ‘Ogre’
sdkDemos/OgreCrash.cpp:118: error: expected `;' before ‘Ogre’
sdkDemos/OgreCrash.cpp:119: error: ‘pluginPath’ was not declared in this scope
sdkDemos/OgreCrash.cpp:123: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
make: *** [sdkDemos/OgreCrash.o] Error 1
julio@julio:~/Desktop/OgreCrashTest/samples$
I am going the pack the project and send it you you maybe you can add all the minimal file to build the test and make it easy for me to debug.
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by hpesoj » Wed Jan 07, 2009 11:56 am
I think it'll take less time just to download the Ogre repository on your end. Change to a directory in which you wish to download the Ogre directory to, then:
- Code: Select all
sudo apt-get install svn
svn co https://svn.ogre3d.org/svnroot/ogre/branches/v1-6 ogre
Add the "ogre/OgreMain/include" directory to the project's include paths.
EDIT
In fact, you can just download the headers by doing:
- Code: Select all
svn co https://svn.ogre3d.org/svnroot/ogre/branches/v1-6/OgreMain/include ogreheaders
-
hpesoj
-
- Posts: 90
- Joined: Sun Jan 09, 2005 4:36 pm
- Location: Cambridge/Bristol, UK
by Julio Jerez » Wed Jan 07, 2009 12:55 pm
when I do this
- Code: Select all
sudo apt-get install svn
I get this errors, what I am, doing wrong
julio@julio:~$ sudo apt-get install svn
[sudo] password for julio:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package svn
julio@julio:~$
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by hpesoj » Wed Jan 07, 2009 12:58 pm
My mistake, the package is actually called subversion.
- Code: Select all
sudo apt-get install subversion
-
hpesoj
-
- Posts: 90
- Joined: Sun Jan 09, 2005 4:36 pm
- Location: Cambridge/Bristol, UK
by Julio Jerez » Wed Jan 07, 2009 1:04 pm
ok it is installing now. It is doing a big download now.
After that will this be like when you download and app the is ready to link to an app, like when you download using
Synaptic Package manager? Because I still get the same error.
show I run some make stuff, I am at lost here
whey the Ogre people don put their stuff there so the it is easier to use, never ha I seen an SDK as gratuitously complex as ogre.
Anyway I am late for work, we continue tomorrow morning
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by hpesoj » Wed Jan 07, 2009 1:07 pm
Yeah, Synaptic package manager uses apt-get. I usually use apt-get directly if I know (or think I know

) the name of the package.
-
hpesoj
-
- Posts: 90
- Joined: Sun Jan 09, 2005 4:36 pm
- Location: Cambridge/Bristol, UK
by Julio Jerez » Wed Jan 07, 2009 1:13 pm
I am guessing now I have to do the config, make, make install, mombo jumbo taht peopel use to do in linux
what are the steps to make Ogre, I am lost here.
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by hpesoj » Wed Jan 07, 2009 3:13 pm
Sorry, I thought you went to work so I didn't keep checking the thread.
No no no, you just needed the headers right? You already have the library that I sent you, so there's no need to make it. You just have to add the path to the Ogre "include" folder (the one with Ogre.h in it).
To summarize:
- OgreMain.so is the main Ogre library.
- RenderSystem_GL.so is the Ogre OpenGL rendersystem library (there is also a DirectX one).
- The svn command downloads the entire Ogre source code, along with code for samples and stuff.
- To run the code I gave you, you need to have the Ogre headers, as well as BOTH libraries. You only need to link against OgreMain.so; RenderSystem_GL.so is loaded dynamically (make sure that the pluginPath variable in my code is set to the directory containing this library).
- If you ever need to build the Ogre libraries yourself, it is very simple to do: just follow the instructions in the INSTALL file.
-
hpesoj
-
- Posts: 90
- Joined: Sun Jan 09, 2005 4:36 pm
- Location: Cambridge/Bristol, UK
by Julio Jerez » Thu Jan 08, 2009 2:46 am
now I am building Ogre follwing these instrutions
Building
* Go to
http://www.ogre3d.org/ and click on More Downloads, then Source Releases: Linux & OSX
* Download the latest Linux/OSX source package.
tar xjf ./ogre-linux_osx-v1-0-?.tar.bz2
cd ogre
./bootstrap
./configure (For nvidia, append --with-platform=GLX)
make
make install (run this command as root)
each time it fail I install the dependency using synpatic, I hope this works
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
Return to Bugs and Fixes
Who is online
Users browsing this forum: No registered users and 1 guest