如何构建libQt5Declarative.so?

时间:2019-03-08 21:47:40

标签: qt build qt5 packaging qtdeclarative

构建# Pope Code--------------------------------------------------------------------------------------------------------------# # Variables------------------------------------------------------------------------------------------------------------# clock = 24.00 gameExit = False gameTick = True playername = "PlaceHolder" playerbag = [] playerhealth = 10 playerlocation = "PlaceHolder" # Functions------------------------------------------------------------------------------------------------------------# def nextTurn(clock): gameTick = True if clock < 24.00: clock += 1.00 # Items----------------------------------------------------------------------------------------------------------------# class item(): def __init__ (self, name, description, effect): self.name = name self.description = description self.effect = effect # Abilities ------------------------------------------------------------------------------------------------------------# class ability(): def __init__(self, name, description, usedescription, damage, accuracy, effect): self. name = name self.description = description self.usedescription = usedescription self.damage = damage self.accuracy = accuracy Psywave = ability( "Psywave", "A psyonic move", "This move does nothing", "5", "70", "No additonal effect" ) class entity: def __init__(self, name, description, bag, health, psyonics, abilities): self.name = name self.description = description self.bag = bag self.health = health self.psyonics = psyonics self.abilities = abilities testMonster = entity( "Test Monster", "A monster used for Testing" [5], 5, 0.25, Psywave, Psywave ) #Locations------------------------------------------------------------------------------------------------------------# class Zone(): def __init__(self, name, description, entities, nearby, actions): self.name = name self.description = description self.entities = entities self.nearby = nearby self.actions = actions testZone = Zone( "Test Zone", "This is the placeholder description", testMonster, "Nothing is nearby", "These are the actions you may complete" ) Forest = Zone( "Frenzied Forest", "This is the placeholder description", testMonster, "testZone", "These are the actions you may complete" ) # Entities-------------------------------------------------------------------------------------------------------------# class player: def __init__(self, name, description, bag, location, health, psyonics, abilities): self.name = name self.description = description self.bag = bag self.location = location self.health = health self.psyonics = psyonics self.abilities = abilities player = player( "Default", "This is the lplayer description", [], testZone, 20, 0.05, Psywave ) # Player Data----------------------------------------------------------------------------------------------------------# playerInput = "This is the placeholder string" playerBag = [] playerHealth = 10 placeHolder = ["Test"] # Graphics-------------------------------------------------------------------------------------------------------------# def startMenu(): print("===================================================================") print(" ") print(" Welcome to The Shroud ") print(" ") print(" ") print(" Enter Anything to continue ") print(" ") print(" ") playerInput = print("Type Here: ") # Game Loop------------------------------------------------------------------------------------------------------------# if gameTick == True and gameExit == False: gameTick = False playerInput = input("You are currently in", player.location, ".", player.location, "is", player.location.description) if playerInput not in player.location.actions: print("You cannot perform that action") elif playerInput == "End Turn": nextTurn() elif playerInput == "Bag": print("You look into your black backpack. You see", player.bag) elif playerInput == "Observe": playerInput = print("What would you like to observe?") if playerInput == "My items": playerInput = print("Which of your items would you like to see? You may look at", player.bag) if playerInput in player.bag: print(playerInput.description) else: print("You do not have that item!") elif playerInput == "Surroundings": print("You use the Sight observe your surroundings. you see a", player.location.description) elif playerInput == "Explore": playerInput = print("Where would you like to explore?", player.location.nearby) if playerInput in player.location.nearby: playerlocation = playerInput if gameExit == True: print("You have exited the game") 时,出现以下工件:

qtdeclarative

但是我正在寻找drwxr-xr-x 6 4.0K Mar 8 21:17 cmake/ -rw-r--r-- 1 2.1M Mar 8 21:19 libQt5QmlDevTools.a -rw-r--r-- 1 706 Mar 8 21:19 libQt5QmlDevTools.la -rw-r--r-- 1 1.1K Mar 8 21:19 libQt5QmlDevTools.prl -rw-r--r-- 1 761 Mar 8 21:07 libQt5Qml.la -rw-r--r-- 1 1.1K Mar 8 21:07 libQt5Qml.prl lrwxrwxrwx 1 18 Mar 8 21:12 libQt5Qml.so -> libQt5Qml.so.5.6.3* lrwxrwxrwx 1 18 Mar 8 21:12 libQt5Qml.so.5 -> libQt5Qml.so.5.6.3* lrwxrwxrwx 1 18 Mar 8 21:12 libQt5Qml.so.5.6 -> libQt5Qml.so.5.6.3* -rwxr-xr-x 1 5.1M Mar 8 21:12 libQt5Qml.so.5.6.3* -rw-r--r-- 1 924 Mar 8 21:12 libQt5Quick.la -rw-r--r-- 1 998 Mar 8 21:16 libQt5QuickParticles.la -rw-r--r-- 1 1.3K Mar 8 21:16 libQt5QuickParticles.prl lrwxrwxrwx 1 29 Mar 8 21:17 libQt5QuickParticles.so -> libQt5QuickParticles.so.5.6.3* lrwxrwxrwx 1 29 Mar 8 21:17 libQt5QuickParticles.so.5 -> libQt5QuickParticles.so.5.6.3* lrwxrwxrwx 1 29 Mar 8 21:17 libQt5QuickParticles.so.5.6 -> libQt5QuickParticles.so.5.6.3* -rwxr-xr-x 1 752K Mar 8 21:17 libQt5QuickParticles.so.5.6.3* -rw-r--r-- 1 1.3K Mar 8 21:12 libQt5Quick.prl lrwxrwxrwx 1 20 Mar 8 21:16 libQt5Quick.so -> libQt5Quick.so.5.6.3* lrwxrwxrwx 1 20 Mar 8 21:16 libQt5Quick.so.5 -> libQt5Quick.so.5.6.3* lrwxrwxrwx 1 20 Mar 8 21:16 libQt5Quick.so.5.6 -> libQt5Quick.so.5.6.3* -rwxr-xr-x 1 5.2M Mar 8 21:16 libQt5Quick.so.5.6.3* -rw-r--r-- 1 887 Mar 8 21:16 libQt5QuickTest.la -rw-r--r-- 1 1.3K Mar 8 21:16 libQt5QuickTest.prl lrwxrwxrwx 1 24 Mar 8 21:16 libQt5QuickTest.so -> libQt5QuickTest.so.5.6.3* lrwxrwxrwx 1 24 Mar 8 21:16 libQt5QuickTest.so.5 -> libQt5QuickTest.so.5.6.3* lrwxrwxrwx 1 24 Mar 8 21:16 libQt5QuickTest.so.5.6 -> libQt5QuickTest.so.5.6.3* -rwxr-xr-x 1 167K Mar 8 21:16 libQt5QuickTest.so.5.6.3* -rw-r--r-- 1 997 Mar 8 21:17 libQt5QuickWidgets.la -rw-r--r-- 1 1.3K Mar 8 21:17 libQt5QuickWidgets.prl lrwxrwxrwx 1 27 Mar 8 21:17 libQt5QuickWidgets.so -> libQt5QuickWidgets.so.5.6.3* lrwxrwxrwx 1 27 Mar 8 21:17 libQt5QuickWidgets.so.5 -> libQt5QuickWidgets.so.5.6.3* lrwxrwxrwx 1 27 Mar 8 21:17 libQt5QuickWidgets.so.5.6 -> libQt5QuickWidgets.so.5.6.3* -rwxr-xr-x 1 97K Mar 8 21:17 libQt5QuickWidgets.so.5.6.3* drwxr-xr-x 2 4.0K Mar 8 21:17 pkgconfig/ 。我可以在某个地方设置构建标记来构建此工件吗?

似乎那里有包含该文件的RPM,因此肯定有一种构建它的方法:https://rpmfind.net/linux/rpm2html/search.php?query=libQt5Declarative.so.5

1 个答案:

答案 0 :(得分:0)

根据documentation,从Qt 5开始,Qt Declarative已重命名为Qt Quick1。因此,您必须链接libQtQuick.so。

但是,它已在Qt 5.6中删除。您应该移植您的应用。