PLSM 2 and Dev-C++

Technogenius

21-10-2005 21:02:35

hi there, I had tried to use PLSM 2 with Dev-C++, I didn't succed, some one can help me?

Technogenius

23-10-2005 11:07:47

i'ts me again, I really need help, I'm becoming mad :x , I got 83 errors when I try to compil MapEditor (I'm a noob :cry: )

waldi

23-10-2005 12:37:34

maybe u should be a little bit more specific...show us some of the first errors

tuan kuranes

23-10-2005 13:01:34

We need more information to help.
Besides, you may want to use Code::Blocks+MSToolkit2003 instead of Dev++.

Technogenius

23-10-2005 13:15:35

ok,
In project's option I added :
  1. ogreaddons\paginglandscape\Samples\PagingLandScape2\include[/list:u]
    I created a new blank project, and i linked all files contained at :
    1. ogreaddons\paginglandscape\Samples\MapEditor\src[/list:u]
      I tried to compil main.cpp
      didn't succed, I link here all errors I got



      1. [edit]
        We need more information to help.
        Besides, you may want to use Code::Blocks+MSToolkit2003 instead of Dev++.

        I don't know what is « Code::Blocks+MSToolkit2003 instead of Dev++ »
        [/edit][/list:u]

tuan kuranes

23-10-2005 13:53:41

http://www.codeblocks.org/ is the Dev C++ replacement (both free)
that can compiles using Free microsoft visual studio toolkit http://msdn.microsoft.com/visualc/vctoolkit2003/

Easier to use than dev++ + mingw.
(and codeblock can still uses mingw if really needed.)

mapeditor uses lot of files coming from plsm2 plugin.

edit makefile.am or *.vcproj files in src and include directory with a text editor and look a the filelist here.

Technogenius

23-10-2005 14:24:45

thx, I didn't know codeblocks, I will look that in some days, I must go now

Technogenius

30-10-2005 09:43:15

hi there, I downloaded Code::block

I followed http://www.ogre3d.org/wiki/index.php/Codeblocks

after that I add in GlobalCompilerOptions>Directories>Compiler:
  1. F:\Ogre - dvlpmt\ogreaddons\paginglandscape\PlugIns\PagingLandScape2\include[/list:u]
    and in GlobalCompilerOptions>Directories>RessourceCompiler

    1. F:\Ogre -dvlpmt\ogreaddons\paginglandscape\PlugIns\IPLSceneManager\bin
      [/list:u]

      I also downloaded OgreSDKplsm2.7z from tuan kuranes's website, but I don't know what I do with.

      I succed to compil some examples from Ogre sample directory, But I didn't succed to compil MapEditor.cpp, I put here the compiler tab:
      Project : OGRE_Sample
      Compiler : Microsoft Visual C++ Toolkit 2003 (called directly)
      Directory : F:\Documents and Settings\XXXXX\Mes documents\TESTS codeblock et ogre\
      --------------------------------------------------------------------------------
      Switching to target: Release
      MapEditor.cpp
      f:\OgreSDK\include\CEGUI\elements\CEGUICombobox.h(29) : fatal error C1083: Cannot open include file: 'CEGUIBase.h': No such file or directory
      Process terminated with status 1 (0 minutes, 1 seconds)

      ( The CEGUIBase.h is at F:\OgreSDK\include\CEGUI )

tuan kuranes

30-10-2005 09:48:06

don't try to compile/run mapeditor, it's broken for now.
did you compile OgreSDKplsm2.7z with code::block ?

Technogenius

30-10-2005 10:20:23

hi,
did you compile OgreSDKplsm2.7z with code::block ?
no, how can I open OgreSDKplsm2.7z in codeblock? what sort of file is .7z ?

tuan kuranes

30-10-2005 10:30:25

install this to open and decompress it : http://www.7-zip.org/

Technogenius

30-10-2005 10:51:43

install this to open and decompress it : http://www.7-zip.org/
i'm a stupid noob -_- I didn't try google with .7z
I found a mistake : I decompress at
  1. F:\Ogre - dvlpmt\OgreSDK[/list:u]
    It was a bad idea, the " - " in " Ogre - dvlpmt " because it makes an error during the comiplation, see below:
    Project : OGRE_Sample
    Compiler : Microsoft Visual C++ Toolkit 2003 (called directly)
    Directory : F:\Documents and Settings\XXXXX\Mes documents\TESTS codeblock et ogre\
    --------------------------------------------------------------------------------
    PagingLandScape.cpp
    ..\..\..\..\Ogre - dvlpmt\OgreSDK\samples\PagingLandScape2\src\PagingLandScape.cpp(34) : fatal error C1083: Cannot open include file: 'PagingLandScape.h': No such file or directory
    Process terminated with status 1 (0 minutes, 6 seconds)
    1 errors, 0 warnings

    I had tested with this directory :
    1. F:\include[/list:u]
      An error appear, I don't know what that mean :
      Project : OGRE_Sample
      Compiler : Microsoft Visual C++ Toolkit 2003 (called directly)
      Directory : F:\Documents and Settings\XXXXX\Mes documents\TESTS codeblock et ogre\
      --------------------------------------------------------------------------------
      PagingLandScape.cpp
      f:\include\Terrainlistener.h(11) : error C2504: 'PagingLandscapeListener' : base class undefined
      Process terminated with status 1 (0 minutes, 6 seconds)
      1 errors, 0 warnings

tuan kuranes

30-10-2005 12:42:44

PagingLandscapeListener should be defined in "PagingLandscapeListener.h" and included in Terrainlistener.h or PagingLandScape.cpp ?
(and cb must have access to include directory containing it)

Technogenius

30-10-2005 13:08:12

first I renamed "Ogre - dvlpmt" to "Ogredvlpmt" after that, I edit some links and add:
  1. F:\Ogredvlpmt\OgreSDK\samples\PagingLandScape2\include[/list:u]
    I try to compil PagingLandScape.cpp and got :
    Project : OGRE_Sample
    Compiler : Microsoft Visual C++ Toolkit 2003 (called directly)
    Directory : F:\Documents and Settings\XXXXX\Mes documents\TESTS codeblock et ogre\
    --------------------------------------------------------------------------------
    Switching to target: Release
    PagingLandScape.cpp
    f:\Ogredvlpmt\OgreSDK\samples\PagingLandScape2\include\Terrainlistener.h(11) : error C2504: 'PagingLandscapeListener' : base class undefined
    Process terminated with status 1 (0 minutes, 8 seconds)
    1 errors, 0 warnings

    do you know what means error C2504 ?

tuan kuranes

30-10-2005 13:32:32

PagingLandscapeListener is defined

#include "OgrePagingLandScapeListenerManager.h"

that is included in

PagingLandScape.h

open it and check if it's defined here and with same case.

Technogenius

30-10-2005 14:28:06

I had removed all links and I added them all.
That work's 8)

I put here all links :
  1. Global Compiler Options > Directories > Compiler :
    F:\Program Files\Microsoft Visual C++ Toolkit 2003\include
    F:\Program Files\Microsoft Platform SDK\Include
    F:\Program Files\Microsoft DirectX 9.0 SDK (October 2005)\Include
    F:\Ogredvlpmt\OgreSDK\include
    F:\Ogredvlpmt\OgreSDK\samples\PagingLandScape2\include
    F:\Ogredvlpmt\OgreSDK\PlugIns\PagingLandScape2\include


    Global Compiler Options > Directories > Linker :
    F:\Program Files\Microsoft Visual C++ Toolkit 2003\lib
    F:\Program Files\Microsoft Platform SDK\Lib
    F:\Program Files\Microsoft DirectX 9.0 SDK (October 2005)\Lib
    F:\Ogredvlpmt\OgreSDK\lib


    Global Compiler Options > Directories > Resource compiler :
    F:\Program Files\Microsoft Platform SDK\Bin[/list:u]
    a lot :D for your help.
    ( I think, the next week I will need more help )