Mark

  • *
  • 8
Trying to build source on Windows
« on: July 30, 2015, 03:21:17 pm »
I've hit a snag building the source under windows. I'm getting the error "makefile:189: recipe for target 'uavobjects_java' failed" with "required UAVObject definitions not found!" and this file mentioned "librepilot-next.xml".

Anyone know where this file is (if that is indeed the problem).

I should add it was "generating matlab code"
« Last Edit: July 30, 2015, 05:01:54 pm by Mark »

simonarvestrand

  • *
  • 11
  • FPV All Day Long
Re: Trying to build source on Windows
« Reply #1 on: July 30, 2015, 03:51:02 pm »
Got the same fault yesterday when i tried to make for ubuntu. did another a couple of days ago and that one went well.
Chimera | Zephyr II | Easystar | Inspire 1 | Qav400 | X * 250 |
-=== Youtube FPV4FUN ===-

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Trying to build source on Windows
« Reply #2 on: July 30, 2015, 04:28:38 pm »
Where/how you get source code ?

Mark

  • *
  • 8
Re: Trying to build source on Windows
« Reply #3 on: July 30, 2015, 04:39:40 pm »
I got the source code from https://github.com/librepilot/LibrePilot and clicked download ZIP

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Trying to build source on Windows
« Reply #4 on: July 30, 2015, 05:59:45 pm »
Did you follow procedure ?

make/scripts/win_sdk_install.sh
tools/bin/make all_sdk_install

Full procedure using git source : https://wiki.openpilot.org/display/WIKI/Windows+-+Building+and+Packaging
« Last Edit: July 30, 2015, 06:02:49 pm by f5soh »

Mark

  • *
  • 8
Re: Trying to build source on Windows
« Reply #5 on: July 30, 2015, 06:21:45 pm »
Hi f5soh, yes I successfully run those 2 commands, with verbose mode enabled I get

makefile:189: recipe for target 'uavobjects_java' failed
make: *** [uavobjects_java] Error 2, I assume error 2 is file not found.

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Trying to build source on Windows
« Reply #6 on: July 30, 2015, 06:46:30 pm »
 tools/bin/make uavobjects_clean

and

 tools/bin/make uavobjects

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Trying to build source on Windows
« Reply #7 on: July 30, 2015, 06:49:54 pm »
The only change from wiki doc above is the repo :

 git clone https://github.com/librepilot/LibrePilot.git

Mark

  • *
  • 8
Re: Trying to build source on Windows
« Reply #8 on: July 31, 2015, 09:52:19 am »
Thanks for trying but I've tried that but make.exe uavobjects fails with the same error.
Here's the actual text
- OpenPilot UAVObject Generator -
Done: processed 111 XML files and generated 111 objects with no ID collisions. Total size of the dat
a fields is 4582 bytes.
generating matlab code
( cd D:/Source/LibrePilot/build/uavobject-synthetics/Java && \
    D:/Source/LibrePilot/build/uavobjgenerator/uavobjgenerator.exe -Java D:/Source/LibrePilot/shared
/uavobjectdefinition D:/Source/LibrePilot ; \
)
- OpenPilot UAVObject Generator -
required UAVObject definitions not found! d:/source/librepilot.xml
makefile:189: recipe for target 'uavobjects_java' failed
make: *** [uavobjects_java] Error 2
« Last Edit: July 31, 2015, 10:14:34 am by Mark »

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Trying to build source on Windows
« Reply #9 on: July 31, 2015, 10:15:07 am »
Using Git source or Zip archive ?

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Trying to build source on Windows
« Reply #10 on: July 31, 2015, 10:17:25 am »
Strange, this is outside source dir :  "d:/source/librepilot.xml"

m_thread

  • *****
  • 87
  • GCS is my home
    • LibrePilot
Re: Trying to build source on Windows
« Reply #11 on: July 31, 2015, 10:20:14 am »
Mark

From what directory are you running the make command?

/F

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Trying to build source on Windows
« Reply #12 on: July 31, 2015, 10:36:17 am »
Just tested from a fresh source code dir using git clone and all working fine

Mark

  • *
  • 8
Re: Trying to build source on Windows
« Reply #13 on: July 31, 2015, 10:56:39 am »
Hi f5soh and m_thread I just deleted everything and started again, this time using the git command. So from D:\Source I run
git clone https://github.com/librepilot/LibrePilot.git
This creates the folder LibrePilot with all the files in it as expected, I then
cd to LibrePilot
and run
make\scripts\win_sdk_install.sh
This succeeds with one warning "WARNING  tools/SDL-1.2.15 not found (make sdl_install), using system PATH"
From the same folder I run
tools\bin\make sdl_install just in case this was the problem
Then again from D:\Source\LibrePilot I run D:\Source\LibrePilot>tools\bin\make all package
This is the output
D:\Source\LibrePilot>tools\bin\make all package
d:/Source/LibrePilot/tools/bin/make -f Makefile.Release
compiling ../../ground/uavobjgenerator/main.cpp
compiling ../../ground/uavobjgenerator/uavobjectparser.cpp
compiling ../../ground/uavobjgenerator/generators/generator_io.cpp
compiling ../../ground/uavobjgenerator/generators/java/uavobjectgeneratorjava.cpp
compiling ../../ground/uavobjgenerator/generators/flight/uavobjectgeneratorflight.cpp
compiling ../../ground/uavobjgenerator/generators/gcs/uavobjectgeneratorgcs.cpp
compiling ../../ground/uavobjgenerator/generators/matlab/uavobjectgeneratormatlab.cpp
compiling ../../ground/uavobjgenerator/generators/python/uavobjectgeneratorpython.cpp
compiling ../../ground/uavobjgenerator/generators/wireshark/uavobjectgeneratorwireshark.cpp
compiling ../../ground/uavobjgenerator/generators/generator_common.cpp
linking uavobjgenerator.exe
- OpenPilot UAVObject Generator -
Done: processed 111 XML files and generated 111 objects with no ID collisions. Total size of the dat
a fields is 4582 bytes.
generating gcs code
- OpenPilot UAVObject Generator -
Done: processed 111 XML files and generated 111 objects with no ID collisions. Total size of the dat
a fields is 4582 bytes.
generating flight code
- OpenPilot UAVObject Generator -
Done: processed 111 XML files and generated 111 objects with no ID collisions. Total size of the dat
a fields is 4582 bytes.
generating python code
- OpenPilot UAVObject Generator -
Done: processed 111 XML files and generated 111 objects with no ID collisions. Total size of the dat
a fields is 4582 bytes.
generating matlab code
- OpenPilot UAVObject Generator -
required UAVObject definitions not found! d:/source/librepilot.xml
makefile:189: recipe for target 'uavobjects_java' failed
make: *** [uavobjects_java] Error 2

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Trying to build source on Windows
« Reply #14 on: July 31, 2015, 11:24:13 am »
Quote
D:\Source\LibrePilot>tools\bin\make all package

Prompt with "D:\" is strange are you running gitbash or windows command line ?