Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
When i try to compile using ppc toolchain, i get the following warning when running the ./configure command:
configure: warning: CC=/home/ubuntu/Desktop/powerpc-uclibc-toolchain/toolchain_powerpc/bin/powerpc-linux-uclibc-gcc: invalid host type
What is the problem, what can i do about it?
The result is the the program is compiled for my pc and not for the dsm-g600.
Last edited by n3rd (2008-08-23 11:07:39)
Offline
1. "./configure" is not enough to start crosscompilation process.
You should type at least the following:
"
./configure \
--host=powerpc-linux-uclibc
"
2. Maybe something wrong with environment or toolchains?
2.1 check .bash_profile, for example, it may look like this:
"
#! /bin/sh
PREFIX=/somewhere_on_the_disk
PATH=$PATH:${PREFIX}/bin
export CROSS_COMPILE=1
export CC="${PREFIX}/bin/powerpc-linux-uclibc-gcc"
export CXX="${PREFIX}/bin/powerpc-linux-uclibc-g++"
export AR="${PREFIX}/bin/powerpc-linux-uclibc-ar"
export AS="${PREFIX}/bin/powerpc-linux-uclibc-as"
export LD="${PREFIX}/bin/powerpc-linux-uclibc-ld"
export NM="${PREFIX}/bin/powerpc-linux-uclibc-nm"
export RANLIB="${PREFIX}/bin/powerpc-linux-uclibc-ranlib"
export STRIP="${PREFIX}/bin/powerpc-linux-uclibc-strip"
export CFLAGS="-Os -mcpu=603e -mtune=603e"
export CXXFLAGS="-Os -mcpu=603e -mtune=603e"
"
2.2 check toolchains:
powerpc-linux-uclibc-gcc -dumpspecs
powerpc-linux-uclibc-gcc -dumpmachine
powerpc-linux-uclibc-gcc -print-search-dirs
Offline
p.r. thnx for your help.
I put the line
CC=/home/ubuntu/Desktop/powerpc-uclibc-toolchain/toolchain_powerpc/bin/powerpc-linux-uclibc-gcc
at the wrong place.
So obvious i'm new to all of this.
Offline
A new question:
I have successfully compiled nzbget. Nzbget depends on libxml2, so i compiled that one first.
Now when i try to run the nzbget binary (on the dsm-g600) i get the following error message:
./nzbget: can't load library 'libxml2.so.2'
Does anyone know how to solve this?
Last edited by n3rd (2008-08-24 13:11:46)
Offline
1st, please, read the "Prerequisites on POSIX" section at NZBGet home page http://nzbget.sourceforge.net/
2nd, download libxml2 source code from ftp://ftp.gnome.org/pub/GNOME/sources/libxml2/ or from ftp://xmlsoft.org/libxml2/ and try to crosscompile libxml2 library.
Offline
First of all, thnx for your reply.
Maybe i wasn't clear, but i already did crosscompile libxml2 otherwise nzbget would not compile.
So the problem starts when i try to run nzbget.
Obvious the problem is that i'm missing some files, as i said, i have compiled them. But i don't know where to place them on the dsm-g600 so nzbget will find them.
Offline
Sorry.
You may put libxml2 library anywhere at /mnt/HD_a2 and create symlink to /lib.
For example, you may add to fun_plug the following:
ln -s /mnt/HD_a2/full_filename_of_libxml2_library /lib/libxml2.so.2
and reboot device.
I've written full_filename_of_libxml2_library because i don't known the subversion of libxml2, replace it with correct full filename of libxml2 library.
Offline