Discussion:
cannot compile fglauncher - same package error as jenkins
(too old to reply)
Ron H
2017-07-05 15:23:03 UTC
Permalink
I decided to do a reset of my fg environment and I have tried to recompile FightGear and simgear. Simgear compiles, but Flightgear does not. specifically fglauncher. I get the same errors as Jenkins does for Fightgear-Win. Any ideas?


example:

Severity Code Description Project File Line Suppression State
Error C2027 use of undefined type 'simgear::pkg::Install' (compiling source file E:\projects\fgmeta\flightgear\src\GUI\AircraftSearchFilterModel.cxx) fglauncher E:\projects\fgmeta\install\msvc140-64\include\simgear\structure\SGSharedPtr.hxx 90

jenkins:

G:\Jenkins\workspace\FlightGear-Win\install\msvc140\SimGear\include\simgear/structure/SGSharedPtr.hxx(90): error C2027: use of undefined type 'simgear::pkg::Install' (compiling source file G:\Jenkins\workspace\FlightGear-Win\source\src\GUI\AircraftItemDelegate.cxx)
Ron H
2017-07-06 04:46:19 UTC
Permalink
Ok,

Answering my own questions. I got rid of most of the errors by adding the following to the cxx files that had the compile error.

So from be low I added:

#include <simgear/package/Install.hxx>
#include <simgear/package/Package.hxx>

#include <simgear/package/Catalog.hxx>


to AircraftSearchFilterModel.cxx

How ever I am stuck at the last two.

Does Qt do some sort of precompile - what is moc_compilation.cpp in the error below:

Severity Code Description Project File Line Suppression State
Error C2027 use of undefined type 'simgear::pkg::Install' (compiling source file E:\projects\fgmeta\build-fg64\src\GUI\fglauncher_autogen\moc_compilation.cpp) fglauncher E:\projects\fgmeta\install\msvc140-64\include\simgear\structure\SGSharedPtr.hxx 90

Severity Code Description Project File Line Suppression State
Error C3861 'put': identifier not found (compiling source file E:\projects\fgmeta\build-fg64\src\GUI\fglauncher_autogen\moc_compilation.cpp) fglauncher E:\projects\fgmeta\install\msvc140-64\include\simgear\structure\SGSharedPtr.hxx 90

So I can't gen fgfs due to fglauncher not compiling:

Severity Code Description Project File Line Suppression State
Error LNK1181 cannot open input file '..\GUI\Release\fglauncher.lib' fgfs E:\projects\fgmeta\build-fg64\src\Main\LINK 1

Thanks for any help
Ron

Windows 10 - 64 bit
MSVC 2015




I decided to do a reset of my fg environment and I have tried to recompile FightGear and simgear. Simgear compiles, but Flightgear does not. specifically fglauncher. I get the same errors as Jenkins does for Fightgear-Win. Any ideas?


example:

Severity Code Description Project File Line Suppression State
Error C2027 use of undefined type 'simgear::pkg::Install' (compiling source file E:\projects\fgmeta\flightgear\src\GUI\AircraftSearchFilterModel.cxx) fglauncher E:\projects\fgmeta\install\msvc140-64\include\simgear\structure\SGSharedPtr.hxx 90

jenkins:

G:\Jenkins\workspace\FlightGear-Win\install\msvc140\SimGear\include\simgear/structure/SGSharedPtr.hxx(90): error C2027: use of undefined type 'simgear::pkg::Install' (compiling source file G:\Jenkins\workspace\FlightGear-Win\source\src\GUI\AircraftItemDelegate.cxx)
Tom Langwaldt
2017-07-06 06:41:55 UTC
Permalink
Hello Ron,

looks like you ran into the same issues I had a couple days ago:
https://sourceforge.net/p/flightgear/mailman/message/35922970/

My temporary workaround was to checkout the 2017.2 branches of FlightGear
and SimGear which compiled just fine this morning.

Tom

On Jul 6, 2017 06:47, "Ron H" <***@hotmail.com> wrote:

>
> Ok,
>
> Answering my own questions. I got rid of most of the errors by adding the
> following to the cxx files that had the compile error.
>
> So from be low I added:
>
> #include <simgear/package/Install.hxx>
> #include <simgear/package/Package.hxx>
>
> #include <simgear/package/Catalog.hxx>
>
>
> to AircraftSearchFilterModel.cxx
>
> How ever I am stuck at the last two.
>
> Does Qt do some sort of precompile - what is moc_compilation.cpp in the
> error below:
>
> Severity Code Description Project File Line Suppression State
> Error C2027 use of undefined type 'simgear::pkg::Install' (compiling
> source file E:\projects\fgmeta\build-fg64\src\GUI\fglauncher_autogen\
> moc_compilation.cpp) fglauncher E:\projects\fgmeta\install\
> msvc140-64\include\simgear\structure\SGSharedPtr.hxx 90
>
> Severity Code Description Project File Line Suppression State
> Error C3861 'put': identifier not found (compiling source file
> E:\projects\fgmeta\build-fg64\src\GUI\fglauncher_autogen\
> moc_compilation.cpp) fglauncher E:\projects\fgmeta\install\
> msvc140-64\include\simgear\structure\SGSharedPtr.hxx 90
>
> So I can't gen fgfs due to fglauncher not compiling:
>
> Severity Code Description Project File Line Suppression State
> Error LNK1181 cannot open input file '..\GUI\Release\fglauncher.lib' fgfs
> E:\projects\fgmeta\build-fg64\src\Main\LINK 1
>
> Thanks for any help
> Ron
>
> Windows 10 - 64 bit
> MSVC 2015
>
>
>
>
> I decided to do a reset of my fg environment and I have tried to recompile
> FightGear and simgear. Simgear compiles, but Flightgear does not.
> specifically fglauncher. I get the same errors as Jenkins does for
> Fightgear-Win. Any ideas?
>
>
> example:
>
> Severity Code Description Project File Line Suppression State
> Error C2027 use of undefined type 'simgear::pkg::Install' (compiling
> source file E:\projects\fgmeta\flightgear\src\GUI\
> AircraftSearchFilterModel.cxx) fglauncher E:\projects\fgmeta\install\
> msvc140-64\include\simgear\structure\SGSharedPtr.hxx 90
>
> jenkins:
>
> G:\Jenkins\workspace\FlightGear-Win\install\msvc140\SimGear\include\simgear/structure/SGSharedPtr.hxx(90): error C2027: use of undefined type 'simgear::pkg::Install' (compiling source file G:\Jenkins\workspace\FlightGear-Win\source\src\GUI\AircraftItemDelegate.cxx)
>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Flightgear-devel mailing list
> Flightgear-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel
>
>
Richard Harrison
2017-07-06 11:10:23 UTC
Permalink
> use of undefined type 'simgear::pkg::Install'
I've had similar errors; reverting commit
a54b3ffceed2873a3d3f15c9be4cb04c07f73feb fixes it for me (Windows, MSVC
2015, cmake built clean, rebuilt OSG, SG, FG from clean).
Ron H
2017-07-06 15:17:36 UTC
Permalink
Thanks Richard,


I am trying to figure out what has changed to cause this, plus windows-nightly compiles and flightgear-win does not. So is windows-nightly really up to date?

Ron


Sent: July 6, 2017 7:10 AM
To: flightgear-***@lists.sourceforge.net
Subject: Re: [Flightgear-devel] Fw: cannot compile fglauncher - same package error as jenkins

> use of undefined type 'simgear::pkg::Install'
I've had similar errors; reverting commit
a54b3ffceed2873a3d3f15c9be4cb04c07f73feb fixes it for me (Windows, MSVC
2015, cmake built clean, rebuilt OSG, SG, FG from clean).



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Flightgear-devel mailing list
Flightgear-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Flightgear-devel Info Page - SourceForge<https://lists.sourceforge.net/lists/listinfo/flightgear-devel>
lists.sourceforge.net
To see the collection of prior postings to the list, visit the Flightgear-devel Archives. Using Flightgear-devel: To post a message to all the list ...
Ron H
2017-07-06 15:19:47 UTC
Permalink
Tom,


Yes I recall your thread, but at the time I did not have the issue, so now was looking into it, as part of trying to learn this flightgear thing.

Ron
________________________________
Sent: July 6, 2017 2:41 AM
To: FlightGear developers discussions
Subject: Re: [Flightgear-devel] Fw: cannot compile fglauncher - same package error as jenkins

Hello Ron,

looks like you ran into the same issues I had a couple days ago: https://sourceforge.net/p/flightgear/mailman/message/35922970/

My temporary workaround was to checkout the 2017.2 branches of FlightGear and SimGear which compiled just fine this morning.

Tom

On Jul 6, 2017 06:47, "Ron H" <***@hotmail.com<mailto:***@hotmail.com>> wrote:


Ok,

Answering my own questions. I got rid of most of the errors by adding the following to the cxx files that had the compile error.

So from be low I added:

#include <simgear/package/Install.hxx>
#include <simgear/package/Package.hxx>

#include <simgear/package/Catalog.hxx>


to AircraftSearchFilterModel.cxx

How ever I am stuck at the last two.

Does Qt do some sort of precompile - what is moc_compilation.cpp in the error below:

Severity Code Description Project File Line Suppression State
Error C2027 use of undefined type 'simgear::pkg::Install' (compiling source file E:\projects\fgmeta\build-fg64\src\GUI\fglauncher_autogen\moc_compilation.cpp) fglauncher E:\projects\fgmeta\install\msvc140-64\include\simgear\structure\SGSharedPtr.hxx 90

Severity Code Description Project File Line Suppression State
Error C3861 'put': identifier not found (compiling source file E:\projects\fgmeta\build-fg64\src\GUI\fglauncher_autogen\moc_compilation.cpp) fglauncher E:\projects\fgmeta\install\msvc140-64\include\simgear\structure\SGSharedPtr.hxx 90

So I can't gen fgfs due to fglauncher not compiling:

Severity Code Description Project File Line Suppression State
Error LNK1181 cannot open input file '..\GUI\Release\fglauncher.lib' fgfs E:\projects\fgmeta\build-fg64\src\Main\LINK 1

Thanks for any help
Ron

Windows 10 - 64 bit
MSVC 2015




I decided to do a reset of my fg environment and I have tried to recompile FightGear and simgear. Simgear compiles, but Flightgear does not. specifically fglauncher. I get the same errors as Jenkins does for Fightgear-Win. Any ideas?


example:

Severity Code Description Project File Line Suppression State
Error C2027 use of undefined type 'simgear::pkg::Install' (compiling source file E:\projects\fgmeta\flightgear\src\GUI\AircraftSearchFilterModel.cxx) fglauncher E:\projects\fgmeta\install\msvc140-64\include\simgear\structure\SGSharedPtr.hxx 90

jenkins:

G:\Jenkins\workspace\FlightGear-Win\install\msvc140\SimGear\include\simgear/structure/SGSharedPtr.hxx(90): error C2027: use of undefined type 'simgear::pkg::Install' (compiling source file G:\Jenkins\workspace\FlightGear-Win\source\src\GUI\AircraftItemDelegate.cxx)
Ron H
2017-07-07 15:52:49 UTC
Permalink
Ok,


Finally got things to compile. Attached is a patch file that has the changes I did for my Windows 10, MSVC 2015 setup.


Basically the following to a few files. I'm not sure this is the correct approach, but just throwing it out there to help fix jenkins - flightgear-win.


diff --git a/src/GUI/AddCatalogDialog.cxx b/src/GUI/AddCatalogDialog.cxx
index 6a89ba769..5ae5714b6 100644
--- a/src/GUI/AddCatalogDialog.cxx
+++ b/src/GUI/AddCatalogDialog.cxx
@@ -28,6 +28,9 @@
#include <Network/HTTPClient.hxx>
#include <Include/version.h>

+#include <simgear/package/Package.hxx>
+#include <simgear/package/Install.hxx>
+
using namespace simgear::pkg;

AddCatalogDialog::AddCatalogDialog(QWidget *parent, RootRef root) :

Ron


Sent: July 6, 2017 12:46 AM
To: FlightGear developers discussions
Subject: Fw: cannot compile fglauncher - same package error as jenkins



Ok,

Answering my own questions. I got rid of most of the errors by adding the following to the cxx files that had the compile error.

So from be low I added:

#include <simgear/package/Install.hxx>
#include <simgear/package/Package.hxx>

#include <simgear/package/Catalog.hxx>


to AircraftSearchFilterModel.cxx

How ever I am stuck at the last two.

Does Qt do some sort of precompile - what is moc_compilation.cpp in the error below:

Severity Code Description Project File Line Suppression State
Error C2027 use of undefined type 'simgear::pkg::Install' (compiling source file E:\projects\fgmeta\build-fg64\src\GUI\fglauncher_autogen\moc_compilation.cpp) fglauncher E:\projects\fgmeta\install\msvc140-64\include\simgear\structure\SGSharedPtr.hxx 90

Severity Code Description Project File Line Suppression State
Error C3861 'put': identifier not found (compiling source file E:\projects\fgmeta\build-fg64\src\GUI\fglauncher_autogen\moc_compilation.cpp) fglauncher E:\projects\fgmeta\install\msvc140-64\include\simgear\structure\SGSharedPtr.hxx 90

So I can't gen fgfs due to fglauncher not compiling:

Severity Code Description Project File Line Suppression State
Error LNK1181 cannot open input file '..\GUI\Release\fglauncher.lib' fgfs E:\projects\fgmeta\build-fg64\src\Main\LINK 1

Thanks for any help
Ron

Windows 10 - 64 bit
MSVC 2015




I decided to do a reset of my fg environment and I have tried to recompile FightGear and simgear. Simgear compiles, but Flightgear does not. specifically fglauncher. I get the same errors as Jenkins does for Fightgear-Win. Any ideas?


example:

Severity Code Description Project File Line Suppression State
Error C2027 use of undefined type 'simgear::pkg::Install' (compiling source file E:\projects\fgmeta\flightgear\src\GUI\AircraftSearchFilterModel.cxx) fglauncher E:\projects\fgmeta\install\msvc140-64\include\simgear\structure\SGSharedPtr.hxx 90

jenkins:

G:\Jenkins\workspace\FlightGear-Win\install\msvc140\SimGear\include\simgear/structure/SGSharedPtr.hxx(90): error C2027: use of undefined type 'simgear::pkg::Install' (compiling source file G:\Jenkins\workspace\FlightGear-Win\source\src\GUI\AircraftItemDelegate.cxx)
Loading...