No Target! You should use wx-config program for compilation flags!

Это русская секция форума wxWidjets. В этой секции вы можете обсуждать любые вопросы, связанные с wxWidgets на вашем родном языке.
Post Reply
bayn
In need of some credit
In need of some credit
Posts: 2
Joined: Sat Oct 27, 2018 12:27 pm

No Target! You should use wx-config program for compilation flags!

Post by bayn »

Здравствуйте,

я новичок в wxWidgets, моя платформа 10.14 Mojave MacOSX10.14.sdk, версия wxWidgets 3.0.4

При сборке проекта получаю исключение error "No Target! You should use wx-config program for compilation flags!" в файле/usr/local/wxWidgets/include/wx/defs.h

Собирал wxWidgets так (https://wiki.wxwidgets.org/Installing_WxMac, Dynamic linking):
cd wxWidgets
mkdir build-mac-os-x
cd build-mac-os-x
../configure --with-macosx-version-min=10.14 --enable-unicode --prefix="$(pwd)"

Использую CodeBlocks (может быть не лучший выбор, но мне показалось удобным начать именно так, там есть встроенный wxSmith)

Как мне избавиться от ошибкиNo Target! You should use wx-config program for compilation flags!? Выставить вручную какой-то макрос?
Attachments
Screen Shot 2018-10-27 at 5.45.34 AM.png
Screen Shot 2018-10-27 at 5.45.34 AM.png (63.25 KiB) Viewed 8926 times
Kvaz1r
Super wx Problem Solver
Super wx Problem Solver
Posts: 357
Joined: Tue Jun 07, 2016 1:07 pm

Re: No Target! You should use wx-config program for compilation flags!

Post by Kvaz1r »

Здравствуйте.
Попробуйте решение отсюда - Code::Blocks WxWidget error - No Target! You should use wx-config program for compilation flags?

Но вообще советую спрашивать в англоязычном разделе.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7458
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: No Target! You should use wx-config program for compilation flags!

Post by ONEEYEMAN »

Dobrogo vremeni sutok,
Dlja raboty v OSX 10.14 luchsche vsego ispolzovat Git HEAD (aka master).
Osobenno esli ispolzuetsja "Dark Mode" - Stefan pofiksil nekotorye problemy v etom regime i fiksy ushli v "master".

Oni ne popadut v 3.0.4 maximum gde ih mogno budet uvidet v bligajshee vremja - eto 3.1.2.

Spasibo.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7458
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: No Target! You should use wx-config program for compilation flags!

Post by ONEEYEMAN »

V dopolnenie
Takoj vopros - "make install" zapuskali?

Otkrojte Terminal na Vashem Mac i naberite:

Code: Select all

cd wxWidgets/build-mac-os-x
wx-config --cxxflags
wx-config --libs
Vam vydadutsja opcii kotorye dolgny byt ispolzovany pri sborke vashego proekta.
Vy mogete prosto skopirovat eto vse v opcii C::B, ili dobavit sootvetstvujuschuju stroku v eti opcii kak

Code: Select all

`wx-config --cxxflags`
`wx-config --libs`
(V oboih sluchajah ispolzuetsja simvol "backticks" - nahoditsja na klaviature pod klavishej "ESC")

Budut voprosy - sprashivajte,
Post Reply