Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Dave Yeo

Pages: 1 ... 209 210 [211] 212 213 ... 320
3151
Programming / Re: Compiling my first WPS application
« on: December 12, 2018, 11:20:57 pm »
Looking at your errors, perhaps try compiling as C by changing the codes suffix from .cpp to .c, hwman.c

3152
Programming / Re: Compiling my first WPS application
« on: December 12, 2018, 11:17:14 pm »
Or
gcc -Zomf -c hwman.cpp -o hwman.obj
or
gcc -Zomf -c hwman.cpp -o hwman.o

3153
Programming / Re: Compiling my first WPS application
« on: December 12, 2018, 11:03:07 pm »
Need to catch standard error too. 2>&1 | tee build.log. Be good to see the errors. Based on some experiments I did the other day, GCC by default is quite picky and I had to add a bunch of unexpected casts, mostly  char to PCSZ.
(edit)
Another thing is that GCC will by default use os2emx.h when including os2.h. To use the toolkit version of os2.h, you have to define USE_TOOLKIT_HEADERS before including os2.h, on the command line -DUSE_TOOLKIT_HEADERS or in the program, #define (USE_TOOLKIT_HEADERS). See @UNIXROOT/usr/include/os2.h
Be interesting to try using the libc version of os2.h first.

3154
Programming / Re: Compiling my first WPS application
« on: December 12, 2018, 06:13:28 pm »
GCC uses different variables to find its includes, libs etc.
set C_INCLUDE_PATH=
set CPLUS_INCLUDE_PATH=
set LIBRARY_PATH=

As well as on the command line, -Ipath/to/include/file -Lpath/to/lib/or/a/library.
Make sure you use -Zomf as well, probably both as a CFLAG and LDFLAG.

3155
Programming / Re: Compiling my first WPS application
« on: December 09, 2018, 09:27:39 pm »
The question is, what are those options being passed to icc.exe? I can't find anything listing them looking quickly in my VACPP 3.08 install, which is installed in eCS rather then the AOS I'm using.

3156
Programming / Re: Compiling my first WPS application
« on: December 09, 2018, 05:51:40 am »
Sometimes newer versions are not necessarily better. In particular compilers and linkers have their idiosyncrasies that source code depends on. As well sometimes newer equals more strict. I just recompiled something that was last compiled with GCC 3.35 and had to add casts and make some things const to get rid of errors and warnings. Funny enough, just changing the command line I used, adding a define, caused more errors that were unrelated.

3157
Programming / Re: Compiling my first WPS application
« on: December 08, 2018, 06:54:34 pm »
It seems that I'm missing RMCALLS.H, Is that on the OS/2 Device Driver Kit, right?

Yes, I have it in DDK\base\h and it includes rmbase.h and rmioctl.h and they may include more so you need enough of the DDK to have this.

3158
Utilities / Re: man-db package setup?
« on: December 08, 2018, 06:42:33 am »
Perhaps try removing (remming out) all your config.sys stuff?
man ls works fine here without anything I've done in a fairly new install.
I guess that /@unixroot/etc/man_db.conf is where to add stuff such as MANPATH extensions.

3159
Applications / Re: Creating archive > 4GiB from script
« on: December 07, 2018, 10:33:10 pm »
The Python zip documentation and link to module, https://docs.python.org/2/library/zipfile.html

With gzip, bzip2, xv, the way to do it is to create a tar archive and then gzip, bzip2 or xz the tar archive. Tar usually supports both steps, read the documentation. Problem with these is no EA support unless you use really old versions, which don't support large files.
There is star, http://hobbes.nmsu.edu/download/pub/os2/util/archiver/star-1.5.73-os2.zip, an alternative tar program that does support EAs, large files and gzip and IIRC, bzip2. Worth looking at as Yuri did a good job of porting, not just rebuilding.
In order of compression, from worst to best, gzip, bzip2 and xz. Note that xz is not considered as stable though I've never had a problem with xz compressed tarballs I've downloaded.

3160
Setup & Installation / Re: REQ: full list of OS components
« on: December 07, 2018, 04:30:42 am »
Netscape is an installation choice, disabled by default

3161
Programming / Re: Compiling my first WPS application
« on: December 04, 2018, 09:49:17 pm »
Try nmake

3162
Applications / Re: Creating archive > 4GiB from script
« on: December 04, 2018, 12:42:41 am »
Python will be installed in ArcaOS or any system using YUM. Lots of documentation out there, perhaps start with https://www.python.org/. Just be aware that we're still on Python 2 and a lot of documentation is for Python 3. They're close but different in some ways.

3163
Applications / Re: Creating archive > 4GiB from script
« on: November 29, 2018, 05:14:55 pm »

By providing private built binaries derived from Zip and Unzip sources you can at least point to your patches or modifications, so we can check the issues.

Hi Bogdan, I don't know if private builds is the best description as these builds ship with the latest releases of ArcaOS, perhaps forks is a better term.
While the Bitwise people do make some choices that others don't agree with, they are some of the few developers actually doing something on our platform and though they do make some money doing it, considering the amount of time and effort they put in, much of the work is basically on a volunteer basis and it is hard to bitch about people doing stuff for free, even if not perfect.
One of the decisions they've made is not to spend time trying to get their patches accepted up stream. Be nice if they did, but understandable as getting patches accepted can and usually is, time consuming.
They have been very good about following licenses including being public with their fixes and other patches with many hosted at netlabs and others at Github.
In the case of zip and unzip, their trees are at http://trac.netlabs.org/ports/browser/zip/trunk and http://trac.netlabs.org/ports/browser/unzip/trunk with issue tracking also hosted at netlabs.

3164
Applications / Re: Increasing the size of the Fonts
« on: November 29, 2018, 08:11:10 am »
Another possible option for adding hinting to TTF fonts is https://www.freetype.org/ttfautohint/index.html. Needs building.

3165
Applications / Re: Increasing the size of the Fonts
« on: November 29, 2018, 07:56:22 am »
Permission? There is the font editor included with the toolkit and an example of how to compile them with Open Watcom is in http://hobbes.nmsu.edu/download/pub/multimedia/fonts/os2pgftr-src.zip.
If you have VisualAge or perhaps other native OS/2 compiler, they should support creating bitmapped fonts as well. At least VisualAge also has fontedit.exe.
Alex may know of other tools.

Pages: 1 ... 209 210 [211] 212 213 ... 320