JUCE for ARM Linux

projucer

#1

Hi, All.
I am a new engineer for LINUX, i develop JUCE applications on windows.
this time, i want to porting my windows application to arm linux.
There were problems at the beginning:
step 1: install projucer and generated one GUI application for codeblock IDE, then build it, it was ok, and i can see the classical “Hello world” dialog;
step 2: install yocto SDK;
step 3: add the gcc toolchain and change the paths to yocto tools directory on codeblock;
step 4: select arm gcc for current application, then re-build,
but it is fail, can not find the nomally head files, memory.h, cmath.h …, anybody can tell me, what is happend, miss any install? here is my build log:

arm-poky-linux-gnueabi-g++ 
-Wall
-Wno-strict-aliasing 
-Wno-strict-overflow 
-std=c++14 
-g 
-march=armv6 
-O0 
-pthread 
-DLINUX=1 
-DDEBUG=1 
-D_DEBUG=1 
-DJUCER_CODEBLOCKS_LINUX_191E0897=1 
-DJUCE_APP_VERSION=1.0.0 
-DJUCE_APP_VERSION_HEX=0x10000 
-DJucePlugin_Build_VST=0 
-DJucePlugin_Build_VST3=0 
-DJucePlugin_Build_AU=0 
-DJucePlugin_Build_AUv3=0 
-DJucePlugin_Build_RTAS=0 
-DJucePlugin_Build_AAX=0 
-DJucePlugin_Build_Standalone=0 
-I. 
-I../../JuceLibraryCode 
-I/home/db/work/JUCE/modules 
-I../../../../modules 
include -c ../../JuceLibraryCode/include_juce_audio_basics.cpp -o obj/Debug/app/NP7CMD/JuceLibraryCode/include_juce_audio_basics.o
In file included from /home/db/work/JUCE/modules/juce_core/juce_core.h:178:0,
                 from /home/db/work/JUCE/modules/juce_audio_basics/juce_audio_basics.h:52,
                 from /home/db/work/JUCE/modules/juce_audio_basics/juce_audio_basics.cpp:32,
                 from ../../JuceLibraryCode/include_juce_audio_basics.cpp:9:
/home/db/work/JUCE/modules/juce_core/system/juce_StandardHeader.h:46:18: fatal error: memory: No such file or directory
 #include <memory>
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))

#2

update:
I have found the reason.
add toolchain head files path to the project, and modify
#include <memory>
to
#include <memory.h>
it is ok now. But i dont know, why the
#include <memory>
can’t be recognized in arm g++ toolchain? Did i miss something?


#3

OK, I have found the reason.