VoCore2 Firmware: Compile from Source

Eyal
 
Posts: 13
Joined: Wed Dec 28, 2016 7:42 am

VoCore2 Firmware: Compile from Source

Fri Feb 03, 2017 7:17 am

I followed the instructions provided here http://vonger.cn/?p=4400. I was unable to register there (never received the confirmation email).

As usual I had to apply three patches to allow the build to move on. However, the build then failed here:
Code: Select all
OpenWrt-libtool: link:  mipsel-openwrt-linux-uclibc-gcc -shared  -fPIC -DPIC  ptp2/.libs/ptp2_la-ptp.o ptp2/.libs/ptp2_la-library.o ptp2/.libs/ptp2_la-usb.o ptp2/.libs/ptp2_la-ptpip.o ptp2/.libs/ptp2_la-config.o ptp2/.libs/ptp2_la-olympus-wrap.o ptp2/.libs/ptp2_la-chdk.o   -Wl,-rpath -Wl,/data/vocore/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/libgphoto2-2.5.10/libgphoto2/.libs -Wl,-rpath -Wl,/data/vocore/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/libgphoto2-2.5.10/libgphoto2_port/libgphoto2_port/.libs -L/data/vocore/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/libgphoto2-2.5.10/libgphoto2_port/libgphoto2_port/.libs -L/data/vocore/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib -L/data/vocore/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/lib -L/data/vocore/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/data/vocore/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib -L/data/vocore/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib/libiconv-stub/lib -L/data/vocore/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib/libintl-stub/lib ../libgphoto2/.libs/libgphoto2.so /data/vocore/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/libgphoto2-2.5.10/libgphoto2_port/libgphoto2_port/.libs/libgphoto2_port.so -lexif ../libgphoto2_port/libgphoto2_port/.libs/libgphoto2_port.so -lpthread -lxml2 -lz -lm -ldl -lltdl  -Os -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -msoft-float -Os -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -msoft-float   -Wl,-soname -Wl,ptp2.so -Wl,-version-script -Wl,.libs/ptp2.ver -o .libs/ptp2.so
/data/vocore/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/../lib/gcc/mipsel-openwrt-linux-uclibc/4.8.3/../../../../mipsel-openwrt-linux-uclibc/bin/ld: cannot find -lxml2

Vonger
 
Posts: 896
Joined: Sun Oct 19, 2014 6:00 am

Re: VoCore2 Firmware: Compile from Source

Fri Feb 03, 2017 7:24 am

We have uploaded source to http://vocore.io/v2u.html Sources/Software section, please use that code.

Eyal
 
Posts: 13
Joined: Wed Dec 28, 2016 7:42 am

Re: VoCore2 Firmware: Compile from Source

Fri Feb 03, 2017 10:24 am

[later] I modified the top .config and enabled
Code: Select all
CONFIG_PACKAGE_libxml2=y


The build now completed.

Eyal
 
Posts: 13
Joined: Wed Dec 28, 2016 7:42 am

Re: VoCore2 Firmware: Compile from Source

Fri Feb 03, 2017 12:52 pm

The uploaded file is identical to the one in the original site.

Are you sure that you can build from that tar file with no problems?
I found that I need to do what is mentioned here (3 patches)
https://dev.openwrt.org/ticket/22193
and also select in .config
CONFIG_PACKAGE_libxml2=y

Maybe some of the problems are due to the newer compiler in recent fedora which are more strict, but surely the missing libxml2 is not related?

Anyway, thanks for your effort,
cheers

Return to VoCore2/Lite/Ultimate

Who is online

Users browsing this forum: Google [Bot] and 45 guests