简体   繁体   English

Windows-> Solaris 5.X C ++交叉编译器推荐

[英]Windows -> Solaris 5.X C++ cross compiler recomendation

I have neved did a cross platform development before but the process we currently employ such as doing the development on a Windows machine (as we are mostly a Windows shop) and then actually building the binaries on a Solaris box looks a bit convoluted to me. 我以前曾经做过跨平台开发,但是我们目前使用的过程(例如,在Windows机器上进行开发(因为我们主要是Windows商店),然后在Solaris盒上实际构建二进制文件)对我来说有些复杂。

Can you recomend me a cross compiler so I can limit development tasks to a Windows machine (eg building Solaris binaries (.so)), and only use Solaris machine for a testing and deployment. 您可以向我推荐一个交叉编译器,以便将开发任务限制在Windows计算机上(例如,构建Solaris二进制文件(.so)),并且仅将Solaris计算机用于测试和部署。

It would also be great to be able to test a resulting binaries on a Windows machine before (eg dependencies b/w binaries) deploying them into the Solaris box, but it looks like I am asking for too much. 能够在Windows计算机上测试生成的二进制文件(例如,依赖项b / w二进制文件)之前将它们部署到Solaris框中,这也很棒,但是看起来我要求的太多了。

Why not use a tool like cruisecontrol to build your apps for you simultanously on both platforms. 为什么不使用Cruise Cruise之类的工具同时在两个平台上为您构建应用程序。 Doing it this way makes it easier to add more platforms in the future. 通过这种方式,将来可以更轻松地添加更多平台。

Failing that you could use cygwin or mingw to build on windows only for development, then build your real distribution on solaris. 未能使用cygwin或mingw只能在Windows上进行开发,然后在solaris上构建实际发行版。

I don't know anything about cross compilers as I've never used therm, sorry 我对交叉编译器一无所知,因为我从未使用过therm,对不起

I don't know if a Windows/Cygwin hosted compiler that targets Solaris exists as a ready-to-use product, in any case some googling around didn't give any results. 我不知道是否有针对Solaris的Windows / Cygwin托管编译器作为现成的产品存在,无论如何在某些情况下搜索都不会产生任何结果。

However, I do have some experience with the creation of gcc&friends based toolchains that run under Cygwin and target Linux platforms (i386 and ARM). 但是,我确实有一些创建基于gcc&friends的工具链的经验,这些工具链可在Cygwin和目标Linux平台(i386和ARM)下运行。 When your target is Linux, there's a tool called crosstool that automates a lot of the work that needs to be done, so basically with a reasonably fast machine, a healthy dose of patience and a (longish) evening of build runs you'll be able to build a usable toolchain. 当您的目标是Linux时,有一个名为crosstool的工具可以自动完成许多需要完成的工作,因此基本上可以通过一台相当快的机器,健康的耐心和(长时间的)构建运行来完成能够建立可用的工具链。

Although in theory you could mimic what crosstool does to create your own cygwin to solaris toolchain, I'm afraid that in practice it may just not be worth the effort. 尽管从理论上讲,您可以模仿crosstool所做的工作,以创建自己的cygwin到solaris工具链,但恐怕在实践中,这样做可能不值得。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM