OS/2, eCS & ArcaOS - Technical > Programming

ArcaOS - Recreate a complete build environment?

<< < (6/7) > >>

Mentore:

--- Quote from: Mentore on April 10, 2024, 08:08:09 am ---
--- Quote from: SoundChaser on April 10, 2024, 12:38:24 am ---This thread is immensely useful and a great complement (or replacement) to BitWise Works wiki page on how to build qt5 (https://github.com/bitwiseworks/qt5-os2/wiki/Developers#building-qt)

Considering there's an official developer page through EDM2, perhaps the very first article should be "how to get started", with this information? Also, should anyone have a script to automate some of this yak shaving setup, it could reduce the friction that many hobbyist developers have to face when approaching OS/2 development...

--- End quote ---

Hi,
If I'm not wrong most of it is already covered in some other places of these forums. Yet I must say I'm doing much research (in my almost zero spare time) to try and get up-and-running in as few steps as possible.

I'll try to gather and organize as much information as possible and try to contribute to what has already been written. Ad EDM/2 column would be really useful (provided it doesn't already exist!).

Mentore

--- End quote ---

Quoting myself because I came across an interesting problem.
If I try to set variables like CFLAGS like this


--- Code: ---set CFLAGS=-O2 -g

--- End code ---

configure and autoreconf work correctly. But I can't set options like -march or -mtune. If I try to set these in double quotes as in


--- Code: ---set CFLAGS="-O2 -g -march=generic"

--- End code ---

even after autoreconf, configure fails giving me troubles in gcc, gxx and cpp - even if I tweak the script.
How can I include -march / -mtune and similar options?
This happens also if I try to use export directive in a shell script...

Mentore

Jochen Schäfer:
What error message do the compilers give you?

Mentore:

--- Quote from: Jochen Schäfer on April 10, 2024, 11:24:17 am ---What error message do the compilers give you?

--- End quote ---

It's not a compiler error, instead it's configure complaining that the compiler found "can't produce executables". If I set the environment variables without double quotes everything works perfectly (I just finished libfftw-3.3.10).

But, if I don't use double quotes, I can't put -march or -mtune in a CMD file or a shell script.

Mentore

Jochen Schäfer:
I use double quotes in the environment variables, too.

PS: "Couldn't build executables" is configure's answer to the compiler erroring out.
In configure.log everything is logged. You can see, how the compiler gets called by configure and what answer it gets.

Dave Yeo:

--- Quote from: Mentore on April 10, 2024, 11:11:56 am ---
--- Quote from: Mentore on April 10, 2024, 08:08:09 am ---
--- Quote from: SoundChaser on April 10, 2024, 12:38:24 am ---This thread is immensely useful and a great complement (or replacement) to BitWise Works wiki page on how to build qt5 (https://github.com/bitwiseworks/qt5-os2/wiki/Developers#building-qt)

Considering there's an official developer page through EDM2, perhaps the very first article should be "how to get started", with this information? Also, should anyone have a script to automate some of this yak shaving setup, it could reduce the friction that many hobbyist developers have to face when approaching OS/2 development...

--- End quote ---

Hi,
If I'm not wrong most of it is already covered in some other places of these forums. Yet I must say I'm doing much research (in my almost zero spare time) to try and get up-and-running in as few steps as possible.

I'll try to gather and organize as much information as possible and try to contribute to what has already been written. Ad EDM/2 column would be really useful (provided it doesn't already exist!).

Mentore

--- End quote ---

Quoting myself because I came across an interesting problem.
If I try to set variables like CFLAGS like this


--- Code: ---set CFLAGS=-O2 -g

--- End code ---

configure and autoreconf work correctly. But I can't set options like -march or -mtune. If I try to set these in double quotes as in


--- Code: ---set CFLAGS="-O2 -g -march=generic"

--- End code ---

even after autoreconf, configure fails giving me troubles in gcc, gxx and cpp - even if I tweak the script.
How can I include -march / -mtune and similar options?
This happens also if I try to use export directive in a shell script...

Mentore

--- End quote ---

Try,

--- Code: ---sh configure 'CFLAGS=-O2 -g -march=generic' 'LDFLAGS=-Zomf -Zhigh-mem'

--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version