Re: [gentoo-user] Cross Compiling in Gentoo

2012-01-18 Thread Helmut Jarausch
On 01/18/2012 01:18:03 AM, Mike Edenfield wrote:
> While I program a lot on my Linux machines, I haven't actually found
> an IDE that doesn't make me wish VS ran on Linux. 

Did you have a look at CodeLite  (www.codelite.org) ?

If you like, I can send you an ebuild for it (but you
can install it under /usr/local, as well).

Helmut.




RE: [gentoo-user] Cross Compiling in Gentoo

2012-01-17 Thread Mike Edenfield
> From: Chris Walters [mailto:cjw20...@comcast.net]
> Sent: Tuesday, January 17, 2012 9:27 AM
> 
> On 1/17/2012 08:39 AM, Mike Edenfield wrote:
> > On 1/17/2012 1:55 AM, Chris Walters wrote:
> >> that have make files for MS Visual Studio.  I have no interest in
> >> purchasing Visual Studio.
> >
> > Just a point of interest: "Visual Studio" doesn't use Makefiles;
> > Visual C++ can import Makefile projects if you ask it to, but it has
> > its own project file format. If you're seeing actual make files (and
> > not, say, a .sln file or .cproj
> > file) then you don't need Studio, just an nmake-compatible version of
> make.
> >
> > If you do have project and solution files from Visual Studio, they are
> > just MSBuild projects (think "ant for Windows"). I'm pretty sure there
> > are open-source variants of MSBuild, possibly in the Mono project?
> >
> > And of course, Visual C++ Express is free, though you'd need to find
> > somewhere to set it up.
> 
> Just a note:  I used to do all of my programming in Visual Studio.  I stopped
> when I needed to do things that VS wouldn't let me do, and also because I
> discovered GNU/Linux.

While I program a lot on my Linux machines, I haven't actually found an IDE 
that doesn't make me wish VS ran on Linux. MonoDevelop isn't horrible but if I 
wanted to write .NET code I'd just use Windows; Eclipse makes me want to drill 
my brain out with a corkscrew and the only other decent IDE's I've seen are 
KDE-specific. I've falling back to the default of Emacs at this point; it's 
powerful enough, especially when I'm doing Lisp or Scheme, but I have an 
internal mental limit of 150,110 hotkey combinations that I think is holding me 
back. If you have any suggestions I'm all ears :)
 
> As for the types of files I've seen, I have seen both VS Solution/Project 
> files,
> and nmake files.  Most of the time, I just use the configure script with
> x86_64-w64-mingw32 as my host, and it works fine.
> 
> Do you, by chance, know where I can find an nmake-compatible version of
> make?

> Also, do you have a link for Visual C++ Express?  I like to do most
> programming in C/C++ anyway (though this is OT).

Well, if you're willing to go the "install a Windows OS" route, everything you 
need command-line wise is found in the Windows SDK: 
http://msdn.microsoft.com/en-us/windowsserver/bb980924.aspx.  
Visual C++ 2010 Express can be downloaded from: 

http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express
 
Mostly what you lose with Express are the TFS integrations, unit testing, and 
other "application lifecycle management" stuff they pack into the full 
editions. Express editions can't build & debug 64-bit applications, but the 
64-bit compilers come with the SDK. Depends on how much effort you're willing 
to put into it. 

If you don't want to install Windows you're options are going to be mostly 
limited to the GNU binutils and GCC, which support targeting Win32 and Win64.  
In theory you could run the command-line tools, for example, under Wine, but 
I've never tried it. I don't actually know of a make for Linux that is 
compatible with NMAKE. If you can't find one then you'll need to do a lot of 
work to build any applications that require it. However, I think the number of 
applications using Microsoft make files is vanishingly small: they're either 
going to produce a GNU makefile (since GNU make runs on Windows) or an MSBuild 
project.

And yes, AT&T also released a tool called "nmake" that is not compatible with 
Microsoft NMAKE (or either of the other two incompatible makes), so don't get 
them confused.

--Mike




Re: [gentoo-user] Cross Compiling in Gentoo

2012-01-17 Thread Michael Mol
Mike Edenfield wrote:
> On 1/17/2012 1:55 AM, Chris Walters wrote:
>> Hi,
>>
>> I have a question about cross compiling in Gentoo - specifically cross
>> compiling for W32/W64.  I tried their preferred method and didn't like
>> it, so I
>> downloaded the appropriate Mingw64 build files, set up a cross compile
>> account,
>> with the appropriate paths, variables, etc.  Most packages compile
>> correctly
>> (though it sometimes takes some code hacking - and yes they do run in
>> Win 7),
>> but there are some I can't seem to get to build properly - usually the
>> ones
>> that have make files for MS Visual Studio.  I have no interest in
>> purchasing
>> Visual Studio.
> 
> Just a point of interest: "Visual Studio" doesn't use Makefiles; Visual
> C++ can import Makefile projects if you ask it to, but it has its own
> project file format. If you're seeing actual make files (and not, say, a
> .sln file or .cproj file) then you don't need Studio, just an
> nmake-compatible version of make.
> 
> If you do have project and solution files from Visual Studio, they are
> just MSBuild projects (think "ant for Windows"). I'm pretty sure there
> are open-source variants of MSBuild, possibly in the Mono project?
> 
> And of course, Visual C++ Express is free, though you'd need to find
> somewhere to set it up.

You don't even need that much; you can just use the Windows SDK to get
the compilers. (I don't know if it comes with MSBuild, though) The
Windows SDK might work via WINE, dunno.

http://www.microsoft.com/downloads/dlx/en-us/listdetailsview.aspx?FamilyID=6b6c21d2-2006-4afa-9702-529fa782d63b

> 
>> My question is, does anyone know of any good resources (mailing lists,
>> sites,
>> etc.) on cross compiling on a GNU/Linux platform for a W32/W64
>> platform?  The
>> searches I've run have directed me to sites that talk about using MSYS
>> and
>> Mingw on a W32 platform (I don't have all year to build a single
>> package).
>> I
>> am looking to build GraphicsMagick, and some helpful tools for W64
>> (though I'd
>> accept W32, if that's the only way).

"info gcc" tells me that the install of gcc on my Gentoo box supports
the mingw target. "eix mingw" shows me that there are ebuilds for the
import libraries, but they're hardmasked on my amd64 system for some reason.



Re: [gentoo-user] Cross Compiling in Gentoo

2012-01-17 Thread Joerg Schilling
Chris Walters  wrote:

> Do you, by chance, know where I can find an nmake-compatible version of make?

Be careful microsofts "nmake" is not compatible to nmake

nmake has been written by David Korn and Glenn Fowler in the mid 1980s.

Microsoft much later "resused" the name for something non-compatible.

It does not make sense to look at the MS "nmake" syntay as it is completely 
non-portable.


Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] Cross Compiling in Gentoo

2012-01-17 Thread Joerg Schilling
Chris Walters  wrote:

> I am using the equivalent of the Debian cross compiler - without Debian.  This
> has been used to cross compile many 32 bit applications from Debian for W32,
> from what I understand.  I have managed to cross compile bzip2, lame, libogg,
> libvorbis, vorbis-tools, and a few others - they all work.  With most, I only
> needed to set the correct path (to mingw), and specify the tools and target 
> and
> run the configure script.  I ran into problems with gzip and zlib, however.
>
> Thanks for the link, I will look into it.  Though I hate the idea of running
> msys and mingw or anything like that in a W64 environment.
>
> The really annoying thing for me is that if you look at the Mingw64 site on
> sourceforge, they indicate that you can cross compile from a GNU/Linux
> distribution to W32 or W64 - and they give a list of apps that were
> successfully cross compiled, but little in the way of documentation.

GNU autoconf allows to set up "default results" for cross compiling when trying 
to test things that need to run on the target.

Some of the basic GNU text utils either return most pessimistic values in case 
of a cross compilation or someone did handcraft the related results for MinGW 
and publishes such a modified source that probably will no longer compile 
correctly on other systems.

BTW: I introduced the cross compilation extensions to schily autoconmf in order 
to permit to compile my software for android.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] Cross Compiling in Gentoo

2012-01-17 Thread Chris Walters
On 1/17/2012 08:39 AM, Mike Edenfield wrote:
> On 1/17/2012 1:55 AM, Chris Walters wrote:
>> that have make files for MS Visual Studio.  I have no interest in purchasing
>> Visual Studio.
> 
> Just a point of interest: "Visual Studio" doesn't use Makefiles; Visual C++ 
> can
> import Makefile projects if you ask it to, but it has its own project file
> format. If you're seeing actual make files (and not, say, a .sln file or 
> .cproj
> file) then you don't need Studio, just an nmake-compatible version of make.
> 
> If you do have project and solution files from Visual Studio, they are just
> MSBuild projects (think "ant for Windows"). I'm pretty sure there are
> open-source variants of MSBuild, possibly in the Mono project?
> 
> And of course, Visual C++ Express is free, though you'd need to find somewhere
> to set it up.

Just a note:  I used to do all of my programming in Visual Studio.  I stopped
when I needed to do things that VS wouldn't let me do, and also because I
discovered GNU/Linux.

As for the types of files I've seen, I have seen both VS Solution/Project
files, and nmake files.  Most of the time, I just use the configure script with
x86_64-w64-mingw32 as my host, and it works fine.

Do you, by chance, know where I can find an nmake-compatible version of make?
Also, do you have a link for Visual C++ Express?  I like to do most programming
in C/C++ anyway (though this is OT).

Thanks for your reply, it was enlightening...  When I did most of my
programming, portability was not an issue - now it is virtually a must.

Chris


---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 120117-0, 01/17/2012
Tested on: 1/17/2012 9:26:56 AM
avast! - copyright (c) 1988-2012 AVAST Software.
http://www.avast.com






Re: [gentoo-user] Cross Compiling in Gentoo

2012-01-17 Thread YoYo Siska
On Tue, Jan 17, 2012 at 01:55:25AM -0500, Chris Walters wrote:
> My question is, does anyone know of any good resources (mailing lists, sites,
> etc.) on cross compiling on a GNU/Linux platform for a W32/W64 platform?  The
> searches I've run have directed me to sites that talk about using MSYS and
> Mingw on a W32 platform (I don't have all year to build a single package).  I
> am looking to build GraphicsMagick, and some helpful tools for W64 (though I'd
> accept W32, if that's the only way).

You should also ask on the gentoo-embedded mailling list. Mingw might not
be reallly 'embedded' but that list would still be the most relevant
place to ask gentoo-related crosscompile questions...
Gentoo also has a crossdev tool that should also support mingw, though I
only ever used it for i686 and arm crosscompiles.

yoyo




Re: [gentoo-user] Cross Compiling in Gentoo

2012-01-17 Thread Mike Edenfield

On 1/17/2012 6:41 AM, Joerg Schilling wrote:

Chris Walters  wrote:


I have a question about cross compiling in Gentoo - specifically cross
compiling for W32/W64.  I tried their preferred method and didn't like it, so I
downloaded the appropriate Mingw64 build files, set up a cross compile account,
with the appropriate paths, variables, etc.  Most packages compile correctly
(though it sometimes takes some code hacking - and yes they do run in Win 7),
but there are some I can't seem to get to build properly - usually the ones
that have make files for MS Visual Studio.  I have no interest in purchasing
Visual Studio.

My question is, does anyone know of any good resources (mailing lists, sites,
etc.) on cross compiling on a GNU/Linux platform for a W32/W64 platform?  The
searches I've run have directed me to sites that talk about using MSYS and
Mingw on a W32 platform (I don't have all year to build a single package).  I
am looking to build GraphicsMagick, and some helpful tools for W64 (though I'd
accept W32, if that's the only way).



For your specific problem: it is most unlikely that you will get a MS cross
compiler that runs on other platforms than WIN-DOS.


I've had very good luck with gcc's x86_64-w64-mingw32 
target, and gcc has supported Win32 builds for years, so I 
dunno why you think this is "unlikely". My biggest problem 
with MingW has been their occasional lag behind gcc in 
versions, but I believe gcc 4.5 can cross-compile for 64-bit 
Windows.


The setup is rather a pain but then again, if you wanted 
"easy", you probably wouldn't be using Gentoo :)


http://sourceforge.net/apps/trac/mingw-w64/wiki/Cross%20Win32%20and%20Win64%20compiler

For the OP's specific problem, I'll have to try and build 
GraphicsMagick on Gentoo and see what kind of build 
structure is uses that is giving him problems but its 
possible he just needs xbuild (the Mono msbuild 
implementation.) Worst case it has an old VC++-style 
workspace but those are usually just auto-generated out of 
the makefiles anyway.


--Mike



Re: [gentoo-user] Cross Compiling in Gentoo

2012-01-17 Thread Mike Edenfield

On 1/17/2012 1:55 AM, Chris Walters wrote:

Hi,

I have a question about cross compiling in Gentoo - specifically cross
compiling for W32/W64.  I tried their preferred method and didn't like it, so I
downloaded the appropriate Mingw64 build files, set up a cross compile account,
with the appropriate paths, variables, etc.  Most packages compile correctly
(though it sometimes takes some code hacking - and yes they do run in Win 7),
but there are some I can't seem to get to build properly - usually the ones
that have make files for MS Visual Studio.  I have no interest in purchasing
Visual Studio.


Just a point of interest: "Visual Studio" doesn't use 
Makefiles; Visual C++ can import Makefile projects if you 
ask it to, but it has its own project file format. If you're 
seeing actual make files (and not, say, a .sln file or 
.cproj file) then you don't need Studio, just an 
nmake-compatible version of make.


If you do have project and solution files from Visual 
Studio, they are just MSBuild projects (think "ant for 
Windows"). I'm pretty sure there are open-source variants of 
MSBuild, possibly in the Mono project?


And of course, Visual C++ Express is free, though you'd need 
to find somewhere to set it up.



My question is, does anyone know of any good resources (mailing lists, sites,
etc.) on cross compiling on a GNU/Linux platform for a W32/W64 platform?  The
searches I've run have directed me to sites that talk about using MSYS and
Mingw on a W32 platform (I don't have all year to build a single package).  I
am looking to build GraphicsMagick, and some helpful tools for W64 (though I'd
accept W32, if that's the only way).

Chris








Re: [gentoo-user] Cross Compiling in Gentoo

2012-01-17 Thread Chris Walters
On 1/17/2012 06:41 AM, Joerg Schilling wrote:
> I am not sure what you really like. Cross compiling is a general "problem" 
> and 
> not related to a specific distro.
> 
> For your specific problem: it is most unlikely that you will get a MS cross 
> compiler that runs on other platforms than WIN-DOS.
> 
> In general: The most annoying problem with cross compiling is that GNU 
> autoconf 
> does not support cross compiling and as a result, you need to manually create 
> results if you like to cross compile. The reason for this problem is that 
> many 
> autoconf tests need to be run on the target platform in order to create 
> useful 
> results.
> 
> Since July 2011, the Schily autoconf system (available e.g. via: 
> ftp://ftp.berlios.de/pub/schily) includes support for cross compiling by 
> detecting cross compilation and by running those tests that need the target 
> system either on a related target system or on an emulator. Note that the 
> autoconf configuration in ftp://ftp.berlios.de/pub/schily includes aprox. 700
> autoconf tests - 70 of these tests need to be run on the target, this can be 
> seen as a hint that aprox. 10% of the tests need to be run on the target.
> 
> As you see, your question cannot be easily answered.
> 
> Jörg

I am using the equivalent of the Debian cross compiler - without Debian.  This
has been used to cross compile many 32 bit applications from Debian for W32,
from what I understand.  I have managed to cross compile bzip2, lame, libogg,
libvorbis, vorbis-tools, and a few others - they all work.  With most, I only
needed to set the correct path (to mingw), and specify the tools and target and
run the configure script.  I ran into problems with gzip and zlib, however.

Thanks for the link, I will look into it.  Though I hate the idea of running
msys and mingw or anything like that in a W64 environment.

The really annoying thing for me is that if you look at the Mingw64 site on
sourceforge, they indicate that you can cross compile from a GNU/Linux
distribution to W32 or W64 - and they give a list of apps that were
successfully cross compiled, but little in the way of documentation.

Chris



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Cross Compiling in Gentoo

2012-01-17 Thread Joerg Schilling
Chris Walters  wrote:

> I have a question about cross compiling in Gentoo - specifically cross
> compiling for W32/W64.  I tried their preferred method and didn't like it, so 
> I
> downloaded the appropriate Mingw64 build files, set up a cross compile 
> account,
> with the appropriate paths, variables, etc.  Most packages compile correctly
> (though it sometimes takes some code hacking - and yes they do run in Win 7),
> but there are some I can't seem to get to build properly - usually the ones
> that have make files for MS Visual Studio.  I have no interest in purchasing
> Visual Studio.
>
> My question is, does anyone know of any good resources (mailing lists, sites,
> etc.) on cross compiling on a GNU/Linux platform for a W32/W64 platform?  The
> searches I've run have directed me to sites that talk about using MSYS and
> Mingw on a W32 platform (I don't have all year to build a single package).  I
> am looking to build GraphicsMagick, and some helpful tools for W64 (though I'd
> accept W32, if that's the only way).

I am not sure what you really like. Cross compiling is a general "problem" and 
not related to a specific distro.

For your specific problem: it is most unlikely that you will get a MS cross 
compiler that runs on other platforms than WIN-DOS.

In general: The most annoying problem with cross compiling is that GNU autoconf 
does not support cross compiling and as a result, you need to manually create 
results if you like to cross compile. The reason for this problem is that many 
autoconf tests need to be run on the target platform in order to create useful 
results.

Since July 2011, the Schily autoconf system (available e.g. via: 
ftp://ftp.berlios.de/pub/schily) includes support for cross compiling by 
detecting cross compilation and by running those tests that need the target 
system either on a related target system or on an emulator. Note that the 
autoconf configuration in ftp://ftp.berlios.de/pub/schily includes aprox. 700
autoconf tests - 70 of these tests need to be run on the target, this can be 
seen as a hint that aprox. 10% of the tests need to be run on the target.

As you see, your question cannot be easily answered.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



[gentoo-user] Cross Compiling in Gentoo

2012-01-16 Thread Chris Walters
Hi,

I have a question about cross compiling in Gentoo - specifically cross
compiling for W32/W64.  I tried their preferred method and didn't like it, so I
downloaded the appropriate Mingw64 build files, set up a cross compile account,
with the appropriate paths, variables, etc.  Most packages compile correctly
(though it sometimes takes some code hacking - and yes they do run in Win 7),
but there are some I can't seem to get to build properly - usually the ones
that have make files for MS Visual Studio.  I have no interest in purchasing
Visual Studio.

My question is, does anyone know of any good resources (mailing lists, sites,
etc.) on cross compiling on a GNU/Linux platform for a W32/W64 platform?  The
searches I've run have directed me to sites that talk about using MSYS and
Mingw on a W32 platform (I don't have all year to build a single package).  I
am looking to build GraphicsMagick, and some helpful tools for W64 (though I'd
accept W32, if that's the only way).

Chris





signature.asc
Description: OpenPGP digital signature