hubaiz / DslrDashboardServer

DslrDashboard Server for OpenWrt
GNU General Public License v3.0
159 stars 60 forks source link

Compiling errors #22

Open sippe2 opened 7 years ago

sippe2 commented 7 years ago

Hello,

Any idea how to solve these problems? I'm trying to compile with latest openwrt repo under Ubuntu 16.04. It's almost impossible to find MR3040 or MR11U board so it would be nice to make ddserver image to another hardware platform like A5-V11.

mipsel-openwrt-linux-musl-g++ -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.16/ddserver:ddserver -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -c main.cpp
main.cpp: In function 'void startUdpListener()':
main.cpp:137:39: **warning**: format '%ld' expects argument of type 'long int', but argument 3 has type 'ssize_t {aka int}' [-Wformat=]
    syslog(LOG_INFO, "recv: %ld", bytes);
                                       ^
mipsel-openwrt-linux-musl-g++ -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.16/ddserver:ddserver -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -c communicator.cpp
communicator.cpp: In member function 'bool Communicator::readFromClient()':
communicator.cpp:114:51: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'ssize_t {aka int}' [-Wformat=]
    syslog(LOG_ERR, "Error reading packet : %ld", r);
                                                   ^
communicator.cpp:119:60: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'ssize_t {aka int}' [-Wformat=]
   syslog(LOG_ERR, "Error reading total packet size: %ld", r);
                                                            ^
communicator.cpp: In member function 'void Communicator::sendUsbDeviceList(uint32_t)':
communicator.cpp:690:74: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'std::vector<ImagingUsbDevice>::size_type {aka unsigned int}' [-Wformat=]
   syslog(LOG_INFO, "Imaging USB devices found: %lu", imgUsbDevices.size());
                                                                          ^
mipsel-openwrt-linux-musl-g++  main.o communicator.o -o ddserver -nodefaultlibs -lgcc -lc -lusb-1.0 -lpthread -luClibc++
/home/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.3.0_musl-1.1.16/lib/gcc/mipsel-openwrt-linux-musl/5.3.0/../../../../mipsel-openwrt-linux-musl/bin/ld: main.o: undefined reference to symbol '_Unwind_Resume@@GCC_3.0'
/home/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.3.0_musl-1.1.16/mipsel-openwrt-linux-musl/bin/../../../toolchain-mipsel_24kec+dsp_gcc-5.3.0_musl-1.1.16/lib/libgcc_s.so.1: error adding symbols: DSO missing from command line
hubaiz commented 7 years ago

Check this: https://github.com/hubaiz/DslrDashboardServer/issues/18

sippe2 commented 7 years ago

Thank you.

I have now A5-V11 binary image and system works under 15.05.1 pretty well. It was little bit tricky to fit everything to tiny 4MB SPI ROM so I had to remove PPP support. I think it's not big deal.

sippe2 commented 7 years ago

A5-V11 binaries OpenWRT Chaos Calmer 15.05 with ddserver support

A5-V11 factory binary

A5-V11 sysupgrade binary

Default ip is 192.168.1.1 with no password.

Configure network, wireless SSID and LEDs the way you like and remember to change password. Perhaps the easiest way is use 192.168.1.0/24 network because DslrDashboard looks ddserver under 192.168.1.1.

Here is more information about the unbranded A5-V11 board.

This unbranded Ralink/MediaTek RT5350F-based router is sold on Aliexpress and Ebay from Chinese sellers for around 6 USD (shipped) as of July 2016. It has a tiny black or white housing about the size of a lighter, with silkscreened print "3G/4G Router 150M". There is also Ralink/MediaTek RT5350F-based portable routers with 1800mAh and 5200mAh powerbank for around 16 USD. It has tiny white box with blue, green or orange stripe on the side. Top of the box there is silkscreened text "3G Wi-Fi Router" or "3G/4G Wi-Fi Router".