Author Topic: linux build using CodeBlocks-unix.cbp project file  (Read 4647 times)

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
linux build using CodeBlocks-unix.cbp project file
« on: December 13, 2006, 05:45:02 pm »
has anyone had problems with a recent svn revision to build CB using the CodeBlocks-unix.cbp project file ?

when i try to build svn rev 3374 with my last working version CB-svn 3315, i get the following error

-------------- Build: src in Code::Blocks - Unix ---------------
g++ -Wall -g `wx-config --cflags` -fmessage-length=0 -fexceptions -Winvalid-pch -fPIC -DcbDEBUG -DCB_PRECOMP -DENABLE_BINRELOC  -Isdk -Isrc/wxAUI -Isdk/wxFlatNotebook/include -Isdk/scripting/include -Isdk/scripting/sqplus -Isdk/wxscintilla/include -I/usr/include  -c src/app.cpp -o .objs/src/app.o
src/app.cpp:1: fatal error: had to relocate PCH
compilation terminated.


runnning on ubuntu 6.10, using g++ 4.1.1

any ideas ?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: linux build using CodeBlocks-unix.cbp project file
« Reply #1 on: December 13, 2006, 05:48:18 pm »
Maybe you have built it before using autotools? The PCH generated by autotools is not compatible with the .cbp build. Remove the sdk.h.gch manually and see if this fixes it.
And yes, I build it every day with the .cbp in linux.
Be patient!
This bug will be fixed soon...

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: linux build using CodeBlocks-unix.cbp project file
« Reply #2 on: December 13, 2006, 05:59:19 pm »
... Remove the sdk.h.gch manually and see if this fixes it.

yes i did that, but it didn't fix it,

btw.
i discovered, the following points
1.) sdk_precomp.h isn't set to precompiled state in the CodeBlocks-unix.cbp project file.
2.) the update script doesn't strip the files in the output folder (strip commands remarked)
are they intended or by mistake ?

thx tiwag