Closed u-an-i closed 3 weeks ago
@albar965 not tested. but deeply thought about.
If it does not compile for you or does not run for you, I'll set up my environment.
The performance boost should be a factor at least around number of threads Qt finds ideal.
Search again
stopped working. Progress pops up and nothing happens.
I'll start setting up my env !_
I can send you some needed packages, scripts and whatever. Windows or Linux?
Windows, marble build is currently already running
Ok. :+1:
error at 35 % of C:\Zusatz\GitHub\build-marble-release>mingw32-make -j2
In file included from C:/Zusatz/Qt/5.15.2/mingw81_64/include/QtCore/qglobal.h:1304,
from C:/Zusatz/Qt/5.15.2/mingw81_64/include/QtCore/QtGlobal:1,
from C:\Zusatz\GitHub\marble\src\lib\marble\graphicsview\MarbleGraphicsItem.h:16,
from C:\Zusatz\GitHub\marble\src\lib\marble\graphicsview\ScreenGraphicsItem.h:15,
from C:\Zusatz\GitHub\marble\src\lib\marble\graphicsview\FrameGraphicsItem.h:16,
from C:\Zusatz\GitHub\marble\src\lib\marble\graphicsview\FrameGraphicsItem.cpp:12:
C:/Zusatz/Qt/5.15.2/mingw81_64/include/QtCore/qflags.h:123:80: note: declared here
QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
^~~~~~
C:\Zusatz\GitHub\marble\src\lib\marble\graphicsview\FrameGraphicsItem.cpp: At global scope:
C:\Zusatz\GitHub\marble\src\lib\marble\graphicsview\FrameGraphicsItem.cpp:239:51: error: return type 'class QPainterPat ' is incomplete
QPainterPath FrameGraphicsItem::backgroundShape() const
^~~~~
C:\Zusatz\GitHub\marble\src\lib\marble\graphicsview\FrameGraphicsItem.cpp: In member function 'virtual void Marble::FrameGraphicsItem::backgroundShape() const':
C:\Zusatz\GitHub\marble\src\lib\marble\graphicsview\FrameGraphicsItem.cpp:242:18: error: aggregate 'QPainterPath path' has incomplete type and cannot be defined
QPainterPath path;
^~~~
C:\Zusatz\GitHub\marble\src\lib\marble\graphicsview\FrameGraphicsItem.cpp: In member function 'virtual void Marble::FrameGraphicsItem::paintBackground(QPainter*)':
C:\Zusatz\GitHub\marble\src\lib\marble\graphicsview\FrameGraphicsItem.cpp:261:42: error: invalid use of void expression
painter->drawPath( backgroundShape() );
Marble build adapted from https://github.com/albar965/littlenavmap/wiki/Compiling
Use either of
marble/build/win/build_debug_32.cmd
, marble/build/win/build_debug_64.cmd
, marble/build/win/build_release_32.cmd
or marble/build/win/build_release_64.cmd
.
You need to set the environment variable APROJECTS to the folder containing atools, marble and littlenavmap.
Better use Qt Creator to build atools and littlenavmap. The scripts in 'littlenavmap/build/win' are special and need the Inno Setup and stuff.
👍 how do i solve the marble build issue?
👍 how do i solve the marble build issue?
Use the scripts I mentioned above and the branch lnm/1.1
.
a, sorry, I switched to lnm/1.1
on GitHub and set to open GitHub Desktop. I thought it checked out that branch. It didn't. :(
Now I'm on it.
Perfect. :slightly_smiling_face:
build (and deployed) marble and atools successfully.
lnm release build: :-1: Fehler: No rule to make target 'C:/Zusatz/GitHub/littlenavmap/../build-atools-release/libatools.a', needed by 'littlenavmap.exe'. Stop.
Check out atools release/4.0 to the same folder %APROJECTS (C:/Zusatz/GitHub in your case) and build it before.
Sorry, I plan to update the build instructions for a long time already.
I did and it build succesfully -- I thought. The build ends "green" in Qt Creator.
But it produces no folder on the APROJETCS level:
this folder was created
C:\Zusatz\GitHub\atools\build\Desktop_Qt_5_15_2_MinGW_64_bit-Release
make deploy
in Qt Creator creates the folder.
ah :)
Better for copy and paste ../build-%{Project:Name}-%{CurrentBuild:Type}
:)
progress :) .
now:
environment is this:
because has lib and include:
but this also exists :
got it, must remove the marble subfolder from include path
You need these too:
And: X-Plane SDK.zip MSFS SDK.zip
Extract all as is with subfolders into %APROJECTS
i thank you !
what is the final command to create the exe and distributable folders ?
mingw32-make.exe deploy
. See screenshot of my run configuration above.
thx,
Extract the files I attached above to APROJECTS. This is https://github.com/albar965/littlenavmap/pull/1144#issuecomment-2152913992 and https://github.com/albar965/littlenavmap/pull/1144#issuecomment-2152918752
You probably have to create a symbolic link to the SSL folders or rename them.
&& del /f /q "C:\Zusatz\GitHub\littlenavmap\..\deploy\Little Navmap win64\simconnect\simconnect.manifest" && xcopy \lib\SimConnect.dll "C:\Zusatz\GitHub\littlenavmap\..\deploy\Little Navmap win64" && xcopy C:\Zusatz\GitHub\marble-release-win64\lib\\..\libmarblewidget-qt5.dll
\lib\SimConnect.dll
I did, I think it's the \lib\SimConnect.dll
src
what's the correct src ?
a SimConnect.dll
was already copied
thank you for your attention !
I just see that the Simconnect.dll is included in the repo. Should work.
works now ! :)
I deleted xcopy \lib\SimConnect.dll "C:\Zusatz\GitHub\littlenavmap\..\deploy\Little Navmap win64"
https://github.com/albar965/littlenavmap/assets/84718885/5b4e329f-2b65-4fc3-a4a1-7c2cfa4a95b0
Retry works for me.
Max Distance is not honored.
Destination airport uses Departure as Destination.
I investigate.
found everything, fixed everything, everything works,
can you delete a few characters from the Windows makefile generation: delete && xcopy \lib\SimConnect.dll "C:\Zusatz\GitHub\littlenavmap\..\deploy\Little Navmap win64"
on line 1455 ?
benchmarks soon
https://github.com/albar965/littlenavmap/pull/1145
@albar965
the current RGF max distance value is somewhere around 20 000 NM.
just occurred to me: half the earths circumference is only around 11 000 NM.
The distance calculation cannot deliver values > that I guess.
For "search again" we might want to reuse the old dataset to continue search in order to not find the same match again.
benchmarks don't deliver: both versions find > 10 000 NM matches almost instantly.
just occurred to me: half the earths circumference is only around 11 000 NM.
Max is 10800 NM. The measurement line wraps around the globe if you try to make longer lines. The max "distance from mark" is limited to 8000 NM.
can you delete a few characters from the Windows makefile generation: delete
&& xcopy \lib\SimConnect.dll "C:\Zusatz\GitHub\littlenavmap\..\deploy\Little Navmap win64"
on line 1455 ?
I include the MSFS SDK SimConnect in the 64 bit build and load it dynamically on runtime. Did you install the SDK and/or adjust the env variable SIMCONNECT_PATH_WIN64?
I can adjust the lines to copy only if the file is present.
Benchmark not needed. It was already fast in the debug build. :+1:
:)
here i can enter up to 20 500 NM
I used your SDK link and set the env variable. SimConnect.dll
is already copied in a xcopy
command prior. The /lib/SimConnect.dll
command argument looks like a remnant from adjusting Linux paths. I always had to delete it in the makefile to deploy successfull.y
here i can enter up to 20 500 NM
I can change it to the max. The Great Circle distance calculation will never return longer than 10800 NM.
I used your SDK link and set the env variable.
SimConnect.dll
is already copied in axcopy
command prior. The/lib/SimConnect.dll
command argument looks like a remnant from adjusting Linux paths. I always had to delete it in the makefile to deploy successfull.y
Ok. I'll have a look. Maybe some historical stuff left in.
see code review for notes