Cubicsdr: Compiling wxWidgets on High Sierra 10.13.2 - fails

Created on 21 Jan 2018  Â·  9Comments  Â·  Source: cjcliffe/CubicSDR

Anyone know how to compile wxWidgets on High Sierra? I'm using a fully updated osx build and the latest MacPort with updates. I tried both 3.1.0 and 3.0.3. Both fail with the same error:

./src/osx/core/utilsexc_base.cpp:74:13: error: use of undeclared identifier 'verify_noerr'
verify_noerr(Gestalt(gestaltSystemVersion, &sUMASystemVersion));
^
1 error generated.

Thanks for any help

help wanted

Most helpful comment

wxWidgets-3.1.0 on High Sierra required one additional option to get it to install using tcsh

setenv CPPFLAGS -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=1

./configure --prefix=/usr/local/wxWidgets --with-macosx-version-min=10.9 --disable-mediactrl

make -j 8

sudo make install

All 9 comments

I'm also having the exact problem

I was able to compile wxWidgets 3.0.3 on High Sierra by first defining a cpp flag -

CPPFLAGS=-D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=1

and then

./configure --prefix=/usr/local/wxWidgets --with-macosx-version-min=10.9

This built what I needed

wxWidgets-3.1.0 on High Sierra required one additional option to get it to install using tcsh

setenv CPPFLAGS -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=1

./configure --prefix=/usr/local/wxWidgets --with-macosx-version-min=10.9 --disable-mediactrl

make -j 8

sudo make install

How and where to define CPP_Flag

With tcsh you set the environment variable CPPFLAGS with -

setenv CPPFLAGS -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=1

With sh you set the environment variable CPPFLAGS with -

CPPFLAGS=-D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=1; export CPPFLAGS

followed by

./configure --prefix=/usr/local/wxWidgets --with-macosx-version-min=10.9 --disable-mediactrl

make -j 8

sudo make install

Thanks for mailing

Mohamad asadi.

On Mar 4, 2018 22:13, "righthalfplane" notifications@github.com wrote:

With tcsh you set the environment variable CPPFLAGS with -

setenv CPPFLAGS -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=1

With sh you set the environment variable CPPFLAGS with -

CPPFLAGS=-D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=1; export
CPPFLAGS

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/cjcliffe/CubicSDR/issues/603#issuecomment-370252698,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AZqb3a6WnjCJ61KTIgjt9JT30W6qyJIWks5tbDW4gaJpZM4Rl8j_
.

Can anyone confirm this is still an issue with wxWidgets-3.1.1?

I've been reluctant to install High Sierra here due to the multitude of issues I've read online plus the two macs at work that both failed horribly during the upgrade and had to be reformatted, reinstalled and then migrated from TC backups.

I build wxWidgets-3.1.1 on Sierra and High Sierra using just -

./configure --prefix=/usr/local --with-macosx-version-min=10.9 --with-libjpeg=builtin

the CPPFLAGS is no longer needed.

I ,also, build CubicSDR 0.2.4 on Sierra using wxWidgets-3.1.1 and everything works Ok.

Notes:

The GNU gcc kills the build - if it is installed. I needed the --with-libjpeg=builtin, because the wxWidgets install uses the builtin include files for libjpeg even if you are not suppose to be using them - my installed version of libjpeg was not compatible with their include files. Sierra and High Sierra are now using different versions of the clang compiler.

I did a clean install of High Sierra and I have had very few problems. I have had many strange problems in the past when I did an upgrade - so I usually do clean installs from a flash drive. I restore all of the old applications and files that I wanted from a bootable rsync backup.

@righthalfplane thanks; I'm installing HS here shortly and will add your findings to the build guide.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gvanem picture gvanem  Â·  7Comments

N5FPP picture N5FPP  Â·  6Comments

ifuchs picture ifuchs  Â·  3Comments

Dantali0n picture Dantali0n  Â·  5Comments

ah1102 picture ah1102  Â·  5Comments