Home  
Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
68 user(s) are online (52 user(s) are browsing Forums)

Members: 0
Guests: 68

more...
Support us!
Recent OS4 Files
OS4Depot.net



« 1 (2) 3 4 5 »


Re: Work on Qt 5.8 has begun :)
Just can't stay away
Joined:
2009/10/7 0:11
From Copenhagen
Posts: 1186
So far so good. When linking c++ with gcc 5.3.0, I get these link errors:

Quote:
ScratchHD:adtools-os4-20151223-268/ppc-amigaos/bin/ld: cannot find -lgcc
ScratchHD:adtools-os4-20151223-268/ppc-amigaos/bin/ld: cannot find -lgcc_eh


I have set up the compiler according to the readme. Is there anything else, that I am missing?

   Report Go to top

Re: Work on Qt 5.8 has begun :)
Just can't stay away
Joined:
2008/1/6 17:56
From Pennsylvania, USA
Posts: 1221
@alfkil
I did a custom install of gcc 5.3.0 on my system so the only thing I can suggest is adding the path to libgcc.a to your ld search path to the link command line in your makefile with the -L option. On my system it would be something like " -L/SDK/gcc/lib/gcc/ppc-amigaos/5.3.0/newlib/lib/ " if you compile with newlib.

EDIT: Some of the coreutils in the adtools archive are reported to have some bugs so it might be better to use the coreutils from the SDK (SDK:local/C/).

_________________
Amiga X1000 with 2GB memory & OS 4.1FE + Radeon HD 5450

   Report Go to top

Re: Work on Qt 5.8 has begun :)
Just can't stay away
Joined:
2009/10/7 0:11
From Copenhagen
Posts: 1186
@xenic

So far, so good... :)

Resized Image

What next?? ;)

   Report Go to top

Re: Work on Qt 5.8 has begun :)
Home away from home
Joined:
2007/9/11 11:31
From Russia
Posts: 4191
@alfkil
Quote:

What next?? ;)


To merge all your heavy aos4 native changes from 4.x ?:)

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: Work on Qt 5.8 has begun :)
Just can't stay away
Joined:
2009/10/7 0:11
From Copenhagen
Posts: 1186
@kas1e

:) Of course...

But first: Fix qmake!

Resized Image

   Report Go to top

Re: Work on Qt 5.8 has begun :)
Just can't stay away
Joined:
2009/10/7 0:11
From Copenhagen
Posts: 1186
Apparently, on AmigaOS

Quote:
mkdir("/some/existing/dir");


returns -1 (which is standard), but gives errno ENOSYS, which in sys/errno.h is described as

Quote:
#define ENOSYS 78 /* Function not implemented */


..instead of

Quote:
EEXIST 17 /* File exists */


How does that make sense?

   Report Go to top

Re: Work on Qt 5.8 has begun :)
Just popping in
Joined:
2012/10/17 19:42
Posts: 58
How fast does QT is performing compared to native functions, % of overhead?
Kamelito

   Report Go to top

Re: Work on Qt 5.8 has begun :)
Just can't stay away
Joined:
2006/11/30 11:30
From Finland
Posts: 1517
@alfkil

Which file system is this with?

If the CreateDir() call failed and IoErr() was set to ERROR_OBJECT_EXISTS then newlib will set errno to EEXIST.

   Report Go to top

Re: Work on Qt 5.8 has begun :)
Just can't stay away
Joined:
2008/1/6 17:56
From Pennsylvania, USA
Posts: 1221
@alfkil
I just ran a quick test.
1. Created a test directory in ram: named "testdir".
2. Added these lines to a small utility program:
mkdir("ram:testdir");
printf("Error: %ld\n", errno);
3. Compiled the program and ran it with this result printed in the shell:
Error: 17

That's the expected result. One possibility for your result might be that errno is redefined somewhere in the Qt code. I have a ported library that contains this line:

#define errno Errno() // C library "errno" fails with sockets on some platforms

Because of that definition, errno always returns ENOSYS.



Edited by xenic on 2017/2/1 17:56:47
_________________
Amiga X1000 with 2GB memory & OS 4.1FE + Radeon HD 5450

   Report Go to top

Re: Work on Qt 5.8 has begun :)
Just can't stay away
Joined:
2009/10/7 0:11
From Copenhagen
Posts: 1186
@xenic

I messed it up a bit, sorry...

In fact, what was the problem is, that when using unix paths, and trying to create a root level entry (for instance '/MainHD'), you will be given an error code of ENOTDIR == 20 instad of EEXIST == 17.

Quote:

#include <unistd.h>
#include <sys/stat.h>
#include <stdio.h>
#include <errno.h>

int main()
{
if(mkdir("/MainHD", 0777) != 0)
printf("Error: %ld\n", errno);
return 0;
}


(To be built with '-lunix')

It is the same, if you try and mkdir("MainHD:", 0777);


Edited by alfkil on 2017/2/1 19:42:26
   Report Go to top

Re: Work on Qt 5.8 has begun :)
Just can't stay away
Joined:
2009/10/7 0:11
From Copenhagen
Posts: 1186
@alfkil

By the way, the linker issue has been solved. It is a simple matter of copying

Quote:

adtools-os4-20151223-268/lib/gcc/ppc-amigaos/5.3.0/lib/#?


to

Quote:

adtools-os4-20151223-268/lib/gcc/ppc-amigaos/5.3.0/newlib/lib/


Thanks! :)

   Report Go to top

Re: Work on Qt 5.8 has begun :)
Just can't stay away
Joined:
2009/10/7 0:11
From Copenhagen
Posts: 1186
Qt5 is configured and ready to build.

Resized Image

:)

   Report Go to top

Re: Work on Qt 5.8 has begun :)
Not too shy to talk
Joined:
2006/12/5 22:11
From Lecco, Italy
Posts: 286
great :)

   Report Go to top

Re: Work on Qt 5.8 has begun :)
Just popping in
Joined:
2016/3/10 14:15
From Poland
Posts: 19
@alfkil

We are waiting for: QupZilla :):)

Cross-platform Qt web browser.

https://github.com/QupZilla/qupzilla


   Report Go to top

Re: Work on Qt 5.8 has begun :)
Home away from home
Joined:
2007/9/11 11:31
From Russia
Posts: 4191
@alfkil
How easy was to go till that step, with knowing what you know from 4.7 porting time ? I mean was it easy enough second time in compare with how it was with 4.7 or everything was different ?

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: Work on Qt 5.8 has begun :)
Quite a regular
Joined:
2009/3/10 10:51
From Germany
Posts: 605

_________________
X1000|II/G4|440ep|2000/060|2000/040|1000
   Report Go to top

Re: Work on Qt 5.8 has begun :)
Just popping in
Joined:
2016/3/10 14:15
From Poland
Posts: 19
@cha05e90

QupZilla ver. 1.4.4 for AmigaOS Qt 4.7.0 is very^2 old :(

PS.
QupZilla ver. =< 2.2 use OLD QtWebKit :(

QupZilla ver. >= 2.2 use NEW QtWebEngine :)

   Report Go to top

Re: Work on Qt 5.8 has begun :)
Not too shy to talk
Joined:
2006/11/28 22:14
Posts: 310
@Alfkill

Yo!

_________________
Simone"Tuxedo"Monsignori, Perugia, ITALY.
   Report Go to top

Re: Work on Qt 5.8 has begun :)
Just can't stay away
Joined:
2009/10/7 0:11
From Copenhagen
Posts: 1186
@kas1e

It is very easy :).

   Report Go to top

Re: Work on Qt 5.8 has begun :)
Just can't stay away
Joined:
2009/10/7 0:11
From Copenhagen
Posts: 1186
What is the best way around changing calls to nanosleep() to something else on OS4?

   Report Go to top


« 1 (2) 3 4 5 »



[Advanced Search]


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project