Author Topic: Generate a file '*_linux.cbp' to '*_win.cbp' or vice versa  (Read 12509 times)

Offline LETARTARE

  • Lives here!
  • ****
  • Posts: 572
  • L'ami de l'homme.The friend of man.
    • LETARTARE
Generate a file '*_linux.cbp' to '*_win.cbp' or vice versa
« on: March 05, 2026, 10:46:24 am »
Is there a script or program that would create a project file from 'Linux' to 'Windows' or vice versa?
CB-13834, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6219
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Generate a file '*_linux.cbp' to '*_win.cbp' or vice versa
« Reply #1 on: March 05, 2026, 11:23:10 am »
Why do you need such feature.

I think mostly, the files in the cbp are the same(mostly), but different OSs have different include search files and linker options.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1868
Re: Generate a file '*_linux.cbp' to '*_win.cbp' or vice versa
« Reply #2 on: April 22, 2026, 11:44:29 am »
Profile spammer olenna reported to moderator.
« Last Edit: April 23, 2026, 09:06:39 am by Miguel Gimenez »

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1868
Re: Generate a file '*_linux.cbp' to '*_win.cbp' or vice versa
« Reply #3 on: April 23, 2026, 09:05:57 am »
Delayed profile spammer predictbong reported to moderator.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1868
Re: Generate a file '*_linux.cbp' to '*_win.cbp' or vice versa
« Reply #4 on: April 24, 2026, 10:09:10 am »
Badly hidden spam reported to moderator.