-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile ok, running fails at beginning. #58
Comments
Need a bit more info OH1KH please. What version of Lazarus are you using ? When you installed libqt5Pas, did you also install libqt5pas-dev ? Do you know the version of Qt5 you have there ? Davo |
OK, some superficial comments before we try and drill down. Firstly, if using Lazarus 2.2.6, you do not need to libqt5pas from this repo, thats only necessary for Lazarus 3.0 and later. However, I routinely used that libqt5pas with earlier Lazarus without any problems. Just not recommended. I'm guessing you used the Lazarus from your Fedora repo (good) ? The libqt5pas from there would have been fine. The app you are building was initially made with Lazarus 2.0.6 ? Again guessing, I would assume that was not, then based on Qt5, Qt5 was pretty rough back then, only becoming really useful with the 2.2 series (IMHO). So. have you tried to build a GTK2 version ? (Don't, please, even think about GTK3). Generally, in theory, Lazarus is widgetset agnostic. But in practice, a larger app is bound to have a few widgetset specific tweaks. On the other hand, if cqrlog is, out of the box, a qt5 app, disregard gtk2, its way past its use by date. Personally, I cannot suggest a magic fix from that (well prepared) debugging info you have provided. qrllog is rather a strange beast to be honest. Apparently still under active development but using Lazarus 2.0.6 and FPC 3.0.4 ? And U20.04. Only in the last week did I finally replace my U20.04, (thats why I have been a bit slow responding by the way). But I have not used Laz 2.0.6 or FPC 3.0.4 for some years. And you are using a Testing branch ? Testing branches have bugs ! Have you spoken to the author ? I suggest you revert back to a clean 2.2.6 and use the distro provided libqt5pas. I doubt my newer one is a problem but just to be sure. Thats a quick test. Next, a scary option, you could install Lazarus 2.0.6 and its Qt5 library and see if the problem you are experiencing is related to changes in Lazarus. You can get L2.0.6 from the Lazarus website but not the qt5Pas library, so, may be easier to use a VM ? You obviously have a VM system there ? Virtual Box ? Build a U20.04 VM, install its Lazarus and libqt5pas and do your testing there. The very fact that the author of cqrlog is sticking with Lazarus 2.0.6 might mean its dependent on something that has changed in later releases. Lazarus is quite a dynamic thing, changes a lot, FPC is pretty stable by comparison. David |
Firstly. I just informed what Lazarus version works. That is 2.2.6. It ,as well as FPC, are from Lazarus-ide(sourgeforce). Forget the L 2.0.6 it is out of date. Has been for years and compile with later versions both GTK2 and QT5 have resulted properly running version. If this is the future all(?) program windows must be recreated to get them running with L3.x compile. I can not believe it can be so that older source does not run any more if it compiles without warnings/errors, there must be bug somewhere. I am using test branch. I am author of test branch. Petr, the original author, has not been active with this program during past few years so most of develop has been done by me. I have spent hundreds, maybe some thousand hours with it. |
OK, let me get this straight.
So, it seems to me like there are three possible causes of this problem. They are - A problem in the Library here. A problem with Lazarus itself A problem in your code Finding which of the above two requires debugging the code, understanding what triggers the problem, usually making a simple demo of the problem. That usually leads to a understanding of the situation and a fix is obvious. Or, that simple demo forms the basis of a bug report. Lazarus developers respond pretty quickly to good bug reports. Please let me know how you go with the first point above. The other two points are better directed to the FPC/Lazarus forum or bug tracker. Davo |
OK. I give up. |
Hi OH1Kh, sorry, I did not see you had closed this until recently, hope you get this message, your branch of cq... does not have an issue facility ? Anyway, I had a look at the project, did not get far because it requires mysql and I don't have that installed. But there are a number of issues that need addressing, most are probably harmless but one of them may well be a pointer to your problem. These issues show up with gtk2 as well as qt5. So, I suggest you - As it is at present, those problems will possibly create instability, possibly with one widget set today and a different one tomorrow. Its a very big project, must be careful in big projects that these "little problems" don't build up. I also note it uses openssl, fpc 3.2.2 will not work with Openssl on a system unless libssl-dev is installed, I have no idea how to make it work on windows or mac. The solution is to use a FPC fixes, but that might just be another issue you don't need right now. Just some advice. Davo |
Hi!
Tried to compile this https://github.com/OH1KH/cqrlog/tree/loc_testing with QT5 widgets. At start it did not compile, but after some Googling I found that I must update libqt5pas too for my Fedora39.
After installed your rpm compile was ok, but program does not run. It dies right at start splash with QT error.
Normally I use Lazarus 2.2.6 and with that compile and run works ok. I just want to be prepared to situation where Fedora updates Lazarus to 3.x
The error is in this clip:
The program, when appears to start ok, claims many dependencies. Do not care. I can test it more if I just get it run a bit further.
The text was updated successfully, but these errors were encountered: