A reusit cineva sa compileze un program ptr. dream?
Am instalat/compilat CDK de la http://cvs.tuxbox.org, a fost ok, am incercat exemplele de plugin-uri de pe http://www.sat-industry.net/forums/s...ad.php?t=30165 , au fost ok si astea, dar daca am incercat sa compilez un program simplu, linie de comanda, merge copilarea dar daca il transfer pe dream si il pornesc, imi zice "segmentation fault".

Programul de test a fost cel mai simplu posibil:
Code:
#include <stdio.h>
int main ()
{
  return 0;
}
Ptr. compilare am folosit un Makefile:
Code:
PLUGIN = test
CDK_SRC = /dream/
CDKROOT = /dream/root/cdkroot
CDKBIN = /dream/root/cdk/bin
CXX = $(CDKBIN)/powerpc-tuxbox-linux-gnu-g++
STRIP = $(CDKBIN)/powerpc-tuxbox-linux-gnu-strip

INCLUDES = -I$(CDK_SRC)/apps/tuxbox/enigma/include
CFLAGS = -DEMU_PLUGIN $(INCLUDES) -fno-rtti -fno-exceptions -Wall -O2 -mcpu=405 -msoft-float -mmultiple -mstring -g -ggdb3 -pipe
LINK_OPTIONS = -shared -Wall -O2 -mcpu=405 -msoft-float -mmultiple -mstring -g -ggdb3 -pipe

OBJECTS = test.o

all: $(PLUGIN)

$(PLUGIN): $(OBJECTS)

    $(CXX) $(LINK_OPTIONS) -o $(PLUGIN) $(OBJECTS)
    $(STRIP) -s $(PLUGIN)

%.o: %.cpp
    $(CXX) $(CFLAGS) -c $<

clean:
    rm -rf *.o
    rm -rf test
Presupun ca optiunile nu sunt corecte, dar nu prea ma pricep, poate este un programator pe aici si imi zice ce am gresit.