Author Topic: Suppress the default compiler selection window from cmdline args ?  (Read 2075 times)

Offline asivakum

  • Multiple posting newcomer
  • *
  • Posts: 11
Is there anyway to suppress the default compiler selection window from commandline ?
When the build is launched from a proprietary build framework, I see that the codeblocks window is stuck and not continuing with the compilation.
We suspect that the compiler option selection window pop-up is preventing this.
As its an automated build environment, we cannot login to that machine and confirm the compiler selection.
Is there any way to auto confirm the pop-up windows from cmd line args ?

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2980
Re: Suppress the default compiler selection window from cmdline args ?
« Reply #1 on: May 31, 2021, 08:43:22 am »
Quote
We suspect that the compiler option selection window pop-up is preventing this.
In your last post you say that the build is finished, so it is unlikely this window...

Quote
Is there any way to auto confirm the pop-up windows from cmd line args ?
At the moment sadly not. I will happily apply any changes to fix it if we find the exact window that causes your problems....

Offline asivakum

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Suppress the default compiler selection window from cmdline args ?
« Reply #2 on: May 31, 2021, 11:13:26 am »
In your last post you say that the build is finished, so it is unlikely this window...

Thanks for your support.
Yes, thats true. However, we reinstalled codeblocks in the build server to check if there is any issue, and I guess after that we are seeing that the output binaries are not yet generated.
So, I triggered a build from my user login and found that its asking for confirmation of compiler settings for few compilers("Change in compiler settings detected, do you want to retain it to old settings"- I am not sure of the exact wordings, as I did not take a screenshot.) and a pop-up window to choose the default compiler.
Hence, I assume these are the pop-ups thats preventing the build.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2980
Re: Suppress the default compiler selection window from cmdline args ?
« Reply #3 on: May 31, 2021, 11:30:59 am »
We really have to output more information in the console for batch builds....

do you have the possibility to build codeblocks by yourself, so we can test new implementations in your environment?

In the mean time, to speed things up:
1) Create a codeblocks installation on your local machine, that has the same paths as on the build server
2) Try to make your projects build on your local machine
3) If everything works, copy the configuration file from your local machine (found in C:\Users\USERNAME\AppData\Roaming\Codeblocks\default.conf to the same path of the build server

then it should work...

Offline asivakum

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Suppress the default compiler selection window from cmdline args ?
« Reply #4 on: May 31, 2021, 01:55:57 pm »
We really have to output more information in the console for batch builds....

do you have the possibility to build codeblocks by yourself, so we can test new implementations in your environment?

In the mean time, to speed things up:
1) Create a codeblocks installation on your local machine, that has the same paths as on the build server
2) Try to make your projects build on your local machine
3) If everything works, copy the configuration file from your local machine (found in C:\Users\USERNAME\AppData\Roaming\Codeblocks\default.conf to the same path of the build server

then it should work...

Thanks a lot for this suggestion. This worked perfectly, and I see my build has passed now.
Thanks very much for your support.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2980
Re: Suppress the default compiler selection window from cmdline args ?
« Reply #5 on: May 31, 2021, 04:12:44 pm »
Is the other problem still relevant?

Offline asivakum

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Suppress the default compiler selection window from cmdline args ?
« Reply #6 on: May 31, 2021, 06:13:41 pm »
Is the other problem still relevant?

No the other problem is not seen now, the other thread can be closed.
Thanks.