How to call moc.exe for shared using Qt libraries?

I created a shared library using the managed build system and one of the classes in the library using Qt signals and slots. When I create an application of stunts, I can add the library to my project and everything seems fine. However when I compile the application using the lib, I get the following errors.

qcc -Vgcc_ntox86 -lang-c++ -Wl,-rpath-link,C:/bbndk/target_10_0_9_1673/qnx6/x86/lib -Wl,-rpath-link,C:/bbndk/target_10_0_9_1673/qnx6/x86/usr/lib -Wl,-rpath-link,C:/bbndk/target_10_0_9_1673/qnx6/x86/usr/lib/qt4/lib -o o-g/simplehttp o-g/.obj/Simplehttp.o o-g/.obj/main.o o-g/.obj/moc_Simplehttp.o    -LC:/bbndk/target_10_0_9_1673/qnx6/x86/lib -LC:/bbndk/target_10_0_9_1673/qnx6/x86/usr/lib -LC:/bbndk/target_10_0_9_1673/qnx6/x86/usr/lib/qt4/lib -LC:/bbndk/target_10_0_9_1673/qnx6/armle-v7/usr/lib/qt4/lib -L../../simplehttplib/Device-Debug -L../../simplehttplib/Device-Release -L../../simplehttplib/Simulator-Debug -lsimplehttplib -lbbcascades -lQtDeclarative -lQtScript -lQtSvg -lQtSql -lsqlite3 -lz -lQtXmlPatterns -lQtGui -lQtNetwork -lsocket -lQtCore -lm -lbps
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\ntox86-ld: skipping incompatible ../../simplehttplib/Device-Debug/libsimplehttplib.so when searching for -lsimplehttplib
C:\bbndk\host_10_0_9_404\win32\x86\usr\bin\ntox86-ld: skipping incompatible ../../simplehttplib/Device-Release/libsimplehttplib.so when searching for -lsimplehttplib
../../simplehttplib/Simulator-Debug/libsimplehttplib.so: undefined reference to `PostHttp::staticMetaObject'
../../simplehttplib/Simulator-Debug/libsimplehttplib.so: undefined reference to `vtable for PostHttp'
make[2]: Leaving directory `C:/projects/bbworkspace/simplehttp/x86'
../../simplehttplib/Simulator-Debug/libsimplehttplib.so: undefined reference to `RequestHeaders::complete(QString const&)'
make[1]: Leaving directory `C:/projects/bbworkspace/simplehttp/x86'
../../simplehttplib/Simulator-Debug/libsimplehttplib.so: undefined reference to `PostHttp::complete(QString const&)'
../../simplehttplib/Simulator-Debug/libsimplehttplib.so: undefined reference to `vtable for RequestHeaders'
cc: C:/bbndk/host_10_0_9_404/win32/x86/usr/bin/ntox86-ld caught signal 1
make[2]: *** [o-g/simplehttp] Error 1
make[1]: *** [debug] Error 2
make: *** [Simulator-Debug] Error 2

After some googling, I think that the error is due to moc is not running to provide implementations for the signals and slots in the shared library. I came across this page https://developer.blackberry.com/cascades/reference/moc.html , but I prefer to not use a Makefile generation. Is there a way I can remedy this by using managed build? I think the question is anyway, but all ideas are welcome!

I created a python script to do this. It scans the header provided way recursive dir, I put it on Github in case it helps anyone: https://github.com/chrisandrewca/mocpy

Tags: BlackBerry Developers

Similar Questions

  • How to download WinHlp32.exe for Windows 7 (64 bit)?

    How to download WinHlp32.exe for Windows 7 (64 bit)?

    I tried http://support.microsoft.com/kb/917607 and was directed to download WinHlp32.exe for Windows 7. However, the required validation does not work.

    When you run Windows Genuine Advantage validation tool, you get an error and no help is displayed. Genuine Windows diagnosis tool is also of no use.can

    What can I not - very annoying did a backward compatibility for .hlp systems.

    Kind regards

    Thomas

    Try it using internet explore 32 bit.

  • How to call same vi for 4 times in a single vi?

    Hello.. I ve a vi named table 1 d Mult. I need to call this vi four times in another program of vi. The problem I've known is all the four outputs of vi are the same.

    My question is: how to call the same vi number many times?

    Thanks in advance

    Recursive calls in LabVIEW using VI Server

  • How to put a password for sharing password protected?

    I would like to set up a username and password for my shared drives so I can connect to them via a cable ethernet to my other computer in my network and my SIN. for now, I have the password protected sharing off so hard drives are public access on my network which is not very safe. I don't want to set up a password to start windows because when I start my computer I want to boot directly into my office without a password.

    The user name and password for password sharing must correspond to a Windows user account.
    You can set a password for your user account and always start directly on the desktop. Thus operate netplwiz.  Highlight (click on) the account you want to log by default and uncheck "users must enter a user name and password to use this computer."

  • How can I access utilities for PS8250 using Snow leopard printer?

    I used my PS8250 with OS X 10.4.11 for 3 or 4 years. I access the HP photo utilities to verify supply levels, align new ink cartridges, etc.

    Now, I have a new Mac Mini with OS X 10.6.7 and I can't find my set of utilities print so I can do it. I checked HP downloads and told me that the drivers were included with Snow Leopard, and they are with the exception of the set of utilities with power level control.

    Any ideas?

    -Joe

    Unfortunately, this network configuration does not use the utility - it does not work for printers shared via another computer.

    It only works when it has a direct access to the device: printer must be connected to the network through its internal network card, if it has one, or directly to your mac via USB.

    Utility should work on your G4, if you have it installed there.

  • How can I find Instructions for the use of Ctrl + F in Windows 7?

    I use Ctrl + F all the time, but lately, I'm having a problem in that the box 'Whole word' only does not appear so I can't check.  I couldn't find any kind of guide for the Ctrl + F function.  How can I locate it?

    I posted a request on their Support Forum.

    http://support.Mozilla.org/en-us/questions/941177
    ??

  • How to call JavaScript/ExtendScript for first Pro CC Mac OS

    Looking for a way to run JavaScript aka ExtendScript in first Pro CC

    Here's what I have for other applications Adobe, using AppleScript:

    tell application "Adobe After Effects CC 2015"
      activate
      set SomeExtendScript to "ThisVariable='Runs This Js Code';"
      DoScript SomeExtendScript
    end tell
    
    
    tell application "Adobe Photoshop CC 2015.5"
      activate
      set SomeExtendScript to "ThisVariable='Runs This Js Code';"
      do javascript SomeExtendScript
    end tell
    
    
    tell application "Adobe Illustrator"
      activate
      set SomeExtendScript to "ThisVariable='Runs This Js Code';"
      do javascript SomeExtendScript
    end tell
    

    But so far nothing for first.

    tell application "Adobe Premiere Pro CC 2015"
      activate
      set SomeExtendScript to "ThisVariable='Runs This Js Code';"
      -- Does not work: DoScript SomeExtendScript
      -- Does not work: do javascript SomeExtendScript
      -- Does not work: do script SomeExtendScript
    end tell
    

    ExtendScript = JavaScript Adobe-flavored. Very similar.

    For other products Adobe AppleScript has been the key to do this.

    Yes, but there is no need to limit your solution to a single platform!

    I'd be curious to see what you do in AE.

    Instead of trigger ExtendScript some system based on external data, you can put the buttons in a panel of HTML5 (JavaScript based) for convenience of the user.

    Here is an example of PProPanel; other samples in the repository prettier HTML and use modern web frameworks; PProPanel is quite comprehensive in the use of agency ExtendScript API:

    Samples/PProPanel to master · Adobe-CEP/Samples · GitHub
    Pushing metadata to projectItems PProPanel = shows how to get the static value (metadata Panel) and temporal metadata (marker).

    Here is "how to set up a panel dev environment:

    Samples/ReadMe.md to master · Adobe-CEP/Samples · GitHub

    Work in the readme file, play with the sample and feel free to ask me anything!

  • How Oracle called the hidden for the function-based index columns?


    I came across an interesting problem today.  Statistics object for a schema that have been created on the basis of data X have been imported into a 'identical' to the database schema Y.

    The problem is that, on the basis of data X a group of hidden columns associated with index based service (FBIs) were named SYS_NC00182$ to SYS_NC00191$ and on the basis of data Y the same hidden columns were named SYS_NC00183$ to SYS_NC00192$!  The consequence was that statistical column for an FBI data base X have been used for a totally different FBI on the database Y.

    Now, of course, if this was g 11 or 12 c I could just create virtual columns and those of the index.  In this way the names of the columns would be compatible on databases.  However, it is a 10g database, and I do not have this option.

    I am curious to understand how Oracle generates these hidden column names.  I'm also curious if, in 10g, there is a way to identify the name of a column hidden for an FBI that doesn't involve a statement explain plan running on a query that uses all the expressions of the FBI for the table.

    The names of $ SYS_NCnnnnn are based on the internal column id - what is loosely based on the order of creation of the FBI. If you delete a column the column internal ids (after this column), which means the names for the SYS_NCnnnnn$ the change.  An opportunity to explain your results is that a (real) column on the X data table fell, but the column still exists on the database Y.

    If you want to get the link between the current internal name and expression, then you can start with dba_ind_expressions - and create a customized version of the view - e.g @.

    Select c.intcol #, c.name, io.name, idx.name, bo.name, base.name, c.default$, ic.pos #.

    of sys.col$ c, sys.obj$ idx, basis of sys.obj$, sys.icol$ ic.

    sys. User$ io, sys.user$ bo, sys.ind$ I

    where bitand(ic.spare1,1) = 1 / * expression * /.

    and (bitand (students, 1024) = 0) / * not bmji * /.

    and ic.bo # c.obj = #.

    and ic.intcol # c.intcol = #.

    and ic.bo # base.obj = #.

    and io.user # idx.owner = #.

    and bo.user # base.owner = #.

    and ic.obj # idx.obj = #.

    and idx.obj # i.obj = #.

    and however # (1, 2, 3, 4, 6, 7, 9)

    /

    The first two columns in the select ones that I added to the initial view definition.

    Concerning

    Jonathan Lewis

  • Effects: how to call the "settings" for individual filters

    I remember in earlier versions of PE, when I applied an effect to a photo (artistic, blur, noise, etc.), there was a bar of tools/dialog box that would allow me to set unique settings for each effect.   Now, in PE 9 (for Mac), I can't understand how to access these parameters - they do not automatically appear when an effect is selected and I can't find the place where to turn this 'on '.

    I've searched and searched and searched for this, but may not know how to do this.

    Thank you!

    If you want filter dialog boxes when you use the effect controls panel, click

    on the little arrow facing downwards (highlighted in red on the screenshot below)

    and click on automatically see the filters Gallery (shows the filter dialog boxes).

    MTSTUNER

  • How to access my settings for later use raw?

    I opened a jpg in CR, made some changes, opened the image, then saved (in PS) and closed.


    Later, I needed to create a copy of this image and apply the same parameters of CR, I used, but I can't find them. When I opened the original jpg, all parameters of CR are zero.

    Is there a way I can access the CR settings that I entered? I want to see what they are, not to delete them, not go back to the step of Pre-cr-edit.

    If this is not possible, what could I do differently to retain access to my settings of CR? Should I have saved the image from CR? If so, how the CR settings would be available for tweaking or copy?

    Is there an automatic xmp file that would have this info, and if so, where could I find it?

    Finally, how to save parameters of CR in the future for the subsequent access?

    Thank you very much!

    The setting of the slider sat is taken from my jpeg images.  I'm using CS4 on a Windows 7 64-bit system.  Keep control, something is always wrong on your installation.

    Richard Southworth

    .

  • How to call an exe of apex

    I have a ms agent exe I want to call during the loading of the first shape.
    Thanks for your help!

    Doug,

    This announcement is in German, but I think that you will be able to follow. This should do what you want.

    http://SQL-PLSQL-de.blogspot.com/2007/05/Betriebssystem-kommandos-aus-der.html

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • How can I download firefox for ubuntu, using windows?

    I need to download for ubuntu, but using windows fierfox

    You can select the version of Firefox operating system you want on this page:

    http://www.Mozilla.com/en-us/Firefox/all.html

  • How to call texting app for composing the sms of the CPP

    Hello

    I am trying to invoke the SMS app to send a msg predefined number.the predefined contact problem is how to define the documentation data.in they mention on pps-encoding. I have no idea on pps-encoding and to set the data.

    so, please help me solve this problem.

    thanking you.

    Thanks for the reply.

    I found another way.

    .

    request.setUri ("sms:"1234567890"?) body = Hai how are you");

    This makes my job

    It sets the number to 1234567890

    and the body of msg for 'hai how are you. "

  • How to get a certificate for the use of bitlocker?

    I want to use bitlocker to encrypt my hard drive but need a certificate from me. can someone help me?

    Click Start, click Help, and then seek help of BitLocker. It's all explained here. You then follow this process:

    1. Practice with Bitlocker on a USB flash drive until you are completely comfortable with the concept.
    2. Back up your hard drive.
    3. Perform a few spot-checks on another machine to ensure you can read the data.
    4. Follow all the recommendations for the backup of your certificates
    5. Encrypt the drive. This can take several hours.
    If you skip steps 1. . 4 then you are likely to join the Group of people who wanted a crack encryption scheme to the test, only to find out later that it is very resistant to the crack, unless you have a valid certificate. BitLocker does not distinguish between you (the owner) and someone else. You have a certificate, or you don't.
  • How to make a newsletter for mail using Muse?

    Hi, I m a novel in Muse. I need to publish a page as a body of a mail. It's just an electronic newsletter, but of course, I don't know how to convert my page design in an image. Can someone help me?

    This is not possible with Muse. HTML email using HTML, Muse makes heavy use of java script.

Maybe you are looking for