It is currently Mon Sep 24, 2018 12:33 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: [Done] - [XUbuntu1604x64] Example Gadget.pb qt subsystem
PostPosted: Thu Jun 07, 2018 10:48 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jul 19, 2013 7:36 am
Posts: 160
Location: Novosibirsk
Requester.a(MessageRequester.o):(.qtversion[qt_version_tag]+0x0): undefined reference to `qt_version_tag'
collect2: error: ld returned 1 exit status

_________________
Dawn will come inevitably.
His (http://translate.yandex.ru/) English is not as good as we would like
If the English text is not correct, please correct me in private message


Last edited by useful on Thu Jun 07, 2018 10:58 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: [PB570B1]-[XUbuntu1604x64] Exaple Gadget.pb qt subsystem
PostPosted: Thu Jun 07, 2018 10:50 am 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13371
Location: France
Could you check with qt version you got installed ?


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB570B1]-[XUbuntu1604x64] Example Gadget.pb qt subsyste
PostPosted: Thu Jun 07, 2018 11:18 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jul 19, 2013 7:36 am
Posts: 160
Location: Novosibirsk
xubuntu 16.04 last upgrade
as a result of the recommended
Dependencies:
The minimum Qt version is 5.5.
The following should install everything you need to compile (Ubuntu). The runtime dependencies should be available on any recent Linux distribution already:
sudo apt-get install qtbase5-dev qttools5-dev qtmultimedia5-dev qtdeclarative5-dev libqt5svg5-dev libqt5webkit5-dev libqt5multimedia5-plugins

5.5.1 !!!

_________________
Dawn will come inevitably.
His (http://translate.yandex.ru/) English is not as good as we would like
If the English text is not correct, please correct me in private message


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB570B1]-[XUbuntu1604x64] Example Gadget.pb qt subsyste
PostPosted: Thu Jun 07, 2018 11:29 am 
Offline
Addict
Addict
User avatar

Joined: Tue Mar 02, 2004 1:20 pm
Posts: 976
Location: Amphibios 9
useful wrote:
Requester.a(MessageRequester.o):(.qtversion[qt_version_tag]+0x0): undefined reference to `qt_version_tag'
collect2: error: ld returned 1 exit status

same here. Even with a simple testcode:

Code:
OpenWindow(0, 100, 200, 800, 800, "simple test", #PB_Window_SystemMenu)

ButtonGadget(0, 20, 20, 200, 30, "!")

Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow



qtdiag wrote:
Qt 5.5.1 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 5.4.0 20160609) on "xcb"
OS: Linux Mint 18.3 [linux version 4.13.0-43-generic]

Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2 RTM HLE

Library info:
PrefixPath: /usr
DocumentationPath: /usr/share/qt5/doc
HeadersPath: /usr/include/x86_64-linux-gnu/qt5
LibrariesPath: /usr/lib/x86_64-linux-gnu
LibraryExecutablesPath: /usr/lib/x86_64-linux-gnu/qt5/libexec
BinariesPath: /usr/lib/x86_64-linux-gnu/qt5/bin
PluginsPath: /usr/lib/x86_64-linux-gnu/qt5/plugins
ImportsPath: /usr/lib/x86_64-linux-gnu/qt5/imports
Qml2ImportsPath: /usr/lib/x86_64-linux-gnu/qt5/qml
ArchDataPath: /usr/lib/x86_64-linux-gnu/qt5
DataPath: /usr/share/qt5
TranslationsPath: /usr/share/qt5/translations
ExamplesPath: /usr/lib/x86_64-linux-gnu/qt5/examples
TestsPath: /usr/tests
SettingsPath: /etc/xdg

Standard paths [*...* denote writable entry]:
[...]

File selectors (increasing order of precedence):
de_DE unix linux linuxmint

Network:
Using "OpenSSL 1.0.2g 1 Mar 2016", version: 0x1000207f

Platform capabilities: ThreadedPixmaps OpenGL WindowMasks MultipleWindows ForeignWindows NonFullScreenWindows NativeWidgets WindowManagement SyncState RasterGLSurface

Style hints:
mouseDoubleClickInterval: 400
mousePressAndHoldInterval: 800
startDragDistance: 10
startDragTime: 500
startDragVelocity: 0
keyboardInputInterval: 400
keyboardAutoRepeatRate: 30
cursorFlashTime: 1000
showIsFullScreen: 0
passwordMaskDelay: 0
passwordMaskCharacter: U+25CF
fontSmoothingGamma: 1
useRtlExtensions: 0
setFocusOnTouchRelease: 0
tabFocusBehavior: Qt::TabFocusBehavior(TabFocusAllControls)
singleClickActivation: 0

Additional style hints (QPlatformIntegration):
ShowIsMaximized: 0
ReplayMousePressOutsidePopup: 0

Theme:
Styles: Fusion,Windows System font: "Sans Serif" 9
General font : "Sans Serif" 9
Fixed font : "monospace" 9
Title font : "DejaVu Sans" 12
Smallest font: "DejaVu Sans" 12

Screens: 1
# 0 "HDMI2" Depth: 24 Primary: yes
Geometry: 1920x1080+0+0 Available: 1920x1051+0+0
Physical size: 597x336 mm Refresh: 60 Hz
Physical DPI: 81.6884,81.6429 Logical DPI: 96,96
DevicePixelRatio: 1 Primary orientation: 2
Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0

LibGL Vendor: Intel Open Source Technology Center
Renderer: Mesa DRI Intel(R) HD Graphics 630 (Kaby Lake GT2)
Version: 3.0 Mesa 17.2.8
Shading language: 1.30
Format: Version: 3.0 Profile: 0 Swap behavior: 0 Buffer size (RGB): 8,8,8

_________________
Can't decide if i need a hug, an XXL coffee, 6 shots of vodka or 2 weeks of sleep.


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB570B1]-[XUbuntu1604x64] Example Gadget.pb qt subsyste
PostPosted: Thu Jun 07, 2018 2:08 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13371
Location: France
Seems like Qt wants the exact version for which it has been compiled (we used Qt 5.7). Dunno how to solve this TBH


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB570B1]-[XUbuntu1604x64] Example Gadget.pb qt subsyste
PostPosted: Thu Jun 07, 2018 2:45 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jul 19, 2013 7:36 am
Posts: 160
Location: Novosibirsk
The problem is simple to solve!
1. To admit that the team of Fantaisie Software is not possible to cover the entire Linux world.
2. To keep the situation from 5.62 (5.46) as it is.
3. Choose one distribution for the development of the future lts 5.70 version and achieve the correct operation of all that is planned.
4. By the forces of the community concerned gradually spread the experience to other distributions.
(including the organization of the corresponding build servers)
5. Given the fact that the spirit of PureBasic corresponds to lubuntu and its movement in the direction lxqt take lubuntu(lxde) 18.04 a basis and lubuntu(lxqt) for future development

_________________
Dawn will come inevitably.
His (http://translate.yandex.ru/) English is not as good as we would like
If the English text is not correct, please correct me in private message


Last edited by useful on Thu Jun 07, 2018 2:57 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: [PB570B1]-[XUbuntu1604x64] Example Gadget.pb qt subsyste
PostPosted: Thu Jun 07, 2018 2:53 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Jun 06, 2005 2:35 pm
Posts: 1180
Location: germany
Maybe static linking is an option for the lib/module that is used if qt subset is used?

http://doc.qt.io/qt-5/linux-deployment.html


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB570B1]-[XUbuntu1604x64] Example Gadget.pb qt subsyste
PostPosted: Thu Jun 07, 2018 3:08 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13371
Location: France
Qt is LGPL which means it can't be statically linked without buying a license (or redistributing all your objs to allow a relink along side the exe).


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB570B1]-[XUbuntu1604x64] Example Gadget.pb qt subsyste
PostPosted: Thu Jun 07, 2018 3:23 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Dec 29, 2011 5:03 pm
Posts: 270
Fred wrote:
Seems like Qt wants the exact version for which it has been compiled (we used Qt 5.7). Dunno how to solve this TBH

Seems crazy...surely there’s a way to turn that off?


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB570B1]-[XUbuntu1604x64] Example Gadget.pb qt subsyste
PostPosted: Sat Jun 09, 2018 4:52 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Apr 21, 2005 2:38 pm
Posts: 1555
Location: Germany
I have done tests with PB 5.70 Beta 1 and a simple HelloWorld program on several Linux distributions. Unfortunately it seems that indeed Qt has to be a recent version of 5.7.1 or newer. Older versions like 5.5.1 (for example in Linux Mint 18.3) don't work and display the following error:

Image

These distributions fail to start PB 5.70 Beta 1 at all:
- Bodhi Linux 4.5.0 x86 with Moksha (IDE doesn't start and segmentation fault when starting from console, PB 5.62 and older run like a charm)
- Debian 8.10 x86 'Jessie' with Xfce (IDE doesn't start and when started from console CXXABI_1.3.9 and GLIBCXX_3.4.21 are not found, PB 5.62 and older run like a charm)
- SliTaz 5.0-rolling x86 with Openbox (IDE doesn't start and when started from console CXXABI_1.3.8, CXXABI_1.3.9 and GLIBCXX_3.4.21 are not found, however PB did never run on this distribution)

These are the distributions tested with PB 5.70 Beta 1 and subsystem qt:
- Fedora 27 x86 with Gnome 3 (programs are compilable but terminate with illegal memory access)
+ Kubuntu 18.04 x86 with KDE
- Linux Mint 18.1 x64 'Serena' with Cinnamon
- Linux Mint 18.3 x64 'Sylvia' with Cinnamon
+ Linux Mint 19 x86 'Tara' with Cinnamon
- Lubuntu 16.04 x86 with LXDE
+ Lubuntu 18.04 x86 with LXDE
+ Ubuntu 18.04 x86 with Gnome 3 (Unity theme)
+ Ubuntu Budgie x86 with Budgie
- Ubuntu MATE 16.04 x86 with MATE
+ Ubuntu MATE 18.04 x86 with MATE
- Xubuntu 16.04 x86 with Xfce
+ Xubuntu 18.04 x86 with Xfce

By the way, the only distribution running out of the box with subsystem qt (so freak's apt-get wasn't necessary) was Lubuntu 18.04.

Summarized you have at least to use a recent Debian-derived distribution like 17.10 or better 18.04 in order to test the new subsystem qt. The only tested distribution with RPM packages (Fedora 27) compiles with subsystem qt without an error but the compiled executable aborts with an illegal memory access.


Last edited by Shardik on Tue Jul 10, 2018 9:19 am, edited 7 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: [PB570B1]-[XUbuntu1604x64] Example Gadget.pb qt subsyste
PostPosted: Sun Jun 10, 2018 1:16 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Jan 20, 2014 6:32 pm
Posts: 169
I am using Manjaro no problems yet..

I like the new Qt stuff.

_________________
WARNING: I dont know what I am doing! I just put stuff here and there and sometimes like magic it works. So please improve on my code and post your changes so I can learn more. TIA


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB570B1]-[XUbuntu1604x64] Example Gadget.pb qt subsyste
PostPosted: Sun Jun 10, 2018 1:54 am 
Offline
Addict
Addict
User avatar

Joined: Tue Mar 02, 2004 1:20 pm
Posts: 976
Location: Amphibios 9
vwidmer wrote:
I like the new Qt stuff.

would you be so kind to test if the WebGadget works for you?

Thanks in advance & Greetings ... Peter

_________________
Can't decide if i need a hug, an XXL coffee, 6 shots of vodka or 2 weeks of sleep.


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB570B1]-[XUbuntu1604x64] Example Gadget.pb qt subsyste
PostPosted: Sun Jun 10, 2018 4:18 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Jan 20, 2014 6:32 pm
Posts: 169
Yes the webgadget is working beautify that is one thing I am really liking.

_________________
WARNING: I dont know what I am doing! I just put stuff here and there and sometimes like magic it works. So please improve on my code and post your changes so I can learn more. TIA


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB570B1]-[XUbuntu1604x64] Example Gadget.pb qt subsyste
PostPosted: Mon Jun 11, 2018 9:31 am 
Offline
Addict
Addict
User avatar

Joined: Thu Apr 21, 2005 2:38 pm
Posts: 1555
Location: Germany
Kiffi wrote:
would you be so kind to test if the WebGadget works for you?
I have tested successfully the first example from PB's help for WebGadget with subsystem qt on these distributions:
- Kubuntu 18.04 x86 with KDE
- Ubuntu 18.04 x86 with Gnome 3 (default Unity theme)
- Ubuntu Budgie 18.04 x86 with Budgie

The second example is also working but the navigation callback doesn't work because the navigation callback is not implemented for GTK2, GTK3 and Qt (it's only implemented on Windows).


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB570B1]-[XUbuntu1604x64] Example Gadget.pb qt subsyste
PostPosted: Mon Jun 11, 2018 11:25 am 
Offline
Addict
Addict
User avatar

Joined: Tue Mar 02, 2004 1:20 pm
Posts: 976
Location: Amphibios 9
@vwidmer & @Shardik: thanks a lot for your investigations!

Greetings ... Peter

_________________
Can't decide if i need a hug, an XXL coffee, 6 shots of vodka or 2 weeks of sleep.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye