LibrePilot Forum

General Category => General Discussion => Topic started by: TadyTheFish on May 27, 2016, 11:16:47 am

Title: Compiled Librepilot missing gadgets
Post by: TadyTheFish on May 27, 2016, 11:16:47 am
Hello!
After hours and hours of reading and preparing the enviroment and compiling I have managed to make it work :)
If i installed Librepilot and started it i got an error message that PfdQml.dll can't be used...
I have to run the exe fom the build directory and then i don't get the message.
The first time i started the librepilot everything was working great... Then i was changing some gadgets (can't remember which one i sellected) and Librepilot chrashed.
Then I started it again and the 3D Model View and PFD were missing!

Is this an issue or did I screw up something?

Thank you!

P.S. I tried to compile the code on 3 different computers and always i got the same error message. "no rule to make..." In all cases i had to manualy copy (and find on the web) libnettle-6-1.dll and libhogweed-4-1.dll (C:\msys32\mingw32\bin)
What did i miss that i dont have these files?

Thank you!
Title: Re: Compiled Librepilot missing gadgets
Post by: Jhinta on May 27, 2016, 02:01:30 pm
first thing you do is to reset the gui file->gcs inport->reset-config

also still try to fix your own build -> but precompiled are here if you like (winx64 only)
https://forum.librepilot.org/index.php?topic=1110.msg11475#msg11475
Title: Re: Compiled Librepilot missing gadgets
Post by: TadyTheFish on May 27, 2016, 02:20:49 pm
If only i knew someone was compiling for us:) no harm done... Atleast i learned something while compiling it myself;)

But still why do i get those dll errors?

Thank you for your help!
Title: Re: Compiled Librepilot missing gadgets
Post by: Jhinta on May 27, 2016, 02:28:58 pm
most of the time you're simply missing a dependency, overlooked line, not updated, etc

witch guid did you use?
Title: Re: Compiled Librepilot missing gadgets
Post by: TadyTheFish on May 27, 2016, 03:39:54 pm
this one:

https://librepilot.atlassian.net/wiki/display/LPDOC/Windows+Building+and+Packaging#WindowsBuildingandPackaging-For32bit

i was reading something on the forum... the update-core doesn't seem to work anymore... maybe i overlooked that... someone said that the command was removed and we should use  pacman -Syu or -Syuu i can't remember
Title: Re: Compiled Librepilot missing gadgets
Post by: TadyTheFish on May 27, 2016, 03:42:27 pm
i tried the reset and it didn't work... I will uninstall my build and download the one you have provided me.
thank you!
Title: Re: Compiled Librepilot missing gadgets
Post by: TadyTheFish on May 27, 2016, 07:31:50 pm
i installed the pre-compiled version.. it doesn't work Visual Studio debugger throvs an error "Unhandled exception at 0x0000000000F36AC1 (Qt5Gui.dll) in librepilot-gcs.exe: 0xC0000005: Access violation reading location 0x0000000000000018."
Title: Re: Compiled Librepilot missing gadgets
Post by: f5soh on May 27, 2016, 07:45:03 pm
Why you want to debug using Visual Studio ?
Title: Re: Compiled Librepilot missing gadgets
Post by: TadyTheFish on May 27, 2016, 10:33:24 pm
by mistake :) i had it installed and it automaticaly went into debugging :)
Title: Re: Compiled Librepilot missing gadgets
Post by: TadyTheFish on May 28, 2016, 09:29:15 pm
Reinstalled msys2 and re-made the whole enviroment... still not working the gadgets are missing.. where are these gadgets located?
I installed the pre-compiled file from the link above and i'm getting an error with the Qt5Gui.dll ... i copied the dll form my own build and it started normaly... now i can see the PFD gadget but when i select it the page si blank white... so no luck :(
Title: Re: Compiled Librepilot missing gadgets
Post by: hwh on May 28, 2016, 09:35:38 pm
Did you start it with the -reset argument or use file -> GCS settings import/export -> Reset config?
Title: Re: Compiled Librepilot missing gadgets
Post by: TadyTheFish on May 28, 2016, 09:54:29 pm
 import/export -> Reset config

i found some files in appdata/roaming/ and i deleted librepilotCGS.xml and librepilotCGS.db and then if I start LP 15.09 and everything works... then i uninstalled 15.09 and installed (i ran it from the build folder) my compiled version the gadgets are missing even with the reset ... then i installed the 15.09 version again and there the gadgets are missing. Then i had to uninstall 15.09 and delete the files in Appdata/roaming and reinstall 15.09 and then they work again...

something is wrong with the build
Title: Re: Compiled Librepilot missing gadgets
Post by: TadyTheFish on May 28, 2016, 09:56:15 pm
And i fried my Revo mini :( this moon is killing me :(
Title: Re: Compiled Librepilot missing gadgets
Post by: hwh on May 28, 2016, 10:28:08 pm
And i fried my Revo mini :( this moon is killing me :(
Fried as in smoke came out and no LEDs come on anymore?  Or as in won't connect to GCS?

Next is really the development version, normally only compiled by the developers.  It's occasionally broken for a short time on one platform or another (usually Windows) when changes are made.  My linux box compiles fine.  It'll get fixed in the next few days.

This is an unusual situation where so many people are trying to compile it to get the aux mag feature.
Title: Re: Compiled Librepilot missing gadgets
Post by: TadyTheFish on May 28, 2016, 11:03:14 pm
Quote
This is an unusual situation where so many people are trying to compile it to get the aux mag feature.
And I am one of them ;)

The main chip fried... my fault fully... I made an Arduino that is fed with telemetry data from the FC. I did this because i wanted custom LED statuses (MAG fault, GPS status, Arming). I know about the WS2812 feature but i dont like the message styles.. I can make multiple LED, each for its own alarm... Or an LCD ;) i like to make things ;) also the Arduino was made to monitor battery voltage. CC3D does not support a buzzer. So i made my own. It counts the number of cells and it calculates the Warning voltage and the Alarm voltage...

I was fast and stupid and i missed a pin for monitoring. I connected GND of the arduino to the Vbat. That made the Vbat go directly to the RX and TX lines of the Flexi port... Now there is a little hole in the processor :( i Think the arduino survived but i can't be sure... Need a new FC to test :)
Title: Re: Compiled Librepilot missing gadgets
Post by: Jhinta on May 29, 2016, 04:04:06 pm
Reinstalled msys2 and re-made the whole enviroment... still not working the gadgets are missing.. where are these gadgets located?
I installed the pre-compiled file from the link above and i'm getting an error with the Qt5Gui.dll ... i copied the dll form my own build and it started normaly... now i can see the PFD gadget but when i select it the page si blank white... so no luck :(

dont know what you did ,, but the upload version are fully working ,, your the only one thats having problems with it.
Title: Re: Compiled Librepilot missing gadgets
Post by: TadyTheFish on May 29, 2016, 04:07:43 pm
How can i do a compelete clen reinstal of msys2 and all of its components? And a complete delete of librepilot files?
Title: Re: Compiled Librepilot missing gadgets
Post by: Jhinta on May 29, 2016, 04:51:16 pm
 :-\ uninstall
Title: Re: Compiled Librepilot missing gadgets
Post by: TadyTheFish on May 29, 2016, 05:06:58 pm
Tried that.. No luck.. Don't know what i'm missing  :'(
Title: Re: Compiled Librepilot missing gadgets
Post by: hwh on May 29, 2016, 10:17:51 pm
Tried that.. No luck.. Don't know what i'm missing  :'(

You're not missing anything, the current next doesn't compile on windows.  It should be fixed in a few days.
Title: Re: Compiled Librepilot missing gadgets
Post by: TadyTheFish on May 29, 2016, 10:33:01 pm
Aaa thank you! I misunderstood
Title: Re: Compiled Librepilot missing gadgets
Post by: Marde on June 09, 2016, 07:51:28 pm
Any news? https://forum.librepilot.org/Smileys/default/shocked.gif
Title: Re: Compiled Librepilot missing gadgets
Post by: @marc on June 09, 2016, 08:05:21 pm
Current next compiles fine, if that's what you are asking.
Title: Re: Compiled Librepilot missing gadgets
Post by: TadyTheFish on June 09, 2016, 10:39:41 pm
Are gadgets working on the windows compile?
Title: Re: Compiled Librepilot missing gadgets
Post by: @marc on June 09, 2016, 10:46:01 pm
If 3D-Model or PFD are missing, try to start with the "/reset" flag.
Code: [Select]
build/librepilot-gcs_release/bin/librepilot-gcs.exe /reset
Title: Re: Compiled Librepilot missing gadgets
Post by: TadyTheFish on June 10, 2016, 06:34:42 am
Tried it ... It says "ModelViewGadget.dll: The specified module could not be found" and "PfdQml.dll: The specified procedure could not be found."
The files are all there
Title: Re: Compiled Librepilot missing gadgets
Post by: parched on June 10, 2016, 09:54:51 am
I think that means there is a dependency missing for those gadgets. Did you you do a clean build? Are you running it from the mingw shell? Possibly it's opengl related and you need to copy opengl32.dll into the bin directory so that is used instead of your system opengl
Title: Re: Compiled Librepilot missing gadgets
Post by: TadyTheFish on June 10, 2016, 11:59:39 pm
did a clean re-build.. now i'm missing libicuin56.dll

Code: [Select]
mingw32-make[2]: Entering directory 'C:/msys32/home/Tady/librepilot/build/librepilot-gcs_release'
mingw32-make[2]: *** No rule to make target 'C:/msys32/mingw32/bin/libicuin56.dll', needed by 'C:/msys32/home/Tady/librepilot/build/librepilot-gcs_release/bin/libicuin56.dll'.  Stop.
mingw32-make[2]: Leaving directory 'C:/msys32/home/Tady/librepilot/build/librepilot-gcs_release'
Makefile:81: recipe for target 'sub-copydata-pro-make_first-ordered' failed
mingw32-make[1]: *** [sub-copydata-pro-make_first-ordered] Error 2
mingw32-make[1]: Leaving directory 'C:/msys32/home/Tady/librepilot/build/librepilot-gcs_release'
Makefile:264: recipe for target 'gcs' failed
mingw32-make: *** [gcs] Error 2
Title: Re: Compiled Librepilot missing gadgets
Post by: TadyTheFish on June 11, 2016, 09:36:13 am
Copied some DLLs by hand.. Got it to run but gadgets PFD and Modelview still missign... So the same as before but different DLLs missing...
Title: Re: Compiled Librepilot missing gadgets
Post by: filnet on June 11, 2016, 05:31:04 pm
GCS should compile fine out of the box without the need to manually copy DLLs.

Looks like your msys2 install is not up to date.

From a msys2 shell, run this command "pacman -Syuu" and follow the instructions.
Run that command as many times as required until it says that your msys2 is up to date.

PS : Qt 5.6.1 has just been released and is already available on msys2.
So GCS is probably broken if you update msys2. Please don't update msys2.
I'll try to fix GCS this weekend.
Title: Re: Compiled Librepilot missing gadgets
Post by: TadyTheFish on June 11, 2016, 06:09:56 pm
I updated everything... But didn't run -Syuu command... It wasnt stated in the compiling tutorial :) the qt i have is 5.6.1... So toolate for me ;) i will wait no problem... Can you notifiy us when it is fixed?
Thank you
Title: Re: Compiled Librepilot missing gadgets
Post by: parched on June 11, 2016, 07:07:38 pm
It might not be broken so feel free to try it
Title: Re: Compiled Librepilot missing gadgets
Post by: filnet on June 11, 2016, 08:02:44 pm
a fix for the icu upgrade has been pushed to next.
GCS build should be fine now
Title: Re: Compiled Librepilot missing gadgets
Post by: TadyTheFish on June 12, 2016, 10:26:52 pm
re-built everything... now the CGS compiles without errors ( first time for me so yaaay :) ) but still i have problems with PFD. I can select in the drop-down menu but it is white... The modelView on the other hand is missing from the drop-down menu...
tried.. build/librepilot-gcs_release/bin/librepilot-gcs.exe /reset .. no luck
i didn't install the build .. i ran it directly...
Title: Re: Compiled Librepilot missing gadgets
Post by: f5soh on June 12, 2016, 11:08:46 pm
Try "-reset" instead of "/reset"

Or File > Import/Export GCS Settings and Reset button

Restart GCS
Title: Re: Compiled Librepilot missing gadgets
Post by: TadyTheFish on June 12, 2016, 11:10:30 pm
Tried to install it... The same problem
Title: Re: Compiled Librepilot missing gadgets
Post by: f5soh on June 12, 2016, 11:38:35 pm
After you run the GCS next for first time you need to reset config.

Go  to File > Import/Export GCS settings and Reset button
Restart GCS

If issue still, try installing with MesaOpenGL driver selected.

https://www.youtube.com/watch?v=8-2qPy2YYT8
Title: Re: Compiled Librepilot missing gadgets
Post by: TadyTheFish on June 13, 2016, 06:18:18 am
Great! that worked! :) now i can see everything! thank you. I did these resets before with no luck but this time it worked :)