New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS X 10.10 compiling issues #98

Closed
CandyFace opened this Issue Feb 16, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@CandyFace

CandyFace commented Feb 16, 2015

Hi

I am having trouble compiling wxMEdit 2.9.9 on OS X 10.10, using wxWidgets 3.0.2 I have been able to get so far.. but atm. I am getting 'Processes.h' file not found.

If i am correct in assuming that is it looking for this header file?
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
HIServices.framework/Versions/A/Headers/Processes.h
if so, then I get these 2 errors and 3 warnings.

src/mad_utils.cpp:199:32: warning: implicit conversion of NULL constant to
'UInt32' (aka 'unsigned int') [-Wnull-conversion]
procno.highLongOfPSN = NULL ;
~ ^~~~
0
src/mad_utils.cpp:203:21: error: no member named 'processAppSpec' in
'ProcessInfoRec'; did you mean 'processAppRef'?
processinfo.processAppSpec = &fsSpec;
^~~~~~~~~~~~~~
processAppRef
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Processes.h:176:23: note:
'processAppRef' declared here
FSRefPtr processAppRef;
^
src/mad_utils.cpp:203:36: error: assigning to 'FSRefPtr' (aka 'FSRef *') from
incompatible type 'FSSpec *'
processinfo.processAppSpec = &fsSpec;
^ ~~~~~~~
src/mad_utils.cpp:205:9: warning: 'GetProcessInformation' is deprecated: first
deprecated in OS X 10.9 [-Wdeprecated-declarations]
GetProcessInformation( &procno , &processinfo ) ;
^
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Processes.h:513:1: note:
'GetProcessInformation' has been explicitly marked deprecated here
GetProcessInformation(
^
src/mad_utils.cpp:206:16: error: use of undeclared identifier
'wxMacFSSpec2MacFilename'
path = wxMacFSSpec2MacFilename(&fsSpec);
^
2 warnings and 3 errors generated.

It seems to be relate to my OS being 64 Bit and the function processAppSpec only being available on 32 bit.
I would appreciate some help

@CandyFace

This comment has been minimized.

Show comment
Hide comment
@CandyFace

CandyFace Feb 17, 2015

I have been able to get rid of the first two errors by forcing configure to change architecture, but I am still having trouble with the undeclared identifier.

So far i have been using this to create the makefile
CFLAGS="-arch i386" CXXFLAGS="-arch i386" LDFLAGS="-arch i386" ./configure --prefix=/usr/local/Cellar --with-wx-config=/usr/local/Cellar/wxmac/3.0.2/lib/wx/config/osx_cocoa-unicode-3.0 --with-icu=/usr/local/opt/icu4c

I have tried to build from master too, but i still get undeclared identifier.

edit:
after hours of bashing the wall... I have come closer to compiling. By adding WXDLLEXPORT wxString wxMacFSSpec2MacFilename( const FSSpec *spec ); to the line above path =...
I have been able to get further, though this just leads to more errors, presumably caused of the various changes in WxWidgets 3.0.2 from 2.8.x

CandyFace commented Feb 17, 2015

I have been able to get rid of the first two errors by forcing configure to change architecture, but I am still having trouble with the undeclared identifier.

So far i have been using this to create the makefile
CFLAGS="-arch i386" CXXFLAGS="-arch i386" LDFLAGS="-arch i386" ./configure --prefix=/usr/local/Cellar --with-wx-config=/usr/local/Cellar/wxmac/3.0.2/lib/wx/config/osx_cocoa-unicode-3.0 --with-icu=/usr/local/opt/icu4c

I have tried to build from master too, but i still get undeclared identifier.

edit:
after hours of bashing the wall... I have come closer to compiling. By adding WXDLLEXPORT wxString wxMacFSSpec2MacFilename( const FSSpec *spec ); to the line above path =...
I have been able to get further, though this just leads to more errors, presumably caused of the various changes in WxWidgets 3.0.2 from 2.8.x

@CandyFace CandyFace changed the title from OS X 10.10 Processes.h not found to OS X 10.10 compiling isssues Feb 17, 2015

@CandyFace CandyFace changed the title from OS X 10.10 compiling isssues to OS X 10.10 compiling issues Feb 17, 2015

@hltj

This comment has been minimized.

Show comment
Hide comment
@hltj

hltj Feb 18, 2015

Contributor

wxMac/wxWidgets-3 was not supported yet.
Please follow #57 to build with wxGTK-2.8.

Contributor

hltj commented Feb 18, 2015

wxMac/wxWidgets-3 was not supported yet.
Please follow #57 to build with wxGTK-2.8.

@hltj hltj closed this Feb 18, 2015

@hltj hltj added the duplicate label Feb 18, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment