语言

Menu
Sites
Language
Build error

Hello,

I have created a sample HelloWorld app but I can not build it.

I get two errors: 1. recipe for target 'src/HelloWorld.o' failed

                      2. make.exe:*** [src/HelloWorld.o] Error 1

Errors can be fozbd ub fikder Debug-Tizen-Emulator -> src -> subdir.mk 

 

# Each subdirectory must supply rules for building sources it contributes
src/%.o: ../src/%.cpp
@echo 'Building file: $<'  <---------------------------ERROR!
@echo 'Invoking: C++ Compiler'
clang++.exe -I"pch" -D_DEBUG -I"D:\Tizen1\HelloWorld\inc" -O0 -g3 -Wall -c -fmessage-length=0 -target i386-tizen-linux-gnueabi -gcc-toolchain C:/tizen-sdk/tools/smart-build-interface/../i386-linux-gnueabi-gcc-4.5/ -ccc-gcc-name i386-linux-gnueabi-g++ -march=i386 -Wno-gnu -fPIE --sysroot="C:/tizen-sdk/platforms/tizen2.0/rootstraps/tizen-emulator-2.0.cpp" -I"C:/tizen-sdk/platforms/tizen2.0/rootstraps/tizen-emulator-2.0.cpp/usr/include" -I"C:/tizen-sdk/platforms/tizen2.0/rootstraps/tizen-emulator-2.0.cpp/usr/include/libxml2" -I"C:\tizen-sdk\library" -I"C:/tizen-sdk/platforms/tizen2.0/rootstraps/tizen-emulator-2.0.cpp/usr/include/osp" -D_APP_LOG -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
@echo 'Finished building: $<'
@echo '
 
Can anyone help me?
thanks,
ikocijan
 
编辑者为: Brock Boland 17 3月, 2014 原因: Paragraph tags added automatically from tizen_format_fix module.

响应

14 回复
kavish
It looks like you have not installed Tizen SDK properly. You can reinstall SDK and check if problem still persists or not. Check the file size of SDK from given link https://developer.tizen.org/downloads/tizen-sdk To install Tizen SDK refer installation guide from given link. https://developer.tizen.org/downloads/sdk/installing-tizen-sdk
Pavel Devytakin
The error description can be found in Console window on "CDT Build Console". I have the same error but on Release config. The console has text: In file included from ../src/Simple.cpp:9: In file included from D:\VS_PRJ\ATizen\Simple\inc\Simple.h:4: In file included from C:/tizen-sdk/platforms/tizen2.0/rootstraps/tizen-device-2.0.cpp/usr/include/osp\FApp.h:28: In file included from C:/tizen-sdk/platforms/tizen2.0/rootstraps/tizen-device-2.0.cpp/usr/include/osp\FAppTypes.h:29: In file included from C:/tizen-sdk/platforms/tizen2.0/rootstraps/tizen-device-2.0.cpp/usr/include/osp\FBaseString.h:27: In file included from C:/tizen-sdk/platforms/tizen2.0/rootstraps/tizen-device-2.0.cpp/usr/include/osp\FBaseObject.h:28: In file included from C:/tizen-sdk/platforms/tizen2.0/rootstraps/tizen-device-2.0.cpp/usr/include/osp\FBaseTypes.h:28: C:/tizen-sdk/platforms/tizen2.0/rootstraps/tizen-device-2.0.cpp/usr/include/osp\FBaseLog.h:28:10: fatal error: 'new' file not found #include <new> ^ 1 error generated. src/subdir.mk:33: recipe for target 'src/Simple.o' failed mingw32-make.exe: *** [src/Simple.o] Error 1 **** Build Finished **** ======= THE QUESTION: Why my application don't compile in Release and in Debug-Tizen-Device mode? The Debug-Tizen-Emulator mode has no error.
kavish
Hi poldey, This two mode you can use for device(Release and in Debug-Tizen-Device mode). If you have device try to run application in these two modes. To build your application on Debug-Tizen-Emulator using Tizen Emulator .
Pavel Devytakin
Hi kavish. I think that I resolved the problem. I had Win8 x64 with installed Tizen 2.0 SDK x32. The Tizen SDK x64 has many errors while install. My solution is: I took the Tizen SDK x32 from Win7 x32 and copied the whole files into folder Tizen installation, The compilation has no error now. Thanks
kavish
Hi poldey, Good to know that your problem solved.
Nurul Afser Talukder

Hello guys,

I am a newbie in Tizen. I have installed Tizen SDK and trying to build a Native Sample App in my Desktop using Winodws 7 (64 bit) and Tizen SDK 2.3.1 for 64 bit. I am trying to show the output in a Emulator.

I am also facing the above error when i build my project. I am sharing the CDT build console log below:

Building target: testcalcuiapp
Invoking: C++ Linker
arm-linux-gnueabi-g++.exe -o"testcalcuiapp"  ./src/testcalcuiapp.o    -L"D:\Tizen Dev\TestCalcUIApp\lib" -Xlinker --as-needed -pie -lpthread -Xlinker -rpath="/home/developer/sdk_tools/lib" --sysroot="C:/tizen-sdk/tools/smart-build-interface/../../platforms/mobile-2.3/rootstraps/mobile-2.3-device.core" -Xlinker --version-script=D:/Tizen Dev/TestCalcUIApp/.exportMap -L"C:/tizen-sdk/tools/smart-build-interface/../../platforms/mobile-2.3/rootstraps/mobile-2.3-device.core/usr/lib" -laccounts-svc -lanl -lappcore-agent -lbadge -lbase-utils-i18n -lBrokenLocale -lbundle -lcairo -lcalendar-service2 -lcapi-appfw-application -lcapi-appfw-app-control -lcapi-appfw-app-manager -lcapi-appfw-package-manager -lcapi-content-media-content -lcapi-content-mime-type -lcapi-data-control -lcapi-location-manager -lcapi-media-audio-io -lcapi-media-camera -lcapi-media-image-util -lcapi-media-metadata-extractor -lcapi-media-player -lcapi-media-radio -lcapi-media-recorder -lcapi-media-sound-manager -lcapi-media-tone-player -lcapi-media-video-util -lcapi-media-wav-player -lcapi-message-port -lcapi-messaging-email -lcapi-messaging-messages -lcapi-network-bluetooth -lcapi-network-connection -lcapi-network-wifi -lcapi-system-device -lcapi-system-info -lcapi-system-media-key -lcapi-system-runtime-info -lcapi-system-sensor -lcapi-system-system-settings -lcapi-telephony -lcapi-ui-efl-util -lcapi-web-bookmark -lcapi-web-bookmark-csc -lcapi-web-history -lcapi-web-scrap -lcapi-web-tab -lcapi-web-url-download -lcidn -lcontacts-service2 -lcontacts-service-utils -lcrypt -lcrypto -lcurl -ldbus-1 -ldl -ldlog -lebluez -leconnman0_7x -lecore -lecore_con -lecore_evas -lecore_fb -lecore_file -lecore_imf -lecore_imf_evas -lecore_input -lecore_input_evas -lecore_ipc -lecore_x -ledbus -ledje -leet -lefreet -lefreet_mime -lefreet_trash -lEGL -lehal -leina -leio -lelementary -lemail-api -lemail-common-use -lemail-core -lemail-device -lemail-ipc -lemail-network -lemail-smime -lemail-smime-api -lemail-storage -lembryo -lenotify -leofono -lethumb -lethumb_client -leukit -levas -lewebkit2 -lexif -lfontconfig -lfreetype -lgio-2.0 -lGLESv1_CM -lGLESv2 -lglib-2.0 -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -ljson-glib-1.0 -lkey-manager-client -lkey-manager-control-client -lm -lminizip -lmsg_externals -lmsg_framework_handler -lmsg_mapi -lmsg_plugin_manager -lmsg_transaction_manager -lmsg_transaction_proxy -lmsg_utils -lmsg_vobject -lnative-buffer -lnotification -lnsl -lnss_compat -lnss_dns -lnss_files -lnss_hesiod -lnss_nis -lnss_nisplus -loauth -lopenal -lpthread -lpush -lresolv -lrt -lshortcut -lSLP-tapi -lsqlite3 -lssl -lstorage -lthread_db -lui-gadget-1 -lui-gadget-1-efl-engine -lutil -lutilX -lvconf -lxml2 -ltbm -lprivilege-info -lefl-extension -lcapi-media-tool -lkey-manager-common -lcapi-base-common -lz -lsecfw -lcapi-appfw-app-common -lcapi-appfw-alarm -lcapi-appfw-preference -ltts -lstt -lcapi-media-codec -lcapi-network-nfc -lgomp -lwifi-direct -lcore-context-manager -Xlinker -rpath="/opt/usr/apps/org.tizen.testcalcuiapp/lib" -Werror-implicit-function-declaration
arm-linux-gnueabi-g++.exe: error: Dev/TestCalcUIApp/.exportMap: No such file or directory
makefile:44: recipe for target 'testcalcuiapp' failed
make: *** [testcalcuiapp] Error 1

But i can sucessfully build and run Web projects in the Emulator.

I think i am making some mistake in build configuration part. Can anyone please help me to resolve this issue?

Alex Ashirov

Hello,

It’s difficult to say what exactly happened. But if it worked, before you made some changes in the build configuration then, I think, the most simple way to fix the issue is to reinstall the SDK. Usually this takes about 10-15 mins.

Nurul Afser Talukder

Hi Alex,

Thanks for your reply.

I have re-installed the SDK several times before posting in this forum and also cleared all registry entry before installing. But still it is showing the above error incase of Native Application build.

Is there any step by step tutorial for Native App creation and building so that i can see if i have made any mistake?

I am not understanding why this error is always showing error in makefile in the line number 44:

@echo 'Building target: $@'

I am using Emulator to show the output, but still it can not find the target. Do you have any idea, why this error may occur?

 

 

daniel kim

if your target device of emulator is now shown on the connection explorer, please do following command in command prompt in your PC.

> sdb kill-server

>sdb start-server

Nurul Afser Talukder

Hello Kim,

I am getting the emulator in the emulator explorer. But when i am building the project, it is showing error in the makefile in the 'building target' step.

Alex Ashirov

Hi,

Generally, you need the following steps to build and run your application on the Emulator:

  1. Select the Emulator in the connection Explorer window.
  2. Select and right-click your application in the Project Explorer window. Choose Run As->Tizen Native Application from the drop-down menu.

Also, please see the following link for more details:

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.mobile.native.appprogramming/html/app_dev_process/building_app.htm

Nurul Afser Talukder

Hello guys,

I could not resolve the issue yet. I think i have found the reason but do not know how to resolve this.

The Problem is the 64bit Tizen SDK is not working properly in my 64bit Windows 7 machine.

Do anyone have any idea how i can resolve this issue or is this a Bug to be fixed for Tizen SDK 64 Bit?

Please let me know your expert comment in this issue.

 

thanks.

Alex Ashirov

Hello,

I use the 64bit Tizen SDK on 64 bit Windows 7 Pro as well. But I don’t have problems described by you. Do you use the latest SDK image:

https://developer.tizen.org/downloads/tizen-sdk#2.3

Nurul Afser Talukder

Hello Alex,

I have been using the latest version 2.3.59. I am not understanding what might gone wrong with my system.

As this system is building and running the web projects, it should work with Native projects also.