FXThread.cpp compile error fox-1.7.20

View: New views
4 Messages — Rating Filter:   Alert me  

FXThread.cpp compile error fox-1.7.20

by John Selverian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I'm building fox-1.7.20 on mac OS X.  I'm using the same commands that
worked for fox-1.6.34


env CXXFLAGS="-arch i386 -arch ppc" LDFLAGS="-arch i386 -arch ppc"

./configure --with-x --with-opengl --enable-cups --enable-release
--disable-shared


when I execute "make" it seems to go well but dies with the following error:


FXThread.cpp: In member function ‘FX::FXbool
FX::FXCondition::wait(FX::FXMutex&, FX::FXTime)’:
FXThread.cpp:1156: error: ‘struct timespec’ has no member named ‘tv_src’
FXThread.cpp: In static member function ‘static FX::FXint
FX::FXThread::processors()’:
FXThread.cpp:1473: error: ‘CTL_HW’ was not declared in this scope
FXThread.cpp:1473: error: ‘HW_NCPU’ was not declared in this scope
FXThread.cpp:1475: error: ‘sysctl’ was not declared in this scope
FXThread.cpp: At global scope:
FXThread.cpp:1519: warning: unused parameter ‘prio’
FXThread.cpp:1611: warning: unused parameter ‘plcy’
make[1]: *** [FXThread.lo] Error 1
make: *** [all-recursive] Error 1






------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Foxgui-users mailing list
Foxgui-users@...
https://lists.sourceforge.net/lists/listinfo/foxgui-users

Re: FXThread.cpp compile error fox-1.7.20

by Jeroen van der Zijp-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



-----Original Message-----
From: "John Selverian" <john.selverian@...>
Sent: Sunday, September 27, 2009 5:15pm
To: foxgui-users@...
Subject: [Foxgui-users] FXThread.cpp compile error fox-1.7.20


I'm building fox-1.7.20 on mac OS X. I'm using the same commands that
worked for fox-1.6.34


env CXXFLAGS="-arch i386 -arch ppc" LDFLAGS="-arch i386 -arch ppc"

./configure --with-x --with-opengl --enable-cups --enable-release
--disable-shared


when I execute "make" it seems to go well but dies with the following error:


FXThread.cpp: In member function ‘FX::FXbool
FX::FXCondition::wait(FX::FXMutex&, FX::FXTime)’:
FXThread.cpp:1156: error: ‘struct timespec’ has no member named ‘tv_src’

Its a typo; consider it fixed.

FXThread.cpp: In static member function ‘static FX::FXint
FX::FXThread::processors()’:
FXThread.cpp:1473: error: ‘CTL_HW’ was not declared in this scope
FXThread.cpp:1473: error: ‘HW_NCPU’ was not declared in this scope
FXThread.cpp:1475: error: ‘sysctl’ was not declared in this scope

I don't have a mac; please advice as to how to get #cpu's on mac, or how to get
given code to compile.

FXThread.cpp: At global scope:
FXThread.cpp:1519: warning: unused parameter ‘prio’
FXThread.cpp:1611: warning: unused parameter ‘plcy’

Thread priority can not actually be changed, this is a no-op on Mac.






------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Foxgui-users mailing list
Foxgui-users@...
https://lists.sourceforge.net/lists/listinfo/foxgui-users

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Foxgui-users mailing list
Foxgui-users@...
https://lists.sourceforge.net/lists/listinfo/foxgui-users

Re: FXThread.cpp compile error fox-1.7.20

by jeroen-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Monday 28 September 2009, Jeroen van der Zijp wrote:

>
> -----Original Message-----
> From: "John Selverian" <john.selverian@...>
> Sent: Sunday, September 27, 2009 5:15pm
> To: foxgui-users@...
> Subject: [Foxgui-users] FXThread.cpp compile error fox-1.7.20
>
>
> I'm building fox-1.7.20 on mac OS X.  I'm using the same commands that
> worked for fox-1.6.34
>
>
> env CXXFLAGS="-arch i386 -arch ppc" LDFLAGS="-arch i386 -arch ppc"
>
> ./configure --with-x --with-opengl --enable-cups --enable-release
> --disable-shared
>
>
> when I execute "make" it seems to go well but dies with the following error:
>
>
> FXThread.cpp: In member function ‘FX::FXbool
> FX::FXCondition::wait(FX::FXMutex&, FX::FXTime)’:
> FXThread.cpp:1156: error: ‘struct timespec’ has no member named ‘tv_src’
>
> Its a typo; consider it fixed.
>
> FXThread.cpp: In static member function ‘static FX::FXint
> FX::FXThread::processors()’:
> FXThread.cpp:1473: error: ‘CTL_HW’ was not declared in this scope
> FXThread.cpp:1473: error: ‘HW_NCPU’ was not declared in this scope
> FXThread.cpp:1475: error: ‘sysctl’ was not declared in this scope
>
> I don't have a mac; please advice as to how to get #cpu's on mac, or how to get
> given code to compile.
>
> FXThread.cpp: At global scope:
> FXThread.cpp:1519: warning: unused parameter ‘prio’
> FXThread.cpp:1611: warning: unused parameter ‘plcy’
>
> Thread priority can not actually be changed, this is a no-op on Mac.
Try this (attached)

Changes: include needed header files, in case missing from xincs.h.
Also, test for #def's, not system.

I have one other way to get ncpus, in case the attached file still doesn't work;
please let me know if it does since the other way is not preferable.


                - Jeroen

[attachment removed]
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Foxgui-users mailing list
Foxgui-users@...
https://lists.sourceforge.net/lists/listinfo/foxgui-users

Parent Message unknown Re: FXThread.cpp compile error fox-1.7.20

by jeroen-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tuesday 29 September 2009, John Selverian wrote:

>
> fox compiles but my program now fails on linking.  I'm using the same link
> options as with v1.6 but I get the following errors:
>
> LIBS = -lFOX-1.7 -lXext -lX11 -lXcursor -lXrandr -lm -lstdc++-static
>
>
> Undefined symbols:
>   "_XRenderQueryExtension", referenced from:
>       FX::FXApp::openDisplay(char const*)in libFOX-1.7.a(FXApp.o)
>   "_XListInputDevices", referenced from:
>       FX::FXApp::openInputDevices()     in libFOX-1.7.a(FXApp.o)
>   "_XFreeDeviceList", referenced from:
>       FX::FXApp::openInputDevices()     in libFOX-1.7.a(FXApp.o)
>   "_XFixesQueryExtension", referenced from:
>       FX::FXApp::openDisplay(char const*)in libFOX-1.7.a(FXApp.o)
>   "_XGetExtensionVersion", referenced from:
>       FX::FXApp::openInputDevices()     in libFOX-1.7.a(FXApp.o)
>   "_XRenderQueryVersion", referenced from:
>       FX::FXApp::openDisplay(char const*)in libFOX-1.7.a(FXApp.o)
>   "_XOpenDevice", referenced from:
>       FX::FXApp::openInputDevices()     in libFOX-1.7.a(FXApp.o)
>   "_XCloseDevice", referenced from:
>       FX::FXApp::closeInputDevices()     in libFOX-1.7.a(FXApp.o)
>       FX::FXApp::closeDisplay()     in libFOX-1.7.a(FXApp.o)
>   "_XSelectExtensionEvent", referenced from:
>       FX::FXWindow::enable()    in libFOX-1.7.a(FXWindow.o)
>       FX::FXWindow::disable()    in libFOX-1.7.a(FXWindow.o)
>       FX::FXWindow::create()    in libFOX-1.7.a(FXWindow.o)
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make: *** [ColorCalculator_mac] Error 1

You're missing -lXrender -lXfixes -lXi.  Just add these to your
link line and you'll be OK.


                - Jeroen

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Foxgui-users mailing list
Foxgui-users@...
https://lists.sourceforge.net/lists/listinfo/foxgui-users