Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Native Development

Reply
Contributor
strgezer
Posts: 11
Registered: ‎12-20-2012
My Carrier: none
Accepted Solution

make error -- how to debug??

i'm new at blackberry development.   i'm working on an app for BB10.  my host machine is win7 64bit.   i'm getting this error when i try to compile my app:

 

make: ***[Device-Debug] Error 2

 

not the most descriptive error report i've ever seen.   can anyone point me in the right direction to figure out what i've done wrong?

Please use plain text.
Developer
BGmot
Posts: 956
Registered: ‎11-24-2011
My Carrier: x

Re: make error -- how to debug??

Can you post full console output?

Please use plain text.
Contributor
strgezer
Posts: 11
Registered: ‎12-20-2012
My Carrier: none

Re: make error -- how to debug??

here's the build log:

 


**** Build of configuration Device-Debug for project firstMag ****

make Device-Debug
make -C .//translations -f Makefile update
make[1]: Entering directory `C:/Users/mark/Documents/ndk-10.0.9-workspace/firstMag/translations'
C:/bbndk/host_10_0_9_404/win32/x86/usr/bin/lupdate firstMag.pro
cd arm && C:/bbndk/host_10_0_9_404/win32/x86/usr/bin/qmake -spec blackberry-armv7le-qcc ../firstMag.pro CONFIG+=debug_and_release CONFIG+=device
Updating 'firstMag.ts'...
    Found 1 source text(s) (0 new and 1 already existing)
make[1]: Leaving directory `C:/Users/mark/Documents/ndk-10.0.9-workspace/firstMag/translations'
make -C .//translations -f Makefile release
make[1]: Entering directory `C:/Users/mark/Documents/ndk-10.0.9-workspace/firstMag/translations'
C:/bbndk/host_10_0_9_404/win32/x86/usr/bin/lrelease firstMag.pro
The directory name is invalid.
Updating 'C:/Users/mark/Documents/ndk-10.0.9-workspace/firstMag/translations/firstMag.qm'...
    Generated 0 translation(s) (0 finished and 0 unfinished)
    Ignored 1 untranslated source text(s)
make[1]: Leaving directory `C:/Users/mark/Documents/ndk-10.0.9-workspace/firstMag/translations'
make -C ./arm -f Makefile debug
make[1]: Entering directory `C:/Users/mark/Documents/ndk-10.0.9-workspace/firstMag/arm'
make -f Makefile.Debug
make[2]: Entering directory `C:/Users/mark/Documents/ndk-10.0.9-workspace/firstMag/arm'
qcc -Vgcc_ntoarmv7le -Wno-psabi -lang-c++ -fstack-protector-strong -mcpu=cortex-a9 -g -Wno-psabi -Wall -W -D_REENTRANT -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_DEBUG -DQT_DECLARATIVE_LIB -DQT_CORE_LIB -DQT_SHARED -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/share/qt4/mkspecs/blackberry-armv7le-qcc -I../../firstMag -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include/qt4/QtCore -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include/qt4/QtDeclarative -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include/qt4 -I../src -Io.le-v7-g/.moc -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include/freetype2 -I. -x c++-header -c ../precompiled.h -o o.le-v7-g/.obj/firstMag.gch/c++
qcc -Vgcc_ntoarmv7le -c -Wc,-include -Wc,o.le-v7-g/.obj/firstMag -Wno-psabi -lang-c++ -fstack-protector-strong -mcpu=cortex-a9 -g -Wno-psabi -Wall -W -D_REENTRANT -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_DEBUG -DQT_DECLARATIVE_LIB -DQT_CORE_LIB -DQT_SHARED -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/share/qt4/mkspecs/blackberry-armv7le-qcc -I../../firstMag -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include/qt4/QtCore -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include/qt4/QtDeclarative -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include/qt4 -I../src -Io.le-v7-g/.moc -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include/freetype2 -I. -o o.le-v7-g/.obj/FirstMag.o ../src/FirstMag.cpp
qcc -Vgcc_ntoarmv7le -c -Wc,-include -Wc,o.le-v7-g/.obj/firstMag -Wno-psabi -lang-c++ -fstack-protector-strong -mcpu=cortex-a9 -g -Wno-psabi -Wall -W -D_REENTRANT -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_DEBUG -DQT_DECLARATIVE_LIB -DQT_CORE_LIB -DQT_SHARED -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/share/qt4/mkspecs/blackberry-armv7le-qcc -I../../firstMag -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include/qt4/QtCore -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include/qt4/QtDeclarative -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include/qt4 -I../src -Io.le-v7-g/.moc -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include/freetype2 -I. -o o.le-v7-g/.obj/main.o ../src/main.cpp
C:/bbndk/host_10_0_9_404/win32/x86/usr/bin/moc.exe -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_DEBUG -DQT_DECLARATIVE_LIB -DQT_CORE_LIB -DQT_SHARED -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/share/qt4/mkspecs/blackberry-armv7le-qcc -I../../firstMag -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include/qt4/QtCore -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include/qt4/QtDeclarative -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include/qt4 -I../src -Io.le-v7-g/.moc -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include/freetype2 -I. -D__QNXNTO__ ../src/FirstMag.hpp -o o.le-v7-g/.moc/moc_FirstMag.cpp
qcc -Vgcc_ntoarmv7le -c -Wc,-include -Wc,o.le-v7-g/.obj/firstMag -Wno-psabi -lang-c++ -fstack-protector-strong -mcpu=cortex-a9 -g -Wno-psabi -Wall -W -D_REENTRANT -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_DEBUG -DQT_DECLARATIVE_LIB -DQT_CORE_LIB -DQT_SHARED -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/share/qt4/mkspecs/blackberry-armv7le-qcc -I../../firstMag -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include/qt4/QtCore -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include/qt4/QtDeclarative -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include/qt4 -I../src -Io.le-v7-g/.moc -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include/freetype2 -I. -o o.le-v7-g/.obj/moc_FirstMag.o o.le-v7-g/.moc/moc_FirstMag.cpp
qcc -Vgcc_ntoarmv7le -lang-c++ -Wl,-rpath-link,C:/bbndk/target_10_0_9_1673/qnx6/armle-v7/lib -Wl,-rpath-link,C:/bbndk/target_10_0_9_1673/qnx6/armle-v7/usr/lib -Wl,-rpath-link,C:/bbndk/target_10_0_9_1673/qnx6/armle-v7/usr/lib/qt4/lib -o o.le-v7-g/firstMag o.le-v7-g/.obj/FirstMag.o o.le-v7-g/.obj/main.o o.le-v7-g/.obj/moc_FirstMag.o    -LC:/bbndk/target_10_0_9_1673/qnx6/armle-v7/lib -LC:/bbndk/target_10_0_9_1673/qnx6/armle-v7/usr/lib -LC:/bbndk/target_10_0_9_1673/qnx6/armle-v7/usr/lib/qt4/lib -LC:/bbndk/target_10_0_9_1673/qnx6//usr/lib/qt4/lib -lbbcascades -lQtDeclarative -lQtScript -lQtSvg -lQtSql -lsqlite3 -lz -lQtXmlPatterns -lQtGui -lQtNetwork -lsocket -lQtCore -lm -lbps
make[2]: Leaving directory `C:/Users/mark/Documents/ndk-10.0.9-workspace/firstMag/arm'
make[1]: Leaving directory `C:/Users/mark/Documents/ndk-10.0.9-workspace/firstMag/arm'
Could not find qmake configuration directoryCould not find qmake configuration fileUsing OS scope before setting MAKEFILE_GENERATORC:\bbndk\host_10_0_9_404\win32\x86\usr\bin\ntoarm-ld: o.le-v7-g/.obj/FirstMag.o: undefined reference to symbol 'screen_set_window_property_iv'
C:\bbndk\host_10_0_9_404\win32\x86\usr\bin\ntoarm-ld: note: 'screen_set_window_property_iv' is defined in DSO C:/bbndk/target_10_0_9_1673/qnx6/armle-v7/usr/lib/libscreen.so.1 so try adding it to the linker command line
C:/bbndk/target_10_0_9_1673/qnx6/armle-v7/usr/lib/libscreen.so.1: could not read symbols: Invalid operation
cc: C:/bbndk/host_10_0_9_404/win32/x86/usr/bin/ntoarm-ld caught signal 1
make[2]: *** [o.le-v7-g/firstMag] Error 1
make[1]: *** [debug] Error 2
make: *** [Device-Debug] Error 2

**** Build Finished ****

Please use plain text.
Developer
Zmey
Posts: 886
Registered: ‎12-18-2012

Re: make error -- how to debug??

C:/bbndk/target_10_0_9_1673/qnx6/armle-v7/usr/lib/libscreen.so.1 so try adding it to the linker command line

 

This error message tells to add "-lscreen" to LIBS in .pro file. "lib" is prepended automatically.

 

Please use plain text.
Contributor
strgezer
Posts: 11
Registered: ‎12-20-2012
My Carrier: none

Re: make error -- how to debug??

that fixed it, thanks!!   a noobie mistake.

Please use plain text.