Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Addons > Addon Support & Bugs > Addon Developer Forums > Space Shuttle Ultra
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Space Shuttle Ultra Support & development threads for Space Shuttle Ultra addon.

Reply
 
Thread Tools
Old 05-08-2017, 11:32 AM   #1
Gingin
Orbinaut
 
Gingin's Avatar
Default Compil problem / Afxres not found

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 :
SSU compil error.zip

And here is the path where I put Afxres:
Click image for larger version

Name:	Afxres directory.png
Views:	113
Size:	107.7 KB
ID:	15180


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

Jean
Gingin is offline   Reply With Quote
Thanked by:
Old 05-08-2017, 11:33 AM   #2
Urwumpe
Certain Super User
 
Urwumpe's Avatar

Default

Which project configuration files are you using? (.sln)
Urwumpe is online now   Reply With Quote
Old 05-08-2017, 11:35 AM   #3
DaveS
Addon Developer
 
DaveS's Avatar


Default

See this thread: http://www.orbiter-forum.com/showthread.php?t=30336
DaveS is online now   Reply With Quote
Old 05-08-2017, 11:57 AM   #4
Gingin
Orbinaut
 
Gingin's Avatar
Default

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?
Gingin is offline   Reply With Quote
Old 05-08-2017, 12:00 PM   #5
GLS
Addon Developer
 
GLS's Avatar
Default

Quote:
Originally Posted by Gingin View Post
 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 by GLS; 05-08-2017 at 12:02 PM.
GLS is offline   Reply With Quote
Thanked by:
Old 05-08-2017, 12:04 PM   #6
Gingin
Orbinaut
 
Gingin's Avatar
Default

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.
Gingin is offline   Reply With Quote
Old 05-08-2017, 12:07 PM   #7
Urwumpe
Certain Super User
 
Urwumpe's Avatar

Default

Quote:
Originally Posted by GLS View Post
 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.
Urwumpe is online now   Reply With Quote
Old 05-08-2017, 12:16 PM   #8
GLS
Addon Developer
 
GLS's Avatar
Default

Quote:
Originally Posted by Gingin View Post
 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>.
GLS is offline   Reply With Quote
Old 05-08-2017, 12:48 PM   #9
Gingin
Orbinaut
 
Gingin's Avatar
Default

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 :

Click image for larger version

Name:	Afxres directory.png
Views:	58
Size:	107.7 KB
ID:	15181

Final log here:

Click image for larger version

Name:	SSU compil VS 2017.png
Views:	65
Size:	65.0 KB
ID:	15182


And testing scenario launched:

Click image for larger version

Name:	Test mission.jpg
Views:	46
Size:	74.3 KB
ID:	15183



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

Thank you for the advice


Just a small problem with MEDU size :

Click image for larger version

Name:	mfd size.jpg
Views:	102
Size:	211.4 KB
ID:	15184

Last edited by Gingin; 05-08-2017 at 12:58 PM.
Gingin is offline   Reply With Quote
Old 05-08-2017, 01:11 PM   #10
GLS
Addon Developer
 
GLS's Avatar
Default

Quote:
Originally Posted by Gingin View Post
 Just a small problem with MEDU size :

Attachment 15184
Please read the "SSU Readme First.txt" file (and reading the manual is also a good idea).
GLS is offline   Reply With Quote
Old 05-08-2017, 02:03 PM   #11
Gingin
Orbinaut
 
Gingin's Avatar
Default

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
Gingin is offline   Reply With Quote
Old 05-08-2017, 02:25 PM   #12
GLS
Addon Developer
 
GLS's Avatar
Default

Quote:
Originally Posted by Gingin View Post
 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
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.
GLS is offline   Reply With Quote
Old 05-09-2017, 03:20 PM   #13
Gingin
Orbinaut
 
Gingin's Avatar
Default

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?
Gingin is offline   Reply With Quote
Old 05-09-2017, 04:48 PM   #14
GLS
Addon Developer
 
GLS's Avatar
Default

Quote:
Originally Posted by Gingin View Post
 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?
GLS is offline   Reply With Quote
Old 05-09-2017, 05:13 PM   #15
Gingin
Orbinaut
 
Gingin's Avatar
Default

Oups , forgot to do it on my main SSU install , thanks !!
Gingin is offline   Reply With Quote
Reply

  Orbiter-Forum > Orbiter Addons > Addon Support & Bugs > Addon Developer Forums > Space Shuttle Ultra


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 11:07 PM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.