[Freeciv-Dev] [bug #18200] Configure is unable to detect frameworks

2011-06-13 Thread Marko Lindqvist

Follow-up Comment #7, bug #18200 (project freeciv):

It seemed to find header this time, but to fail compile test program. Does
attached patch help for that problem?

I still don't believe that libraries would be in directory named Headers, so
presumably you will later have problems with linking test also. Check
 locate libQtGui
and
 locate libQtGUI
in case either gives path to libraries.


(file #13193)
___

Additional Item Attachment:

File name: QApplicationConfCheckNULL_18200.diff Size:0 KB


___

Reply to this item at:

  http://gna.org/bugs/?18200

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #18200] Configure is unable to detect frameworks

2011-06-12 Thread Marko Lindqvist

Follow-up Comment #3, bug #18200 (project freeciv):

Yes, it's one line setting CFLAGS and LDFLAGS environment variables for run
of configure.

Is that not found still about headers or about libraries (they are separate
tests)? Include paths given in CFLAGS affect how headers are found, library
paths in LDFLAGS affect how libraries are found.
Configure check for headers tries to find QApplication and  library check
libraries QtGui and QtCore. Library files are named like
libQtGui.somesuffix.

If you send config.log generated when configure fails, I can check what
exactly fails in configure test.

___

Reply to this item at:

  http://gna.org/bugs/?18200

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #18200] Configure is unable to detect frameworks

2011-06-12 Thread David Lowe

Follow-up Comment #4, bug #18200 (project freeciv):

I'll attach the log.  I suspect conftest.cpp should also try to #include
QApplication/qapplication.h .

(file #13173)
___

Additional Item Attachment:

File name: config.log Size:93 KB


___

Reply to this item at:

  http://gna.org/bugs/?18200

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #18200] Configure is unable to detect frameworks

2011-06-12 Thread Marko Lindqvist

Follow-up Comment #5, bug #18200 (project freeciv):

Stupid mistake from my part. Qt-client is C++ program (and so is configure
check for it). Use CXXFLAGS instead of CFLAGS.

___

Reply to this item at:

  http://gna.org/bugs/?18200

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #18200] Configure is unable to detect frameworks

2011-06-12 Thread David Lowe

Follow-up Comment #6, bug #18200 (project freeciv):

CXXFLAGS gives me the same result.  FWIW i've started a thread at the
QtDevNet forum asking for info or an example.  
http://developer.qt.nokia.com/forums/viewthread/6743

(file #13175)
___

Additional Item Attachment:

File name: CXX-config.log Size:89 KB


___

Reply to this item at:

  http://gna.org/bugs/?18200

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #18200] Configure is unable to detect frameworks

2011-06-11 Thread David Lowe

URL:
  http://gna.org/bugs/?18200

 Summary: Configure is unable to detect frameworks
 Project: Freeciv
Submitted by: doctorjlowe
Submitted on: Sat 11 Jun 2011 03:00:44 PM GMT
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
  Status: None
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Release: 
 Discussion Lock: Any
Operating System: Mac OS
 Planned Release: 

___

Details:

Background: on OSX, many dependencies are provided as a so-called 'framework'
that includes the function library, documentation, and headers in a bundle. 
For example, the official Mac binaries for both SDL and QT are only provided
as frameworks.

This becomes an issue when a Mac user attempts to build freeciv against
either of the above mentioned interfaces.  Even though i have the QT framework
installed and am able to compile QT programs, autogen.sh --enable-client=qt
eventually fails with: checking Qt headers... not found.

Such headers are not in /usr/include , but rather [for example]
/Library/Frameworks/QtGui.framework/Versions/4/Headers/QApplication .

Further information can be found here:
http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPFrameworks/Frameworks.html%23//apple_ref/doc/uid/1183-SW1
.

I propose that we modify configure to detect frameworks, combined with minor
changes to preprocessor directives and compile time arguments to allow them to
be used by freeciv.  I have found an example of how another project handled
this here: http://hackage.haskell.org/trac/ghc/ticket/918 .




___

Reply to this item at:

  http://gna.org/bugs/?18200

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #18200] Configure is unable to detect frameworks

2011-06-11 Thread Marko Lindqvist

Update of bug #18200 (project freeciv):

 Assigned to:None = cazfi  

___

Follow-up Comment #1:

Until we get configure somehow to work around this, you can test if you can
build by setting (user) CFLAGS and LDFLAGS before configure.

Your example shows where to find headers, but we still have to find out where
are libraries. In the following example to test I assume they are in directory
named Libraries that is sibling to directory Headers.

 mkdir build
 cd build
 CFLAGS=-I/Library/Frameworks/QtGUI.framework/Versions/4/Headers
-I/Library/Frameworks/QtCore.framework/Versions/4/Headers
LDFLAGS=-L/Library/Frameworks/QtGUI.framework/Versions/4/Libraries
-L/Library/Frameworks/QtCore.framework/Versions/4/Libraries ../configure
--enable-client=qt

___

Reply to this item at:

  http://gna.org/bugs/?18200

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #18200] Configure is unable to detect frameworks

2011-06-11 Thread David Lowe

Follow-up Comment #2, bug #18200 (project freeciv):

I still get 'not found'.  Am i right that from CFLAGS= to =qt is one line?

Manually inspecting a framework reveals there is no Libraries subdirectory. 
For each of the header files, there is a similar named file right next to it. 
For example, QCoreApplication and QCoreApplication.h are both under Headers.

Based on that, i ran your example again with the LDFLAGS pointing to the
HEADERS directory, but we still get not found.

___

Reply to this item at:

  http://gna.org/bugs/?18200

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev