Page 1 of 1

Moving a MSVC project to Ubuntu

Posted: Sun Jul 19, 2009 12:52 am
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.

Re: Moving a MSVC project to Ubuntu

Posted: Sun Jul 19, 2009 5:21 pm
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

Re: Moving a MSVC project to Ubuntu

Posted: Sun Jul 19, 2009 10:48 pm
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