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

Offline LETARTARE

  • Lives here!
  • ****
  • Posts: 571
  • 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-13810, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-5.1
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'

Online ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6191
  • 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.