Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Qt Target Library Location?: Page 1 of 2 (32 Items)
   
Qt Target Library Location?  
Hi,

I'm working qt to qnx porting process. I've completed operations on the host side.
I can complie qt application for qnx armv7 version. 

I need some information on the target side process.

I carry him where qt target libaries?

Do I carry him sd card or after create a partition image file created by section carry him?

Thanks for Help
Re: Qt Target Library Location?  
Hi,

have you tried this: http://qt-project.org/wiki/QNX

Cheers

--Armin

http://www.steinhoff-automation.com


Eren Basturk wrote:
> Hi,
>
> I'm working qt to qnx porting process. I've completed operations on the host side.
> I can complie qt application for qnx armv7 version.
>
> I need some information on the target side process.
>
> I carry him where qt target libaries?
>
> Do I carry him sd card or after create a partition image file created by section carry him?
>
> Thanks for Help
>
>
>
> _______________________________________________
>
> Qt General
> http://community.qnx.com/sf/go/post95822
> To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com
>

Re: Qt Target Library Location?  
> 
> Hi,
> 
> have you tried this: http://qt-project.org/wiki/QNX
> 
> Cheers
> 
> --Armin
> 
> http://www.steinhoff-automation.com
> 
> 
> Eren Basturk wrote:
> > Hi,
> >
> > I'm working qt to qnx porting process. I've completed operations on the host
>  side.
> > I can complie qt application for qnx armv7 version.
> >
> > I need some information on the target side process.
> >
> > I carry him where qt target libaries?
> >
> > Do I carry him sd card or after create a partition image file created by 
> section carry him?
> >
> > Thanks for Help
> >
> >
> >
> > _______________________________________________
> >
> > Qt General
> > http://community.qnx.com/sf/go/post95822
> > To cancel your subscription to this discussion, please e-mail general-qt-
> unsubscribe@community.qnx.com
> >
> 
Hi,

Thanks for reply

I'm working beagleboard not playbook but i will try complie over ip for qnx rtos.


Re: Qt Target Library Location?  
Eren Basturk wrote:
>> Hi, Thanks for reply I'm working beagleboard not playbook but i will 
>> try complie over ip for qnx rtos.

OK ...  but  both hardware systems are ARM based and running more or 
less compatible version of QNX6.x ...

--Armin

>
>
>
>
>
>
> _______________________________________________
>
> Qt General
> http://community.qnx.com/sf/go/post95826
> To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com
>

Re: Qt Target Library Location?  
>>>I carry him where qt target libaries?
Actually, they can be anywhere specified by environment variable LD_LIBRARY_PATH, but the "standard" location would be /
usr/lib

>>>Do I carry him sd card or after create a partition image file created by section carry him?
You can only put them on the SD card if you mount it before you try to use the libraries.  If you don't know how to 
mount the SD card, then you must put libraries in the IFS !

The folliowing assumes Qt4...

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<wherever the libraries are located>

export QWS_DISPLAY=qnx
export QWS_KEYBOARD=qnx
export QWS_MOUSE_PROTO=qnx

You will need to create a true ramdisk and tell Qt runtime where it is...
export TMPDIR=/ramdisk

If using QML, you must deploy your content directory to the target and start your app from that directory.

http://dl.dropbox.com/u/13676760/Qt_debugging_rev2.pdf covers this starting around page 5.


Re: Qt Target Library Location?  
Thanks for answer . I know mounth command . I will try this steps.

Re: Qt Target Library Location?  
i have some problem on booting process.

Although i did mounth i didn't see mount-text files. I have  record my steps. You can watch my steps.

http://www.youtube.com/watch?v=4r_O0YIssY8&feature=channel&list=UL
Re: Qt Target Library Location?  
Also how can i see mount-text file in the sd card?

thanks
Re: Qt Target Library Location?  
# mount -tdos /dev/hd0t11 /tmp
# mount ... with no options should show /dev/ht0t11 on /tmp
# ls /tmp ... will not show the file
Re: Qt Target Library Location?  
BTW, what app did you use to make a video directly from your pc?  It produced a good video.
Re: Qt Target Library Location?  
ı wrong write after message. ı have some problem mouting process not booting process. 
Re: Qt Target Library Location?  
Thanks for help. Anymore i can look this files.

I used "xvidcap Screen Capture" for record. You can find ubuntu software center this program.

Thanks for help
Re: Qt Target Library Location?  
i followed your steps,

I have a new problem. I record my all operations. You can look following youtube link

Error: "sh: ./helloworld: cannot execute - Permission denied"

http://www.youtube.com/watch?v=FjL4vptSr6o

Thanks
Re: Qt Target Library Location?  
Serveral things...

1) Looks like I forgot "export" in my post you referred to...

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<wherever the libraries are located>
   should be
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<wherever the libraries are located>

... just like the other variables!

2) You cannot execute from the SD card because the bsp did not start the driver with the right permissions:

It should look like:
devb-mmcsd-beagle cam quiet blk cache=2m dos exe=all mmcsd noac12 

It is the "dos exe=all" that is missing - chmod won't work!

3)  If you hadn't mounted your card at /tmp, you could have copied 'helloworld' to /tmp and then done chmod and 
successfully run it.  Probably should mount at /dos or something like that.

BTW you can create macro's in u-boot - you don't have to enter all that stuff by hand everytime :)  
   



Re: Qt Target Library Location?  
Hi Dennis,

I get the following error when I try to create a new directory.

Error:"I get the following error when I try to create a new directory."

i'm wanna crate two directory for mount qtlib and qtapp

First Location: /tmp/qtApp for helloworld application
Second Location : /tmp/qtLib for qt libaries

You can look image.png for error
Attachment: Image image.png 206.44 KB
Re: Qt Target Library Location?  
sorry for previus message error


Error: "mkdir: /tmp/qtApp: Function not implemented"
Re: Qt Target Library Location?  
/tmp is normally linked to /dev/shmem which (as you see) does not support creation of directories.

One soluitiion is to create a ram drive and mount that it at /tmp

devb-ram ram capacity=8192 &
waitfor /dev/hd1
dinit -hq /dev/hd1t77
mount /dev/hd1t77 /tmp

Note "hd1" may differ but likely "hd0" is mmcsd.
Re: Qt Target Library Location?  
I get the following error when I try to run waitfor command.

You can look following the link for error

http://www.youtube.com/watch?v=oolyAGFB0FY
Re: Qt Target Library Location?  
"waitfor" is used in boot scripts.  If you run the commands from a shell you would omit it.
Re: Qt Target Library Location?  
I tried this commdans but i'm getting error.

I wanna only qt application run. But i don't mounted qtlib and qt app to /tmp directory.

Is there another way mounted this library?
Re: Qt Target Library Location?  
"BTW you can create macro's in u-boot - you don't have to enter all that stuff by hand everytime :)"  

I could not find macro document on google. Can you send me someone link or document?

Normally i used bootargs command for embedded linux but i could not find like bootargs commands

Thanks for Help
Re: Qt Target Library Location?  
Hi Dennis,

I've created static qmake for complie.

I statically compiled qt application. But i can't copy this application /tmp directory.

You can look error for this youtube link

http://www.youtube.com/watch?v=Ly2PL0w-y-8

i'm waiting monday for your answers

Thanks
Re: Qt Target Library Location?  
Eren-

/dev/hd0t11 is a "raw" device.  You have to mount it before you can see your files.

# mount -t dos /dev/hd0t11 /fs/dos
# cp /fs/dos/helloapp /tmp

Have you considered using this demo image for beagle ... rather than a very minimal bsp build?

https://dl.dropbox.com/u/13676760/qnx_bglxm.zip
(document https://dl.dropbox.com/u/13676760/qnx_bglxm.pdf)

When this image boots, it automatically mounts the SD card as "/" - so "ls /" will show your helloapp file.  
Additionally, this image sets up the network - so you can "paste" your file directly to the target using Mometics "
target filesystem navigator".

The demo image is all setup to run Qt apps - in fact, several are installed on that image.

Dennis


Re: Qt Target Library Location?  
Dennis,

i copied hello world app to /tmp directory but I got a new error when running the application.

You can look youtube link for error
http://www.youtube.com/watch?v=PuGq8U1f-yU

also i saw beagle image but i have a beagleboard rev c4 not xM.

i tried qt target navigator but there are no built-in ethernet port on the BeagleBoard. I used cisco ethernet to usb 
converter but I learned that qnx only support axis communication ethernet to usb device

thanks for answers
Re: Qt Target Library Location?  
>>>You will need to create a true ramdisk and tell Qt runtime where it is...
>>>export TMPDIR=/ramdisk

The error you just showed is why you have to create a ramdisk on the target!

Run the following commands... since the SD cards is /dev/hd0, the ramdisk should show up as /dev/hd1.

    devb-ram ram capacity=8192 & 
    dinit -hq /dev/hd1t77
    mount /dev/hd1t77 /ramdisk
    export TMPDIR=/ramdisk

Note you will need executables devb-ram and dinit on your target (plus library fs-qnx4.so)