Re: Issues when cross-compile the freetds using unixODBC
Nick Gorham <[email protected]> Wed, 05 Mar 2014 15:04:08 +0000
| Newsgroups | gmane.comp.db.unixodbc.devel |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============0432105462==
Content-Type: multipart/alternative;
boundary="------------030809020703080405020802"
This is a multi-part message in MIME format.
--------------030809020703080405020802
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
On 01/03/14 01:29, ZhengYabin wrote:
> Hi,
> I'm recently using unixODBC and freetds to build a development
> environment for accessing a remote SQL Server on an arm-linux platform.
>
> Things I've already done:
> 1.build x86 unixODBC with "./configure
> --prefix=/usr/local/unixODBC-x86"
> 2. cross-compile build unixODBC with "./configure
> --prefix=/usr/local/unixODBC-arm --host=arm-linux"
>
> Then I tried to build freetds with unixODBC
> 3.build x86 freetds with "./configure
> --prefix=/usr/local/freetds-x86
> --with-unixodbc=/usr/local/unixODBC-x86", the process is good.
> 4. but when I tried to build arm edition with
> "./configure --prefix=/usr/local/freetds-arm
> --with-unixodbc=/usr/local/unixODBC-arm --host=arm-linux"
> it always genarated an error
>
> ./configure: line 16574: /usr/local/unixODBC-arm/bin/odbc_config:
> connot execute binary file
> ./configure: line 16575: /usr/local/unixODBC-arm/bin/odbc_config:
> connot execute binary file
> configure: error: sql.h not found
>
> It seems the configure script tried to execute the arm-linux
> edition odbc_config, it will definitely failed.
> How to fix the problem to complete the cross-compile build?
>
>
>
>
> ?? Windows ??
Try later source,
2.3.1 contained this change
"Generate unixodbc_conf.h using macros to allow cross compiling"
--
Nick
--------------030809020703080405020802
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 01/03/14 01:29, ZhengYabin wrote:<br>
</div>
<blockquote
cite="mid:[email protected]"
type="cite">
<meta name="generator" content="Windows Mail 17.5.9600.20413">
<style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}
p.MsoNormal, li.MsoNormal, div.MsoNormal {
margin:0in;
margin-bottom:.0001pt;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst,
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle,
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style>
<div data-externalstyle="false" dir="ltr" style="font-family:
'Microsoft YaHei UI', 'Calibri', 'Segoe UI', 'Meiryo',
'Microsoft JhengHei UI', 'Malgun Gothic',
'sans-serif';font-size:12pt;">
<div>Hi,</div>
<div dir="ltr">
<div dir="ltr"> I’m recently using unixODBC and freetds
to build a development environment for accessing a remote
SQL Server on an arm-linux platform.</div>
<blockquote style="margin-top: 0px; margin-right: 0px;
margin-bottom: 0px;" dir="ltr">
<div>Things I’ve already done:</div>
<div>1.build x86 unixODBC with “./configure
--prefix=/usr/local/unixODBC-x86”</div>
<div>2. cross-compile build unixODBC with “./configure
--prefix=/usr/local/unixODBC-arm --host=arm-linux”</div>
<div><br>
</div>
<div>Then I tried to build freetds with unixODBC</div>
<div>3.build x86 freetds with “./configure
--prefix=/usr/local/freetds-x86
--with-unixodbc=/usr/local/unixODBC-x86”, the process is
good.</div>
<div>4. but when I tried to build arm edition with</div>
<div>“./configure --prefix=/usr/local/freetds-arm
--with-unixodbc=/usr/local/unixODBC-arm --host=arm-linux”</div>
<div>it always genarated an error </div>
<div dir="ltr"><br>
</div>
<div dir="ltr">./configure: line 16574:
/usr/local/unixODBC-arm/bin/odbc_config: connot execute
binary file<br>
./configure: line 16575:
/usr/local/unixODBC-arm/bin/odbc_config: connot execute
binary file<br>
configure: error: sql.h not found</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">It seems the configure script tried to
execute the arm-linux edition odbc_config, it will
definitely failed.</div>
<div dir="ltr">How to fix the problem to complete the
cross-compile build?</div>
<blockquote style="margin-top: 0px; margin-right: 0px;
margin-bottom: 0px;" dir="ltr">
<div><br>
</div>
</blockquote>
<div><br>
</div>
</blockquote>
<div data-signatureblock="true"><br>
</div>
<div>发自 Windows 邮件</div>
</div>
</div>
</blockquote>
<br>
Try later source, <br>
<br>
2.3.1 contained this change<br>
<br>
"Generate unixodbc_conf.h using macros to allow cross compiling"<br>
<br>
-- <br>
Nick<br>
</body>
</html>
--------------030809020703080405020802--
--===============0432105462==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
unixODBC-dev mailing list
[email protected]
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
--===============0432105462==--