Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

Cross compiler for OF 0.9.0/Jessie/arm6/RPi1

$
0
0
pi@debian:~$ make -C /media/Data/home/pi/openFrameworks/examples/empty/emptyExample/
make: Entering directory '/media/Data/home/pi/openFrameworks/examples/empty/emptyExample'
HOST_OS=Linux
HOST_ARCH=x86_64
/media/Data/home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/config.shared.mk:201: *** This package doesn't support your platform, probably you downloaded the wrong package?.  Stop.
make: Leaving directory '/media/Data/home/pi/openFrameworks/examples/empty/emptyExample'

That's the error after adding the line. But now I deleted the line again and do not compiles like before and I get directly this error (the same):

pi@debian:~$ make -C /media/Data/home/pi/openFrameworks/examples/empty/emptyExample/
make: Entering directory '/media/Data/home/pi/openFrameworks/examples/empty/emptyExample'
HOST_OS=Linux
HOST_ARCH=x86_64
/media/Data/home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/config.shared.mk:201: *** This package doesn't support your platform, probably you downloaded the wrong package?.  Stop.
make: Leaving directory '/media/Data/home/pi/openFrameworks/examples/empty/emptyExample'

So I am very lost, I don't know if I need to reboot the RPI and VM and retry again after the changes....

The In openFrameworksCompiled/project/linuxarmv6l/config.linuxarmv6l.default.mk here you can see how I added the lines:

 SYSROOT=$(RPI_ROOT)

        PLATFORM_CFLAGS += --sysroot=$(SYSROOT)

        PLATFORM_HEADER_SEARCH_PATHS += $(SYSROOT)/usr/include/c++/4.9
        PLATFORM_HEADER_SEARCH_PATHS += $(SYSROOT)/usr/include/arm-linux-gnueabihf/c++/4.9

        PLATFORM_LIBRARY_SEARCH_PATHS += $(SYSROOT)/usr/lib/$(GCC_PREFIX)
        PLATFORM_LIBRARY_SEARCH_PATHS += $(SYSROOT)/usr/lib/$(GCC_PREFIX)/4.9

        PLATFORM_LDFLAGS += --sysroot=$(SYSROOT)
        PLATFORM_LDFLAGS += -Wl,-rpath=$(SYSROOT)/usr/lib/$(GCC_PREFIX)
        PLATFORM_LDFLAGS += -Wl,-rpath=$(SYSROOT)/lib/$(GCC_PREFIX)

Viewing all articles
Browse latest Browse all 40524

Trending Articles