Discussion:
errors trying to compile a basic sample using XCode 4
Jean-François khaelis
2014-01-18 18:27:33 UTC
Permalink
Hello

i'm trying to build a simple hello world project using wxWidgets (tried
2.9.5 and 3.0.0)

i managed to build the source code (not easily but it finally worked) using
the XCode projects (i tried using Terminal but i had weird EXC_BAD_ACCESS
errors)

so here are the errors:
http://pastebin.com/WTY4tBcQ

thanks

Jeff
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Vadim Zeitlin
2014-01-19 11:27:32 UTC
Permalink
On Sat, 18 Jan 2014 10:27:33 -0800 (PST) Jean-François khaelis wrote:

JFk> i'm trying to build a simple hello world project using wxWidgets (tried
JFk> 2.9.5 and 3.0.0)

This may be part of the problem. You seem to have wxWidgets headers
installed globally in the system and perhaps from a different version.

JFk> i managed to build the source code (not easily but it finally worked) using
JFk> the XCode projects (i tried using Terminal but i had weird EXC_BAD_ACCESS
JFk> errors)
JFk>
JFk> so here are the errors:
JFk> http://pastebin.com/WTY4tBcQ

The errors here are "impossible" if you only have a single set of
wxWidgets headers (starting from the very first one). So please delete all
wxWidgets headers and libraries from your system (use find/spotlight to
ensure that there are no setup.h files left anywhere), then rebuild
wxWidgets 3.0.0 in the usual way and it should work just fine.

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Jean-François khaelis
2014-01-19 18:56:19 UTC
Permalink
thanks

so I tried to start all over from the beginning with a clean OS X install.

This time i didn't build wxWidgets from Terminal but from the XCode
projects included with wxWidgets 3.

The two static or dynamic libraries build fine (just a few warnings) but
there is no ouput file anywhere (inside DerivedData, or even XCode.app
folder) There is no .a file nowhere. The previous .a files i had before
were from the Terminal build i guess

where do i go from there ?

Will i have more chance this time to build 3.0 using the Terminal without
getting the EXC_BAD_ACCESS error after?

thanks for help

Jeff
Post by Jean-François khaelis
Hello
i'm trying to build a simple hello world project using wxWidgets (tried
2.9.5 and 3.0.0)
i managed to build the source code (not easily but it finally worked)
using the XCode projects (i tried using Terminal but i had weird
EXC_BAD_ACCESS errors)
http://pastebin.com/WTY4tBcQ
thanks
Jeff
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
John Roberts
2014-01-20 02:32:43 UTC
Permalink
Post by Jean-François khaelis
thanks
so I tried to start all over from the beginning with a clean OS X install.
This time i didn't build wxWidgets from Terminal but from the XCode
projects included with wxWidgets 3.
The two static or dynamic libraries build fine (just a few warnings)
but there is no ouput file anywhere (inside DerivedData, or even
XCode.app folder) There is no .a file nowhere. The previous .a files i
had before were from the Terminal build i guess
where do i go from there ?
Will i have more chance this time to build 3.0 using the Terminal
without getting the EXC_BAD_ACCESS error after?
thanks for help
Jeff
Hello
i'm trying to build a simple hello world project using wxWidgets
(tried 2.9.5 and 3.0.0)
i managed to build the source code (not easily but it finally
worked) using the XCode projects (i tried using Terminal but i had
weird EXC_BAD_ACCESS errors)
http://pastebin.com/WTY4tBcQ
thanks
Jeff
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
or visit http://groups.google.com/group/wx-users
XCode places its output elsewhere. e.g.
Users/Me/Library/Developer/Xcode/DerivedData but you can change this.
Google "xcode output directory"
John
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Jean-François khaelis
2014-01-20 09:11:40 UTC
Permalink
okay found it. I tried a global search for .a files but it didn't show,
weird (i have system files unhidden)

i'm sorry i'm such a noob (i'm a good PC programmer and got wxWidgets
working on PC but Mac is such another world for a beginner)...

thanks a lot

Jeff
Post by Jean-François khaelis
thanks
so I tried to start all over from the beginning with a clean OS X install.
This time i didn't build wxWidgets from Terminal but from the XCode
projects included with wxWidgets 3.
The two static or dynamic libraries build fine (just a few warnings) but
there is no ouput file anywhere (inside DerivedData, or even XCode.app
folder) There is no .a file nowhere. The previous .a files i had before
were from the Terminal build i guess
where do i go from there ?
Will i have more chance this time to build 3.0 using the Terminal without
getting the EXC_BAD_ACCESS error after?
thanks for help
Jeff
Post by Jean-François khaelis
Hello
i'm trying to build a simple hello world project using wxWidgets (tried
2.9.5 and 3.0.0)
i managed to build the source code (not easily but it finally worked)
using the XCode projects (i tried using Terminal but i had weird
EXC_BAD_ACCESS errors)
http://pastebin.com/WTY4tBcQ
thanks
Jeff
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
or visit http://groups.google.com/group/wx-users
XCode places its output elsewhere. e.g.
Users/Me/Library/Developer/Xcode/DerivedData but you can change this.
Google "xcode output directory"
John
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Jean-François khaelis
2014-01-20 10:06:31 UTC
Permalink
okay i did everything by the book : clean install, no Terminal compile,
latest wxWidgets and i end up witht he same errors as before :

here they are http://pastebin.com/SbCxWXzw <http://pastebin.com/bCxWXzw>

please help
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Igor Korot
2014-01-20 10:10:42 UTC
Permalink
Hi

On Mon, Jan 20, 2014 at 2:06 AM, Jean-François khaelis
Post by Jean-François khaelis
okay i did everything by the book : clean install, no Terminal compile,
here they are http://pastebin.com/SbCxWXzw
And what happen if you try to build from the Terminal?
Did the configure pass? Did you use any special configure option?
What error message did you get if any?

Thank you.

BTW, the pastebin link is removed.
Post by Jean-François khaelis
please help
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Jean-François khaelis
2014-01-20 10:21:13 UTC
Permalink
if i compile using terminal, i have an EXC_BAD_ACCESS error when trying to
compile (not better that the others errors)

http://pastebin.com/SbCxWXzw is it better there?

Jeff
Hi
On Mon, Jan 20, 2014 at 2:06 AM, Jean-François khaelis
Post by Jean-François khaelis
okay i did everything by the book : clean install, no Terminal compile,
here they are http://pastebin.com/SbCxWXzw
And what happen if you try to build from the Terminal?
Did the configure pass? Did you use any special configure option?
What error message did you get if any?
Thank you.
BTW, the pastebin link is removed.
Post by Jean-François khaelis
please help
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before
posting.
Post by Jean-François khaelis
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Jean-François khaelis
2014-01-20 10:22:02 UTC
Permalink
i mean when trying to compile the wxwidgets sample hello world, not the
library, the library builds fine
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Jean-François khaelis
2014-01-20 10:22:26 UTC
Permalink
http://pastebin.com/SbCxWXzw
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Jean-François khaelis
2014-01-20 10:22:43 UTC
Permalink
pastebin.com/SbCxWXzw
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Igor Korot
2014-01-20 10:32:32 UTC
Permalink
Hi,

On Mon, Jan 20, 2014 at 2:22 AM, Jean-François khaelis
Post by Jean-François khaelis
i mean when trying to compile the wxwidgets sample hello world, not the
library, the library builds fine
Can you build the minimal sample from wxWidgets distribution?

Thank you.
Post by Jean-François khaelis
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Jean-François khaelis
2014-01-20 10:47:08 UTC
Permalink
I'm having the errors (EXC_BAD_ACCESS or the others : wxFileSystemWatcher
...etc) whern trying to build the minimal hello world sample

Jeff
Hi,
On Mon, Jan 20, 2014 at 2:22 AM, Jean-François khaelis
Post by Jean-François khaelis
i mean when trying to compile the wxwidgets sample hello world, not the
library, the library builds fine
Can you build the minimal sample from wxWidgets distribution?
Thank you.
Post by Jean-François khaelis
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before
posting.
Post by Jean-François khaelis
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Igor Korot
2014-01-20 15:18:58 UTC
Permalink
Hi,

On Mon, Jan 20, 2014 at 2:47 AM, Jean-François khaelis
Post by Jean-François khaelis
I'm having the errors (EXC_BAD_ACCESS or the others : wxFileSystemWatcher
...etc) whern trying to build the minimal hello world sample
Can you just simply do this in Terminal:
cd <wxWidgets_build_dir>/samples/minimal
make

The wxWidgets distribution comes with the numbers of sample code.

Also what is your configure line?

Thank you.
Post by Jean-François khaelis
Jeff
Post by Igor Korot
Hi,
On Mon, Jan 20, 2014 at 2:22 AM, Jean-François khaelis
Post by Jean-François khaelis
i mean when trying to compile the wxwidgets sample hello world, not the
library, the library builds fine
Can you build the minimal sample from wxWidgets distribution?
Thank you.
Post by Jean-François khaelis
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Jean-François khaelis
2014-01-21 09:09:22 UTC
Permalink
there are a lot of makefiles in the minimal folder

1) i tried "make -f makefile.unx" but it tries to execute a bunch of
"wxconfig" that don't launch because i didn't install using Terminal

2) i tried to build minimal from XCode : I had to select an executable in
the scheme edition because nothing was happenning when i was compiling the
libraries.

But now everything works, the main window launches!!

now i have to figure why i have errors in the previous source. (maybe a
build setting?)

i'll do that and get back to you if you're interested.

thank you so much!

Jeff
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Jean-François khaelis
2014-01-21 13:22:25 UTC
Permalink
i somehow ended up with just a few errors but i don't explain them. now i
got this : pastebin.com/jWSmU2qn
(most errors went away when i added the preprocessor flags but globally i
copied all the settings from minimal to my new project)

i know i could start over from minimal but i want to know what went wrong.


Jeff
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Vadim Zeitlin
2014-01-21 14:22:14 UTC
Permalink
On Tue, 21 Jan 2014 01:09:22 -0800 (PST) Jean-François khaelis wrote:

JFk> there are a lot of makefiles in the minimal folder
JFk>
JFk> 1) i tried "make -f makefile.unx" but it tries to execute a bunch of
JFk> "wxconfig" that don't launch because i didn't install using Terminal

If you didn't build wxWidgets using configure+make you can't use this
makefile. OTOH if you do build it using configure+make, then you also get
the makefiles for all the samples under the build directory which you can
then build easily.

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Jean-François khaelis
2014-01-21 16:14:25 UTC
Permalink
okay i finally got it working (pfieeuw)

Here is how to do :
1 - open "wxcocoa.xcodeproj" in "wxwidgets-3.0.0/build/osx" and compile

if build is succeeded file should be in:
"usr/library/Developer/XCode/DerivedData" (and nowhere else like i read
everywhere)

next create a new Cocoa project. Erase *everything* including folders

copy the target you want (static or dynamic) from "minimal_cocoa.xcodeproj"
(in wxwidgets-3.0.0/samples) and import it to the new project (this way you
got everything set to get it working)

copy files :
Info_cocoa.plist
*.xcconfig
from the "minimal_cocoa.xcodeproj" to your new project

don't forget to change the parameter "Info.plist file" in
"Packaging/Info.plist" file to match the file you copied
("Info_cocoa.plist")

next drag n drop the created static lib .a to "Link binaries with
Libraries" in "Build Phase"

and you're done, everything should work.


I don't understand why there is not ONE tutorial that is good enough to
explain this. They are all buggy/unacceptable (like building from terminal
installs a lot of shaïte everywhere what if you want to use multiple
versions of wxWidgets? i'ts a mess then)

so follow this and you should be good

Jeff
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Vadim Zeitlin
2014-01-21 16:31:08 UTC
Permalink
On Tue, 21 Jan 2014 08:14:25 -0800 (PST) Jean-François khaelis wrote:

JFk> I don't understand why there is not ONE tutorial that is good enough
JFk> to explain this.

Probably because nobody wrote it yet? It seems that most people seem to be
happy to make it work on their own system but don't bother to record their
experience to help the others. If, by chance, you'd like to change this,
please add (or edit) the corresponding page on wxWiki.

JFk> They are all buggy/unacceptable (like building from terminal
JFk> installs a lot of shaïte everywhere what if you want to use multiple
JFk> versions of wxWidgets? i'ts a mess then)

No, it isn't. Multiple versions of wxWidgets, i.e. those with different
version numbers, can coexist on the same system. If you use multiple builds
of the same version, then things are more complicated, but the simplest
solution is to simply not run "make install" then and use uninstalled
wx-config, this works perfectly well and there are no real advantages to
installing if you link statically anyhow.

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Jean-François khaelis
2014-01-22 14:05:25 UTC
Permalink
okay this is beginning to become a* nightmare*

it WAS working, i saw it with my eyes wide open and since i rebooted i
doesn't work

the minimal sample is greatly working though

what i did is to copy *every* single option in the minimal project to my
project but no luck.

the error messages seems to hit about png lib or something :
pastebin.com/U2wFJ4pv

I don't get what's wrong. The two projects minimal and mine are almost
identical now as i removed the building subproject from minimal and linked
with the library
*so the problem doesn't come from the library*

but from where?

thanks for help

Jeff
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Jean-François khaelis
2014-01-22 14:07:23 UTC
Permalink
also i made some mistake in my previous tuto, i forgot a lot of things to
do, but as soon as it works i'll do it neatly
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Jean-François khaelis
2014-01-22 14:26:15 UTC
Permalink
i maybe have a lead:
in the building options, there is a flag OTHER_LDFLAGS = -framework Webkit
...etc which is located in the wxcocoa.xcconfig file

but when i try to insert $(OTHER_LDFLAGS) in a buidling option, nothing is
written : Xcode doesn't make the link between the flag set in
wxcocoa.xcconfig and the build setting (it's working in the minimal project)

i think i correctly set the wxconfig files in the Configuration set (i
copied what was in the minimal project) so i assigned the wxconfig files to
debug and release modes and to the project.


*why does xcode doesn't know the OTHER_LDFLAGS in the wxcocoa.xcconfig ?*
Jeff
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Jean-François khaelis
2014-01-22 14:29:09 UTC
Permalink
oooh it's working!! i was aassigning the *project* to* wxcocoa* and the*
target* to *wxdebug* but it's the opposite, so now everything is working
yay!
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Jean-François khaelis
2014-01-23 09:19:48 UTC
Permalink
Vadim

could you pinpoint me the right page on the wiki to update? i don't want to
waste so good page....

Jeff
Post by Jean-François khaelis
oooh it's working!! i was aassigning the *project* to* wxcocoa* and the*
target* to *wxdebug* but it's the opposite, so now everything is working
yay!
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Jean-François khaelis
2014-01-23 14:50:16 UTC
Permalink
okay here is the tuto. Can anyone try it and tell me what they think before
i post it on the Wiki?
https://groups.google.com/forum/#!topic/wx-users/TViTC-F7BRE

thanks

Jeff
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Loading...