Author Topic: Generate a file '*_linux.cbp' to '*_win.cbp' or vice versa  (Read 5799 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-13831, 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: 6207
  • 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 predictbong

  • Single posting newcomer
  • *
  • Posts: 1
Re: Generate a file '*_linux.cbp' to '*_win.cbp' or vice versa
« Reply #2 on: Yesterday at 09:08:56 am »
I agree with your point. Different operating systems also offer different linking options. It's perfectly possible to select the appropriate file across systems.

Offline olenna

  • Single posting newcomer
  • *
  • Posts: 1
    • Trees Hate You
Re: Generate a file '*_linux.cbp' to '*_win.cbp' or vice versa
« Reply #3 on: Yesterday at 11:13:07 am »
There is no official tool that reliably converts a *_linux.cbp project into a *_win.cbp.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1859
Re: Generate a file '*_linux.cbp' to '*_win.cbp' or vice versa
« Reply #4 on: Yesterday at 11:44:29 am »
Profile spammer reported to moderator.
« Last Edit: Yesterday at 11:46:11 am by Miguel Gimenez »