Giter Site home page Giter Site logo

Mac OS X 10.10+ version about gdevelop HOT 18 CLOSED

tluyben avatar tluyben commented on April 28, 2024
Mac OS X 10.10+ version

from gdevelop.

Comments (18)

victorlevasseur avatar victorlevasseur commented on April 28, 2024

Seems like wxTreeCtrl is not implemented in wxWidgets. You should try to compiler wxWidgets 3.0.2 instead of the git version, but not the provided one, the version available on the website (there should be a version for Mac OSX) : https://www.wxwidgets.org/downloads/

from gdevelop.

tluyben avatar tluyben commented on April 28, 2024

I tried both already; I resorted to compiling the git version because the homebrew & binary version gave the same error and the 3.0.2 version doesn't compile on Yosemite. Only the git version does.

Edit: I'll try to include wxTreeCtrl explicitly.

from gdevelop.

4ian avatar 4ian commented on April 28, 2024

It seems that wxGenericHyperlinkCtrl is also missing (vtable for wxGenericHyperlinkCtrl [...]).
It is really strange: wxGenericHyperlinkCtrl and wxTreeListCtrl (not wxTreeCtrl @victorlevasseur 😉) are not bundled in the version provided by homebrew and binary version? Sounds odd :/

from gdevelop.

tluyben avatar tluyben commented on April 28, 2024

It sounds really odd; feels like I must be doing something wrong, but I tried pointing directly (using the ld command line which generates this error) to all different libs and they result in that same error. I'm rebuilding now, see if that makes a difference.

from gdevelop.

tluyben avatar tluyben commented on April 28, 2024

This

nm -g /usr/local/Cellar/wxmac/3.1.0/lib/*.dylib |grep TreeList

results in a quite a bit of exported TreeList stuff, including;

__ZN14wxTreeListCtrl10DeleteItemE14wxTreeListItem

so I think it's there all along; why would it not pick that up? Same for;

__ZTI22wxGenericHyperlinkCtrl

Ok, it needs;

-lwx_osx_cocoau_adv-3.1

which is not there in the link.txt, then it doesn't have this issue, but the next;

ld: internal error: atom not found in symbolIndex(__ZN22wxScopedCharTypeBufferIcE14CreateNonOwnedEPKcm)

from gdevelop.

4ian avatar 4ian commented on April 28, 2024

Modify each CMakeLists.txt to add adv to each line beginning with:

find_package(wxWidgets COMPONENTS core

For example, this line:

find_package(wxWidgets COMPONENTS core base ribbon stc aui propgrid richtext html xrc REQUIRED)

would become:

find_package(wxWidgets COMPONENTS core base adv ribbon stc aui propgrid richtext html xrc REQUIRED)

This enables the use of the wxWidgets adv library (that contains wxTreeListCtrl and wxGenericHyperLinkCtrl). When it's done, restart the build process from the beginning: erase your build folder and launch CMake again 😄

from gdevelop.

tluyben avatar tluyben commented on April 28, 2024

I did that, the error now is ;

ld: internal error: atom not found in symbolIndex(__ZN22wxScopedCharTypeBufferIcE14CreateNonOwnedEPKcm)

from gdevelop.

4ian avatar 4ian commented on April 28, 2024

Ok, so it's a bit better because no need to tweak link.txt by hand (I'll add adv to all CMakeLists.txt).

For your error, I'm afraid I don't really know what cause it.. But googling it returns result related to incompatibilites between compilers.
What compiler are you using? Is it the same as the wxWidgets version you're using?

from gdevelop.

tluyben avatar tluyben commented on April 28, 2024

Yes it is indeed the same version. I compiled wx from scratch and then GD.

On Mon, Dec 29, 2014, 17:17 Florian Rival [email protected] wrote:

Ok, so it's a bit better because no need to tweak link.txt by hand (I'll
add adv to all CMakeLists.txt).

For your error, I'm afraid I don't really know what cause it.. But
googling it returns result related to incompatibilites between compilers.
What compiler are you using? Is it the same as the wxWidgets version
you're using?


Reply to this email directly or view it on GitHub
#64 (comment).

from gdevelop.

4ian avatar 4ian commented on April 28, 2024

Strange, strange :/ Are you sure GD is not being compiled/linked against a version of wxWidgets provided by another source (and so potentially not compiled with the same compiler?)

from gdevelop.

tluyben avatar tluyben commented on April 28, 2024

Well as far as I understand, if I have (as only reference to wxwidgets libs);

-L/usr/local/Cellar/wxmac/3.1.0/lib

in the /bin/ld commandline, then ;

-lwx_osx_cocoau_propgrid-3.1

etc will retrieve from that directory and the libs in that directory are 100% surely made by the same compiler which is the compiler + tools from ;

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/

from gdevelop.

tluyben avatar tluyben commented on April 28, 2024

If someone is interested to figure this out I can give access to a mac os x install via teamviewer for any amount of time needed. It has all requirements installed and root access.

from gdevelop.

victorlevasseur avatar victorlevasseur commented on April 28, 2024

When you have built wxWidgets, have you followed the step in WXWIDGETS_SOURCE_FOLDER/docs/osx/install.txt ?

from gdevelop.

4ian avatar 4ian commented on April 28, 2024

@tluyben I would be interested in trying to compile GD on Mac OS X using teamviewer. 😃 But I think it could take a lot of time and I don't want to bother you! Will you be able to use another computer while I'm trying to compile using teamviewer?

from gdevelop.

tluyben avatar tluyben commented on April 28, 2024

Sorry for the belated response, but that's fine; I just spun up a new VM, you can use it. Can you mail me so we can exchange credentials? You can tinker as long as you want, but as you wrote this project, I don't think it will take you a long time :) It's probably my quite novice wxWidgets/C++ knowledge holding me back here.

from gdevelop.

4ian avatar 4ian commented on April 28, 2024

Not sure where I can get your email address? Mine is Florian.rival [at] gmail.com :)

from gdevelop.

4ian avatar 4ian commented on April 28, 2024

I'm doing tests for compiling GD on Mac: the atomrelated error is due to the flag -s being used, it should be removed when not compiling with gcc.

from gdevelop.

4ian avatar 4ian commented on April 28, 2024

Should be fixed now :) I still have to write doc on how to build on MacOS but with homebrew and by following the traditional cmake workflow, should be quite easy :)

from gdevelop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.