User forums > Help
Mac OSX: How can I get it to find "wx"
bnilsson:
Platform: Dual 2.3GHz PowerMac G5, Mac OSX 10.4.7, Xcode Tools 2.4. wxWidgets 2.6.3
Code::Blocks 1.0 revision 2913
I am an absolute beginner in C::B, I just got the application running on Mac OSX.
I created a new wxWidgets project and tried to build it, but it failed to find the header in
#include <wx/wxprec.h>
I have tried to understand how to set up global variable, but failed.
The particular file that was not found resides in
/opt/local/include/wx-2.6/wx/
The libwx* libraries are in
/opt/local/lib
Any hints?
sethjackson:
--- Quote from: bnilsson on August 30, 2006, 08:56:31 pm ---Platform: Dual 2.3GHz PowerMac G5, Mac OSX 10.4.7, Xcode Tools 2.4. wxWidgets 2.6.3
Code::Blocks 1.0 revision 2913
I am an absolute beginner in C::B, I just got the application running on Mac OSX.
I created a new wxWidgets project and tried to build it, but it failed to find the header in
#include <wx/wxprec.h>
I have tried to understand how to set up global variable, but failed.
The particular file that was not found resides in
/opt/local/include/wx-2.6/wx/
The libwx* libraries are in
/opt/local/lib
Any hints?
--- End quote ---
I think you need to point the global variable wx to /opt/local/lib
HTH
afb:
--- Quote from: bnilsson on August 30, 2006, 08:56:31 pm ---The particular file that was not found resides in
/opt/local/include/wx-2.6/wx/
The libwx* libraries are in
/opt/local/lib
--- End quote ---
I normally use "wx-config" to find those.
--- Code: ---CFLAGS=`wx-config --cflags`
CXXFLAGS=`wx-config --cxxflags`
LDFLAGS=`wx-config --libs`
--- End code ---
bnilsson:
--- Quote ---I normally use "wx-config" to find those.
Code:
CFLAGS=`wx-config --cflags`
CXXFLAGS=`wx-config --cxxflags`
LDFLAGS=`wx-config --libs`
Posted on: August 30, 2006, 04:19:14 PM
--- End quote ---
I am pretty convinced I do not know how to use this advice:
[Tiger:~] bnilsson% CFLAGS=`wx-config --cflags`
tcsh: CFLAGS=-I/opt/local/lib/wx/include/mac-ansi-release-static-2.6: Command not found.
[Tiger:~] bnilsson% CXXFLAGS=`wx-config --cxxflags`
tcsh: CXXFLAGS=-I/opt/local/lib/wx/include/mac-ansi-release-static-2.6: Command not found.
[Tiger:~] bnilsson% LDFLAGS=`wx-config --libs`
tcsh: LDFLAGS=-L/opt/local/lib: Command not found.
[Tiger:~] bnilsson%
How do I use the result?
Auria:
Calling 'wx-config' assumes you installed wx (e.g. make install) if you didn't do it, cd into the dir where you built (for me it's osx-build ) then call it - or you can also also copy inplace-mac-ansi-whatever into /usr/bin - i'm not sure how right it is to do that but at least it works fine for me
Navigation
[0] Message Index
[#] Next page
Go to full version