User forums > Using Code::Blocks

How enter filenames in CB to use with wxSmith/wxWidgets on different builds

(1/1)

seahawkibiza:
Problem is the following:

The Project was formerly build with CB 3.12, wxWidgets 2.9.4 under Windows.

Now I must make some ports to Linux/MacOS etc...

The filenames on this platforms are quite different. So If I use a image_Button i.e., I enter in the wxSmith Form a relative path to the image., under Windows i.e. ./images/button.png
But if I compile under Linux this is wrong.
In the code I cant change, because this code is automactly build from wxSmith.

So, what for a system should I use to make the depencies on different platforms correctly?

ollydbg:

--- Quote from: seahawkibiza on April 07, 2015, 08:10:28 pm ---But if I compile under Linux this is wrong.

--- End quote ---
I just suggest you that you should post what is exact problem under Linux. "wrong" shows "nothing" here.  :)

seahawkibiza:
It´s not a problem of Linux nor Windows, it´s a generall problem.

Possible I don´t explain correctly, i will try again:

1. I have a project with targets for Linux and Windows.
2. I use wxSmith for the GUI
3. If I use a wxStsticBitmap, or a wxImageButton, I must specify the name/path of the picture.

Problem: The code was generated automaticly by wxSmith and uses the filename what I must write in.
Under Windows must be the path like .\images\bitmap.bmp under Linux like ./image/bitmap.bmp

So if I compile for the other port I must change in all elements used by wxSmith the paths.

How can I do this correctly?

oBFusCATed:
Have you tried to specify linux paths on windows?
Internally the windows apis use the proper slashes.  ;D

Navigation

[0] Message Index

Go to full version