Hello,
Is there any way (or program) to convert and maintain easily a C++
project (vs7.1) to a Makefile file, in order to build it in Linux?
Many thanks
--
Jacobo Rodríguez Villar
TyphoonLabs Lead Programmer http://www.typhoonlabs.com 5 11550
"Jacobo Rodriguez Villar" <skdjf@sdkjf> wrote: Is there any way (or program) to convert and maintain easily a C++ project (vs7.1) to a Makefile file, in order to build it in Linux?
Here are a couple relevent threads:
comp.emulators.ms-windows.wine, makefile converter, 5/17/2001 http://groups-beta.google.com/group/...8a4364c377573/
Dev Shed Forums > ... > convert visual studio project to gcc http://forums.devshed.com/archive/t-214272
As you've guessed, the information you need is in your .vcproj file. Be
warned that if you use any VC++-specific features, such as precompiled
headers or nonstandard APIs, especially the .NET Framework, this conversion
will be somewhat trickier. Automatic converters have been proposed by a
number of people ([1], [2], [3]), but none seem to have been made available.
Considering that generating dependencies is the most difficult part, you may
also be interested in solutions that autogenerate dependencies for your
source files. Then creating the Makefile would be a simple matter of listing
the source files and tweaking your flags and code. Such solutions exist, and
one good one that I've used is proposed in the GNU make manual:
GNU make manual: 4.14 Generating Prerequisites Automatically http://www.gnu.org/software/make/man...e_4.html#SEC51
I hope some of this helps. Please write back if you have any confusion or
additional issues.
[1] "The information of interest is in the .vcproj file. It is in XML and
could probably be parsed by an XML guru in about 5 minutes to create a
workable makefile for *nix." - mitakeet http://forums.devshed.com/archive/t-214272
[2] "The VS.NET project files for VC are XML - building a .vcproj -> .mak
converter shouldn't be too hard for someone adept at Perl and XML." -
Yanhong Huang http://groups-beta.google.com/group/...9b8f0f46c83fd/
[3] "The VS.NET project files for VC are XML - building a .vcproj -> .mak
converter shouldn't be too hard for someone adept at Perl and XML (the
trick, of course, is learning the IDE -> XML mapping for all of the
options - no rocket science, just tedium)." - Carl Daniel http://groups-beta.google.com/group/...e182da74a463b/
--
Derrick Coetzee, Microsoft Speech Server developer
This posting is provided "AS IS" with no warranties, and confers no rights.
Hello Derrick,
Many thanks, that's exactly what I was searching for. I have a 'large'
project (about 40 sources) of standard C++ code (no .NET, mfc or
something else, only STL) and I want to build it in linux, and manually
compilations is very annoying...
Thanks for your reply,
Jacobo "Jacobo Rodriguez Villar" <skdjf@sdkjf> wrote:
Is there any way (or program) to convert and maintain easily a C++ project (vs7.1) to a Makefile file, in order to build it in Linux?
Here are a couple relevent threads:
comp.emulators.ms-windows.wine, makefile converter, 5/17/2001 http://groups-beta.google.com/group/...8a4364c377573/ Dev Shed Forums > ... > convert visual studio project to gcc http://forums.devshed.com/archive/t-214272
As you've guessed, the information you need is in your .vcproj file. Be warned that if you use any VC++-specific features, such as precompiled headers or nonstandard APIs, especially the .NET Framework, this conversion will be somewhat trickier. Automatic converters have been proposed by a number of people ([1], [2], [3]), but none seem to have been made available.
Considering that generating dependencies is the most difficult part, you may also be interested in solutions that autogenerate dependencies for your source files. Then creating the Makefile would be a simple matter of listing the source files and tweaking your flags and code. Such solutions exist, and one good one that I've used is proposed in the GNU make manual:
GNU make manual: 4.14 Generating Prerequisites Automatically http://www.gnu.org/software/make/man...e_4.html#SEC51
I hope some of this helps. Please write back if you have any confusion or additional issues.
[1] "The information of interest is in the .vcproj file. It is in XML and could probably be parsed by an XML guru in about 5 minutes to create a workable makefile for *nix." - mitakeet http://forums.devshed.com/archive/t-214272
[2] "The VS.NET project files for VC are XML - building a .vcproj -> .mak converter shouldn't be too hard for someone adept at Perl and XML." - Yanhong Huang http://groups-beta.google.com/group/...9b8f0f46c83fd/
[3] "The VS.NET project files for VC are XML - building a .vcproj -> .mak converter shouldn't be too hard for someone adept at Perl and XML (the trick, of course, is learning the IDE -> XML mapping for all of the options - no rocket science, just tedium)." - Carl Daniel http://groups-beta.google.com/group/...e182da74a463b/
--
Jacobo Rodríguez Villar
TyphoonLabs Lead Programmer http://www.typhoonlabs.com
For 40 source files (I assume that is what you have and not 40 projects).
Manually creating a makefile should probably take less than an hour.
Ronald
"Jacobo Rodriguez Villar" <skdjf@sdkjf> wrote in message
news:uH**************@TK2MSFTNGP15.phx.gbl... Hello Derrick,
Many thanks, that's exactly what I was searching for. I have a 'large' project (about 40 sources) of standard C++ code (no .NET, mfc or something else, only STL) and I want to build it in linux, and manually compilations is very annoying...
Thanks for your reply, Jacobo
"Jacobo Rodriguez Villar" <skdjf@sdkjf> wrote:
Is there any way (or program) to convert and maintain easily a C++ project (vs7.1) to a Makefile file, in order to build it in Linux?
Here are a couple relevent threads:
comp.emulators.ms-windows.wine, makefile converter, 5/17/2001 http://groups-beta.google.com/group/...8a4364c377573/ Dev Shed Forums > ... > convert visual studio project to gcc http://forums.devshed.com/archive/t-214272
As you've guessed, the information you need is in your .vcproj file. Be warned that if you use any VC++-specific features, such as precompiled headers or nonstandard APIs, especially the .NET Framework, this conversion will be somewhat trickier. Automatic converters have been proposed by a number of people ([1], [2], [3]), but none seem to have been made available.
Considering that generating dependencies is the most difficult part, you may also be interested in solutions that autogenerate dependencies for your source files. Then creating the Makefile would be a simple matter of listing the source files and tweaking your flags and code. Such solutions exist, and one good one that I've used is proposed in the GNU make manual:
GNU make manual: 4.14 Generating Prerequisites Automatically http://www.gnu.org/software/make/man...e_4.html#SEC51
I hope some of this helps. Please write back if you have any confusion or additional issues.
[1] "The information of interest is in the .vcproj file. It is in XML and could probably be parsed by an XML guru in about 5 minutes to create a workable makefile for *nix." - mitakeet http://forums.devshed.com/archive/t-214272
[2] "The VS.NET project files for VC are XML - building a .vcproj -> .mak converter shouldn't be too hard for someone adept at Perl and XML." - Yanhong Huang http://groups-beta.google.com/group/...9b8f0f46c83fd/
[3] "The VS.NET project files for VC are XML - building a .vcproj -> .mak converter shouldn't be too hard for someone adept at Perl and XML (the trick, of course, is learning the IDE -> XML mapping for all of the options - no rocket science, just tedium)." - Carl Daniel http://groups-beta.google.com/group/...e182da74a463b/
-- Jacobo Rodríguez Villar
TyphoonLabs Lead Programmer
http://www.typhoonlabs.com
Ups, I really meant 400 files, not 40, sorry :P For 40 source files (I assume that is what you have and not 40 projects). Manually creating a makefile should probably take less than an hour.
Ronald
"Jacobo Rodriguez Villar" <skdjf@sdkjf> wrote in message news:uH**************@TK2MSFTNGP15.phx.gbl...
Hello Derrick,
Many thanks, that's exactly what I was searching for. I have a 'large' project (about 40 sources) of standard C++ code (no .NET, mfc or something else, only STL) and I want to build it in linux, and manually compilations is very annoying...
Thanks for your reply, Jacobo
"Jacobo Rodriguez Villar" <skdjf@sdkjf> wrote:
Is there any way (or program) to convert and maintain easily a C++ project (vs7.1) to a Makefile file, in order to build it in Linux?
Here are a couple relevent threads:
comp.emulators.ms-windows.wine, makefile converter, 5/17/2001 http://groups-beta.google.com/group/...8a4364c377573/ Dev Shed Forums > ... > convert visual studio project to gcc http://forums.devshed.com/archive/t-214272
As you've guessed, the information you need is in your .vcproj file. Be warned that if you use any VC++-specific features, such as precompiled headers or nonstandard APIs, especially the .NET Framework, this conversion will be somewhat trickier. Automatic converters have been proposed by a number of people ([1], [2], [3]), but none seem to have been made available.
Considering that generating dependencies is the most difficult part, you may also be interested in solutions that autogenerate dependencies for your source files. Then creating the Makefile would be a simple matter of listing the source files and tweaking your flags and code. Such solutions exist, and one good one that I've used is proposed in the GNU make manual:
GNU make manual: 4.14 Generating Prerequisites Automatically http://www.gnu.org/software/make/man...e_4.html#SEC51
I hope some of this helps. Please write back if you have any confusion or additional issues.
[1] "The information of interest is in the .vcproj file. It is in XML and could probably be parsed by an XML guru in about 5 minutes to create a workable makefile for *nix." - mitakeet http://forums.devshed.com/archive/t-214272
[2] "The VS.NET project files for VC are XML - building a .vcproj -> .mak converter shouldn't be too hard for someone adept at Perl and XML." - Yanhong Huang http://groups-beta.google.com/group/...9b8f0f46c83fd/
[3] "The VS.NET project files for VC are XML - building a .vcproj -> .mak converter shouldn't be too hard for someone adept at Perl and XML (the trick, of course, is learning the IDE -> XML mapping for all of the options - no rocket science, just tedium)." - Carl Daniel http://groups-beta.google.com/group/...e182da74a463b/
-- Jacobo Rodríguez Villar
TyphoonLabs Lead Programmer
http://www.typhoonlabs.com
--
Jacobo Rodríguez Villar
TyphoonLabs Lead Programmer http://www.typhoonlabs.com
With that number starting with a tool like the GNU implementation mentioned
below that can extract the dependencies probably makes more sense.
Ronald
"Jacobo Rodriguez Villar" <skdjf@sdkjf> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... Ups, I really meant 400 files, not 40, sorry :P
For 40 source files (I assume that is what you have and not 40 projects). Manually creating a makefile should probably take less than an hour.
Ronald
"Jacobo Rodriguez Villar" <skdjf@sdkjf> wrote in message news:uH**************@TK2MSFTNGP15.phx.gbl...
Hello Derrick,
Many thanks, that's exactly what I was searching for. I have a 'large' project (about 40 sources) of standard C++ code (no .NET, mfc or something else, only STL) and I want to build it in linux, and manually compilations is very annoying...
Thanks for your reply, Jacobo
"Jacobo Rodriguez Villar" <skdjf@sdkjf> wrote:
>Is there any way (or program) to convert and maintain easily a C++ >project (vs7.1) to a Makefile file, in order to build it in Linux?
Here are a couple relevent threads:
comp.emulators.ms-windows.wine, makefile converter, 5/17/2001 http://groups-beta.google.com/group/...8a4364c377573/ Dev Shed Forums > ... > convert visual studio project to gcc http://forums.devshed.com/archive/t-214272
As you've guessed, the information you need is in your .vcproj file. Be warned that if you use any VC++-specific features, such as precompiled headers or nonstandard APIs, especially the .NET Framework, this conversion will be somewhat trickier. Automatic converters have been proposed by a number of people ([1], [2], [3]), but none seem to have been made available.
Considering that generating dependencies is the most difficult part, you may also be interested in solutions that autogenerate dependencies for your source files. Then creating the Makefile would be a simple matter of listing the source files and tweaking your flags and code. Such solutions exist, and one good one that I've used is proposed in the GNU make manual:
GNU make manual: 4.14 Generating Prerequisites Automatically http://www.gnu.org/software/make/man...e_4.html#SEC51
I hope some of this helps. Please write back if you have any confusion or additional issues.
[1] "The information of interest is in the .vcproj file. It is in XML and could probably be parsed by an XML guru in about 5 minutes to create a workable makefile for *nix." - mitakeet http://forums.devshed.com/archive/t-214272
[2] "The VS.NET project files for VC are XML - building a .vcproj -> .mak converter shouldn't be too hard for someone adept at Perl and XML." - Yanhong Huang http://groups-beta.google.com/group/...9b8f0f46c83fd/
[3] "The VS.NET project files for VC are XML - building a .vcproj -> .mak converter shouldn't be too hard for someone adept at Perl and XML (the trick, of course, is learning the IDE -> XML mapping for all of the options - no rocket science, just tedium)." - Carl Daniel http://groups-beta.google.com/group/...e182da74a463b/
-- Jacobo Rodríguez Villar
TyphoonLabs Lead Programmer
http://www.typhoonlabs.com
-- Jacobo Rodríguez Villar
TyphoonLabs Lead Programmer
http://www.typhoonlabs.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Lin Ma |
last post by:
Hello,
What is the .VCPROJ file? I only installed C#.net and VB.net for the .Net
studio 2003. Do I need to install more application to read this file?
Thanks,
Lin
|
by: Craig Lichtenstein |
last post by:
As I’ve been reading about msbuild, I’ve noticed articles that mention
msbuild’s incapability to natively read .vcproj files. In short, executing
msbuild blah.vcproj causes msbuild to invoke...
|
by: -DG- |
last post by:
I had thought that all VC compile/link options could be set from
within Visual Studio but apparently that's not the case. The .vcproj
file seems to hold refs to old files despite changes to...
|
by: Chrysan |
last post by:
I had downloaded an example from microsoft website
(debuggingwalkthroughs.msi), where this will install a Visual Studio Solution
with 2 projects (DebuggingWeb.csproj and DebuggingCOM.vcproj). But,...
|
by: Pavel A. |
last post by:
Can anybody shed some light... Confused here :((
Isn't VS.2005 supposed to use the new build system, that can be invoked
separately from the IDE?
If yes, why it creates vcproj files? Are these...
|
by: Anil Gupte |
last post by:
I get an error saying
"The application for project "C:\...\fbridge.vcproj" is not installed."
"Make sure the application for the project type (.vcproj) is installed."
--
Anil Gupte...
|
by: Anil Gupte |
last post by:
I have recently installed VC#, VC++ and VB 2005 Express Edition. Someone
had sent me the sln file to load it into C# and so I tried, and I get an
error saying:
"The application for project...
|
by: Ed |
last post by:
Hello, guys,
Here I have a VC project. I used to build it in VS.Net IDE. But
because of cross platform requiremment, it need to be ported into
Linux.
First I need to consider the build...
|
by: tvnaidu |
last post by:
porting windows static libs and dll into linux static lib abd shared lib, any tool to convert vcproj files to Linux makefiles?
porting windows static libs and dll into linux static lib abd shared...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |