Author Topic: The 15 november 2006 build is out.  (Read 22620 times)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2178
Re: The 15 november 2006 build is out.
« Reply #30 on: November 16, 2006, 09:39:26 pm »
I have the same problem !!!
If I build all (ctrl + F11) and then just do a build (ctrl + F9) without any changes to the whole project it'll compile all files again !!!

I'm using C::B from this thread with GNU-GCC compiler latest version !!!
My OS is Win2000sp3 !!!

This is really annoying, as far as I'm working on a really huge project (Irrlicht) that compiles about 15 minutes, just if I only change one single source file !!!

@Acki

Could I ask you to do an experiment. Go touch all the files in your probject. Do a build clean. Then do a rebuild. Did it solve the problem?
« Last Edit: November 16, 2006, 09:42:13 pm by Pecan »

Offline Acki

  • Multiple posting newcomer
  • *
  • Posts: 100
Re: The 15 november 2006 build is out.
« Reply #31 on: November 16, 2006, 10:20:31 pm »
Well, the Irrlicht project is way to big for this (about 290 cpp files) !!!
But I have a little project that I tested like you said, but no changes, all is build every time !!!

this are the 3 project files:
main.cpp
Code: [Select]
#include "cMapDemo.h"

int main(){
  cMapDemo demo;
  demo.run();
  return 0;
}

cMapDemo.h
Code: [Select]
#ifndef CMAPDEMO_H
#define CMAPDEMO_H

#include <Irrlicht.h>
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;

class cMapDemo : public IEventReceiver{
  private:
    IrrlichtDevice* device;
    IVideoDriver* driver;
    ISceneManager* smgr;
    IGUIEnvironment* env;
    bool prgDead;
    bool terraWireframe;
    bool showPathNodes;

    ITerrainSceneNode* terrain;
    ICameraSceneNode* camera;

  public:
    virtual bool OnEvent(SEvent event);
    void run();

};

#endif // CMAPDEMO_H

cMapDemo.cpp
Code: [Select]
#include "cMapDemo.h"

bool cMapDemo::OnEvent(SEvent event){
  if(event.EventType == EET_KEY_INPUT_EVENT && !event.KeyInput.PressedDown){
    switch(event.KeyInput.Key){
      case KEY_ESCAPE:{
        prgDead = true;
        return true;
      }break;
      case KEY_F1:{
        terraWireframe = !terraWireframe;
        terrain->setMaterialFlag(EMF_WIREFRAME, terraWireframe);
        return true;
      }break;
      case KEY_F2:{
        showPathNodes = !showPathNodes;
        return true;
      }break;
    }
  }
  return false;
}
void cMapDemo::run(){
  prgDead = false;
  terraWireframe = false;
  showPathNodes = false;

  device = createDevice(EDT_DIRECT3D9, dimension2d<s32>(640, 480));
  device->setEventReceiver(this);
  driver = device->getVideoDriver();
  smgr = device->getSceneManager();
  env = device->getGUIEnvironment();
  driver->setTextureCreationFlag(video::ETCF_ALWAYS_32_BIT, true);
 
  device->getCursorControl()->setVisible(false);
  SKeyMap keyMap[8];
  keyMap[0].Action = EKA_MOVE_FORWARD;
  keyMap[0].KeyCode = KEY_UP;
  keyMap[1].Action = EKA_MOVE_FORWARD;
  keyMap[1].KeyCode = KEY_KEY_W;
  keyMap[2].Action = EKA_MOVE_BACKWARD;
  keyMap[2].KeyCode = KEY_DOWN;
  keyMap[3].Action = EKA_MOVE_BACKWARD;
  keyMap[3].KeyCode = KEY_KEY_S;
  keyMap[4].Action = EKA_STRAFE_LEFT;
  keyMap[4].KeyCode = KEY_LEFT;
  keyMap[5].Action = EKA_STRAFE_LEFT;
  keyMap[5].KeyCode = KEY_KEY_A;
  keyMap[6].Action = EKA_STRAFE_RIGHT;
  keyMap[6].KeyCode = KEY_RIGHT;
  keyMap[7].Action = EKA_STRAFE_RIGHT;
  keyMap[7].KeyCode = KEY_KEY_D;
  camera = smgr->addCameraSceneNodeFPS(0, 100, 500, -1, keyMap, 8);
  camera->setPosition(core::vector3df(0,2055,-1110));
  camera->setTarget(core::vector3df(0,0,10));
  camera->updateAbsolutePosition();
  camera->setFarValue(12000.0f);

  // create a new (correct) terrain
  terrain = smgr->addTerrainSceneNode2("Media/heightmap2.bmp");
  terrain->setScale(vector3df(40.0, 1.0, 40.0));
  terrain->setPosition(vector3df(0.0, 0.0, -10.0));
  terrain->setMaterialFlag(EMF_LIGHTING, false);
  terrain->setMaterialTexture(0, driver->getTexture("Media/terratex2.bmp"));

  ITriangleSelector* selector = smgr->createTerrainTriangleSelector(terrain, 0);
  terrain->setTriangleSelector(selector);
  selector->drop();

  while(device->run() && !prgDead){
    if(device->isWindowActive()){
      driver->beginScene(true, true, 0 );
      smgr->drawAll();
      env->drawAll();
      driver->endScene();
    }
  }
  device->drop();
}

But what is really curious is that it does not recompile if I add the external include dir for Irrlicht to the default compiler settings and not to the project's compiler settings !?!?!
Also all is correct if I delete all the Irrlicht related stuff out of cMapDemo.cpp and cMapDemo.h !?!?!

EDIT:
I also tested it with some other sdks like Newton Physics !!!
The same behavior, if the include dir is added to the project settings it recompiles always !!!
If the include dir is added to the default settings, all is correct !!!
So I think there must be the error with the project's compiler settings include dirs !?!?!
« Last Edit: November 16, 2006, 10:36:47 pm by Acki »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2178
Re: The 15 november 2006 build is out.
« Reply #32 on: November 16, 2006, 10:38:17 pm »
Well, the Irrlicht project is way to big for this (about 290 cpp files) !!!
But I have a little project that I tested like you said, but no changes, all is build every time !!!
But what is really curious is that it does not recompile if I add the external include dir for Irrlicht to the default compiler settings and not to the project's compiler settings !?!?!
Also all is correct if I delete all the Irrlicht related stuff out of cMapDemo.cpp and cMapDemo.h !?!?!

That would suggest that my theory about an incorrect date/time on a source file is correct. (maybe)

By removing the ability for CB or the compiler to see the date/time of the  Irrlicht source files, it cannot decide that a re-compile is needed.

If this was my problem, I'd write a quick and dirty pgm to touch all files in the project structure and test the result. There must be a utility around that will touch a file structure.

I have no other suggestion right now.

 
« Last Edit: November 16, 2006, 10:40:53 pm by Pecan »

Offline Acki

  • Multiple posting newcomer
  • *
  • Posts: 100
Re: The 15 november 2006 build is out.
« Reply #33 on: November 16, 2006, 10:50:03 pm »
Yes, you where right !!!
I got the problem !!!

My system's date was incorrect (year 2000) !!!
I now changed the system's date to 2006 and all seems to be fine again !!!

thanks for your efforts !!!  :)

Offline DmP

  • Single posting newcomer
  • *
  • Posts: 9
Re: The 15 november 2006 build is out.
« Reply #34 on: November 17, 2006, 08:18:45 am »

@DmP, how did  you get file main.cpp? What's the date/time of that file?
What's the date/time of your system? Can you do a build clean, modify the file and have it behave correctly?

Sorry, but I'm in another time zone. I'm from Ukraine, it is +7 with forum board time.

Error step by step:
1) Open CB - SVN 3223.
2) File - New - Project
3) Select concole application
4) Project title - test3
5) Next - Next - Finish
6) Project - Properties
7) Targets
8) Set Objects output dir:
$(#test3)\obj\
9) Ok
10) Fill Global variable - base

It's all. Project always rebuilding. :(
« Last Edit: November 17, 2006, 08:20:39 am by DmP »

Offline DmP

  • Single posting newcomer
  • *
  • Posts: 9
Re: The 15 november 2006 build is out.
« Reply #35 on: November 17, 2006, 10:24:05 am »
i'm build CB 3227 - it work fine. :) sorry for troubling you.

Lots thanks for this wonderful project!  :)
« Last Edit: November 17, 2006, 10:30:09 am by DmP »

Offline hecato

  • Single posting newcomer
  • *
  • Posts: 4
Re: The 15 november 2006 build is out.
« Reply #36 on: November 21, 2006, 02:24:05 am »
Hi there, I have downloaded CB rev 3222 for amd64 Ubuntu, I have installed an anterior version, but it give me following dependency problems... I use synaptic but down know how to solve this... the question is is there a build around, that can be installed on my system¿? (I have installed before one of Septemter, but Im unable to find the archive in my disc :S)

Code: [Select]
[email protected]:/programador/Descargas# dpkg -i CB_20061115_rev3222_Ubuntu6.10-amd64.deb
(Leyendo la base de datos ...
255954 ficheros y directorios instalados actualmente.)
Preparando para reemplazar codeblocks 1.0svn (usando CB_20061115_rev3222_Ubuntu6.10-amd64.deb) ...
Desempaquetando el reemplazo de codeblocks ...
dpkg: problemas de dependencias impiden la configuración de codeblocks:
 codeblocks depende de libatk1.0-0 (>= 1.12.1); sin embargo:
  Versión de libatk1.0-0  en el sistema es 1.11.4-0ubuntu1.
 codeblocks depende de libc6 (>= 2.4-1); sin embargo:
  Versión de libc6  en el sistema es 2.3.6-0ubuntu20.
 codeblocks depende de libcairo2 (>= 1.2.4); sin embargo:
  Versión de libcairo2  en el sistema es 1.0.4-0ubuntu1.
 codeblocks depende de libgcc1 (>= 1:4.1.1-12); sin embargo:
  Versión de libgcc1  en el sistema es 1:4.0.3-1ubuntu5.
 codeblocks depende de libglib2.0-0 (>= 2.12.0); sin embargo:
  Versión de libglib2.0-0  en el sistema es 2.10.3-0ubuntu1.
 codeblocks depende de libgtk2.0-0 (>= 2.10.3); sin embargo:
  Versión de libgtk2.0-0  en el sistema es 2.8.20-0ubuntu1.
 codeblocks depende de libpango1.0-0 (>= 1.14.5); sin embargo:
  Versión de libpango1.0-0  en el sistema es 1.12.3-0ubuntu3.
 codeblocks depende de libstdc++6 (>= 4.1.1-12); sin embargo:
  Versión de libstdc++6  en el sistema es 4.0.3-1ubuntu5.
 codeblocks depende de libwxbase2.6-0 (>= 2.6.3.2.1.5); sin embargo:
  el paquete libwxbase2.6-0 no está instalado.
 codeblocks depende de libwxgtk2.6-0 (>= 2.6.3.2.1.5); sin embargo:
  Versión de libwxgtk2.6-0  en el sistema es 2.6.1.2ubuntu2.
dpkg: error al procesar codeblocks (--install):
 problemas de dependencias - se deja sin configurar
Se encontraron errores al procesar:
 codeblocks

Update: I finally searched manually and finded codeblocks_svn-2953-ubuntu_amd64 and installed it again, now all is fine.
« Last Edit: November 21, 2006, 02:35:03 am by hecato »

Offline tom0769

  • Multiple posting newcomer
  • *
  • Posts: 42
Re: The 15 november 2006 build is out.
« Reply #37 on: November 22, 2006, 10:58:41 am »
Windows ANSI build here

The link does not work

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: The 15 november 2006 build is out.
« Reply #38 on: November 22, 2006, 01:04:14 pm »