Author Topic: rev 3961 does NOT build on linux  (Read 9728 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5494
rev 3961 does NOT build on linux
« on: May 14, 2007, 11:57:31 am »
no rule to make target "envars_cdfdlg.lo" ==> makefile not correct

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: rev 3961 does NOT build on linux
« Reply #1 on: May 14, 2007, 12:10:56 pm »
Looks like a typo for "envvars_cfgdlg" ?
Code
Index: Makefile.am
===================================================================
--- Makefile.am (revision 3961)
+++ Makefile.am (arbetskopia)
@@ -11,9 +11,9 @@
 
 libenvvars_la_LIBADD = $(PLUGIN_WX_LIBS) ../../../sdk/libcodeblocks.la
 
-libenvvars_la_SOURCES = envvars.cpp envvars_cdfdlg.cpp envvars_common.cpp
+libenvvars_la_SOURCES = envvars.cpp envvars_cfgdlg.cpp envvars_common.cpp
 
-noinst_HEADERS = envvars.h envvars_cdfdlg.h envvars_common.h
+noinst_HEADERS = envvars.h envvars_cfgdlg.h envvars_common.h
 
 EXTRA_DIST = envvars.cbp envvars-unix.cbp envvars.xrc manifest.xml
 

Doesn't seem to build OK anyway, though:
Code
envvars_cfgdlg.cpp:36: error: 'XRCID' was not declared in this scope

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: rev 3961 does NOT build on linux
« Reply #2 on: May 14, 2007, 01:51:22 pm »
I'm so sorry - I'm blind when it comes to linux. killerbot: Do you have the time to try to fix this? afb is right:
1.) the makefile is incorrect that way
2.) the XRCID issue should be fixed by adding <wx/xrc/xmlres.h> to the *.cpp file...
I don't have linux... sorry for that. :-(
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: rev 3961 does NOT build on linux
« Reply #3 on: May 14, 2007, 01:59:19 pm »
I don't have linux... sorry for that. :-(

You would get the same problems in MSYS, no ?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: rev 3961 does NOT build on linux
« Reply #4 on: May 14, 2007, 02:03:24 pm »
I don't have linux... sorry for that. :-(
You would get the same problems in MSYS, no ?
...how to do? You mean compile the thing inside the MSYS console? Never tried that (sounds interesting though). If you mean the compiler only - then: No, it surely compiled fine. Otherwise I wouldn't have committed... ;-)
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: rev 3961 does NOT build on linux
« Reply #5 on: May 14, 2007, 02:13:29 pm »
You would get the same problems in MSYS, no ?
...how to do? You mean compile the thing inside the MSYS console? Never tried that (sounds interesting though).

That is what I meant, yes. Sounded more like a Makefile/header problem, than a platform issue. (because I ran into the problem on Mac OS X, not Linux) Not sure if Code::Blocks supports MinGW/MSYS with configure yet (but it should). If it doesn't, you could also test with a virtual Linux without leaving Windows ? Also has the added bonus of testing wxGTK...

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: rev 3961 does NOT build on linux
« Reply #6 on: May 14, 2007, 02:18:34 pm »
That is what I meant, yes. Sounded more like a Makefile/header problem, than a platform issue.
Alright! Will try that - I have indeed MSYS installed and configure *should* work - will report back.

If it doesn't, you could also test with a virtual Linux without leaving Windows ?
This would require me to have more processor power and HDD disk space. I had andLinux running but I had to remove it for the large software packages I require for work. :-( I should have burned it to CD though...

With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5494
Re: rev 3961 does NOT build on linux
« Reply #7 on: May 14, 2007, 03:00:11 pm »
makefile.am fixed, that XRCID  : still looking into it. Note that the header you write to include was already included.

....

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: rev 3961 does NOT build on linux
« Reply #8 on: May 14, 2007, 03:04:14 pm »
That is what I meant, yes. Sounded more like a Makefile/header problem, than a platform issue.
Alright! Will try that - I have indeed MSYS installed and configure *should* work - will report back.
Looks bad - compilation (setup) already fails at bootstrap phase with:
Code
./bootstrap: libtoolize: command not found
Looks like a job for google... ;-)
With regards, Morten.

Edit: Ok - this one was easy... I had mounted the wrong compiler path under MinGW (the one without extra tools like autotools etc...). But Now I receive:
Code
./bootstrap: /mingw/bin/aclocal: No such file or directory
...although it's there. I'm not sure if bootstrap will work with MinGW... Did anyone try?
« Last Edit: May 14, 2007, 03:24:13 pm by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5494
Re: rev 3961 does NOT build on linux
« Reply #9 on: May 14, 2007, 05:07:11 pm »
both fixed, builds again on non pch systems

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: rev 3961 does NOT build on linux
« Reply #10 on: May 14, 2007, 05:16:57 pm »
both fixed, builds again on non pch systems
Nice! Thanks a lot. :-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: rev 3961 does NOT build on linux
« Reply #11 on: May 14, 2007, 05:56:13 pm »
...although it's there. I'm not sure if bootstrap will work with MinGW... Did anyone try?

AFAIR, I tried it once. But the compilation failed in MSYS. I posted that somewhere in forum. :) I was adviced to use project file.

Best Regards,

Biplab
Be a part of the solution, not a part of the problem.

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: rev 3961 does NOT build on linux
« Reply #12 on: May 14, 2007, 08:50:37 pm »
AFAIR, I tried it once. But the compilation failed in MSYS. I posted that somewhere in forum. :)

That's a bug, then. It shouldn't.

Quote
I was adviced to use project file.

That's a workaround, not a fix.

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: rev 3961 does NOT build on linux
« Reply #13 on: May 15, 2007, 03:04:18 pm »
That's a bug, then. It shouldn't.

Hmm.. Then I must try it again. BTW, couple of fixes were applied to the core during the bugfix week in April. So it could happen that the MSYS build was broken earlier. :)
Be a part of the solution, not a part of the problem.

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: rev 3961 does NOT build on linux
« Reply #14 on: May 15, 2007, 10:21:04 pm »
I'm not sure it has ever worked. Just saying that ultimately it should :-)