Compil problem / Afxres not found

Gingin

Member
Joined
Feb 5, 2015
Messages
270
Reaction score
23
Points
18
Location
City of Light
Good morning guys,

I am encountering some trouble with SSU compilation for Orbiter 2016.

First of all , congratulations for your awsome work these past few years.
I am a true Shuttle enthousiast , read thousands of Shuttle Docs , and I was looking to come back to Orbiter when I saw your nice project .

I followed your tutorial for the installation .
Everything worked fine until compilation where I had some RC 1015 Error afxres.h not find.
I understood we had to put this file because non professional version didn't have some tools for C++

I used first VS 2017 , then lately VS2013 express , compiling either from Atlantis 2010 or 2013 , always same problem.


Here are the log / error file/Afxres location :
View attachment SSU compil error.zip

And here is the path where I put Afxres:
Afxres directory.png


Thank you in advance for your help , I am really close to Lift Off I think :lol:

Jean
 

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,627
Reaction score
2,345
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
Which project configuration files are you using? (.sln)
 

Gingin

Member
Joined
Feb 5, 2015
Messages
270
Reaction score
23
Points
18
Location
City of Light
I used Atlantis2010.sln as mentionned in the post with VS2013.
Then I tried Atlantis2013.sln still with VS2013.

Am i supposed to use absolutely Visual Studio 2010 ? I can't find it anymore , I just have dead links from Microsoft site. The link in the SSU 2016 instalation topic leads to VS 2017 Community.

Is Afxres.h at the correct location on my Hard drive?
 

GLS

Well-known member
Orbiter Contributor
Addon Developer
Joined
Mar 22, 2008
Messages
5,927
Reaction score
2,937
Points
188
Website
github.com
I used Atlantis2010.sln as mentionned in the post with VS2013.
Then I tried Atlantis2013.sln still with VS2013.

Am i supposed to use absolutely Visual Studio 2010 ? I can't find it anymore , I just have dead links from Microsoft site. The link in the SSU 2016 instalation topic leads to VS 2017 Community.

Is Afxres.h at the correct location on my Hard drive?

We have solutions for VS2010, 2013 and 2017. The best bet is to use the 2017, as it's now the standard, and the others might be missing files.

I had the Afxres.h missing awhile back, and just replaced the entries with "windows.h" (and maybe another I can't remember now...).
 
Last edited:

Gingin

Member
Joined
Feb 5, 2015
Messages
270
Reaction score
23
Points
18
Location
City of Light
Thank you for the advice.

I am gonna redo a clean install of SSU before trying to compil with VS2017.
So I guess I will have to take Atlantis_2017.sln as project?

Can you tell me what is the correct path for Afxres.h for Visual studio other than 2010?
It's the only thing going wrong , this RC1015 error about Afxres location not found.
 

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,627
Reaction score
2,345
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
We have solutions for VS2010, 2013 and 2017. The best bet is to use the 2017, as it's now the standard, and the others might be missing files.

I think 2017 is the best choice, since there is nothing that hinders somebody to use it. The 2017 community edition feels almost like a complete professional version of the past releases, I don't miss much right now.
 

GLS

Well-known member
Orbiter Contributor
Addon Developer
Joined
Mar 22, 2008
Messages
5,927
Reaction score
2,937
Points
188
Website
github.com
Thank you for the advice.

I am gonna redo a clean install of SSU before trying to compil with VS2017.
So I guess I will have to take Atlantis_2017.sln as project?

Can you tell me what is the correct path for Afxres.h for Visual studio other than 2010?
It's the only thing going wrong , this RC1015 error about Afxres location not found.

That means you don't have that file. I think it's part of MFC, so check that those libraries are installed when installing VS2017. An alternative is to edit the resource files and replace the #include <afxres.h> with #include <windows.h>.
 

Gingin

Member
Joined
Feb 5, 2015
Messages
270
Reaction score
23
Points
18
Location
City of Light
Ok guys looks great now .

So, with Visual Studio 2017 and Atlantis_2017.sln project , Everything works fine.
The afxres.h header that I put on the include file was found , correct path is this one :

Afxres directory.png

Final log here:

SSU compil VS 2017.png


And testing scenario launched:

Test mission.jpg

:cheers:

I guess Visual 2013 wasn't finding the header I put .

Thank you for the advice :)


Just a small problem with MEDU size :

mfd size.jpg
 
Last edited:

Gingin

Member
Joined
Feb 5, 2015
Messages
270
Reaction score
23
Points
18
Location
City of Light
Roger that :)

I am gonna dig into documentation.
Last question , Will I have the same version of SSU if I compil with VS 2017 from Atlantis_2017 and Atlantis_2013 project ? (Which one do you work on and update ?)
I am complete beginner with C++/compilation , sorry if it's quite basics thoughts.

Once again , amazing job you did !
Just the fact to see after MECO the LOX dumping from SSME's Nozzles, and LH2 dumping from left side , it's truly great :hailprobe:
 

GLS

Well-known member
Orbiter Contributor
Addon Developer
Joined
Mar 22, 2008
Messages
5,927
Reaction score
2,937
Points
188
Website
github.com
Roger that :)

I am gonna dig into documentation.
Last question , Will I have the same version of SSU if I compil with VS 2017 from Atlantis_2017 and Atlantis_2013 project ? (Which one do you work on and update ?)
I am complete beginner with C++/compilation , sorry if it's quite basics thoughts.

Once again , amazing job you did !
Just the fact to see after MECO the LOX dumping from SSME's Nozzles, and LH2 dumping from left side , it's truly great :hailprobe:

The 2017 solution files are the ones that will be updated, so open the 2017 solution with VS2017 and all should be fine. Sometime in the future the older solutions will be deleted.
 

Gingin

Member
Joined
Feb 5, 2015
Messages
270
Reaction score
23
Points
18
Location
City of Light
Ok , thank you . I am gonna stick to VS 2017 :)

I switched MFD to 512*512 , it fit normally into the screen .
However , for APU/HYD and OMS/MPS MDU , the writings are almost unreadable , is it normal or am I missing something?
 

GLS

Well-known member
Orbiter Contributor
Addon Developer
Joined
Mar 22, 2008
Messages
5,927
Reaction score
2,937
Points
188
Website
github.com
Ok , thank you . I am gonna stick to VS 2017 :)

I switched MFD to 512*512 , it fit normally into the screen .
However , for APU/HYD and OMS/MPS MDU , the writings are almost unreadable , is it normal or am I missing something?

Did you install the fonts, as mentioned in the readme file?
 

DaveS

Addon Developer
Addon Developer
Donator
Beta Tester
Joined
Feb 4, 2008
Messages
9,437
Reaction score
689
Points
203
He needs to install D39D9Client as it has the missing header ("gcAPI.h").
 
Top