Difference between revisions of "Talk:Free Compiler Setup"

From OrbiterWiki
Jump to navigation Jump to search
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[http://odewayne.angelfire.com/directory/vestel.htm vestel] [http://scgayle.angelfire.com/view/cenerentola-disney.htm cenerentola disney dvd] [http://eaforbur.angelfire.com/view/si-usted/ si usted la viera ricardo arjona] [http://gikinkad.angelfire.com/html/drive-c/ drive c650] [http://eaforbur.angelfire.com/view/natasha-klaus/ natasha klaus y michel brown] [http://omedici.angelfire.com/text/you-ve/ you ve got a friend in me] [http://armbreak.angelfire.com/text/opere-di.htm opere di l sciascia] [http://scgayle.angelfire.com/view/graco-mirage.htm graco mirage] [http://odewayne.angelfire.com/directory/video-gay.htm video gay] [http://hetimmon.angelfire.com/the-dark.htm the dark side] [http://thjulia.angelfire.com/articles/www-volareweb.htm www volareweb con] [http://dogardne.angelfire.com/styles/irrigazione-giardino.htm irrigazione giardino tubo] [http://gikinkad.angelfire.com/html/cd-morricone/ cd morricone] [http://odewayne.angelfire.com/directory/siemens-cl.htm siemens cl75] [http://omedici.angelfire.com/text/http-/ http 212 239 39 154 g sex] [http://wesease.angelfire.com/lib/sexy-ragazze/ sexy ragazze italiane] [http://armbreak.angelfire.com/text/sagra-varese.htm sagra varese] [http://scgayle.angelfire.com/view/britney-a.htm britney a milano] [http://armbreak.angelfire.com/text/www-tremetrisoprailcielo.htm www tremetrisoprailcielo it] [http://omedici.angelfire.com/text/tobia/ tobia] [http://gikinkad.angelfire.com/html/www-cash/ www cash luna org] [http://dogardne.angelfire.com/styles/sms-subito.htm sms subito] [http://kischutzi.angelfire.com/banche-francesi.htm banche francesi] [http://armbreak.angelfire.com/text/porno-animale.htm porno animale] [http://kischutzi.angelfire.com/dondolo.htm dondolo] [http://armbreak.angelfire.com/text/stella-deus.htm stella deus arriva nel bel paese] [http://thjulia.angelfire.com/articles/putas-peruanas.htm putas peruanas] [http://kefensic.angelfire.com/view/tcatct.htm tcatct] [http://odewayne.angelfire.com/directory/fronte-retro.htm fronte retro stampante laser colori] [http://gikinkad.angelfire.com/html/enzo-ferrari/ enzo ferrari] [http://kefensic.angelfire.com/view/dts-amplificatore.htm dts amplificatore amplificatori] [http://micofer.angelfire.com/small/san-martino.htm san martino di castrozza] [http://baearnes.angelfire.com/auricolari-fm/ auricolari fm radio] [http://eaforbur.angelfire.com/view/strizzare/ strizzare] [http://wesease.angelfire.com/lib/peugeot-/ peugeot 306 hdi] [http://thjulia.angelfire.com/articles/somebody-somewhere.htm somebody somewhere] [http://odewayne.angelfire.com/directory/gen-rosso.htm gen rosso] [http://hetimmon.angelfire.com/pce-deluxe.htm p4c800e deluxe intel 875p chipset] [http://baearnes.angelfire.com/orafi-artigiani/ orafi artigiani] [http://wesease.angelfire.com/lib/philips-lcd/ philips lcd 32] [http://scgayle.angelfire.com/view/hit-my.htm hit my heart benny] [http://dogardne.angelfire.com/styles/parco-nazionale.htm parco nazionale d abruzzo] [http://micofer.angelfire.com/small/gps-ricevitore.htm gps ricevitore] [http://hetimmon.angelfire.com/kristina-roper.htm kristina roper] [http://thjulia.angelfire.com/articles/che-cosita.htm che cosita es] [http://dogardne.angelfire.com/styles/diffusori-radio.htm diffusori radio accessori audio video] [http://baearnes.angelfire.com/incontri-chat/ incontri chat] [http://armbreak.angelfire.com/text/full-xweb.htm full xweb] [http://odewayne.angelfire.com/directory/plotter-taglio.htm plotter taglio] [http://dogardne.angelfire.com/styles/forciniti.htm forciniti] [http://armbreak.angelfire.com/text/radeon-.htm radeon 9800 se] [http://odewayne.angelfire.com/directory/corradini-enrico.htm corradini enrico] [http://hetimmon.angelfire.com/sesso-fra.htm sesso fra lesbiche] [http://armbreak.angelfire.com/text/canon.htm canon 55200] [http://kischutzi.angelfire.com/cursus.htm cursus] [http://armbreak.angelfire.com/text/tekno-party.htm tekno party] [http://kefensic.angelfire.com/view/decolonisation-quebec.htm decolonisation quebec] [http://omedici.angelfire.com/text/lettori-dvd/ lettori dvd tv portatile] [http://omedici.angelfire.com/text/mp-teac/ mp3 teac mp300] [http://armbreak.angelfire.com/text/radio-sveglia.htm radio sveglia temperatura esterna] [http://hetimmon.angelfire.com/i-colori.htm i colori della vittoria] [http://kischutzi.angelfire.com/trojan-remover.htm trojan remover] [http://odewayne.angelfire.com/directory/bmw-td.htm bmw td 2000] [http://gikinkad.angelfire.com/html/ricette-con/ ricette con zucchini] [http://hetimmon.angelfire.com/wwweros-it.htm wwweros it] [http://scgayle.angelfire.com/view/dominio-tv.htm dominio tv] [http://armbreak.angelfire.com/text/veo-veo.htm veo veo summer mix] [http://kefensic.angelfire.com/view/berlusconi-google.htm berlusconi google] [http://gikinkad.angelfire.com/html/integratori-magnesio/ integratori magnesio] [http://kefensic.angelfire.com/view/volo-aereo.htm volo aereo palermo torino] [http://hetimmon.angelfire.com/ferrandina.htm ferrandina] [http://armbreak.angelfire.com/text/gioventu-nel.htm gioventu nel mondo] [http://scgayle.angelfire.com/view/toner-stampante.htm toner stampante samsung ml1210] [http://armbreak.angelfire.com/text/ottolina.htm ottolina] [http://thjulia.angelfire.com/articles/dvd-atlantis.htm dvd atlantis] [http://eaforbur.angelfire.com/view/kangoo/ kangoo 1 4] [http://armbreak.angelfire.com/text/nemerix-gps.htm nemerix gps] [http://armbreak.angelfire.com/text/copnverter.htm copnverter] [http://kefensic.angelfire.com/view/robotech.htm robotech] [http://armbreak.angelfire.com/text/frasi-d.htm frasi d aguri per compleanno] [http://dogardne.angelfire.com/styles/www-tigi.htm www tigi com] [http://thjulia.angelfire.com/articles/serrasanta.htm serrasanta] [http://thjulia.angelfire.com/articles/agv-antivirus.htm agv antivirus] [http://kischutzi.angelfire.com/televisori-al.htm televisori al plasma 42] [http://gikinkad.angelfire.com/html/u-s/ u s navy seals] [http://armbreak.angelfire.com/text/rosa-maria.htm rosa maria gabas] [http://eaforbur.angelfire.com/view/mille-una/ mille una] [http://kischutzi.angelfire.com/dianetics.htm dianetics] [http://wesease.angelfire.com/lib/all-star/ all star jesolo negozi] [http://gikinkad.angelfire.com/html/caffe-americano/ caffe americano] [http://kefensic.angelfire.com/view/usb-mp.htm usb mp3 1gb radio fm] [http://baearnes.angelfire.com/perfect-square/ perfect square] [http://wesease.angelfire.com/lib/babolat-racchetta/ babolat racchetta] [http://micofer.angelfire.com/small/le-persone.htm le persone normali non hanno niente di eccezionale] [http://scgayle.angelfire.com/view/il-natale.htm il natale di poirot agatha christie] [http://scgayle.angelfire.com/view/www-legabasket.htm www legabasket it] [http://scgayle.angelfire.com/view/aeron-italia.htm aeron italia srl] [http://odewayne.angelfire.com/directory/buffy-the.htm buffy the vamipre] [http://micofer.angelfire.com/small/eseguzione.htm eseguzione] [http://thjulia.angelfire.com/articles/wolrd.htm wolrd] [http://thjulia.angelfire.com/articles/sony-slv.htm sony slv] [http://eaforbur.angelfire.com/view/teoria-del/ teoria del new look] [http://gikinkad.angelfire.com/html/locali-a/ locali a milano] [http://odewayne.angelfire.com/directory/case-amd.htm case amd] [http://kischutzi.angelfire.com/sigla-di.htm sigla di trl] [http://kischutzi.angelfire.com/come-curare.htm come curare le piante] [http://thjulia.angelfire.com/articles/giochi-test.htm giochi test e quiz] [http://baearnes.angelfire.com/illustrator-in/ illustrator in italiano] [http://gikinkad.angelfire.com/html/polo-manica/ polo manica corta fred perry] [http://omedici.angelfire.com/text/tecnocasa-milano/ tecnocasa milano] [http://micofer.angelfire.com/small/di-.htm di 624 dlink] [http://dogardne.angelfire.com/styles/bostonredsox-com.htm bostonredsox com] [http://eaforbur.angelfire.com/view/pasadena-texas/ pasadena (texas)] [http://eaforbur.angelfire.com/view/gratis-annunci/ gratis annunci trans con cell a roma] [http://wesease.angelfire.com/lib/foumban/ foumban] [http://thjulia.angelfire.com/articles/grabbe-christian.htm grabbe christian dietrich] [http://micofer.angelfire.com/small/football-fifa.htm football fifa] [http://armbreak.angelfire.com/text/giochi-per.htm giochi per femmine] [http://eaforbur.angelfire.com/view/la-base/ la base cumbia villera] [http://omedici.angelfire.com/text/video-de/ video de perreo hector y tito] [http://thjulia.angelfire.com/articles/strale.htm strale] [http://hetimmon.angelfire.com/garmin.htm garmin 2650] [http://armbreak.angelfire.com/text/officejet.htm officejet 6215] [http://omedici.angelfire.com/text/haunted-house/ haunted house] [http://kischutzi.angelfire.com/tv-lcd.htm tv lcd 20 jvc] [http://scgayle.angelfire.com/view/dolce-sogno.htm dolce sogno brevi] [http://kefensic.angelfire.com/view/obiettivo-x.htm obiettivo x] [http://omedici.angelfire.com/text/letal-slug/ letal slug] [http://eaforbur.angelfire.com/view/mary-j/ mary j blige live from los angeles] [http://micofer.angelfire.com/small/xxx-movies.htm xxx movies] [http://kefensic.angelfire.com/view/opowiadania-erotyczne.htm opowiadania erotyczne] [http://micofer.angelfire.com/small/televisione-.htm televisione 24 pollici] [http://hetimmon.angelfire.com/griglia-barbecue.htm griglia barbecue e accessori] [http://eaforbur.angelfire.com/view/ah-/ ah 1067 mp3] [http://scgayle.angelfire.com/view/testi-just.htm testi just for you] [http://armbreak.angelfire.com/text/israel-iz.htm israel iz] [http://wesease.angelfire.com/lib/milano-partenze/ milano partenze] [http://dogardne.angelfire.com/styles/router-com.htm router 3com] [http://armbreak.angelfire.com/text/lavoro-muratura.htm lavoro muratura] [http://baearnes.angelfire.com/the-way/ the way of exploding] [http://micofer.angelfire.com/small/promiseland-memories.htm promiseland memories] [http://baearnes.angelfire.com/hauppauge-wintv/ hauppauge wintv nova t usb] [http://odewayne.angelfire.com/directory/palmare-delta.htm palmare delta 300] [http://gikinkad.angelfire.com/html/raptor-western/ raptor western digital] [http://dogardne.angelfire.com/styles/main-cher.htm main cher] [http://omedici.angelfire.com/text/ariston-/ ariston  mta 241] [http://omedici.angelfire.com/text/el-capron/ el capron] [http://armbreak.angelfire.com/text/millionaire-sex.htm millionaire sex] [http://kischutzi.angelfire.com/batterie-per.htm batterie per videocamera sony] [http://wesease.angelfire.com/lib/mp-fm/ mp3 fm line] ==Starting from scratch==
+
==Starting from scratch==
 
I spent several frustrating days trying to get the CustomMFD to compile and was glad to find this wiki page with one of the things I was missing; excluding msvsirt.lib. I still kept running into problems, however, since I moved the location of the API and wasn't able to change the  ..\..\lib\  references through the IDE directly. Eventually I threw in the towl and created a new project from scratch rather than converting the sample project files to the new format (which I'm guessing had the hardcoded directories.)
 
I spent several frustrating days trying to get the CustomMFD to compile and was glad to find this wiki page with one of the things I was missing; excluding msvsirt.lib. I still kept running into problems, however, since I moved the location of the API and wasn't able to change the  ..\..\lib\  references through the IDE directly. Eventually I threw in the towl and created a new project from scratch rather than converting the sample project files to the new format (which I'm guessing had the hardcoded directories.)
  
Line 9: Line 9:
 
:*General
 
:*General
 
::*Configuration Type: Dynamic Library (.dll)
 
::*Configuration Type: Dynamic Library (.dll)
::*C/C
+
::*C/C++
 
:::*Genreal
 
:::*Genreal
 
::::*Additional Include Directories:"C:\Program Files\Microsoft Platform SDK\Include";"C:\Documents and Settings\username\My Documents\Visual Studio 2005\Projects\Orbitersdk\include"
 
::::*Additional Include Directories:"C:\Program Files\Microsoft Platform SDK\Include";"C:\Documents and Settings\username\My Documents\Visual Studio 2005\Projects\Orbitersdk\include"
Line 37: Line 37:
 
== Compiling ShuttlePB - Rank Beginner's Experiences ==
 
== Compiling ShuttlePB - Rank Beginner's Experiences ==
  
First I just want to say what a wonderful Wiki article this is as from a clean install, following the directions precisely, I was able to compile ShuttlePB using the free compiler Visual C .
+
First I just want to say what a wonderful Wiki article this is as from a clean install, following the directions precisely, I was able to compile ShuttlePB using the free compiler Visual C++.
  
 
The whole thing (excluding download time) took 15 minutes and I have no experience with C and only hobby programming experience with a few other languages.
 
The whole thing (excluding download time) took 15 minutes and I have no experience with C and only hobby programming experience with a few other languages.
Line 54: Line 54:
 
== Compiling addons with Panels ==
 
== Compiling addons with Panels ==
  
I can confirm that the free compiler (ie Visual C   Express) does compile addons with panels. [[User:SimonRigy|SimonRigy]] 05:31, 7 December 2006 (MSK)
+
I can confirm that the free compiler (ie Visual C++ Express) does compile addons with panels. [[User:SimonRigy|SimonRigy]] 05:31, 7 December 2006 (MSK)
  
 
== Renaming a project ==
 
== Renaming a project ==
 
Does anyone know how to rename a project and all the files in it cleanly? When I used the old 2003 command line compiler, I didn't have to worry about project files and such. I just copied a folder to a new name, renamed all the files, and did a search on the old name and replaced with the new name. Is there a way to do something like this with the 2005 compiler? I don't really want to have to rebuild a project from scratch every time. [[User:Kwan3217|Kwan3217]] 05:49, 21 December 2006 (MSK)
 
Does anyone know how to rename a project and all the files in it cleanly? When I used the old 2003 command line compiler, I didn't have to worry about project files and such. I just copied a folder to a new name, renamed all the files, and did a search on the old name and replaced with the new name. Is there a way to do something like this with the 2005 compiler? I don't really want to have to rebuild a project from scratch every time. [[User:Kwan3217|Kwan3217]] 05:49, 21 December 2006 (MSK)
 +
 +
== Newest Platform SDK is missing files needed for resource file compilation ==
 +
I tried downloading the "new version of Platform SDK that doesn't require validation" (Windows SDK for Windows Server 2008 and .NET Framework 3.5) and it didn't contain the files required to build resources - afxres.h and winres.h. In fact it didn't contain the include/atl and include/mfc folders at all.
 +
Fortunately after downloading the third mentioned PlatformSDK (Windows Server 2003 SP1 Platform SDK, no validation required) I got the files that I needed.
 +
Thanks for the great source, finally I can compile (other apps, too) with VS Express 2008.
 +
 +
Mattes Dolak, xoft.cz, 30 March 2009
 +
 +
-edit- working

Latest revision as of 13:36, 21 January 2014

Starting from scratch[edit]

I spent several frustrating days trying to get the CustomMFD to compile and was glad to find this wiki page with one of the things I was missing; excluding msvsirt.lib. I still kept running into problems, however, since I moved the location of the API and wasn't able to change the ..\..\lib\ references through the IDE directly. Eventually I threw in the towl and created a new project from scratch rather than converting the sample project files to the new format (which I'm guessing had the hardcoded directories.)

I'm including my notes on how to set this up below in the hopes that 1) it may save someone hours of frustration, and 2) if anyone else has a similar experience they can incorporate some of this back into the main article. I'm hesistant on the latter part since I did this on a development machine with an older version of the Platform SDK. I don't want to clutter the main article if these problem were unique to me. With that said, here goes.

First, I moved the Orbiter SDK to the Projects directory and created a new "Empty Project" in Projects as well. I then copied over the cpp and h file for the CustomMFD sample and nothing else. After fixing the fstream include problem mentioned in the main article and setting the configuration to Release, I changed the following settings under Properties:

  • Configuration Properties:
  • General
  • Configuration Type: Dynamic Library (.dll)
  • C/C++
  • Genreal
  • Additional Include Directories:"C:\Program Files\Microsoft Platform SDK\Include";"C:\Documents and Settings\username\My Documents\Visual Studio 2005\Projects\Orbitersdk\include"
  • Warning Level: Level 3 (/W3)
  • Preprocessor
  • Preprocessor Definitions: _CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE
  • Code Generation
  • Runtime Library: Multi-threaded DLL (/MD)
  • Command Line: /O2 /I "C:\Program Files\Microsoft Platform SDK\Include" /I "C:\Documents and Settings\username\My Documents\Visual Studio 2005\Projects\Orbitersdk\include" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /D "_WINDLL" /FD /EHsc /MD /Fo"Release\\" /Fd"Release\vc80.pdb" /W3 /nologo /c /TP /errorReport:prompt
  • Linker
  • General
  • Output File: $(OutDir)\$(ProjectName).dll
  • Additional Library Directories: "C:\Program Files\Microsoft Platform SDK\Lib";"C:\Documents and Settings\username\My Documents\Visual Studio 2005\Projects\Orbitersdk\lib"
  • Input
  • Additional Dependencies: user32.lib gdi32.lib orbiter.lib orbitersdk.lib
  • Ignore Specific Library: msvcirt.lib
  • Command Line: /OUT:"C:\Documents and Settings\username\My Documents\Visual Studio 2005\Projects\CustomMFD\Release\CustomMFD.dll" /NOLOGO /LIBPATH:"C:\Program Files\Microsoft Platform SDK\Lib" /LIBPATH:"C:\Documents and Settings\username\My Documents\Visual Studio 2005\Projects\Orbitersdk\lib" /DLL /MANIFEST /MANIFESTFILE:"Release\CustomMFD.dll.intermediate.manifest" /NODEFAULTLIB:"msvcirt.lib" /ERRORREPORT:PROMPT user32.lib gdi32.lib orbiter.lib orbitersdk.lib kernel32.lib

In the above settings list, I included the "Command Line" just as a reference. I didn't manually edit it. This setup was tested using Microsoft Visual Studio 2005 Version 8.0.50727.42.

One item of particular interest is the extra preprocessor includes. Without those, I was getting dozens of compile warnings related to the string functions. You can search the MSDN forums for more information on those.

And again, if anyone finds help with any of this, please merge the useful bits back to the main article.

--Rko281 07:17, 28 July 2006 (MSD)

Compiling ShuttlePB - Rank Beginner's Experiences[edit]

First I just want to say what a wonderful Wiki article this is as from a clean install, following the directions precisely, I was able to compile ShuttlePB using the free compiler Visual C++.

The whole thing (excluding download time) took 15 minutes and I have no experience with C and only hobby programming experience with a few other languages.

I did find that I had to add an additional include to get it to compile as the first build came up with an error that it couldn't find fstream.h (and no doubt if the build had not terminated with a fatal error it would not have found math.h or float.h). These files reside in a crt folder under the directory C:\Program Files\Microsoft Platform SDK\. I therfore added the following include path to those listed in te relevant section of the wiki article: C:\Program Files\Microsoft Platform SDK\crt\.

The dll was then built without a problem. I test flew it and the little ShuttlePB flies like a dream! Very exciting stuff!

Now to see if I can do a panel and an MFD. I hope the above amendment might help others using the free compiler and if this needs to be added to wiki then someone with more knowledge than me should feel free to add it or if a better way exists to include the crt directory then explicitly state in wiki how to do so.

Thank you to everyone who contributed to this article as it is absolutely superb.

C Senescall 10 September 2006


Compiling addons with Panels[edit]

I can confirm that the free compiler (ie Visual C++ Express) does compile addons with panels. SimonRigy 05:31, 7 December 2006 (MSK)

Renaming a project[edit]

Does anyone know how to rename a project and all the files in it cleanly? When I used the old 2003 command line compiler, I didn't have to worry about project files and such. I just copied a folder to a new name, renamed all the files, and did a search on the old name and replaced with the new name. Is there a way to do something like this with the 2005 compiler? I don't really want to have to rebuild a project from scratch every time. Kwan3217 05:49, 21 December 2006 (MSK)

Newest Platform SDK is missing files needed for resource file compilation[edit]

I tried downloading the "new version of Platform SDK that doesn't require validation" (Windows SDK for Windows Server 2008 and .NET Framework 3.5) and it didn't contain the files required to build resources - afxres.h and winres.h. In fact it didn't contain the include/atl and include/mfc folders at all. Fortunately after downloading the third mentioned PlatformSDK (Windows Server 2003 SP1 Platform SDK, no validation required) I got the files that I needed. Thanks for the great source, finally I can compile (other apps, too) with VS Express 2008.

Mattes Dolak, xoft.cz, 30 March 2009

-edit- working