[SOLVED] Makepkg makes qmake or make act weird and causes trouble

I am trying to build an Arch package from a Qt app. The app is split into some libraries that are compiled with the main application. Installation instruction for the whole app are defined in src.pro (see the hierarchy below), which are then written into the Makefiles that are generated on-the-fly during the build process. When I run 'qmake && make && make install' manually, everything goes fine. But when I try to build the package using a PKGBUILD, for some reason the Makefile generated based on the src.pro is missing installation instruction for the libraries (lib1, lib2, etc.).
I don't really have any idea of what is the problem. I tried to study the output of the make process and it seems like that when running makepkg, qmake first runs on each subdirectory to generate the Makefiles and only then begins the actual build process. Manually running make first builds one directory, then the second one and so on and only generates a Makefile when entering a directory. Since the libraries marked for installation do not exist in the beginning of the build process, they are not put into the Makefile at all, I think.
My first idea for a solution was to move the installation instructions into the libraries' own .pro files but that didn't seem to change anything. The build() process in the makepkg only runs qmake, make and make install - what I also do manually.
The directory structure of the project is like this:
project/
    project.pro
    src/
        src.pro
        lib1/
            lib1.pro
        lib2/
            lib2.pro
Last edited by Verge (2011-10-07 19:07:33)

After many hours I finally came up with a solution that was too easy... I only needed an "install.pri" file in which I added two lines:
target.path = /path/
INSTALLS += target
Next I just included that file into each lib's .pro file and now the makepkg process works. "target" is somewhat a magical variable for qmake.
I consider this solved.
Last edited by Verge (2011-10-07 19:08:22)

Similar Messages

  • Does low disk space make my Macbook Pro act weird?

    Hi! I have an early 2011 15" MBP with a 750gb hard disk space. Just the other day, while I was using photoshop with my laptop, the screen went off so I had to reset it. My laptop acted weird after: doing a screen split (the right part goes to the left and vice versa), one time it had weird pixels that were scattered all over, recently, a blue striped screen. All of this froze my laptop by the way. And all of this happened after a few minutes of usage. And I noticed if I use photoshop, it would only take a little amount of time before it would act weird again compared to when I don't. All the times caused me to reset my laptop by holding the power button.
    Yesterday, it wouldn't boot past the gray screen after resetting about five times. But after it turned off by itself, I tried turning it on again and it booted normally. And I could use it normally again, but with extra care (using it beside an electric fan, checking the temperature with iStat pro).
    I tried the extended Apple Hardware Test but it told me no trouble was found.
    Another thing was, everytime my laptop froze and did the weird screen thingy, my laptop was hot.
    I tried to use it again yesterday to just surf the web, and after some minutes it was still functioning. But I remember one time I was only surfing the web, it did the split screen and froze after almost an hour or so.
    Also, my laptop heats up quickly compared before. And can stand being hot for a long time until now.
    I haven't used any heavy applications besides photoshop to test my laptop's weird behavior by the way.
    So I guess it's because of the laptop's heat. Because I can only use it for a very short time when using photoshop but I can use my laptop for a longer time when only surfing the web.
    I also noticed that if I was forced to reset my laptop and turn it on again, it would boot longer than normal. But if I was able to shut it down properly and turn it on again, it would boot normally.
    And, just a while ago, I remembered my laptop's disk space was only 14gb from 750gb (downloaded a lot of series since I bought my laptop). So maybe what's causing the heat was the low disk space. Just a guess.  So is it possible that my laptop is behaving weird because of the low disk space?

    The problem is back. But this time, it only happened when I used photoshop or played a 1080p video. I was using my laptop for almost 3 hours when i decided to use photoshop. It froze as soon as it started and made my screen display weird pixels. I restarted and tried to open photoshop again and this time, it froze. I did it the third time and after using PS for a minute, it did the split screen. After restarting yet again, I tried to play a 1080p video to just test my laptop. It froze as soon as VLC started. But when i only surf the web (which is the only thing I did before using PS), everything goes well. So I guess it really is the GPU and not the logic board or some other parts. I've decided to just have my laptop checked.

  • Apps acting weird and doing actions against my will.

    Hello I'm here to write about the latest issue I got on my iPhone 5c, while I was writing a message my app started acting weird. Successively I moved to another app and it did the same thing so I suppose it's a general problem.
    Ex: while I write my iPhone clicks and opens other options on the page by itself.
    While I scroll down on tumblr app it clicks other options by itself like unfollow, changes pages, as if I clicked those options but I didn't.
    Like on whatsapp for instance, while I write it opens the user id, the user info, shuts the keyboard down as if I did it but I didn't at all.
    Also now while I'm here writing this sometimes it acts as if I clicked on he top bar and opens the http:// of this page, but I didn't.
    While I'm on drafts/notes app it does the same, I wrote a long message last night hoping it would help being that out of an app which needs connection but it happen again; while I was about to finish it clicked the delete button by itself and everything disappeared.
    Also now again, I luckily copied this email line by line in order to prevent it from delete everything I wrote again.
    I just need to know if there's something I can do or if I should just take it back to an apple store since it's still pretty new..

    Hi there NellieKlash,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    iPhone, iPad, iPod touch: Troubleshooting touchscreen response
    http://support.apple.com/kb/ts1827
    -Griff W.

  • Even after the Mavericks Mac Mail update and showing my "All Mail" folder, Mail.app is still acting weird and slow.  Any further suggestions?

    Even with the recent Mac Mail Mavericks update and showing my "All Mail" Gmail folder, Mail.app is still acting funky and slow.  Any further suggestions for getting Mail.app back to it's pre-Mavericks state?

    Your description of the problem is rather vague, but I'll take a guess at what you mean.
    Quit Mail if it's running. Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    sqlite3 L*/C*/*.mail/*/L*/*/*/C*.db vacuum; sqlite3 L*/M*/*/*/E*ex vacuum
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V).
    You should see a new line ending in a dollar sign (“$”) appear below what you entered. If not, press return. You can then quit Terminal and relaunch Mail. Test.
    Note: This procedure will have no effect unless you quit Mail when you begin.

  • Import tif files as titles acting weird and wrong

    I'm a noob to iMovie so thanks for the help. I am importing ordinary tif files as titles and when I playback the titles, visually they do this weird "swelling" and off-centering. There should be a simple dissolve to each frame to make a title build. All the tifs, which are spot-on registered out of PhotoShop, shift around and do this weird "swell" and aren't smooth at all. What gives?
    Thanks!

    KingCormack wrote:
    ... I am importing ordinary tif files as titles and when I playback the titles, visually they do this weird "swelling" and off-centering. ...
    iM is set to add a Ken Burns effect to any added still.
    you can switch-off this behavior in your Project's setting, Apple-J
    select your still/clip in the Project Window, select the Crop Tool, select 'fit'.
    and Welcome KC to the  boards …

  • Turns on when connected, acts weird and wont enter recovery m

    ?Ok, so everything was fine this morning then when I come back from town I want to charge my Zen (4GB flash) to find that when I connect it, it turns on but doesn't dock. The player just turns itself on, other times it will flash on and off. I thought this would have something to do with SP3 since all help with connection problems is with SP2 and someone said they have problems with their Zen and SP3 so I rolled back to SP2. No dice. I repair the software and re install and again no dice. Donc I try to reformat/rescue/recovery mode whatever and that doesnt work! Holding play while turning it on, while connecting etc etc and nothing. Please help I see no other way and I'm just after getting a new one 2 months ago when my old one burnt out.

    Have you tried connecting it to a different computer? If not you should to see if the behavior is consistent.
    The Zen is a USB device. Windows nati'vely contains a USB driver for generic USB devices. Windows will recognize the Zen as a USB device -- even if only as an "unknown" one -- without any additional software/drivers from the Creative CDROM. If Windows can't see the Zen then either your Windows USB driver is broken, your USB ports are broken, the Zen is broken or some combination of them are broken. If you have other USB devices on your computer that are detected and work properly then it is unlikely the generic USB driver is broken (or the USB port that device is using).
    If the Zen is functioning properly there is no reason it shouldn't boot to its internal Recovery Mode menu after a reset. Have you ever entered Recovery Mode before? If not you should make sure you are following the proper procedure. The Zen will boot to the Recovery Mode menu even with the firmware deleted. It doesn't require any special drivers and doesn't involve Windows. If that doesn't work then, frankly, the Zen is probably broken (which would also explains why Windows can't see it).
    The instructions you followed regarding reinstalling the Creative driver for the Zen is based upon the assumption the Zen player is functioning properly. If the Zen isn't working properly it really doesn't matter that you uninstalled it and/or can't reinstall it. It serves no purpose without a working player. If the Zen *is* working then Windows will notice it as new USB device when hardware is rescanned and go through the process of installing a driver.
    I know you're getting frustrated, but if the player itself is malfunctioning then there is nothing in software that is going to fix it. That applies to all players. That is why the Recovery Mode menu test is important. The ability to gain access to that is a basic feature of a functioning player.

  • Iphoto 11, 9.1.3, acting weird and shows events empty while working on them...

    While I'm working on photos in any given events i often toggle between info view and edit view. also open and close images randomly using spacebar. sometimes, the photo will simply disappear when toggling from info to edit and then when minimizing it and going back to event view… the event is shown as empty!
    this is happening randomly at different times with different events. i've already rebuilt the library using iPhoto library manager and this is happening with the new library as well.
    also, as i mentioned in another thread, its not loading my videos to iPhone 4 even when 'include videos' is checked in itunes.
    Neerav

    Thank you.  I have been waiting for someone else to report this issue for a couple weeks.  I had this start happening in 9.1.2 and submitted feedback and posted on forums, but no one seemed to experience the same issue.  This only happens on one of my Macs.  A late 09 iMac.  I rebuilt and vacuumed the hard drive.  Deleted preferences and repaired permissions.  Started a brand new library.  Nothing solved it.  Finally I completely deleted every file associated with iPhoto 11 and reinstalled it, then manually rebuilt my library.  Yet the issue persists.
    I really hope Apple fixes this in the next update.  It is annoying because I use iPhoto at work and often need to show people photos, then iPhoto does this and I start to look like an idiot as I exit and re-enter the event, trying to force the photos to reappear.
    Thank you for letting me know I'm not alone.

  • Display Auto adjust brightness acting weird and flickering

    Last couple of months I get a fair amount of flickering on my screen. As far as I can tell, there
    is no specific area that it is flickering in. After checking my settings for Auto brightness,, I find that
    the box that is there for ticking off "Automatically adjust brightness" is unticked, and the brightness is
    moved to around the 3/4 brightness area.  I am in my basement which is fairly dark, so basically I am
    trying to find out about the flickering that goes on, and have a feeling that when the brightness is diminished, it
    causes/caused the flickering. So, I raised the brightness to extreme(right to the end of the scale) and continue
    to have the box "Automatically adjust brightness" UNCHECKED.    Sooner or later,, something must trip off the
    Autobrightness,, because I eventually notice the flickering going on,, then I go to my settings to check the brightness,
    and find that the slider is back to 3/4 and still the Autobrightness box is Unchecked. This happens all by itself.
    Basically , #1,, whether it is on Auto or Not,, I shouldn't get any flickering, and #2,, my display shouldn't on its own
    adjusting automatically the brightness by itself, unless I check the box correct?  How can I get my screen brightness
    to stick ?

    To close out my original post, I never did managed to solve my flickering problem. I did every trick in the book, including SMC  resetting PRAM etc. So, just as I had given up trying to fix, low and behold, my left side of the
    screen one fine morning became rather dim. I knew that something , like backlight had gone on it. So, I still had
    lots of warranty, brought it in. This time, because of it being a rather obvious defect upon looking at my screen.
    The genius ordered a new LCD and backlight .
    So far, no flickering, however, I still have the brightness level that drops down from a full brightness, no matter if I check off "automatically adjust brightness" or not. This being in a relatively dark environment.
    I can imagine that there are many people still with this problem, with no obvious solutions that are 100 % effective.

  • BBM chat is acting WEIRD and it is VERY FRUSTRATING

    hello there,
    it seems that for some reason with a specific person that i talk to, whenever i open up a chat with them it goes to the very top of the chat (and seems to not go to the very beginning of our chat history might i add).
    this has made it very frustrating and difficult to have a conversation with my friend and girlfriend. i literally have to always get out of the chat, click back in, get out of the chat, click back in....just to see what they or i wrote
    is this a bug? is there a fix? it seems to be happening with those that i am talking with a lot and have a huge history with. 
    please advise asap as my whole social experience right now is driving me up the wall and making communicating with my loved ones increasingly difficult
    thank you

    Hey raysai,
    Welcome to the BlackBerry Support Community Forums.
    Thanks for the question.
    What version of BlackBerry 10 are you currently using?  This can be found by going to Settings>About.  Also if you end the BBM chat and start a fresh chat with the contact, does the issue come back?  Do you find this is happening with a days worth of history or a weeks worth of history?
    I look forward to your reply.
    Cheers.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • Keyboard Typing Acting Weird and Randomly

    When I type something on the keyboard, it does weird commands.
    *Especially when I push the Command, alt/option, control, fn button, it displays symbols on the screen* and what it does is open up printer settings, save as dialogs, etc.
    maybe somehow when the Command, alt/option, control, fn button are pressed it activates a keyboard shortcut?
    Is this a defect? or can i fix the settings?
    I tried restoring default on basic function settings but hasn't worked.
    For example, when I press "m" on the keyboard, it opens up finder. When I type I get weird characters.
    Also what's strange is the cap lock button randomly flashes on and off without me doing anything(this is sometimes)

    Hi,
    It sounds like there's something wrong with your keyboard. Is there any possibility that you might have spilled some liquid onto it? One way to check to see if the problem is with your keyboard, and not with the operating system, is to temporarily connect an external USB keyboard to your computer. If everything works fine when using the external keyboard, then your Macbook Pro's keyboard is the cause of the problem. If you continue to have the same problem when using an external keyboard, then the cause is either your operating system or some other app or service that's intercepting and/or changing keystrokes.
    Hope this helps,
    Ken

  • Ringer acting weird and videos won't play

    My daughter got an iPhone 5 earlier this month.  At first, the sounds were acting strange (phone would vibrate but not ring during calls, texts, etc., although talking on the phone worked)  and sounds would sometimes work and sometimes not.  Videos would also not play at all (although it is not a user error as the has an iPad 3 that works the same way.)  At first we thought the external speaker was broken or on its way to breaking, but when I called her and she tried putting it on speaker, all sound began working--ringers, phone calls, everything.  Even videos will work now.  Don't know what is going on........?  And if it breaks permantently, can we get it fixed free of charge?  Thanks.
    --Lindel

    Welcome to Apple Discussions!
    Do they work in iTunes? Have you played them there?
    Also, try this...
    Restoring Your iPod
    Merry Christmas
    btabz

  • Mail acting weird and lost all emails yesterday

    I live in Australia using the Telstra Bigpond internet services. Bigpond is a POP server (POP3 I think) and is in the process of migrating customers to the IMAP system. I am on the POP system.
    I successfully, I thought, installed the Mavericks update and all seemed well until I noticed that when I went to collect my mail from the Bigpond server I would see the progress bar (for the incoming messages) flash quickly across the screen saying "10 of 10" but no messages were in my 'IN BOX'. I checked the Bigpond server and there were none sitting on the server and all had been delivered to my in box - supposedly!.
    I thought I would test the outgoing and incoming by sending a test message and 3 of 3 were sent (I only sent one). When the message come back it came back in a flash as 6 of 6 but was not in my inbox at all.
    I contacted Apple support (still working with them on this problem) and we made some changes to my junk mail settings and removed all 'Rules' and now the emails are coming in - I have lost a full days emails and don't know if I can get them back so far I can't. The mail program is still stating 3 of 3 incoming when just one message comes in or 4 of 4 when one is sent (the numbers being sent and received bear no relationship to the numbers coming in nor being sent and are completely, it seems, random.
    I also have a 'flagged' message inidicated in the flagged box under the 'Inbox' but no message is there at all and I cannot remove the flag.
    I have not done any changes to my mail program at all to create this problem that did not exist before I installed Mavericks and I have not attempted to try anything with iCloud mail before I can see a resolution to my laptop mail problems.
    For information my 15" macbook pro is compatible with the Mavericks upgrade and I have no other obvious problems at this point that I can identify - Photoshop CS5 seems to be working OK and I have had no problems with the Windows 7 partition (bootcamp) after installing Mavericks. Just Mail at the moment.
    Any thoughts on how I can remove the 'flag' for a non existant message and get the incoming and outgoing 'counter' to read accurately?
    Thanks

    Hi Tuttle,
    I'm glad you are not experiencing the problem. However, there is NO confusion here - the numbers are random and do NOT represent the incoming or the outgoing numbers of messages as you would normally expect. This morning I got 195 of 195 and got no messages coming in at all! I have been using Macs for more than a decade and this has never happened before. This has only happened for the first time when I changed to Mavericks and is happening on both of my laptops (macbook air and Macbook Pro 15inch) - it is NOT the computer.
    "To my eyes, the numbers we see in the Activity pane increase in increments of 1 with each message that is sent or received by a given mail account, starting with "1 of 1" after Mail is launched in any given session"  - of course this is what you would expect to happen.
    If the problem doesn't exist for you then your comments, as well intended as they are, are not really going to help - it is a bit like me telling you it is raining outside but you are in a railway tunnel - what rain?  I am grateful for your contribution and interest so please don't take offence. The issue is known to Apple Techs - they tell me that they can see the same thing happening on their computers - and their explanation of why it is happening is somewhat frustrating and definitely not sitting well with me.
    I suppose at the end of the day, if I get my emails I should not be too concerned but for those having this experience it is still a bit lame.
    Regards to all....

  • I was syncing my ipod (1st gen) while downloading an update to Itunes and now i get the sad ipod icon...can someone help me out or explain how to get it fixed? cause the Apple STore is acting weird and I don't know what to do

    basically the title says it all...I've been using this for the longest time and now after i was syncing the ipod while downloading an update for Itunes the sad face ipod icon shows up and everything i try won't fix it. I'm wondering if anyone knows how they can help me fix it...please!

    The Sad face icon is usually a very good indication of a hardware malfunction or failure usually with the iPod's Hard Drive, which would also explain the loud clicking noise you are hearing.
    I assume you have seen this article yet?
    iPod display's a sad iPod icon
    If you are up for the challenge, you can also try all of the troubleshooting mentioned described by another forum member Mitch 751.
    https://discussions.apple.com/thread/1193481?start=0&tstart=0
    B-rock

  • My ipad is acting weird and won't turn on.

    it goes from trying to turn on (log scrren) to grey sceen and then to black screen. It has been doing that for the past hour and I don't know what to do.

    Frozen or unresponsive iPad
    Resolve these most common issues:
        •    Display remains black or blank
        •    Touch screen not responding
        •    Application unexpectedly closes or freezes
    http://www.apple.com/support/ipad/assistant/ipad/
    iPad Frozen, not responding, how to fix
    http://appletoolbox.com/2012/07/ipad-frozen-not-responding-how-to-fix/
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    Black or Blank Screen on iPad or iPhone
    http://appletoolbox.com/2012/10/black-or-blank-screen-on-ipad-or-iphone/
    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    Home button not working or unresponsive, fix
    http://appletoolbox.com/2013/04/home-button-not-working-or-unresponsive-fix/
    Fixing an iPad Home Button
    http://tinyurl.com/om6rd6u
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
     Cheers, Tom

  • Screen on ZEN V PLUS is acting weird and getting dar

    <font face="Verdana" size="4">Hey. My screen was fine but I clean it, and I think the problem is on the inside!<font face="Verdana" size="4">?<font face="Verdana" size="4">Ok, ok...umm.<font face="Verdana" size="4">?<font face="Verdana" size="4">First I noticed my screen was normal, but on the corners, it started getting dark. Soon my player itself got darker. The words were hard to see. Now it is getting annoying, the words are half dark, half light.<font face="Verdana" size="4">I have no clue what happened and I need help!<font face="Verdana" size="4">?<font face="Verdana" size="4">Thanks!

    Hi. I have two V Plus players and one has suddenly gone almost completely black. It plays fine. I have updated the firmware with the Rescue Tool and reset the unit through the little pinhole on the side. Still no display.
    So, I contacted Customer service. They responded quickly the same day with an RMA number and instructions for returning it for inspection.
    The player was a Christmas gift so even though I bought it online in November, it never got used till Christmas. Guess what? They're telling me the 90 days has expired and they want $25 NON_REFUNDABLE fee to look at it. Even though it has only been in use for 64 days. I just emailed them saying this was not acceptable. I'll post their response, good or bad so other people know what kind of company we're dealing with.
    Judging from these message boards, it appears the darkening screen is a recurring problem that the company should investigate.

Maybe you are looking for

  • Auto-correction differences between iOS versions

    To make a long story short, my location is Icelandic and I use the Icelandic keyboard provided by Apple on my iPhone 3GS. Back when I was on iOS 3.x the iPhone built up a dictionary and offered to correct my spelling of Icelandic words.  Very conveni

  • N8 Ovi maps - Places

    I drive quite a bit and rely on GPS for destinations.  Ovi maps is simple and easy to use.  It is about 85% workable but I use it.  Problem - I went into a building and shut off GPS as normal.  When I came out and turned on the GPS on, all my Places

  • How I can extend JSlider to work with non-integer values?

    I need to create slider with non-integer scale. How I can do it?

  • Weblogic Portal webflow Error

    We have been getting following error even after synchronizing using EBCC <Jul 8, 2003 6:41:56 PM IST> <Warning> <Webflow> <Webflow could not resolve a de stination given: appname [null], namespace [repair_shipment_tracking], origin [s upport_repair_s

  • BO Documentation

    Hi Guys, Is there any website that has technical documentation for the various BO Products (Voyager, Crystal Reports, Web Intelligence, Live Office etc...)? I went to the website: http://diamond.businessobjects.com But i couldn't find any detailed te