Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Problem building photon code: (3 Items)
   
Problem building photon code  
I am not sure if this is the proper place for this post, but in the Graphics source code forum I got no replies.
When I compile code generated by the photon application builder (v 2.03), I get a bunch of undefined references errors 
from the 
linke. Why? I created the project using File->New->Project and selected Photon application project. I am using Momentics

 version 4.6.0 and am compiling for a x86 machine. 
A previous test project I created, I was able to compile and run. 

Thanks for the help

Marcel

C:\QNX641\host\win32\x86\usr\bin\make -k all CCOPTS+=-p LDOPTS+=-p --file=C:/DOKUME~1/MARCEL~1.MEE/LOKALE~1/Temp/
QMakefile124887857876532876.tmp 
C:/QNX641/host/win32/x86/usr/bin/make -j 1 -Cx86 -fMakefile all
make[1]: Entering directory `D:/qnxWorkspace/TCI_GUI/x86'
C:/QNX641/host/win32/x86/usr/bin/make -j 1 -Co -fMakefile all 
make[2]: Entering directory `D:/qnxWorkspace/TCI_GUI/x86/o'
C:/QNX641/host/win32/x86/usr/bin/rm -f  D:/qnxWorkspace/TCI_GUI/x86/o/TCI_GUI
C:/QNX641/host/win32/x86/usr/bin/qcc -Vgcc_ntox86     -oD:/qnxWorkspace/TCI_GUI/x86/o/TCI_GUI    abmain.o   -L . -L C:/
QNX641/target/qnx6/x86/lib -L C:/QNX641/target/qnx6/x86/usr/lib  -Wl,--rpath-link . -Wl,--rpath-link C:/QNX641/target/
qnx6/x86/lib -Wl,--rpath-link C:/QNX641/target/qnx6/x86/usr/lib    -lAp    -lph    -lm    -p 
C:\QNX641\host\win32\x86\usr\bin\ntox86-ld: warning: libfont.so.1, needed by C:/QNX641/target/qnx6/x86/usr/lib/libph.so,

 not found (try using -rpath or -rpath-link)
make[2]: Leaving directory `D:/qnxWorkspace/TCI_GUI/x86/o'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfSetRenderingDPICx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfDetachCx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfGenerateFontNameCx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfAttachCx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfFreeFontCx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfQueryFontsCx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfRenderCx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfUnloadMetricsCx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfFindFontCx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfFontSizeCx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfExtentComponentsCx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfLoadMetricsCx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfFontDescriptionCx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfGetOutlineCx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfFontBaseStemCx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfExtentCx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfGetCacheStatsCx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfGlyphCx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `font_RenderCb'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfExtent16dot16Cx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfDynamicLoadCx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfLoadFontCx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfConvertFontIDCx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfQueryFontCx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfExtentTextCharPositionsCx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfDynamicUnloadCx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfDecomposeStemToIDCx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to...
View Full Message
Re: Problem building photon code  
You are missing a -l font in your link line. I think it should have been resolved automatically by the linker because  
libph has a dependency against libfont. Someone in the tools group should comment on that. Please post in the IDE forum.
 
For now just add lib font to your project manually. 
Re: Problem building photon code  
There is a bug in the linker. 
I replaced C:/QNX641/host/win32/x86/usr/bin/ntox86-ld.exe with the one in the attachment that someone from the IDE group
 sent to me.
It is working now.

Thanks for your help

Marcel
Attachment: Compressed file ntox86-ld.zip 345.57 KB