HOME  NEWS  FORUM  DOWNLOAD  LINK
OpenCOBOL - an open-source COBOL compiler
Main Menu
Download
Documentation
Development
Who's Online
22 user(s) are online (8 user(s) are browsing Forum)

Members: 0
Guests: 22

more...
Powered by
SourceForge

Xoops

Creative Commons

OpenCOBOL Forum Index
   OpenCOBOL
     Open cobol Build (Win64, cross compiled via MinGW from Unix)
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
shaj
Posted on: 2012/8/16 9:17
Just popping in
Joined: 2010/2/3
From:
Posts: 5
Open cobol Build (Win64, cross compiled via MinGW from Unix)
On a Linux 64 bit machine, I could build open-cobol Linux 64 bit, Linux 32 bit versions.
Tried to cross-compile using Mingw. for a Win64 bit version.
./configure --host=x86_64-w64-mingw32 --build=i686-w64-mingw32 CC=amd64-mingw32msvc-gcc  CPPFLAGS="-I/tmp/oc11/include" LDFLAGS="-L/tmp/oc11/lib"

But it fails, complains about GMP 3 version.
Quote:

checking for ld used by GCC... /usr/amd64-mingw32msvc/bin/ld
checking if the linker (/usr/amd64-mingw32msvc/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... no, consider installing GNU libiconv
checking for nl_langinfo and CODESET... no
checking for getopt_long_only... no
checking gmp.h usability... yes
checking gmp.h presence... yes
checking for gmp.h... yes
checking for __gmp_randinit in -lgmp... no
configure: error: GMP 3 or later is required


Tried to build a GMP version,

./configure --prefix=/tmp/gmp --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --disable-static --enable-shared 

but it results following error. The same error for mpir build. Any idea on building OC Win64 using Mingw Cross compiler.
Quote:

../gmp.h:1356:1: error: expected declaration specifiers before '__declspec'
../gmp.h:1359:1: error: expected declaration specifiers before '__declspec'
../gmp.h:1362:1: error: expected declaration specifiers before '__declspec'
../gmp.h:1365:1: error: expected declaration specifiers before '__declspec'
human
Posted on: 2012/8/16 10:34
Home away from home
Joined: 2007/5/15
From: GERMANY
Posts: 1416
Re: Open cobol Build (Win64, cross compiled via MinGW from Unix)
Despite of GMP you'll need to cross-compile every used lib before (libiconv, curses, ISAM [if not needed you'll save yourself a lot of trouble using --without-db on configuration of OC-build], ...).

For correct cross compiling of these [insert search engine here] may help you.
Please post a "how-to" here, when you're finished. Good luck.

BTW: See Wiki->Assorted Documents on how to build OC on MinGW within Windows, if cross-compiling does not work for you.

Simon 'human' Sobisch
Threaded | Newest First Previous Topic | Next Topic | Top

Register To Post
 
Copyright (C) 2005 The OpenCOBOL Project. All rights reserved.
Powered by Xoops2 | PHP | MySQL | Apache
ocean-net