I'm trying to compile a simple program (program.c) on micaz mote.
compile commands : make hello-world.elf TARGET=micaz
I have this message error :
make: *** no rule to make target 'program.elf'. stop
Process returned error code 2
I'm using InstantContiki2.6.1
Does someone know how to fix the problem ?
PS: I compile exemple programs in the exemple directory successfully.
Probably the problem is in your Makefile. It seems that the "CONTIKI" variable in the Makefile is not correct. Try to set CONTIKI=/home/user/contiki2.6 or CONTIKI=/home/user/contiki
Related
I'm customizing u-boot for beagle bone black. I cloned u-boot git and checkout to v2015.07. When I ran make command,
make CROSS_COMPILE=arm-cortex_a8-linux-gnueabihf-
It shows error like this:
/u-boot((HEAD detached at v2015.07))$ make CROSS_COMPILE=arm-cortex_a8-linux-gnueabihf-
scripts/kconfig/conf --silentoldconfig Kconfig CHK
include/config.h GEN include/autoconf.mk In file included from
./include/common.h:18: include/config.h:5:10: fatal error: configs/.h:
No such file or directory #include
^~~~~~~~~~~~ compilation terminated. scripts/Makefile.autoconf:72: recipe for target 'include/autoconf.mk'
failed make[1]: *** [include/autoconf.mk] Error 1
Did anyone get the same error like mine? Please help me solve this. Thank you in advance.
To build U-Boot you first have to create file .config:
make omap3_beagle_defconfig
The next step is to actually build U-Boot.
CROSS_COMPILE=arm-linux-gnueabihf- make
The current release of U-Boot is v2019.01 and compatible with GCC 6, 7, and 8.
I suggest you build a more current release than v2015.07.
running cmake -DCMAKE_TOOLCHAIN_FILE=ceres-solver/cmake/iOS.cmake -DCMAKE_CXX_FLAGS="-stdlib=libc++" -DEIGEN_INCLUDE_DIR=/usr/local/Cellar/eigen -DIOS_PLATFORM=OS ceres-solver
gives me these errors
-- Using minimal glog substitute (include): internal/ceres/miniglog
-- Max log level for minimal glog substitute: 2
-- Building without OpenMP, disabling.
-- Neither OpenMP or TBB is enabled, disabling multithreading.
-- Looking for C++ include unordered_map
CMake Error: Generator: execution of make failed. Make command was: "CMAKE_MAKE_PROGRAM" "cmTC_3feba/fast"
-- Looking for C++ include unordered_map - not found
-- Looking for C++ include tr1/unordered_map
CMake Error: Generator: execution of make failed. Make command was: "CMAKE_MAKE_PROGRAM" "cmTC_36cb7/fast"
-- Looking for C++ include tr1/unordered_map - not found
-- Unable to find <unordered_map> or <tr1/unordered_map>.
-- Replacing unordered_map/set with map/set (warning: slower!), try enabling CXX11 option if you expect C++11 to be available.
-- Looking for C++ include memory
CMake Error: Generator: execution of make failed. Make command was: "CMAKE_MAKE_PROGRAM" "cmTC_013b8/fast"
-- Looking for C++ include memory - not found
-- Looking for C++ include tr1/memory
CMake Error: Generator: execution of make failed. Make command was: "CMAKE_MAKE_PROGRAM" "cmTC_bb377/fast"
-- Looking for C++ include tr1/memory - not found
CMake Error at CMakeLists.txt:494 (message):
Unable to find shared_ptr, try enabling CXX11 option if you expect C++11 to
be available.
even if i set CXX11 ON, I would get the same error. What should I do?
Assuming I get this working, do I just run make install to get the libceres.a file?
Much help appreciated.
This is not a C++11 error, notice the error
CMake Error: Generator: execution of make failed. Make command was: "CMAKE_MAKE_PROGRAM" "cmTC_3feba/fast"
CMake is trying to determine the presence of various c++11 features by compiling several short program fragments, and is unable to do so, due to some Make related problems (do you have make installed? Xcore command line tools?) and it ends up concluding that c++11 is not available.
The thing to fix here is to see what is going on with Make on your system.
when I compile sdk on lede, some errors occurd like this:
find: '/home/ascend/project/lede/build_dir/target-mips_24kc_musl-1.1.16/lede-sdk-ar71xx-generic_gcc-5.4.0_musl-1.1.16.Linux-i686/staging_dir/host/usr/bin': No such file or directory
find: '/home/ascend/project/lede/build_dir/target-mips_24kc_musl-1.1.16/lede-sdk-ar71xx-generic_gcc-5.4.0_musl-1.1.16.Linux-i686/staging_dir/host/usr/lib': No such file or directory
Makefile:76: recipe for target '/home/ascend/project/lede/bin/targets/ar71xx/generic/lede-sdk-ar71xx-generic_gcc-5.4.0_musl-1.1.16.Linux-i686.tar.xz' failed
make[3]: [/home/ascend/project/lede/bin/targets/ar71xx/generic/lede-sdk-ar71xx-generic_gcc-5.4.0_musl-1.1.16.Linux-i686.tar.xz] Error 123 (ignored)
But it compiled successfully and the image was made.
Some one have ideas?
I think you have some errors in the format of the file path, but the path is still correct. instead of using one back-slash between the folders, try using 2.
If this doesn't work, just reply and then i will find another answer for you. Good luck!
I am porting my web application developed in Chicagoboss from my mac to ubuntu. But when I run make on ubuntu I get the following error:
ERROR: pre_compile failed while processing /home/myname/myapp_priv: {'EXIT',{undef,[{lager,start,[],[]},
{boss_rebar,compile,4,
[{file,"../ChicagoBoss-0.8.12/priv/rebar/boss_rebar.erl"},
{line,97}]},
{boss_plugin,pre_compile,2,
[{file,"priv/rebar/boss_plugin.erl"},{line,105}]},
{rebar_core,run_modules,4,[]},
{rebar_core,execute,5,[]},
{rebar_core,process_dir1,6,[]},
{rebar_core,process_commands,2,[]},
{rebar,main,1,[]}]}}
make: *** [all] Error 1
Am I missing something? Thanking all in advance.
This error indicates, that lager parse transforms are not present while compiling. Lager does not define functions like lager:info or lager:error directly. During compilation, it changes those calls adding line number and other useful things.
Your problem can be usually solved by moving lager before any other dependency in ./deps/boss/rebar.config or adding it as a dependency directly to your application in ./rebar.config.
I am trying to compile linphone-iphone module on Mac Mountain Lion. Xcode version 4.5.
I followed the steps given in the following link http://shallwelearn.com/blog/?p=6.
I successfully crossed upto step4.
In Step5, I executed the command
“make -f builder-iphone-simulator.mk all && make -f builder-iphone-os.mk all
&&make -f builder-iphone-os.mk delivery-sdk”
I got the following Error:
checking whether res_ndestroy is declared… yes
checking for antlr3… no
configure: error: Could not find antlr.jar. Please install antlr3
make[1]: *** [/Hub/SIP_Implementation/IOS/workspace/linphone-iphone/submodules/build/../build-i386-apple-darwin/belle-sip/Makefile] Error 1
make: *** [build] Error 2
So I downloaded the antlr.jar(version-3.5) and added classpath. But Still I am getting the same error.
Can anybody help me to fix this?
Finally I fixed the issue by executing “sudo port install antlr3″ command.
After executing this command, I execute the "make all". It is building without error