Search found 6 matches

by tcgessner
Sat Aug 01, 2020 5:09 pm
Forum: Compiler / Linking / IDE Related
Topic: link error on macOS
Replies: 4
Views: 124

Re: link error on macOS

Yes, I can build and run those. I was trying to use CMake as that seemed to be recommended on the wxWidgets site. That is a good idea though just to get things moving forward. I will use the existing makefiles. I would like to understand what I am doing wrong though. It will annoy me I can't make it...
by tcgessner
Fri Jul 31, 2020 8:57 am
Forum: Compiler / Linking / IDE Related
Topic: macOS basic makefile
Replies: 3
Views: 84

Re: macOS basic makefile

I did change

target_include_directories from .../include/wx/cocoa to just .../include

Thanx
by tcgessner
Fri Jul 31, 2020 8:55 am
Forum: Compiler / Linking / IDE Related
Topic: macOS basic makefile
Replies: 3
Views: 84

Re: macOS basic makefile

Hello I wanted to build a gui application (the tutorial HelloWorld)

to build wxwidgets I used
$ ../wxWidgets/configure --with-cocoa --enable-debug --disable-shared
$ make
$ cd samples/minimal
$ make
$ ./minimal.app/Contents/MacOS/minimal

both succeeded and I can run minimal.

Thanx
by tcgessner
Fri Jul 31, 2020 8:50 am
Forum: Compiler / Linking / IDE Related
Topic: link error on macOS
Replies: 4
Views: 124

Re: link error on macOS

I changed the line target_include_directories(HelloWorld PUBLIC /Users/tim/Onedrive/Programming/wxWidgets-3.0.5/include/wx/cocoa) to target_include_directories(HelloWorld PUBLIC /Users/tim/Onedrive/Programming/wxWidgets-3.0.5/include) Now it struggles to find all the header files. Since this is pret...
by tcgessner
Thu Jul 30, 2020 10:35 am
Forum: Compiler / Linking / IDE Related
Topic: link error on macOS
Replies: 4
Views: 124

link error on macOS

I am trying to setup a simple HelloWorld wxWidgets project with CMake on macOS. CMake configures without errors but when I build I get the error, 'error: expected unqualified-id @class NSString, Protocol;' I'm using macOS 10.15.6, CMake 3.18 and wxWidgets 3.0.5 with Visual Studio Code as the editor....
by tcgessner
Thu Jul 30, 2020 10:21 am
Forum: Compiler / Linking / IDE Related
Topic: macOS basic makefile
Replies: 3
Views: 84

macOS basic makefile

I am using CMake to build a basic (HelloWorld) wxWidgets app. The compiler is clang/llvm and I am using visual studio code as the editor. CMake successfully builds the makefile but I get a link error when building HelloWorld. error: expected unqualified-id @class NSString Protocol; I'm not sure what...