DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-08-05 19:36:47

cj_man
Member
Registered: 2008-07-29
Posts: 11

Port Linuxmce Media Plugin to ARM NAS DNS323, problem with crosscompil

LinuxMCE is a very cool home automation & media control project, with 'follow-me' media, and a gyro-based navigation of media.  I am porting all the media modules to run on the D-Link NAS.  I haven't compiled for this platform before. 
I took the mysql package that was already prebuilt for it ( in fun_plug 0.5) and is working fine, but I need to build the dev packages in order to compile the other linuxmce sources, and I'm having trouble finding out exactly how to do this. 
Does somebody have the step by step instructions for building mysqlclient-dev for this?  If somebody is able to help me, I can give him ssh access to my build system.
I'm using an Ubuntu Gutsy 64b, I've compiled the tool chain. I've found the libmysql15-dev.arm.deb but is for Debian Sarge
Any help would be really appreciated.
Thanks,
CJ

Offline

 

#2 2008-08-05 19:54:10

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Port Linuxmce Media Plugin to ARM NAS DNS323, problem with crosscompil

cj_man wrote:

need to build the dev packages

What's the 'dev packages'? If you're looking for header files, have a closer look at the mysql package you've just installed.

Also, I will delete your account if you ever again post the same question more than once.

Offline

 

#3 2008-08-06 01:50:15

cj_man
Member
Registered: 2008-07-29
Posts: 11

Re: Port Linuxmce Media Plugin to ARM NAS DNS323, problem with crosscompil

I've compiled mysql according to this thread http://dns323.kood.org/forum/viewtopic. … 37&p=1
also downloaded prebuilt debian sarge libmysqlclient-dev16 from http://ftp.de.debian.org/debian/pool/ma … -1_arm.deb

but with both of them I've got segmentation fault at compile time

"arm-linux-g++ -shared -fPIC -Wall -Os -D_GNU_SOURCE -I./ -I../../ -I../ -I../DCE/ -I../../DCE -I../VIPShared/ -I../../VIPShared -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DUSE_LZO_DATAGRID  -I/home/DNS323/GPL/mysql-5.1.23-rc-linux-arm/include/mysql -DUSE_MYSQL_WRAPPER -o libPlutoUtils.so CommonIncludes.o FileUtils.o MultiThreadIncludes.o Other.o ProcessUtils.o StringUtils.o DatabaseUtils.o getch.o md5c.o minilzo.o uuencode.o LinuxSerialUSB.o ThreadedClass.o LZO.o ../db_wrapper/db_wrapper.o ../db_wrapper/ClientSocket.o ../db_wrapper/Socket.o  -L/home/DNS323/GPL/mysql-5.1.23-rc-linux-arm/lib/mysql/ -lmysqlclient
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
/home/DNS323/GPL/uclibc-toolchain-src-20040609/gcc-3.3.x/toolchain_arm/lib/gcc-lib/arm-linux-uclibc/3.3.3/../../../../arm-linux-uclibc/bin/ld: BFD 2.14.90.0.7 20031029 assertion fail /home/DNS323/GPL/uclibc-toolchain-src-20040609/gcc-3.3.x/toolchain_build_arm/binutils-2.14.90.0.7/bfd/elf32-arm.h:3782
make: *** [libPlutoUtils.so] Error 1"



"arm-linux-g++ -shared -fPIC -Wall -Os -D_GNU_SOURCE -I./ -I../../ -I../ -I../DCE/ -I../../DCE -I../VIPShared/ -I../../VIPShared -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DUSE_LZO_DATAGRID  -I/home/DNS323/GPL/mysql-5.1.23-rc-linux-arm/include/mysql -DUSE_MYSQL_WRAPPER -o libPlutoUtils.so CommonIncludes.o FileUtils.o MultiThreadIncludes.o Other.o ProcessUtils.o StringUtils.o DatabaseUtils.o getch.o md5c.o minilzo.o uuencode.o LinuxSerialUSB.o ThreadedClass.o LZO.o ../db_wrapper/db_wrapper.o ../db_wrapper/ClientSocket.o ../db_wrapper/Socket.o  -L/home/DNS323/GPL/temp/libmysqlclient16/usr/lib -lmysqlclient_r
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
/home/DNS323/GPL/uclibc-toolchain-src-20040609/gcc-3.3.x/toolchain_arm/lib/gcc-lib/arm-linux-uclibc/3.3.3/../../../../arm-linux-uclibc/bin/ld: BFD 2.14.90.0.7 20031029 assertion fail /home/radu/DNS323/GPL/uclibc-toolchain-src-20040609/gcc-3.3.x/toolchain_build_arm/binutils-2.14.90.0.7/bfd/elf32-arm.h:3782
make: *** [libPlutoUtils.so] Error 1"

Offline

 

#4 2008-08-06 01:54:41

cj_man
Member
Registered: 2008-07-29
Posts: 11

Re: Port Linuxmce Media Plugin to ARM NAS DNS323, problem with crosscompil

Sorry about posting but I'm trying to solve this for two days now:(
I was referring at the headers
mysql.h
libmysqlclient.so
libmysqlclient_r.so

The sources that I need to compile need to be linked to libmysqlclient_r

ifeq ($(ARCH),arm)
        CXX = arm-linux-g++
        CXXFLAGS = -fPIC -Wall -Os -D_GNU_SOURCE
        CPPFLAGS += -I/home/DNS323/GPL/mysql-5.1.23-rc-linux-arm/include/mysql
        #LDFLAGS += -L/home/DNS323/GPL/mysql-5.1.23-rc-linux-arm/lib/mysql/ -lmysqlclient_r
        LDFLAGS += -L/home/DNS323/GPL/temp/libmysqlclient16/usr/lib -lmysqlclient_r
endif

Thanks.

Offline

 

#5 2008-08-06 01:57:52

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Port Linuxmce Media Plugin to ARM NAS DNS323, problem with crosscompil

cj_man wrote:

collect2: ld terminated with signal 11 [Segmentation fault], core dumped

Are you compiling in a debian chroot running on Linux 2.6.12.6? It's likely a problem with the kernel. I've had such problems, too. Seems to work fine with 2.6.25.1 kernels.

Don't know about the debian packages, but header files and  libmysqlclient_r are definitely included in forre's mysql packages:
http://81.216.140.39/dns-323/mysql_and_php/
http://dns323.kood.org/howto:ffp

Offline

 

#6 2008-08-06 02:02:26

cj_man
Member
Registered: 2008-07-29
Posts: 11

Re: Port Linuxmce Media Plugin to ARM NAS DNS323, problem with crosscompil

I'm compiling using the GPL toolchain. I want to make those work as a fun_plug. I have installed fonz plugging and mysql

Offline

 

#7 2008-08-06 02:09:13

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Port Linuxmce Media Plugin to ARM NAS DNS323, problem with crosscompil

cj_man wrote:

I'm compiling using the GPL toolchain. I want to make those work as a fun_plug. I have installed fonz plugging and mysql

if that means you're really cross-compiling (i.e. compiler not running on your dns-323), then you've got a problem with your cross-toolchain and/or your linux installation.

Offline

 

#8 2008-08-11 11:43:03

cj_man
Member
Registered: 2008-07-29
Posts: 11

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB