Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Building Photon generated Code: (13 Items)
   
Building Photon generated Code  
Hello,

This is the third forum I am posting this thread in :) But somebody in the Photon Forum thought that a "-l" is missing 
in front of my link line and I should ask in this Forum for more help. Seeing how the makefiles are all automatically 
generated, i do not know how I would change the them. 

Original Post:

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...
View Full Message
Re: Building Photon generated Code  
When I manually copy the libfont.so.1 library from 
c:\QNX641\target\qnx6\x86\lib\ 
to
d:\qnxWorkspace\TCI_GUI\x86\o-g\
then I can compile correctly.
Why does the linker not see the library even though 
-L C:/QNX641/target/qnx6/x86/lib
exists in the compile command?
Re: Building Photon generated Code  
Marcel Meerstetter wrote:
> When I manually copy the libfont.so.1 library from 
> c:\QNX641\target\qnx6\x86\lib\ 
> to
> d:\qnxWorkspace\TCI_GUI\x86\o-g\
> then I can compile correctly.
> Why does the linker not see the library even though 
> -L C:/QNX641/target/qnx6/x86/lib
> exists in the compile command?

This appears to be a known bug in the linker. Please back up your 
existing C:/QNX641/host/win32/x86/usr/bin/ntox86-ld.exe and try the 
attached version. Please let me know if it resolves your issue.

Regards,

Ryan Mansfield

Attachment: Compressed file ntox86-ld.zip 345.57 KB
Re: Building Photon generated Code  
Hello Ryan,

Thank you. It is working now. Is there some update function in Momentics that would update such problems?

Thanks again for your help

Marcel
Re: Building Photon generated Code  
Marcel Meerstetter wrote:
> Hello Ryan,
> 
> Thank you. It is working now. Is there some update function in Momentics that would update such problems?

The IDE has a method of installing updates from our update site. Go to 
Help->Software Updates->Find and Install. But, of course, not all 
problems have fixes available through the update site.

Regards,

Ryan Mansfield
Re: Building Photon generated Code  
The fix to the linker will not be on the IDE update site.
The IDE update site contains updates to the IDE itself - mainly Eclipse 
features and plugins, not to binutils or O.S. binary.

Thanks,
Andy

Ryan Mansfield wrote:
> Marcel Meerstetter wrote:
>   
>> Hello Ryan,
>>
>> Thank you. It is working now. Is there some update function in Momentics that would update such problems?
>>     
>
> The IDE has a method of installing updates from our update site. Go to 
> Help->Software Updates->Find and Install. But, of course, not all 
> problems have fixes available through the update site.
>
> Regards,
>
> Ryan Mansfield
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post35253
>
>   

Re: Building Photon generated Code  
Andy Jin wrote:
> The fix to the linker will not be on the IDE update site.
> The IDE update site contains updates to the IDE itself - mainly Eclipse 
> features and plugins, not to binutils or O.S. binary.

Thanks Andy for clarifying exactly what I meant by not all fixes are 
available through the update site.

Regards,

Ryan Mansfield

> Ryan Mansfield wrote:
>> Marcel Meerstetter wrote:
>>   
>>> Hello Ryan,
>>>
>>> Thank you. It is working now. Is there some update function in Momentics that would update such problems?
>>>     
>> The IDE has a method of installing updates from our update site. Go to 
>> Help->Software Updates->Find and Install. But, of course, not all 
>> problems have fixes available through the update site.
>>
>> Regards,
>>
>> Ryan Mansfield
>>
>>
>>
>> _______________________________________________
>>
>> General
>> http://community.qnx.com/sf/go/post35253
>>
>>   
> 
> 
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post35255
> 
Re: Building Photon generated Code  
So is there another source where to get these updates? Where did you get yours, Ryan? I don't assume it is the idea to 
start looking for updates only once when a problem arises. Also it would save time :)

Thanks again for your help

Marcel
Re: Building Photon generated Code  
Marcel Meerstetter wrote:
> So is there another source where to get these updates? Where did you get yours, Ryan? I don't assume it is the idea to
 start looking for updates only once when a problem arises. Also it would save time :)

There is no other automatic update method at the moment. If you 
encounter a problem, either make a forum post, or contact QNX support 
for assistance.

Regards,

Ryan Mansfield
Re: Building Photon generated Code  
Hello Ryan

I get this same error now again when I compile for arm 

C:\QNX641\host\win32\x86\usr\bin\ntoarm-ld: warning: libfont.so.1, needed by C:/QNX641/target/qnx6/armle/usr/lib/libph.
so, not found (try using -rpath or -rpath-link)
C:/QNX641/target/qnx6/armle/usr/lib/libph.so: undefined reference to `PfSetRenderingDPICx'
C:/QNX641/target/qnx6/armle/usr/lib/libph.so: undefined reference to `PfDetachCx'

Is there a fix of the linker ntoarm-ld as there was for ntox86-ld?

Thank you

Marcel
Re: Building Photon generated Code  
Marcel Meerstetter wrote:
> Hello Ryan
> 
> I get this same error now again when I compile for arm 
> 
> C:\QNX641\host\win32\x86\usr\bin\ntoarm-ld: warning: libfont.so.1, needed by C:/QNX641/target/qnx6/armle/usr/lib/libph
.so, not found (try using -rpath or -rpath-link)
> C:/QNX641/target/qnx6/armle/usr/lib/libph.so: undefined reference to `PfSetRenderingDPICx'
> C:/QNX641/target/qnx6/armle/usr/lib/libph.so: undefined reference to `PfDetachCx'
> 
> Is there a fix of the linker ntoarm-ld as there was for ntox86-ld?

Attached. Please let me know if you have any problems.

We will be publishing a update to the binutils in the core-dev-tools 
project that contains this fix in the near future.

Regards,

Ryan Mansfield


Attachment: Compressed file ntoarm-ld.zip 790.04 KB
Re: Building Photon generated Code  
Hello Ryan,

Thanks for the speedy reply. The fix that you sent me did not work. I placed it in 
C:\QNX641\host\win32\x86\usr\bin
I also noticed it is about three times the size of the original
ntoarm-ld.exe.

The fix fot ntox86-ld.exe was about the same size as the original.

Cheers

Marcel
Re: Building Photon generated Code  
Marcel Meerstetter wrote:
> Hello Ryan,
> 
> Thanks for the speedy reply. The fix that you sent me did not work. I placed it in 
> C:\QNX641\host\win32\x86\usr\bin

Sorry, I attached the wrong linker.  Please try this one and let me know.

> I also noticed it is about three times the size of the original
> ntoarm-ld.exe.
> 
> The fix fot ntox86-ld.exe was about the same size as the original.

The one I attached was a debug build.

Regards,

Ryan Mansfield


Attachment: Compressed file ntoarm-ld.zip 342.11 KB