bashrcdelphi教程
delphi教程 时间:2021-04-04 阅读:(
)
CompilationInstructionforDelPhionLinux/MacOSX(10.
6orup)/WindowsIfthereisanyquestion,pleasegoto:http://compbio.
clemson.
edu/forum/ore-mailtodelphi@g.
clemson.
eduDelPhiDevelopmentTeam,ClemsonUniversityJune2018Beforecompilation:Besidesthesourcecode,weprovideexecutablefilesforLinux,WindowsandMacVersionsofDelPhi.
ThesourcecodeandexecutablefilescanbedownloadedfromtheDelPhiwebsite:http://compbio.
clemson.
edu/delphiMostoftheuserscanusetheexecutablefileswithoutcompilation.
Iftheexecutablefescannotbeexecutedonsomeusers'systems,orsomeadvancedDelPhiusersneedtomodifythesourcecode,pleaseseetheDelPhicompilationsectionbelow:DelPhicompilation:DelPhiC++version:LinuxVersion:1.
Updatinggcc(optional):OnLinuxsystems,pleasechecktheGCCversion.
Userscanusecommand:gcc–vtochecktheversion.
Ifthegccversionislowerthan4.
4,pleaseupdateit.
2.
InstallingboostC++library:BoostC++librarycanbeinstalledindiferentwaysondiferentLinuxdistributions.
Hereweprovideoneofthemostgeneralways:Downloadlibraryfrom:http://www.
boost.
org/users/history/version_1_55_0.
htmlUnpacktheboost_1_55_0.
tar.
gzandyouwillseefolderssuchasboost,doc,libs,more,status.
.
.
etcundertheunpackedboost_$verfolder(e.
g.
,boost_1_55_0/)[where,$verstandsfortheversionnumber]Then,checkyourlocalLinuxdistributionAndcopythe"boost"foldertobefoundundertheunpackedboost_$verfolderinto/usr/includeor/lib/includeor/usr/local/include1(whateverisappropriateforyourparticularlinuxdistribution).
1Thisstepwillrequire'root'privilege,Inmostgenericlinux,therelevantdirectoryshouldbe:/usr/includeTheboostlibraryalsoneedstobeinyourexecutablepath(checkthisinthe~/.
bashrcor~/.
cshrcorsimilarprofiles)3.
Compilation:WhenC++compilerandboostlibrariesareready,youcancompilethedistributionofDelPhiwithorwithoutopenMP.
Ifyoudon'tneedopenMPparallelizedDelPhi,goto"Release"folder,thetypethecommands:makecleanmakeTheexecutablefileforDelPhiwillbecreated.
ForcompilingopenMPparallelizedDelPhi,frstturnontheopenMPfagonbyeditingthefile".
/src/interface/environment.
h".
Thereisaline//#defnePARALLEL_OMPUn-commentthelinebydeletingthe"//"atthebeginningandsavethefile.
Gotothefolder"Release_omp",thentype:makecleanmakeTheexecutablefeforopenMPparallelizedDelPhiwillbegenerated.
Youmaythenwishtorenameandcopytheexecutable(s)toyour~/bin/andaccessthemgloballyfromyouruseraccount.
WindowsVersion:1.
Installationofgcc:ThereareseveraltoolstoinstallgcccompileronWindows.
HerewetakeMinGWasanexampletoinstallgcccompilerandcompileDelPhionWindows.
GotoMinGW'swebsite(https://sourceforge.
net/projects/mingw-w64/)todownloadtheMinGWandinstallitonyourcomputer.
Thedefaultinstallationdirectoryis"C:\MinGW\".
2.
Adding"C:\MinGW\bin"tothePATHenvironmentvariable.
ControlPanel→search"environmentvariables"→clickEditthesystemenvironmentvariable→click"Advanced"→click"EnvironmentVariables"→select"Path"→click"Edit""C:\MinGW\bin"tothePATHenvironmentvariable,use";"to"separateC:\MinGW\bin"andotherexistingpaths.
3.
DownloadboostC++library:DelPhicompilationneedsboostC++library,whichcanbedownloadedfrom:https://www.
boost.
org/users/history/version_1_55_0.
htmlAfterdownload,unziptheboost_1_55_0.
zipandyouwillseefolderssuchasboost,doc,libs,more,status.
.
.
Copythe"boost"foldertoC:\MinGW\include4.
Compilation:Openacommandwindow(cmd),Gotothe"delphicpp/Release"folderthentypecommand:mingw32-make.
exeTheexecutablefilewillbecreatedafterafewminutes.
MacVersion:TocompileDelPhiC++,youwillneed:1.
XcodeCommandLineTools2.
Homebrew(Optional)3.
GNUC++Compiler(4.
4orup)withOpenMPsupported.
4.
BoostC++Libraries(1.
47orup).
WithXCode4or5youwillneedtodownloadthecommand-linetoolsasanadditionalstep.
Youwillfndtheoptiontodownloadthecommand-linetoolsinXCode'sPreferences.
On10.
9Maverickyoucangetthecommand-linetoolsbysimplytypingxcode-select–installIfyouwanttousehomebrewtoinstallgccandboostlibrary,makesureyouhavehomeinstalled.
Ifnot,pleaserefertoitswebsiteforinstallation:http://brew.
shToinstallGNUC++compileronOSX,useMachomebrewtoinstallasshownbelow:brewinstallgccOralternatively,pleaserefertotheHPCMacOSXwebsite:http://hpc.
sourceforge.
netanddownloadthepreferredversiontoinstall.
TheGNUC++compilerwillbeinstalledin/usr/local/binfolderandyoumayneedtorenamethesymbolicg++-4.
9tog++(thisstepisforhomebrewinstalledgcc).
AndexportthePATHinyour~/.
bash_profileexportPATH=/usr/local/bin:$PATHToinstallBoostC++LibrariesonOSX,useMachomebrewasshownbelow:brewinstallboostOr,alternatively,pleaserefertothedetailedinstallationinstructionprovidedontheofficialboostC++librarieswebsite:http://www.
boost.
org/doc/libs/1_47_0/doc/html/quickbook/install.
htmlTheBoostC++librarieswillbeinstalledin/usr/local/includefolder.
WhenC++compilerandboostlibrariesareready,youcancompilethedistributionofDelPhiwithorwithoutopenMP.
Ifyoudon'tneedopenMPparallelizedDelPhi,goto"Release"folder,thentype:makecleanmakeThenpressenterkey.
TheexecutablefileofDelPhiwillbegenerated.
ForcompilingopenMPparallelizedDelPhi,frstturnontheopenMPfagonbyeditingthefile".
/src/interface/environment.
h".
Thereisaline//#defnePARALLEL_OMPUn-commentthelinebydeletingthe"//"atthebeginningandsavethefile.
Gotothefolder"Release_omp",thentype:makecleanmakeTheexecutablefileforopenMPparallelizedDelPhiwillbegenerated.
DelPhiFortranversion:LinuxVersion:1.
Updatinggcc(optional):OnLinuxsystems,pleasechecktheGCCversion.
Userscanusecommand:gcc–vtochecktheversion.
Ifthegccversionislowerthan4.
4.
0,pleaseupdateit.
2.
Compilation:Gotothedirectorywhichcontains"src"folderandthe"makefile"feandthentypethecommand:makecleanmakeTheexecutablefilewillbegeneratedafterafewminutes.
Youmaythenwishtorenameandcopytheexecutable(s)toyour~/bin/andaccessthemgloballyfromyouruseraccount.
WindowsVersion:1.
Installationofgcc:ThereareseveraltoolstoinstallgcccompileronWindows.
HerewetakeMinGWasanexamptoinstallgcccompilerandcompileDelPhionWindows.
GotoMinGW'swebsite(https://sourceforge.
net/projects/mingw-w64/)todownloadtheMinGWandinstallitonyourcomputer.
Thedefaultinstallationdirectoryis"C:\MinGW\".
Add"C:\MinGW\bin"to2.
2.
Compilation:Openacommandwindow,gotothedirectorywhichcontains"src"folderandthe"makefile"fe,thentypethecommand:mingw32-make.
exeTheexecutablefilewillbegeneratedafterafewminutes.
MacVersion:Makesurethatthegccandgfortrancompilersareinstalledonyoursystem.
1.
Updatinggccandgfortran(optional):Thecompilationhasbeentestedonosx10.
6and10.
7,withgcc/gfortran4.
6orhigherversionMakesuredownloadingthecorrectgccversion,userscandownloadthegcc/gfortranfromthlink:http://hpc.
sourceforge.
net/2.
CompilationGotothedirectorywhichcontains"src"folderandthe"makefe"file,thentypethecommand:makeTheexecutablefilewillbegeneratedafterafewminutes.
NotesontheNewDelphiRelease(delphicpp_mpi_v5)CurrentDelPhiC++(Version8.
0)allowsuserstocompiletheDelPhiprogramintodifferentversionsbyturningonandoffappropriateflagsfromasingledistribution.
AfterdownloadingtheDelPhisourcecodefromDelPhiwebsite,thefollowingcompilers/librariesmustbepre-installedbeforetheDelPhiprogramiscompiled:1.
appropriateC++compilersuchasGCC5.
4.
0andabove;2.
boostlibraryinstalledin/usr/includeanditspathisrecognizedintheuserenvironment;3.
latestversionofOpenMPIorMPICHifMPIversionofDelPhiexecutableisdesired.
TocompiletheDelPhiC++into:a.
aregularexecutable(simplesinglethread/CPUversion):1.
gotothefolderReleaseandrunthecommands:makecleanmake2.
anexecutablenameddelphicpp_releasewillbegeneratedwhenthecompilationprocessisfinished.
b.
amulti-threadingOpenMPexecutable(abletoutilizethemaximumcomputingpowerofamulti-coreCPUtoacceleratethecalculations):1.
gotothesourcecodefoldersrcanduncommenttheline"//#definePARALLEL_OMP"inthefileof.
/src/interface/environment.
h;2.
gotothecompilationfolderRelease_ompandrunthecommands:makecleanmake3.
anexecutablenameddelphicpp_omp_releasewillbegeneratedwhenthecompilationprocessisfinished.
c.
amulti-CPUMPIexecutable(abletoutilizethecomputingpowerofCPUsacrossmultiplecomputingnodesononeHPCcluster):1.
gotothesourcecodefolder/srcanduncommenttheline"//#definePARALLEL_MPI"inthefileof.
/src/interface/environment.
h;2.
GotothefolderRelease_mpiandrunthecommands:makecleanmake
丽萨主机怎么样?丽萨主机,团队于2017年成立。成立之初主要做的是 CDN 和域名等相关业务。最近开辟新领域,新增了独立服务器出租、VPS 等业务,为了保证业务质量从一开始就选择了中美之间的 CN2 GIA 国际精品网络,三网回程 CN2 GIA,电信去程 CN2 GIA + BGP 直连智能路由,联通移动去程直连,原生IP。适合对网络要求较高的用户,同时价格也比较亲民。点击进入:丽萨主机官方网站...
ucloud云服务器怎么样?ucloud为了扩大云服务器市场份额,给出了超低价云服务器的促销活动,活动仍然是此前的Ucloud全球大促活动页面。目前,ucloud国内云服务器2元/月起;香港云服务器4元/首月;台湾云服务器3元/首月。相当于2-4元就可以试用国内、中国香港、中国台湾这三个地域的云服务器1个月了。ucloud全球大促仅限新用户,国内云服务器个人用户低至56元/年起,香港云服务器也仅8...
pacificrack官方在搞2021年七夕促销,两款便宜vps给的配置都是挺不错的,依旧是接入1Gbps带宽,KVM虚拟、纯SSD raid10阵列,支持包括Linux、Windows 7、10、server2003、2008、2012、2016、2019在内多种操作系统。本次促销的VPS请特别注意限制条件,见本文末尾!官方网站:https://pacificrack.com支持PayPal、支...
delphi教程为你推荐
在线教育平台适合在校教师的在线教育平台有哪些哈利波特罗恩升级当爸哈利波特和罗恩的相同处和不同处梦之队官网梦之队是哪个国家的?lunwenjiance知网论文检测查重系统曲妙玲张婉悠香艳版《白蛇传》是电影还是写真集?xyq.163.cbg.comhttp://xyq.cbg.163.com/cgi-bin/equipquery.py?act=buy_show_equip_info&equip_id=475364&server_id=625 有金鱼贵吗?同ip网站12306怎么那么多同IP网站啊?这么重要的一个网站我感觉应该是超强配置的独立服务器才对啊,求高人指点336.com求那个网站 你懂得 1552517773@qq百度指数词百度指数是指,词不管通过什么样的搜索引擎进行搜索,都会被算成百度指数吗?www.gogo.comNEO春之色直径?
网站空间域名 海外域名注册 免费动态域名解析 3322免费域名 万网域名证书查询 阿里云搜索 联通c套餐 512m内存 服务器架设 河南服务器 godaddy域名证书 40g硬盘 php空间推荐 天翼云盘 超级服务器 西安主机 服务器防火墙 阿里dns 阵亡将士纪念日 cdn服务 更多