andyp

  • **
  • 52
Re: Compiling Librepilot in Windows 10 - problems and solutions
« Reply #15 on: April 29, 2021, 11:38:34 pm »
 :)
no big smile  ;) ;) ;)

Processed 1 file, writing output:
warning: Generating version information for language "0000-TradChinese" without standard key "FileVersion"

Output: "C:\msys64\home\admin\librepilot\build\LibrePilot-16.09+r796-g7c9f04d-dirty_x86_64.exe"
Install: 7 pages (448 bytes), 11 sections (6 required) (180576 bytes), 1650 instructions (46200 bytes), 1566 strings (1413832 bytes), 6 language tables (2436 bytes).
Uninstall: 6 pages (384 bytes),
4 sections (1 required) (65664 bytes), 517 instructions (14476 bytes), 552 strings (29012 bytes), 6 language tables (2004 bytes).
Datablock optimizer saved 28943655 bytes (~5.9%).

Using lzma (compress whole) compression.

EXE header size:               70656 / 38400 bytes
Install code:                          (1643892 bytes)
Install data:                          (459621084 bytes)
Uninstall code+data:                   (214344 bytes)
Compressed data:           129938339 / 461479320 bytes
CRC (0xE09C7736):                  4 / 4 bytes

Total size:                130008999 / 461517724 bytes (28.1%)

1 warning:
  Generating version information for language "0000-TradChinese" without standard key "FileVersion"

andyp

  • **
  • 52
Re: Compiling Librepilot in Windows 10 - problems and solutions
« Reply #16 on: April 29, 2021, 11:45:08 pm »
 >:(

C:/Program Files/LibrePilot/lib/librepilot-gcs/plugins/LibrePilot/Config.dll: Cannot load library C:\Program Files\LibrePilot\lib\librepilot-gcs\plugins\LibrePilot\Config.dll: Das angegebene Modul wurde nicht gefunden.

Cannot load plugin because dependency failed to load: ScopeGadget(1.0.0)
Reason: C:/Program Files/LibrePilot/lib/librepilot-gcs/plugins/LibrePilot/ScopeGadget.dll: Cannot load library C:\Program Files\LibrePilot\lib\librepilot-gcs\plugins\LibrePilot\ScopeGadget.dll: Das angegebene Modul wurde nicht gefunden.

C:/Program Files/LibrePilot/lib/librepilot-gcs/plugins/LibrePilot/PfdQml.dll: Cannot load library C:\Program Files\LibrePilot\lib\librepilot-gcs\plugins\LibrePilot\PfdQml.dll: Das angegebene Modul wurde nicht gefunden.

C:/Program Files/LibrePilot/lib/librepilot-gcs/plugins/LibrePilot/ScopeGadget.dll: Cannot load library C:\Program Files\LibrePilot\lib\librepilot-gcs\plugins\LibrePilot\ScopeGadget.dll: Das angegebene Modul wurde nicht gefunden.

Cannot load plugin because dependency failed to load: Config(1.0.0)
Reason: C:/Program Files/LibrePilot/lib/librepilot-gcs/plugins/LibrePilot/Config.dll: Cannot load library C:\Program Files\LibrePilot\lib\librepilot-gcs\plugins\LibrePilot\Config.dll: Das angegebene Modul wurde nicht gefunden.


andyp

  • **
  • 52
Re: Compiling Librepilot in Windows 10 - problems and solutions
« Reply #17 on: April 29, 2021, 11:53:01 pm »
OK, you need to copy

qwt.dll

to C:\Program Files\LibrePilot\bin

C:/Program Files/LibrePilot/lib/librepilot-gcs/plugins/LibrePilot/PfdQml.dll: Cannot load library C:\Program Files\LibrePilot\lib\librepilot-gcs\plugins\LibrePilot\PfdQml.dll: Das angegebene Modul wurde nicht gefunden.

But the file is there?

Re: Compiling Librepilot in Windows 10 - problems and solutions
« Reply #18 on: April 30, 2021, 10:25:17 am »
Sorry.  I use Linux, not Windows.

I think that what LibrePilot needs right now is a port to latest environments / OS's.

I think I made a reasonable start on it.  I have made decisions to use recent Mint (Ubuntu), and about which QT / OSG / OSGEarth to use.  As I recall it was latest OsgEarth OsgEarth 3.1, and the Osg 3.6.5 and QT 5.6.1 that went with that.  I made some code and build changes.  It builds (including OsgEarth), but segfaulted in some places.  OsgEarth and some security something SSL3?  I got rid of the segfaults by bringing over some libs from my old dev box.  I haven't worked on it in almost 2 months.

Given the Linux focus of development, I would guess that it would be easiest to get it all working smoothly on Linux, then port to Windows and Macos.  Getting it working on Macos may be a bigger task.  Are the new M1 processors big endian?
« Last Edit: April 30, 2021, 12:48:35 pm by TheOtherCliff »

Re: Compiling Librepilot in Windows 10 - problems and solutions
« Reply #19 on: December 30, 2021, 06:24:08 pm »
I'm trying compile GCS only but report the error:

C:/msys64/home/.../librepilot/ground/gcs/src/libs/osgearth/osgQtQuick/OSGSkyNode.cpp:37:10: fatal error: osgEarthUtil/Sky: No such file or directory
   37 | #include <osgEarthUtil/Sky>
      |          ^~~~~~~~~~~~~~~~~~


I found information about the osgEarthUtil is deprecated... How can I solve it?
« Last Edit: December 30, 2021, 08:24:31 pm by andregcoimbra »

Re: Compiling Librepilot in Windows 10 - problems and solutions
« Reply #20 on: December 31, 2021, 08:09:56 am »
I recall long ago that I was told to use msys32, not msys64.  That may or may not be true any more.

@JDL posted his complete msys32 environment here, but it is no longer there...
https://forum.librepilot.org/index.php?topic=4876.msg32702#msg32702

I can tell you that one issue with LibrePilot is the old compiler tools needed to build 16.09.  You might try to build the latest "next" where I recall some of the tool requirements have been updated.

jdl

  • ***
  • 246
Re: Compiling Librepilot in Windows 10 - problems and solutions
« Reply #21 on: December 31, 2021, 09:14:03 am »
I've uploaded the archived msys32 environment again and fixed the broken link.

Here is the new link:
https://drive.google.com/u/0/uc?id=1ULDYV4zcf3DUr8-fty9ZfzaM32ZWrUGr&export=download


Cannot guarantee it would stay there forever as I'm short on space in google drive.

Any suggestions where we can store such a large file (5.7GB) permanently?

Re: Compiling Librepilot in Windows 10 - problems and solutions
« Reply #22 on: December 31, 2021, 09:43:26 am »
Good question...
It would be nice if the source code was updated to build with the current day tools so it was not necessary.

I have an HD copy of the OpenPilot dev webinar that is 1.8G.

trust

  • ****
  • 291
Re: Compiling Librepilot in Windows 10 - problems and solutions
« Reply #23 on: January 01, 2022, 05:09:44 am »
I have plenty of space on Google drive- also box accounts which I never use. I've uploaded each version of next that I've tested to google drive. I can view share it with anyone interested, but I can't promise to provide much support.

I too ended up having to use the older python to compile - not a terribly big deal but I attempted to fix it to work with 3 and it was too much effort.

My next version contains all the changes I made for bimode plus a manual mixer function and Telemetry+output mode
The code appears to be about 2Gb
But msys32 is something like 18Gb!