I am developing a relatively simple C++ project in Ubuntu, basing on the OpenFrameworks toolkit, including the addon ofxUI. I use the CodeBlocks as IDE.
Each time when I build the project, it seems that the CodeBlocks and the gcc recompile all ofxUI files, in spite of the fact that these files have not been changed.
There is the "build log":
-------------- Build: Debug in libopenFrameworks ---------------
Target is up to date.
-------------- Build: Debug in RoombotsInterface ---------------
Using makefile: Makefile
compiling x86_64 object for: src/ApplicationGUI.cpp
In file included from /home/user/of/addons/ofxUI/src/ofxUI.h:170:0,
from src/main.h:58,
from src/Robot.h:10,
from src/ApplicationGUI.cpp:4:
/home/user/of/addons/ofxUI/src/ofxUIRadio.h: In member function ‘void ofxUIRadio::init(float, float, std::string, std::vector<std::basic_string<char> >, int)’:
/home/user/of/addons/ofxUI/src/ofxUIRadio.h:62:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUIRadio.h: In member function ‘virtual void ofxUIRadio::setDrawPadding(bool)’:
/home/user/of/addons/ofxUI/src/ofxUIRadio.h:75:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUIRadio.h: In member function ‘virtual void ofxUIRadio::setDrawPaddingOutline(bool)’:
/home/user/of/addons/ofxUI/src/ofxUIRadio.h:86:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUIRadio.h: In member function ‘virtual void ofxUIRadio::setVisible(bool)’:
/home/user/of/addons/ofxUI/src/ofxUIRadio.h:102:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUIRadio.h: In member function ‘void ofxUIRadio::activateToggle(std::string)’:
/home/user/of/addons/ofxUI/src/ofxUIRadio.h:110:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUIRadio.h: In member function ‘virtual void ofxUIRadio::setParent(ofxUIWidget*)’:
/home/user/of/addons/ofxUI/src/ofxUIRadio.h:134:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
In file included from /home/user/of/addons/ofxUI/src/ofxUI.h:176:0,
from src/main.h:58,
from src/Robot.h:10,
from src/ApplicationGUI.cpp:4:
/home/user/of/addons/ofxUI/src/ofxUIToggleMatrix.h: In member function ‘virtual void ofxUIToggleMatrix::setDrawPadding(bool)’:
/home/user/of/addons/ofxUI/src/ofxUIToggleMatrix.h:81:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUIToggleMatrix.h: In member function ‘virtual void ofxUIToggleMatrix::setDrawPaddingOutline(bool)’:
/home/user/of/addons/ofxUI/src/ofxUIToggleMatrix.h:92:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUIToggleMatrix.h: In member function ‘virtual void ofxUIToggleMatrix::setVisible(bool)’:
/home/user/of/addons/ofxUI/src/ofxUIToggleMatrix.h:108:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUIToggleMatrix.h: In member function ‘void ofxUIToggleMatrix::activateToggle(std::string)’:
/home/user/of/addons/ofxUI/src/ofxUIToggleMatrix.h:118:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUIToggleMatrix.h: In member function ‘virtual void ofxUIToggleMatrix::setParent(ofxUIWidget*)’:
/home/user/of/addons/ofxUI/src/ofxUIToggleMatrix.h:140:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUIToggleMatrix.h: In member function ‘void ofxUIToggleMatrix::setAllToggles(bool)’:
/home/user/of/addons/ofxUI/src/ofxUIToggleMatrix.h:162:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUIToggleMatrix.h: In member function ‘void ofxUIToggleMatrix::setAllTogglesAndTrigger(bool)’:
/home/user/of/addons/ofxUI/src/ofxUIToggleMatrix.h:171:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUIToggleMatrix.h:177:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUIToggleMatrix.h: In member function ‘void ofxUIToggleMatrix::setToggle(int, int, bool)’:
/home/user/of/addons/ofxUI/src/ofxUIToggleMatrix.h:185:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
In file included from /home/user/of/addons/ofxUI/src/ofxUI.h:181:0,
from src/main.h:58,
from src/Robot.h:10,
from src/ApplicationGUI.cpp:4:
/home/user/of/addons/ofxUI/src/ofxUIDropDownList.h: In member function ‘void ofxUIDropDownList::addToggle(std::string)’:
/home/user/of/addons/ofxUI/src/ofxUIDropDownList.h:94:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
In file included from /home/user/of/addons/ofxUI/src/ofxUI.h:181:0,
from src/main.h:58,
from src/Robot.h:10,
from src/ApplicationGUI.cpp:4:
/home/user/of/addons/ofxUI/src/ofxUIDropDownList.h: In member function ‘void ofxUIDropDownList::removeToggle(std::string)’:
/home/user/of/addons/ofxUI/src/ofxUIDropDownList.h:123:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUIDropDownList.h:138:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUIDropDownList.h: In member function ‘void ofxUIDropDownList::initToggles(std::vector<std::basic_string<char> >&, int)’:
/home/user/of/addons/ofxUI/src/ofxUIDropDownList.h:182:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUIDropDownList.h: In member function ‘virtual void ofxUIDropDownList::setParent(ofxUIWidget*)’:
/home/user/of/addons/ofxUI/src/ofxUIDropDownList.h:234:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUIDropDownList.h: In member function ‘virtual void ofxUIDropDownList::setVisible(bool)’:
/home/user/of/addons/ofxUI/src/ofxUIDropDownList.h:292:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUIDropDownList.h: In member function ‘void ofxUIDropDownList::setToggleVisibility(bool)’:
/home/user/of/addons/ofxUI/src/ofxUIDropDownList.h:301:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUIDropDownList.h: In member function ‘virtual void ofxUIDropDownList::triggerEvent(ofxUIWidget*)’:
/home/user/of/addons/ofxUI/src/ofxUIDropDownList.h:335:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUIDropDownList.h: In member function ‘void ofxUIDropDownList::activateToggle(std::string)’:
/home/user/of/addons/ofxUI/src/ofxUIDropDownList.h:354:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
In file included from /home/user/of/addons/ofxUI/src/ofxUI.h:184:0,
from src/main.h:58,
from src/Robot.h:10,
from src/ApplicationGUI.cpp:4:
/home/user/of/addons/ofxUI/src/ofxUIMovingGraph.h: In member function ‘void ofxUIMovingGraph::addPoint(float)’:
/home/user/of/addons/ofxUI/src/ofxUIMovingGraph.h:101:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
In file included from /home/user/of/addons/ofxUI/src/ofxUI.h:187:0,
from src/main.h:58,
from src/Robot.h:10,
from src/ApplicationGUI.cpp:4:
/home/user/of/addons/ofxUI/src/ofxUICanvas.h: In destructor ‘virtual ofxUICanvas::~ofxUICanvas()’:
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:44:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h: In member function ‘void ofxUICanvas::saveSettings(std::string)’:
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:146:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
In file included from /home/user/of/addons/ofxUI/src/ofxUI.h:187:0,
from src/main.h:58,
from src/Robot.h:10,
from src/ApplicationGUI.cpp:4:
/home/user/of/addons/ofxUI/src/ofxUICanvas.h: In member function ‘virtual void ofxUICanvas::update()’:
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:652:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h: In member function ‘virtual void ofxUICanvas::mouseMoved(int, int)’:
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:800:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h: In member function ‘virtual void ofxUICanvas::mouseDragged(int, int, int)’:
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:809:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h: In member function ‘virtual void ofxUICanvas::mousePressed(int, int, int)’:
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:819:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h: In member function ‘virtual void ofxUICanvas::mouseReleased(int, int, int)’:
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:828:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h: In member function ‘virtual void ofxUICanvas::windowResized(int, int)’:
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:841:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h: In member function ‘virtual void ofxUICanvas::keyPressed(int)’:
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:861:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h: In member function ‘virtual void ofxUICanvas::keyReleased(int)’:
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:869:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h: In member function ‘ofxUIWidget* ofxUICanvas::getWidgetHit(float, float)’:
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:891:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h: In member function ‘void ofxUICanvas::autoSizeToFitWidgets()’:
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:952:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h: In member function ‘void ofxUICanvas::centerWidgetsOnCanvas(bool, bool)’:
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:989:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:1020:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h: In member function ‘virtual void ofxUICanvas::removeWidget(ofxUIWidget*)’:
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:1063:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
In file included from /home/user/of/addons/ofxUI/src/ofxUI.h:187:0,
from src/main.h:58,
from src/Robot.h:10,
from src/ApplicationGUI.cpp:4:
/home/user/of/addons/ofxUI/src/ofxUICanvas.h: In member function ‘virtual void ofxUICanvas::addWidget(ofxUIWidget*)’:
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:1191:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:1238:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:1258:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h: In member function ‘ofxUIWidget* ofxUICanvas::addWidgetDown(ofxUIWidget*, ofxWidgetAlignment, bool)’:
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:1297:15: warning: enumeration value ‘OFX_UI_ALIGN_TOP’ not handled in switch [-Wswitch]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:1297:15: warning: enumeration value ‘OFX_UI_ALIGN_BOTTOM’ not handled in switch [-Wswitch]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h: In member function ‘ofxUIWidget* ofxUICanvas::addWidgetUp(ofxUIWidget*, ofxWidgetAlignment, bool)’:
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:1327:15: warning: enumeration value ‘OFX_UI_ALIGN_TOP’ not handled in switch [-Wswitch]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:1327:15: warning: enumeration value ‘OFX_UI_ALIGN_BOTTOM’ not handled in switch [-Wswitch]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h: In member function ‘void ofxUICanvas::setWidgetColor(int, ofColor)’:
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:1549:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:1556:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:1563:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:1570:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:1577:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:1584:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:1591:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h: In member function ‘void ofxUICanvas::setDrawWidgetPadding(bool)’:
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:1619:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h: In member function ‘void ofxUICanvas::setDrawWidgetPaddingOutline(bool)’:
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:1632:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUICanvas.h: In member function ‘std::vector<ofxUIWidget*> ofxUICanvas::getWidgetsOfType(ofxWidgetType)’:
/home/user/of/addons/ofxUI/src/ofxUICanvas.h:1647:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
In file included from /home/user/of/addons/ofxUI/src/ofxUI.h:188:0,
from src/main.h:58,
from src/Robot.h:10,
from src/ApplicationGUI.cpp:4:
/home/user/of/addons/ofxUI/src/ofxUIScrollableCanvas.h: In member function ‘virtual void ofxUIScrollableCanvas::update()’:
/home/user/of/addons/ofxUI/src/ofxUIScrollableCanvas.h:213:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUIScrollableCanvas.h: In member function ‘virtual void ofxUIScrollableCanvas::mouseDragged(int, int, int)’:
/home/user/of/addons/ofxUI/src/ofxUIScrollableCanvas.h:267:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUIScrollableCanvas.h: In member function ‘virtual void ofxUIScrollableCanvas::mousePressed(int, int, int)’:
/home/user/of/addons/ofxUI/src/ofxUIScrollableCanvas.h:299:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/user/of/addons/ofxUI/src/ofxUIScrollableCanvas.h: In member function ‘virtual void ofxUIScrollableCanvas::mouseReleased(int, int, int)’:
/home/user/of/addons/ofxUI/src/ofxUIScrollableCanvas.h:321:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
src/ApplicationGUI.cpp: In function ‘PSOExperimentsParametersProxyAndDescription PSOExperimentsParametersProxy_06June2012_1(const Experiment&)’:
src/ApplicationGUI.cpp:13:52: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
src/ApplicationGUI.cpp:14:91: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
src/ApplicationGUI.cpp:15:52: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
src/ApplicationGUI.cpp:16:98: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
src/ApplicationGUI.cpp:17:52: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
src/ApplicationGUI.cpp:18:91: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
src/ApplicationGUI.cpp:19:52: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
src/ApplicationGUI.cpp:20:98: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
src/ApplicationGUI.cpp:21:52: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
src/ApplicationGUI.cpp:22:91: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
src/ApplicationGUI.cpp:23:52: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
src/ApplicationGUI.cpp:24:98: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
src/ApplicationGUI.cpp:25:52: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
src/ApplicationGUI.cpp:26:91: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
src/ApplicationGUI.cpp:27:52: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
src/ApplicationGUI.cpp:28:91: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
src/ApplicationGUI.cpp:29:52: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
src/ApplicationGUI.cpp:30:91: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
src/ApplicationGUI.cpp:31:52: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
src/ApplicationGUI.cpp:32:91: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
src/ApplicationGUI.cpp:33:52: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
src/ApplicationGUI.cpp:34:88: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
src/ApplicationGUI.cpp:35:52: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
src/ApplicationGUI.cpp:36:88: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
src/ApplicationGUI.cpp:37:53: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
src/ApplicationGUI.cpp:38:67: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
src/ApplicationGUI.h: In constructor ‘ApplicationGUI::ApplicationGUI()’:
src/ApplicationGUI.h:145:11: warning: ‘ApplicationGUI::robot’ will be initialized after [-Wreorder]
src/ApplicationGUI.h:48:10: warning: ‘PSO* ApplicationGUI::d_pso’ [-Wreorder]
src/ApplicationGUI.cpp:41:1: warning: when initialized here [-Wreorder]
src/ApplicationGUI.cpp: In member function ‘void ApplicationGUI::setGUI()’:
src/ApplicationGUI.cpp:98:11: warning: unused variable ‘dim’ [-Wunused-variable]
src/ApplicationGUI.cpp: In member function ‘void ApplicationGUI::drawSerial()’:
src/ApplicationGUI.cpp:166:9: warning: unused variable ‘xOffset’ [-Wunused-variable]
src/ApplicationGUI.cpp:166:24: warning: unused variable ‘yOffset’ [-Wunused-variable]
src/ApplicationGUI.cpp: In member function ‘void ApplicationGUI::guiEvent(ofxUIEventArgs&)’:
src/ApplicationGUI.cpp:222:9: warning: unused variable ‘kind’ [-Wunused-variable]
find: `/home/user/of/addons/ofxUI/libs/*/lib/linux64': No such file or directory
find: `/home/user/of/addons/ofxXmlSettings/libs/*/lib/linux64': No such file or directory
find: `/home/user/of/addons/ofxKinect/libs/*/lib/linux64': No such file or directory
Package zlib was not found in the pkg-config search path.
Perhaps you should add the directory containing `zlib.pc'
to the PKG_CONFIG_PATH environment variable
No package 'zlib' found
linking x86_64 bin/RoombotsInterface_debug linux64
/home/user/of/addons/ofxOpenCv/libs/opencv/lib/linux64/libopencv_core.a(system.o): In function `cv::tempfile(char const*)':
system.cpp:(.text._ZN2cv8tempfileEPKc+0x2f): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
compiling done
to launch the application
cd bin
./RoombotsInterface_debug
Process terminated with status 0 (0 minutes, 24 seconds)
0 errors, 95 warnings
I have tried to include ofxUI files to the CodeBlocks, but it does not benefit anyhow. I believe the solution for this problem should be very simple, it seems I do not understand something in the compilation process.
Thank you in advance for any advice, even very small!
I am developing a relatively simple C++ project in Ubuntu, basing on the OpenFrameworks toolkit, including the addon ofxUI. I use the CodeBlocks as IDE.
Each time when I build the project, it seems that the CodeBlocks and the gcc recompile all ofxUI files, in spite of the fact that these files have not been changed. In this case, it takes very much time to build the project every time even after a very tiny editing.
There is the "build log": http://pastebin.com/AMrRMAAY
I have tried to include ofxUI files to the CodeBlocks, but it does not benefit anyhow. I believe the solution for this problem should be very simple, it seems I do not understand something in the compilation process.
Thank you in advance for any advice, even very small!
(I have also asked this question on http://forum.openframeworks.cc/. If I will receive the answer there, I will immediately put the link here, and vice versa.)
Related
I'm trying to install bochs emulator on mac machine which runs mac osx 10.8.3 But when I run the ./configure and make
I get the following error at the end of the make
carbon.cc:1318: error: ‘PaletteHandle’ was not declared in this scope
carbon.cc:1318: error: expected `;' before ‘thePal’
carbon.cc:1329: error: ‘RGBDirect’ was not declared in this scope
carbon.cc:1331: error: ‘GetPort’ was not declared in this scope
carbon.cc:1339: error: ‘SetEntries’ was not declared in this scope
carbon.cc:1341: error: ‘CTabChanged’ was not declared in this scope
carbon.cc:1343: error: ‘SetPort’ was not declared in this scope
carbon.cc:1350: error: ‘thePal’ was not declared in this scope
carbon.cc:1350: error: ‘pmTolerant’ was not declared in this scope
carbon.cc:1350: error: ‘NewPalette’ was not declared in this scope
carbon.cc:1351: error: ‘oldpal’ was not declared in this scope
carbon.cc:1351: error: ‘GetPalette’ was not declared in this scope
carbon.cc:1353: error: ‘SetPalette’ was not declared in this scope
carbon.cc:1359: error: ‘RGBDirect’ was not declared in this scope
carbon.cc: In member function ‘virtual void bx_carbon_gui_c::graphics_tile_update(Bit8u*, unsigned int, unsigned int)’:
carbon.cc:1397: error: ‘GetPort’ was not declared in this scope
carbon.cc:1400: error: ‘OffsetRect’ was not declared in this scope
carbon.cc:1403: error: ‘LockPortBits’ was not declared in this scope
carbon.cc:1405: error: ‘GetPixBaseAddr’ was not declared in this scope
carbon.cc:1409: error: ‘GetPixRowBytes’ was not declared in this scope
carbon.cc:1418: error: ‘GetPixRowBytes’ was not declared in this scope
carbon.cc:1420: error: ‘UnlockPortBits’ was not declared in this scope
carbon.cc:1422: error: ‘RGBForeColor’ was not declared in this scope
carbon.cc:1423: error: ‘RGBBackColor’ was not declared in this scope
carbon.cc:1424: error: ‘GetPortBitMapForCopyBits’ was not declared in this scope
carbon.cc:1425: error: ‘CopyBits’ was not declared in this scope
carbon.cc:1426: error: ‘QDError’ was not declared in this scope
carbon.cc:1428: error: ‘SetPort’ was not declared in this scope
carbon.cc: In member function ‘virtual void bx_carbon_gui_c::dimension_update(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)’:
carbon.cc:1459: error: ‘DisposeGWorld’ was not declared in this scope
carbon.cc:1461: error: ‘GetCTable’ was not declared in this scope
carbon.cc: In member function ‘virtual unsigned int bx_carbon_gui_c::create_bitmap(const unsigned char*, unsigned int, unsigned int)’:
carbon.cc:1529: warning: ‘GetCIcon’ is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Icons.h:308)
carbon.cc:1529: warning: ‘GetCIcon’ is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Icons.h:308)
carbon.cc: In member function ‘virtual unsigned int bx_carbon_gui_c::headerbar_bitmap(unsigned int, unsigned int, void (*)())’:
carbon.cc:1582: error: ‘SetRect’ was not declared in this scope
carbon.cc: In member function ‘virtual void bx_carbon_gui_c::exit()’:
carbon.cc:1641: error: ‘InitCursor’ was not declared in this scope
carbon.cc:1644: warning: ‘CallInScrapPromises’ is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/Scrap.h:649)
carbon.cc:1644: warning: ‘CallInScrapPromises’ is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/Scrap.h:649)
carbon.cc: In function ‘void HidePointer()’:
carbon.cc:1678: error: ‘HideCursor’ was not declared in this scope
carbon.cc:1680: error: ‘SetPt’ was not declared in this scope
carbon.cc:1681: error: ‘LocalToGlobal’ was not declared in this scope
carbon.cc:1683: warning: ‘GetMouse’ is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/Events.h:384)
carbon.cc:1683: warning: ‘GetMouse’ is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/Events.h:384)
carbon.cc: In function ‘void ShowPointer()’:
carbon.cc:1694: error: ‘InitCursor’ was not declared in this scope
carbon.cc: In function ‘void UpdateTools()’:
carbon.cc:1708: warning: ‘GetCurrentScrap’ is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/Scrap.h:263)
carbon.cc:1708: warning: ‘GetCurrentScrap’ is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/Scrap.h:263)
carbon.cc:1712: warning: ‘GetScrapFlavorFlags’ is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/Scrap.h:293)
carbon.cc:1712: warning: ‘GetScrapFlavorFlags’ is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/Scrap.h:293)
carbon.cc: In function ‘void CreateKeyMap()’:
carbon.cc:1996: warning: ‘NewPtrClear’ is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MacMemory.h:605)
carbon.cc:1996: warning: ‘NewPtrClear’ is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MacMemory.h:605)
carbon.cc: In function ‘void CreateVGAFont(unsigned char*)’:
carbon.cc:2014: error: ‘SetRect’ was not declared in this scope
carbon.cc:2021: warning: ‘NewPtrClear’ is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MacMemory.h:605)
carbon.cc:2021: warning: ‘NewPtrClear’ is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MacMemory.h:605)
carbon.cc: In function ‘BitMap* CreateBitMap(unsigned int, unsigned int)’:
carbon.cc:2047: error: ‘SetRect’ was not declared in this scope
carbon.cc: In member function ‘virtual void bx_carbon_gui_c::beep_on(float)’:
carbon.cc:2103: warning: ‘AlertSoundPlay’ is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/SystemSound.h:124)
carbon.cc:2103: warning: ‘AlertSoundPlay’ is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/SystemSound.h:124)
make[1]: *** [carbon.o] Error 1
make: *** [gui/libgui.a] Error 2
so any clue how to install the bochs on my system?
Thanks
My compass had broken
>compass compile
LoadError on line ["36"] of C: cannot load such file -- zurb-foundation
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass/configuration/data.rb:161:in `requi
re'
C:/www/project/config.rb:2:in `get_binding'
[...]
so I decided it was time to reinstall Ruby. Downloaded and installed rubyinstaller-1.9.3-p385.exe. It told me to also install the DevKit.
But gem install rdiscount --platform=ruby didn't go so well:
C:/Ruby193/bin/ruby.exe extconf.rb
checking for random()... no
checking for srandom()... no
checking for rand()... yes
checking for srand()... yes
checking size of unsigned long... 4
checking size of unsigned int... 4
creating Makefile
make
generating rdiscount-i386-mingw32.def
compiling basename.c
compiling Csio.c
Csio.c: In function 'Csputc':
Csio.c:14:5: warning: operation on 'iot->size' may be undefined
compiling css.c
css.c: In function 'mkd_css':
css.c:57:6: warning: operation on 'f.size' may be undefined
compiling docheader.c
compiling dumptree.c
dumptree.c: In function 'Pptype':
dumptree.c:23:22: warning: return discards qualifiers from pointer target type
[...]
dumptree.c:37:22: warning: return discards qualifiers from pointer target type
dumptree.c: In function 'pushpfx':
dumptree.c:44:24: warning: operation on 'sp->size' may be undefined
dumptree.c: In function 'dumptree':
dumptree.c:104:5: warning: initialization discards qualifiers from pointer target type
dumptree.c:104:5: warning: initialization discards qualifiers from pointer target type
compiling emmatch.c
emmatch.c: In function 'emfill':
emmatch.c:79:4: warning: operation on 'p->b_text.size' may be undefined
compiling generate.c
generate.c: In function 'push':
generate.c:37:2: warning: operation on 'f->in.size' may be undefined
generate.c: In function 'Qchar':
generate.c:120:9: warning: operation on 'f->Q.size' may be undefined
generate.c:127:5: warning: operation on 'cur->b_text.size' may be undefined
generate.c: In function 'Qem':
generate.c:172:17: warning: operation on 'f->Q.size' may be undefined
generate.c:179:13: warning: operation on 'f->Q.size' may be undefined
generate.c: In function '___mkd_reparse':
generate.c:197:5: warning: operation on 'sub.in.size' may be undefined
generate.c: In function 'puturl':
generate.c:228:6: warning: passing argument 1 of 'Qstring' discards qualifiers from pointer target type
generate.c:135:1: note: expected 'char *' but argument is of type 'const char *'
generate.c:230:6: warning: passing argument 1 of 'Qstring' discards qualifiers from pointer target type
generate.c:135:1: note: expected 'char *' but argument is of type 'const char *'
generate.c:232:6: warning: passing argument 1 of 'Qstring' discards qualifiers from pointer target type
generate.c:135:1: note: expected 'char *' but argument is of type 'const char *'
generate.c:236:6: warning: passing argument 1 of 'Qstring' discards qualifiers from pointer target type
generate.c:135:1: note: expected 'char *' but argument is of type 'const char *'
generate.c:238:6: warning: passing argument 2 of 'Qprintf' discards qualifiers from pointer target type
generate.c:155:1: note: expected 'char *' but argument is of type 'const char *'
generate.c: At top level:
generate.c:458:5: warning: initialization discards qualifiers from pointer target type
generate.c:459:5: warning: initialization discards qualifiers from pointer target type
generate.c:460:5: warning: initialization discards qualifiers from pointer target type
generate.c:461:5: warning: initialization discards qualifiers from pointer target type
generate.c: In function 'isautoprefix':
generate.c:473:29: warning: comparison between signed and unsigned integer expressions
generate.c: At top level:
generate.c:497:1: warning: initialization discards qualifiers from pointer target type
[...]
generate.c:514:5: warning: initialization discards qualifiers from pointer target type
generate.c: In function 'pseudo':
generate.c:527:30: warning: comparison between signed and unsigned integer expressions
generate.c: In function 'p_or_nothing':
generate.c:575:5: warning: return discards qualifiers from pointer target type
generate.c: In function 'extra_linky':
generate.c:594:3: warning: passing argument 2 of 'Qprintf' discards qualifiers from pointer target type
generate.c:155:1: note: expected 'char *' but argument is of type 'const char *'
generate.c: In function 'linkyformat':
generate.c:632:6: warning: passing argument 2 of 'Qprintf' discards qualifiers from pointer target type
generate.c:155:1: note: expected 'char *' but argument is of type 'const char *'
generate.c:633:6: warning: passing argument 2 of 'Qprintf' discards qualifiers from pointer target type
generate.c:155:1: note: expected 'char *' but argument is of type 'const char *'
generate.c:637:6: warning: passing argument 1 of 'Qstring' discards qualifiers from pointer target type
generate.c:135:1: note: expected 'char *' but argument is of type 'const char *'
generate.c: In function 'cputc':
generate.c:733:5: warning: passing argument 1 of 'Qstring' discards qualifiers from pointer target type
generate.c:135:1: note: expected 'char *' but argument is of type 'const char *'
generate.c:734:5: warning: passing argument 1 of 'Qstring' discards qualifiers from pointer target type
generate.c:135:1: note: expected 'char *' but argument is of type 'const char *'
generate.c:735:5: warning: passing argument 1 of 'Qstring' discards qualifiers from pointer target type
generate.c:135:1: note: expected 'char *' but argument is of type 'const char *'
generate.c: In function 'mangle':
generate.c:748:2: warning: passing argument 1 of 'Qstring' discards qualifiers from pointer target type
generate.c:135:1: note: expected 'char *' but argument is of type 'const char *'
[...]
generate.c:155:1: note: expected 'char *' but argument is of type 'const char *'
generate.c: At top level:
generate.c:1085:5: warning: initialization discards qualifiers from pointer target type
[...]
generate.c: In function 'smartypants':
generate.c:1119:18: warning: comparison between signed and unsigned integer expressions
generate.c:1122:3: warning: passing argument 2 of 'Qprintf' discards qualifiers from pointer target type
generate.c:155:1: note: expected 'char *' but argument is of type 'const char *'
generate.c:1144:8: warning: passing argument 1 of 'Qstring' discards qualifiers from pointer target type
generate.c:135:1: note: expected 'char *' but argument is of type 'const char *'
generate.c:1146:8: warning: passing argument 1 of 'Qstring' discards qualifiers from pointer target type
generate.c:135:1: note: expected 'char *' but argument is of type 'const char *'
generate.c: In function 'text':
generate.c:1208:2: warning: passing argument 1 of 'Qstring' discards qualifiers from pointer target type
generate.c:135:1: note: expected 'char *' but argument is of type 'const char *'
generate.c:1212:4: warning: passing argument 1 of 'Qstring' discards qualifiers from pointer target type
generate.c:135:1: note: expected 'char *' but argument is of type 'const char *'
[...]
generate.c:155:1: note: expected 'char *' but argument is of type 'const char *'
generate.c: At top level:
generate.c:1372:1: warning: initialization discards qualifiers from pointer target type
generate.c:1372:1: warning: initialization discards qualifiers from pointer target type
generate.c:1372:1: warning: initialization discards qualifiers from pointer target type
generate.c:1373:7: warning: initialization discards qualifiers from pointer target type
generate.c: In function 'splat':
generate.c:1384:5: warning: passing argument 1 of 'Qstring' discards qualifiers from pointer target type
generate.c:135:1: note: expected 'char *' but argument is of type 'const char *'
generate.c:1395:6: warning: passing argument 2 of 'Qprintf' discards qualifiers from pointer target type
generate.c:155:1: note: expected 'char *' but argument is of type 'const char *'
[...]
generate.c:135:1: note: expected 'char *' but argument is of type 'const char *'
generate.c: In function 'printblock':
generate.c:1475:5: warning: initialization discards qualifiers from pointer target type
generate.c:1475:5: warning: initialization discards qualifiers from pointer target type
generate.c:1475:5: warning: initialization discards qualifiers from pointer target type
generate.c:1476:5: warning: initialization discards qualifiers from pointer target type
generate.c:1476:5: warning: initialization discards qualifiers from pointer target type
generate.c:1476:5: warning: initialization discards qualifiers from pointer target type
generate.c:1484:3: warning: passing argument 1 of 'push' discards qualifiers from pointer target type
generate.c:34:1: note: expected 'char *' but argument is of type 'const char *'
generate.c:1490:7: warning: passing argument 1 of 'push' discards qualifiers from pointer target type
generate.c:34:1: note: expected 'char *' but argument is of type 'const char *'
generate.c: In function 'printcode':
generate.c:1507:5: warning: passing argument 1 of 'Qstring' discards qualifiers from pointer target type
generate.c:135:1: note: expected 'char *' but argument is of type 'const char *'
generate.c:1519:5: warning: passing argument 1 of 'Qstring' discards qualifiers from pointer target type
generate.c:135:1: note: expected 'char *' but argument is of type 'const char *'
generate.c: In function 'htmlify':
generate.c:1546:2: warning: passing argument 2 of 'Qprintf' discards qualifiers from pointer target type
generate.c:155:1: note: expected 'char *' but argument is of type 'const char *'
generate.c:1551:2: warning: passing argument 1 of 'Qstring' discards qualifiers from pointer target type
generate.c:135:1: note: expected 'char *' but argument is of type 'const char *'
generate.c:1555:3: warning: passing argument 2 of 'Qprintf' discards qualifiers from pointer target type
generate.c:155:1: note: expected 'char *' but argument is of type 'const char *'
generate.c: In function 'definitionlist':
generate.c:1566:2: warning: passing argument 1 of 'Qstring' discards qualifiers from pointer target type
generate.c:135:1: note: expected 'char *' but argument is of type 'const char *'
generate.c:1570:3: warning: passing argument 1 of 'Qstring' discards qualifiers from pointer target type
generate.c:135:1: note: expected 'char *' but argument is of type 'const char *'
generate.c:1572:3: warning: passing argument 1 of 'Qstring' discards qualifiers from pointer target type
generate.c:135:1: note: expected 'char *' but argument is of type 'const char *'
generate.c:1575:6: warning: passing argument 2 of 'htmlify' discards qualifiers from pointer target type
[...]
cstring.h:73:12: note: expected 'char *' but argument is of type 'const char *'
generate.c: In function 'mkd_document':
generate.c:1710:6: warning: operation on 'p->ctx->out.size' may be undefined
compiling html5.c
html5.c: In function 'mkd_with_html5_tags':
html5.c:15:5: warning: passing argument 1 of 'mkd_define_tag' discards qualifiers from pointer target type
tags.h:17:6: note: expected 'char *' but argument is of type 'const char *'
html5.c:16:5: warning: passing argument 1 of 'mkd_define_tag' discards qualifiers from pointer target type
tags.h:17:6: note: expected 'char *' but argument is of type 'const char *'
html5.c:17:5: warning: passing argument 1 of 'mkd_define_tag' discards qualifiers from pointer target type
tags.h:17:6: note: expected 'char *' but argument is of type 'const char *'
html5.c:18:5: warning: passing argument 1 of 'mkd_define_tag' discards qualifiers from pointer target type
tags.h:17:6: note: expected 'char *' but argument is of type 'const char *'
html5.c:19:5: warning: passing argument 1 of 'mkd_define_tag' discards qualifiers from pointer target type
tags.h:17:6: note: expected 'char *' but argument is of type 'const char *'
html5.c:20:5: warning: passing argument 1 of 'mkd_define_tag' discards qualifiers from pointer target type
tags.h:17:6: note: expected 'char *' but argument is of type 'const char *'
html5.c:21:5: warning: passing argument 1 of 'mkd_define_tag' discards qualifiers from pointer target type
tags.h:17:6: note: expected 'char *' but argument is of type 'const char *'
compiling markdown.c
markdown.c:104:15: warning: initialization discards qualifiers from pointer target type
markdown.c: In function 'quoteblock':
markdown.c:743:17: warning: initialization discards qualifiers from pointer target type
markdown.c:751:12: warning: assignment discards qualifiers from pointer target type
markdown.c: In function 'addfootnote':
markdown.c:955:23: warning: operation on 'f->footnotes->size' may be undefined
markdown.c:963:2: warning: operation on 'foot->tag.size' may be undefined
markdown.c:965:5: warning: operation on 'foot->tag.size' may be undefined
markdown.c:971:6: warning: operation on 'foot->title.size' may be undefined
markdown.c:976:2: warning: operation on 'foot->link.size' may be undefined
markdown.c:977:5: warning: operation on 'foot->link.size' may be undefined
markdown.c:1004:6: warning: operation on 'foot->title.size' may be undefined
markdown.c:1010:2: warning: operation on 'foot->title.size' may be undefined
compiling mkdio.c
mkdio.c: In function 'queue':
mkdio.c:59:3: warning: operation on 'p->text.size' may be undefined
mkdio.c:63:6: warning: operation on 'p->text.size' may be undefined
mkdio.c:67:5: warning: operation on 'p->text.size' may be undefined
mkdio.c: In function 'populate':
mkdio.c:113:6: warning: operation on 'line.size' may be undefined
mkdio.c: In function 'mkd_line':
mkdio.c:275:2: warning: operation on 'f.out.size' may be undefined
compiling rdiscount.c
In file included from c:\ruby193\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windows.h:48:0,
from c:\ruby193\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winsock2.h:22,
from c:/Ruby193/include/ruby-1.9.1/ruby/win32.h:40,
from c:/Ruby193/include/ruby-1.9.1/ruby/defines.h:223,
from c:/Ruby193/include/ruby-1.9.1/ruby/ruby.h:67,
from c:/Ruby193/include/ruby-1.9.1/ruby.h:32,
from rdiscount.c:2:
c:\ruby193\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windef.h:229:23: error: duplicate 'unsigned'
c:\ruby193\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windef.h:238:23: error: duplicate 'unsigned'
c:\ruby193\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windef.h:238:23: error: two or more data types in declaration specifiers
c:\ruby193\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windef.h:241:24: error: duplicate 'unsigned'
rdiscount.c: In function 'rb_rdiscount_to_html':
rdiscount.c:18:5: warning: implicit declaration of function 'rb_rdiscount__get_flags'
rdiscount.c:18:5: warning: ISO C90 forbids mixed declarations and code
rdiscount.c: In function 'rb_rdiscount_toc_content':
rdiscount.c:55:5: warning: ISO C90 forbids mixed declarations and code
make: *** [rdiscount.o] Error 1
I've tried uninstalling Ruby and removing the C:/Ruby193 directory, but the same errors still occurs.
I was hoping that I could just gem install compass and be on my way, but I still get the same error when I run compass compile.
Do you know how to fix this?
Looks like there is an issue with the latest version of rdiscount: https://github.com/rtomayko/rdiscount/issues/74
Try installing the previously tagged version:
gem install rdiscount -v=1.6.8 --platform=ruby
I tried to install Sphinx on MacOSX snow leopard 10.6.4. The steps I followed are:
./configure --prefix=/usr/local --with-mysql=/usr/local/mysql
make
sudo make install
While 'make', I get the following errors:
Making all in src
if test -d ../.svn; then svn info .. --xml | perl svnxrev.pl; fi;
make all-am
g++ -DHAVE_CONFIG_H -I. -I../config -DSYSCONFDIR="\"/usr/local/etc\"" -I/usr/local/include -I/usr/local/mysql/include -Os -g -fno-common -fno-strict-aliasing -arch i386 -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinx.o -MD -MP -MF .deps/sphinx.Tpo -c -o sphinx.o sphinx.cpp
In file included from /usr/include/sql.h:92,
from /usr/include/sqlext.h:82,
from sphinx.h:69,
from sphinx.cpp:14:
/usr/include/iodbcunix.h:128: error: conflicting declaration ‘typedef unsigned int DWORD’
sphinxstd.h:90: error: ‘DWORD’ has a previous declaration as ‘typedef long unsigned int DWORD’
sphinx.cpp: In function ‘char* sphStrMacro(const char*, const char*, SphDocID_t)’:
sphinx.cpp:1912: warning: format ‘%u’ expects type ‘unsigned int’, but argument 4 has type ‘SphDocID_t’
sphinx.cpp: In function ‘CSphString sphDumpAttr(const CSphColumnInfo&)’:
sphinx.cpp:4784: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘long unsigned int’
sphinx.cpp: In member function ‘virtual void CSphIndex_VLN::DebugDumpHeader(FILE*, const char*)’:
sphinx.cpp:14563: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘DWORD’
sphinx.cpp:14592: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long unsigned int’
sphinx.cpp:14631: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘DWORD’
sphinx.cpp: In member function ‘virtual void CSphIndex_VLN::DebugDumpDocids(FILE*)’:
sphinx.cpp:14647: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long unsigned int’
sphinx.cpp:14648: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘DWORD’
sphinx.cpp:14655: warning: format ‘%u’ expects type ‘unsigned int’, but argument 2 has type ‘long unsigned int’
sphinx.cpp:14655: warning: format ‘%u’ expects type ‘unsigned int’, but argument 3 has type ‘SphDocID_t’
sphinx.cpp: In member function ‘virtual void CSphIndex_VLN::DebugDumpHitlist(FILE*, const char*)’:
sphinx.cpp:14710: warning: format ‘%u’ expects type ‘unsigned int’, but argument 3 has type ‘SphDocID_t’
sphinx.cpp:14710: warning: format ‘%08x’ expects type ‘unsigned int’, but argument 4 has type ‘DWORD’
sphinx.cpp: In member function ‘bool CSphSource_SQL::RunQueryStep(const char*, CSphString&)’:
sphinx.cpp:18346: warning: format ‘%u’ expects type ‘unsigned int’, but argument 4 has type ‘SphDocID_t’
sphinx.cpp:18347: warning: format ‘%u’ expects type ‘unsigned int’, but argument 4 has type ‘SphDocID_t’
sphinx.cpp: In member function ‘const char* CSphSource_XMLPipe2::DecorateMessageVA(const char*, char*)’:
sphinx.cpp:20238: warning: format ‘%u’ expects type ‘unsigned int’, but argument 6 has type ‘SphDocID_t’
sphinx.cpp: In member function ‘virtual bool CSphSource_ODBC::SqlQuery(const char*)’:
sphinx.cpp:21288: warning: comparison between signed and unsigned integer expressions
sphinx.cpp: At global scope:
sphinx.cpp:1741: warning: ‘g_tmInitTimer’ defined but not used
make[2]: *** [sphinx.o] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1
I checked the directory of MySQL is correct.
I found the following suggestions helpful:
1. add the following parameter to configure:
--with-unixodbc=no
if you still get errors, try setting LDFLAGS to '-arch i386'
Mac OS X binaries are available for 2.0.1b from http://sphinxsearch.com/downloads/
I'm trying to learn Ruby on Rails and wanted to follow Apple's example:
http://developer.apple.com/tools/developonrailsleopard.html
It requires Ruby 1.8.6 and Rails 2.0.2
My machines is already updated to 1.9.1. I wanted to use rvm to install 1.8.6 but it failed during make with the following log:
[2010-10-20 10:43:31] make
eval.c: In function ‘rb_eval_string_wrap’:
eval.c:1743: warning: assignment discards qualifiers from pointer target type
eval.c: In function ‘rb_eval_cmd’:
eval.c:1884: warning: assignment discards qualifiers from pointer target type
eval.c: In function ‘call_trace_func’:
eval.c:2735: warning: assignment discards qualifiers from pointer target type
eval.c: In function ‘rb_raise_jump’:
eval.c:4760: warning: assignment discards qualifiers from pointer target type
eval.c: In function ‘method_missing’:
eval.c:5684: warning: assignment discards qualifiers from pointer target type
eval.c: In function ‘rb_call0’:
eval.c:5847: warning: assignment discards qualifiers from pointer target type
eval.c: In function ‘rb_f_eval’:
eval.c:6634: warning: assignment discards qualifiers from pointer target type
eval.c: In function ‘exec_under’:
eval.c:6658: warning: assignment discards qualifiers from pointer target type
eval.c: In function ‘rb_load’:
eval.c:6894: warning: assignment discards qualifiers from pointer target type
eval.c: In function ‘call_end_proc’:
eval.c:7924: warning: assignment discards qualifiers from pointer target type
eval.c: In function ‘rb_f_END’:
eval.c:7937: warning: assignment discards qualifiers from pointer target type
eval.c: In function ‘mproc’:
eval.c:9557: warning: assignment discards qualifiers from pointer target type
file.c: In function ‘lchmod_internal’:
file.c:1787: warning: cast from pointer to integer of different size
gc.c: In function ‘obj_free’:
gc.c:1287: warning: initialization from incompatible pointer type
regex.c: In function ‘ruby_re_compile_pattern’:
regex.c:1362: warning: format ‘%d’ expects type ‘int’, but argument 7 has type ‘long int’
regex.c:2026: warning: format ‘%d’ expects type ‘int’, but argument 6 has type ‘long int’
ptr.c: In function ‘rb_dlptr_inspect’:
ptr.c:461: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 7 has type ‘struct ptr_data *’
ptr.c:461: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 8 has type ‘void *’
void
char
short
int
long
float
double
sym.c: In function ‘rb_dlsym_inspect’:
sym.c:270: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 6 has type ‘struct sym_data *’
sym.c:270: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 7 has type ‘void *’
ossl_asn1.c: In function ‘decode_bool’:
ossl_asn1.c:313: warning: passing argument 2 of ‘d2i_ASN1_BOOLEAN’ from incompatible pointer type
ossl_asn1.c: In function ‘decode_int’:
ossl_asn1.c:328: warning: passing argument 2 of ‘d2i_ASN1_INTEGER’ from incompatible pointer type
ossl_asn1.c: In function ‘decode_bstr’:
ossl_asn1.c:347: warning: passing argument 2 of ‘d2i_ASN1_BIT_STRING’ from incompatible pointer type
ossl_asn1.c: In function ‘decode_enum’:
ossl_asn1.c:373: warning: passing argument 2 of ‘d2i_ASN1_ENUMERATED’ from incompatible pointer type
ossl_asn1.c: In function ‘decode_null’:
ossl_asn1.c:390: warning: passing argument 2 of ‘d2i_ASN1_NULL’ from incompatible pointer type
ossl_asn1.c: In function ‘decode_obj’:
ossl_asn1.c:407: warning: passing argument 2 of ‘d2i_ASN1_OBJECT’ from incompatible pointer type
ossl_asn1.c: In function ‘decode_time’:
ossl_asn1.c:435: warning: passing argument 2 of ‘d2i_ASN1_TIME’ from incompatible pointer type
ossl_asn1.c: In function ‘ossl_asn1_get_asn1type’:
ossl_asn1.c:503: warning: cast to pointer from integer of different size
ossl_asn1.c: In function ‘ossl_asn1_decode0’:
ossl_asn1.c:727: warning: passing argument 1 of ‘ASN1_get_object’ from incompatible pointer type
ossl_ns_spki.c: In function ‘ossl_spki_initialize’:
ossl_ns_spki.c:67: warning: passing argument 2 of ‘d2i_NETSCAPE_SPKI’ from incompatible pointer type
ossl_ocsp.c: In function ‘ossl_ocspreq_initialize’:
ossl_ocsp.c:114: warning: passing argument 2 of ‘d2i_OCSP_REQUEST’ from incompatible pointer type
ossl_ocsp.c: In function ‘ossl_ocspres_initialize’:
ossl_ocsp.c:321: warning: passing argument 2 of ‘d2i_OCSP_RESPONSE’ from incompatible pointer type
ossl_pkcs7.c: In function ‘ossl_pkcs7si_new’:
ossl_pkcs7.c:90: warning: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type
ossl_pkcs7.c: In function ‘DupPKCS7SignerPtr’:
ossl_pkcs7.c:103: warning: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type
ossl_pkcs7.c: In function ‘ossl_pkcs7ri_new’:
ossl_pkcs7.c:116: warning: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type
ossl_pkcs7.c: In function ‘DupPKCS7RecipientPtr’:
ossl_pkcs7.c:129: warning: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type
ossl_pkey_dsa.c: In function ‘ossl_dsa_initialize’:
ossl_pkey_dsa.c:141: warning: passing argument 1 of ‘PEM_ASN1_read_bio’ from incompatible pointer type
ossl_pkey_dsa.c:141: warning: passing argument 4 of ‘PEM_ASN1_read_bio’ from incompatible pointer type
ossl_pkey_dsa.c: In function ‘ossl_dsa_to_public_key’:
ossl_pkey_dsa.c:313: warning: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type
ossl_x509attr.c: In function ‘ossl_x509attr_initialize’:
ossl_x509attr.c:100: warning: passing argument 2 of ‘d2i_X509_ATTRIBUTE’ from incompatible pointer type
ossl_x509ext.c: In function ‘ossl_x509ext_initialize’:
ossl_x509ext.c:285: warning: passing argument 2 of ‘d2i_X509_EXTENSION’ from incompatible pointer type
ossl_x509name.c: In function ‘ossl_x509name_initialize’:
ossl_x509name.c:135: warning: passing argument 2 of ‘d2i_X509_NAME’ from incompatible pointer type
ossl_x509revoked.c: In function ‘ossl_x509revoked_new’:
ossl_x509revoked.c:48: warning: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type
ossl_x509revoked.c: In function ‘DupX509RevokedPtr’:
ossl_x509revoked.c:64: warning: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type
readline.c: In function ‘username_completion_proc_call’:
readline.c:730: error: ‘username_completion_function’ undeclared (first use in this function)
readline.c:730: error: (Each undeclared identifier is reported only once
readline.c:730: error: for each function it appears in.)
make[1]: *** [readline.o] Error 1
make: *** [all] Error 1
[2010-10-20 10:50:17] make
readline.c: In function ‘username_completion_proc_call’:
readline.c:730: error: ‘username_completion_function’ undeclared (first use in this function)
readline.c:730: error: (Each undeclared identifier is reported only once
readline.c:730: error: for each function it appears in.)
make[1]: *** [readline.o] Error 1
make: *** [all] Error 1
[2010-10-20 11:48:12] make
readline.c: In function ‘username_completion_proc_call’:
readline.c:730: error: ‘username_completion_function’ undeclared (first use in this function)
readline.c:730: error: (Each undeclared identifier is reported only once
readline.c:730: error: for each function it appears in.)
make[1]: *** [readline.o] Error 1
make: *** [all] Error 1
[2010-10-20 15:30:53] make
readline.c: In function ‘username_completion_proc_call’:
readline.c:730: error: ‘username_completion_function’ undeclared (first use in this function)
readline.c:730: error: (Each undeclared identifier is reported only once
readline.c:730: error: for each function it appears in.)
make[1]: *** [readline.o] Error 1
make: *** [all] Error 1
[2010-10-20 17:19:27] make
readline.c: In function ‘username_completion_proc_call’:
readline.c:730: error: ‘username_completion_function’ undeclared (first use in this function)
readline.c:730: error: (Each undeclared identifier is reported only once
readline.c:730: error: for each function it appears in.)
make[1]: *** [readline.o] Error 1
make: *** [all] Error 1
Can anyone help? I'm totally lost here…
That article i 2.5 years old. I wouldn't recommend following it. If you still wants to then you could try to rvm install Ruby 1.8.7. I've never heard of any compability issues between 1.8.6 and 1.8.7.
I would instead recommend that you follow Setting up a Rails Development System on Mac OSX Snow Leopard and from there the regular Getting Started with Rails.
I installed Qt and tried to build a template project (Qt4 Gui Application) in QtCreator. I can't figure out why I am getting these errors.
Running build steps for project SourceControl...
Configuration unchanged, skipping QMake step.
Starting: /usr/bin/make -w
make: Entering directory `/Users/jason/SourceControl'
g++ -c -pipe -g -gdwarf-2 -Wall -W -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.5/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtNetwork.framework/Versions/4/Headers -I/usr/include/QtNetwork -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I. -I. -F/Library/Frameworks -o main.o main.cpp
In file included from /Library/Frameworks/QtCore.framework/Headers/qnamespace.h:45,
from /Library/Frameworks/QtCore.framework/Headers/qobjectdefs.h:45,
from /Library/Frameworks/QtCore.framework/Headers/qobject.h:47,
from /Library/Frameworks/QtCore.framework/Headers/qcoreapplication.h:45,
from /Library/Frameworks/QtGui.framework/Headers/qapplication.h:45,
from /Library/Frameworks/QtGui.framework/Headers/QApplication:1,
from main.cpp:1:
/Library/Frameworks/QtCore.framework/Headers/qglobal.h:297:34: error: AvailabilityMacros.h: No such file or directory
In file included from /Library/Frameworks/QtCore.framework/Headers/qstring.h:46,
from /Library/Frameworks/QtCore.framework/Headers/qobject.h:48,
from /Library/Frameworks/QtCore.framework/Headers/qcoreapplication.h:45,
from /Library/Frameworks/QtGui.framework/Headers/qapplication.h:45,
from /Library/Frameworks/QtGui.framework/Headers/QApplication:1,
from main.cpp:1:
/Library/Frameworks/QtCore.framework/Headers/qbytearray.h:48:20: error: string.h: No such file or directory
In file included from /Library/Frameworks/QtCore.framework/Headers/qobject.h:48,
from /Library/Frameworks/QtCore.framework/Headers/qcoreapplication.h:45,
from /Library/Frameworks/QtGui.framework/Headers/qapplication.h:45,
from /Library/Frameworks/QtGui.framework/Headers/QApplication:1,
from main.cpp:1:
/Library/Frameworks/QtCore.framework/Headers/qstring.h:60:22: error: string: No such file or directory
In file included from /Library/Frameworks/QtCore.framework/Headers/qobject.h:50,
from /Library/Frameworks/QtCore.framework/Headers/qcoreapplication.h:45,
from /Library/Frameworks/QtGui.framework/Headers/qapplication.h:45,
from /Library/Frameworks/QtGui.framework/Headers/QApplication:1,
from main.cpp:1:
/Library/Frameworks/QtCore.framework/Headers/qlist.h:50:20: error: iterator: No such file or directory
/Library/Frameworks/QtCore.framework/Headers/qlist.h:51:16: error: list: No such file or directory
/Library/Frameworks/QtCore.framework/Headers/qlist.h:54:15: error: new: No such file or directory
In file included from /Library/Frameworks/QtGui.framework/Headers/qbrush.h:47,
from /Library/Frameworks/QtGui.framework/Headers/qpalette.h:47,
from /Library/Frameworks/QtGui.framework/Headers/qwidget.h:48,
from /Library/Frameworks/QtGui.framework/Headers/qmainwindow.h:45,
from /Library/Frameworks/QtGui.framework/Headers/QMainWindow:1,
from mainwindow.h:4,
from main.cpp:2:
/Library/Frameworks/QtCore.framework/Headers/qvector.h:52:18: error: vector: No such file or directory
/Library/Frameworks/QtCore.framework/Headers/qvector.h:54:20: error: stdlib.h: No such file or directory
In file included from /Library/Frameworks/QtCore.framework/Headers/qstring.h:46,
from /Library/Frameworks/QtCore.framework/Headers/qobject.h:48,
from /Library/Frameworks/QtCore.framework/Headers/qcoreapplication.h:45,
from /Library/Frameworks/QtGui.framework/Headers/qapplication.h:45,
from /Library/Frameworks/QtGui.framework/Headers/QApplication:1,
from main.cpp:1:
/Library/Frameworks/QtCore.framework/Headers/qbytearray.h: In function 'uint qstrlen(const char*)':
/Library/Frameworks/QtCore.framework/Headers/qbytearray.h:68: error: 'strlen' was not declared in this scope
/Library/Frameworks/QtCore.framework/Headers/qbytearray.h: In function 'int qstrncmp(const char*, const char*, uint)':
/Library/Frameworks/QtCore.framework/Headers/qbytearray.h:91: error: 'strncmp' was not declared in this scope
/Library/Frameworks/QtCore.framework/Headers/qbytearray.h: In function 'bool operator==(const QByteArray&, const QByteArray&)':
/Library/Frameworks/QtCore.framework/Headers/qbytearray.h:502: error: 'memcmp' was not declared in this scope
In file included from /Library/Frameworks/QtCore.framework/Headers/qobject.h:48,
from /Library/Frameworks/QtCore.framework/Headers/qcoreapplication.h:45,
from /Library/Frameworks/QtGui.framework/Headers/qapplication.h:45,
from /Library/Frameworks/QtGui.framework/Headers/QApplication:1,
from main.cpp:1:
/Library/Frameworks/QtCore.framework/Headers/qstring.h: At global scope:
/Library/Frameworks/QtCore.framework/Headers/qstring.h:65: error: expected initializer before ' QList::fromStdList()':
/Library/Frameworks/QtCore.framework/Headers/qlist.h:316: error: 'list' was not declared in this scope
/Library/Frameworks/QtCore.framework/Headers/qlist.h:316: error: 'back_inserter' is not a member of 'std'
In file included from /Library/Frameworks/QtGui.framework/Headers/qbrush.h:47,
from /Library/Frameworks/QtGui.framework/Headers/qpalette.h:47,
from /Library/Frameworks/QtGui.framework/Headers/qwidget.h:48,
from /Library/Frameworks/QtGui.framework/Headers/qmainwindow.h:45,
from /Library/Frameworks/QtGui.framework/Headers/QMainWindow:1,
from mainwindow.h:4,
from main.cpp:2:
/Library/Frameworks/QtCore.framework/Headers/qvector.h: At global scope:
/Library/Frameworks/QtCore.framework/Headers/qvector.h:293: error: expected unqualified-id before ' QVector::fromStdVector()':
/Library/Frameworks/QtCore.framework/Headers/qvector.h:294: error: 'vector' was not declared in this scope
/Library/Frameworks/QtCore.framework/Headers/qvector.h:294: error: 'back_inserter' is not a member of 'std'
/Library/Frameworks/QtCore.framework/Headers/qvector.h: In constructor 'QVector::QVector(int) [with T = QPoint]':
/Library/Frameworks/QtGui.framework/Headers/qpolygon.h:93: instantiated from here
/Library/Frameworks/QtCore.framework/Headers/qvector.h:397: error: no matching function for call to 'operator new(long unsigned int, QPoint*&)'
:0: note: candidates are: void* operator new(long unsigned int)
/Library/Frameworks/QtCore.framework/Headers/qvector.h: In constructor 'QVector::QVector(int) [with T = QPointF]':
/Library/Frameworks/QtGui.framework/Headers/qpolygon.h:152: instantiated from here
/Library/Frameworks/QtCore.framework/Headers/qvector.h:397: error: no matching function for call to 'operator new(long unsigned int, QPointF*&)'
:0: note: candidates are: void* operator new(long unsigned int)
/Library/Frameworks/QtCore.framework/Headers/qlist.h: In member function 'void QList::node_construct(QList::Node*, const T&) [with T = QString]':
/Library/Frameworks/QtCore.framework/Headers/qlist.h:426: instantiated from 'void QList::append(const T&) [with T = QString]'
/Library/Frameworks/QtCore.framework/Headers/qstringlist.h:70: instantiated from here
/Library/Frameworks/QtCore.framework/Headers/qlist.h:341: error: no matching function for call to 'operator new(long unsigned int, QList::Node*&)'
:0: note: candidates are: void* operator new(long unsigned int)
/Library/Frameworks/QtCore.framework/Headers/qlist.h: In member function 'void QList::node_copy(QList::Node*, QList::Node*, QList::Node*) [with T = QString]':
/Library/Frameworks/QtCore.framework/Headers/qlist.h:618: instantiated from 'QList& QList::operator+=(const QList&) [with T = QString]'
/Library/Frameworks/QtCore.framework/Headers/qstringlist.h:85: instantiated from here
/Library/Frameworks/QtCore.framework/Headers/qlist.h:360: error: no matching function for call to 'operator new(long unsigned int, QList::Node*)'
:0: note: candidates are: void* operator new(long unsigned int)
/Library/Frameworks/QtCore.framework/Headers/qvector.h: In member function 'void QVector::realloc(int, int) [with T = QPoint]':
/Library/Frameworks/QtCore.framework/Headers/qvector.h:315: instantiated from 'void QVector::detach_helper() [with T = QPoint]'
/Library/Frameworks/QtCore.framework/Headers/qvector.h:113: instantiated from 'QVector::QVector(const QVector&) [with T = QPoint]'
/Library/Frameworks/QtGui.framework/Headers/qpolygon.h:66: instantiated from here
/Library/Frameworks/QtCore.framework/Headers/qvector.h:444: error: no matching function for call to 'operator new(long unsigned int, QPoint*&)'
:0: note: candidates are: void* operator new(long unsigned int)
/Library/Frameworks/QtCore.framework/Headers/qvector.h:484: error: no matching function for call to 'operator new(long unsigned int, QPoint*&)'
:0: note: candidates are: void* operator new(long unsigned int)
/Library/Frameworks/QtCore.framework/Headers/qvector.h:491: error: no matching function for call to 'operator new(long unsigned int, QPoint*&)'
:0: note: candidates are: void* operator new(long unsigned int)
/Library/Frameworks/QtCore.framework/Headers/qvector.h: In member function 'void QVector::realloc(int, int) [with T = QPointF]':
/Library/Frameworks/QtCore.framework/Headers/qvector.h:315: instantiated from 'void QVector::detach_helper() [with T = QPointF]'
/Library/Frameworks/QtCore.framework/Headers/qvector.h:113: instantiated from 'QVector::QVector(const QVector&) [with T = QPointF]'
/Library/Frameworks/QtGui.framework/Headers/qpolygon.h:131: instantiated from here
/Library/Frameworks/QtCore.framework/Headers/qvector.h:444: error: no matching function for call to 'operator new(long unsigned int, QPointF*&)'
:0: note: candidates are: void* operator new(long unsigned int)
/Library/Frameworks/QtCore.framework/Headers/qvector.h:484: error: no matching function for call to 'operator new(long unsigned int, QPointF*&)'
:0: note: candidates are: void* operator new(long unsigned int)
/Library/Frameworks/QtCore.framework/Headers/qvector.h:491: error: no matching function for call to 'operator new(long unsigned int, QPointF*&)'
:0: note: candidates are: void* operator new(long unsigned int)
/Library/Frameworks/QtCore.framework/Headers/qvector.h: In member function 'void QVector::realloc(int, int) [with T = QPainterPath::Element]':
/Library/Frameworks/QtCore.framework/Headers/qvector.h:315: instantiated from 'void QVector::detach_helper() [with T = QPainterPath::Element]'
/Library/Frameworks/QtCore.framework/Headers/qvector.h:129: instantiated from 'void QVector::detach() [with T = QPainterPath::Element]'
/Library/Frameworks/QtCore.framework/Headers/qvector.h:228: instantiated from 'T* QVector::begin() [with T = QPainterPath::Element]'
/Library/Frameworks/QtCore.framework/Headers/qvector.h:241: instantiated from 'T& QVector::first() [with T = QPainterPath::Element]'
/Library/Frameworks/QtGui.framework/Headers/qpainterpath.h:370: instantiated from here
/Library/Frameworks/QtCore.framework/Headers/qvector.h:444: error: no matching function for call to 'operator new(long unsigned int, QPainterPath::Element*&)'
:0: note: candidates are: void* operator new(long unsigned int)
/Library/Frameworks/QtCore.framework/Headers/qvector.h:315: instantiated from 'void QVector::detach_helper() [with T = QPainterPath::Element]'
/Library/Frameworks/QtCore.framework/Headers/qvector.h:129: instantiated from 'void QVector::detach() [with T = QPainterPath::Element]'
/Library/Frameworks/QtCore.framework/Headers/qvector.h:228: instantiated from 'T* QVector::begin() [with T = QPainterPath::Element]'
/Library/Frameworks/QtCore.framework/Headers/qvector.h:241: instantiated from 'T& QVector::first() [with T = QPainterPath::Element]'
/Library/Frameworks/QtGui.framework/Headers/qpainterpath.h:370: instantiated from here
/Library/Frameworks/QtCore.framework/Headers/qvector.h:484: error: no matching function for call to 'operator new(long unsigned int, QPainterPath::Element*&)'
:0: note: candidates are: void* operator new(long unsigned int)
/Library/Frameworks/QtCore.framework/Headers/qvector.h:491: error: no matching function for call to 'operator new(long unsigned int, QPainterPath::Element*&)'
:0: note: candidates are: void* operator new(long unsigned int)
make: *** [main.o] Error 1
make: Leaving directory `/Users/jason/SourceControl'
Exited with code 2.
Error while building project SourceControl
When executing build step 'Make'
I'm not sure but I guess you should focus on the first error where it says it can't find AvailabilityMacros.h. I think that should be in /usr/include but I'm guessing it probably isn't since your compile line clearly shows that as one of the include paths.
If it's not there you could try to find out where it is by using find on the command line eg.
find /usr -name AvailabilityMacros.h
or whatever GUI methods are available on the Mac ( you can tell I'm not that familiar with MacOS :) ). BTW if the above find command yields nothing then you can widen the search from /usr to /.
In response to your posting of the find results:
Are you trying to build your application against the MacOSX10.5.sdk? If not then I don't think that's the version you want. If you are using the 10.5 SDK then you need to set the QMAKE_MAC_SDK qmake variable to /Developer/SDKs/MacOSX10.5.sdk. You can either do this in the project file or set it as an additional argument to qmake in Projects->Build steps.
Thanks, Troubadour. I was able to solve the problem by adding the following line to my project's .pro file:
QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.5.sdk
I would prefer to build against the Mac OS X 10.6 SDK but there is no such directory in /Developer/SDKs. If you know where I can find the 10.6 SDK please let me know.
EDIT: After updating to the latest version of Xcode, I was able to remove the line indicated above from my project's .pro file and compile successfully.