Moving a MSVC project to Ubuntu

General questions regarding the usage of CodeLite
coder99
CodeLite Expert
Posts: 167
Joined: Wed Oct 22, 2008 6:50 am
Contact:

Moving a MSVC project to Ubuntu

Post by coder99 »

I am trying to move one of my projects which I compiled on WinXP both with CL and MSVC to a Linux environment.

My first attempt was using a Ubuntu appliance in Vmplayer - I will eventually also try a plain Ubuntu box - I'm just downloading the ISO now.

A couple of observations:
after installing all of Codelite and plgins, the first time via synaptic, and then updating CL at the first time it ran, I had to de-insatll all of the plugins before the update wold go.

Now that I have the update installed, I m having problems finding all of the necessary files - I am more of a newb with linux than with CL and WinXP :-)

The current file I seem to need to compile the basic new project I created with CL is wx/setup.h

I'm sure there are other things I'll run into, but that is stopping me at present.

Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2

DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Moving a MSVC project to Ubuntu

Post by DavidGH »

Hi,
The current file I seem to need to compile the basic new project I created with CL is wx/setup.h
On Linux you shouldn't need to touch wx/setup.h yourself. Everything happens through the wx-config script.

You should have installed the libwxgtk-dev package; doing so via synaptic (good choice ;) ) should have brought in any necessary dependencies e.g. libgtk2.0-dev. Once you've done so, doing in a terminal:
wx-config --list
will confirm that you have a working wx install.

When you build your project, you'll need to use wx-config --cxxflags and wx-config --libs to get the wx compiler/link information. That should happen automatically if CodeLite is in charge of the build; but if you have a custom makefile, you'll need to organise this yourself (don't forget the backticks).

Regards,

David
coder99
CodeLite Expert
Posts: 167
Joined: Wed Oct 22, 2008 6:50 am
Contact:

Re: Moving a MSVC project to Ubuntu

Post by coder99 »

thank you for your reply, David.

My problem turned out to be that I had not also installed libwxgtk2.8-dbg.
Before that, after seeing your reply I tried to compile the release version and it compiled OK and ran.

Once I installed the debug libraries - duhhh ;-) - the compile - of the debug version - went well and I now seem to be over the first major hurdle.

I still intend to rig up another Ubuntu box for this since I still have some issues with the VmWare appliance and shared folders, but I feel a bit better now - at lest for a little while ;-)

Again, thanks

Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2

Post Reply