LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   convert windows vc++ code in to kdevelop (https://www.linuxquestions.org/questions/linux-newbie-8/convert-windows-vc-code-in-to-kdevelop-709550/)

sowmya 03-06-2009 12:48 AM

convert windows vc++ code in to kdevelop
 
hi
i am newer of linux...
my thread is i have vc++ code in windows...now we convert code in linux.but i donot know conversions..i am see google...to convert vc++ project in to kdevelop..but i am newer,so i am not understand pls help me any one of u

i92guboj 03-06-2009 06:20 PM

If what you want to convert is the "project" as in "the file which tells vs what source files are part of your application", I think you will need to do it manually.

If you are talking about "porting" the application to run on linux, then there's no straight answer, since we know nothing at all about your application. If the application uses standard C++ code, it should just compile fine with few or no modification. If you use vc specific stuff, directx or any other win-only marvel, then you need to rewrite some parts of it, or maybe start from scratch. It just depends on what do you meant, and how your application is written.

If it was written with portability in mind you will have a much easier time.

T74marcell 03-06-2009 06:36 PM

The difficulty level of moving the code from Windows to Linux depends on the complexity of the code. If it has a lot of Windows GUI, then it can become a pain in the ...
I am not aware of any free tool that can guarantee a 100% perfect result - there is always some amount of fiddling the source code.

Instead of moving towards KDE-coding you could also consider transferring to some toolkit like FLTK, FoxToolkit or wxWindows. These kits provide code wrappers for GUI stuff that can compile on both Windows, Linux and even Macs. You still have to convert your code, but if that's done, then you will have to maintain only one code branch (hopefully). That should make it easier in the future.

Of course, KDE also runs on Windows, but I don't know anyone who bought QT's Windows version just to build software on that platform as well (obviously, I do not know all persons on this planet :-)

Arch Linux

i92guboj 03-07-2009 05:46 AM

There's also winelib, for the lazy (that doesn't mean that you aren't going to have to work a lot though).

sowmya 03-08-2009 06:58 AM

we convert vc++ project....its a scantool that means to scan the all the local area networks...this coding we use socket programming....i think...is it possible to converting linux or not...how to procede convertions...

i92guboj 03-08-2009 05:52 PM

As said, it might not be trivial. You should start trying to compile it with g++ and continue from there. The errors will tell you what the missing parts are.

I assume that it uses a GUI in Windows, you will have to reprogram from scratch that part using a graphical toolkit for linux. Usually gtk, qt, fltk, or a similar thing.

Or, as suggested previously, use winelib. In any case this can't be done with a magic wand, you are going to put effort into it if you want to succeed.


All times are GMT -5. The time now is 12:37 PM.