creating a qt-creator project file for freeCad in ubuntu 10.04

I really like code::blocks.. and it made sense for me to use it with heekcad since both where based on wxwidget technology, but I wonder if it would be less pain for me to use qt-creator.    I’m running 64 bit 10.04 ubuntu and I had some pain getting the dependencies installed (sorry.. I normally block the pain, but just blasted my way through  on that one…

Anyway… A while bad I was making a code::blocks projects from Cmakelists.txt.  Sure enough the can be done with qt-creator….
To get the source downloaded and and compiled initially this is what I did:

923  ls
924  mkdir freecad
925  cd freecad
926  git clone git://free-cad.git.sourceforge.net/gitroot/free-cad/free-cad
927  ls
928  cd free-cad
929  cmake .
930  make
931  history

I got qt-creator from the synaptic.  I loaded qtcreator.   I was reading here that you could use cmake to generate a code::blocks project file and from there you could load the code blocks project file into qt-creator.
Searching qt-creator help I ran across this:

 

 

 

 

 

 

 

Ok, the way I was reading this was that, if I simply open a file and the wizard takes over.. If I just open the file, the file just opens…
Hmmm. Let me try opening the open to open a file or project option…. That does it… Now I got the wizard:

 

 

 

 

 

 

 

 

 

 

 

 

 

Ok… I guess I do need to make code::blocks project file…

 

jonas@jonas-laptop:~/freecad/free-cad$ cmake .. -G “CodeBlocks – Unix Makefiles”
CMake Error: The source directory “/home/jonas/freecad” does not appear to contain CMakeLists.txt.
Specify –help for usage, or press the help button on the CMake GUI.
jonas@jonas-laptop:~/freecad/free-cad$ cd free-cad
bash: cd: free-cad: No such file or directory
jonas@jonas-laptop:~/freecad/free-cad$ cmake .. -G “CodeBlocks – Unix Makefiles”
CMake Error: The source directory “/home/jonas/freecad” does not appear to contain CMakeLists.txt.
Specify –help for usage, or press the help button on the CMake GUI.
jonas@jonas-laptop:~/freecad/free-cad$ cmake -G “CodeBlocks – Unix Makefiles”
— Found Xerces-C: /usr/lib/libxerces-c.so
CMake Warning at CMakeLists.txt:172 (find_package):
Could not find module FindOCE.cmake or a configuration file for package
OCE.

Adjust CMAKE_MODULE_PATH to find FindOCE.cmake or set OCE_DIR to the
directory containing a CMake configuration file for OCE.  The file will
have one of the following names:

OCEConfig.cmake
oce-config.cmake

— OpenCASCADE include directory:
— OpenCASCADE shared libraries directory:
— Could NOT find Spnav  (missing:  SPNAV_LIBRARY SPNAV_INCLUDE_DIR)
— Platform is 64-bit, set -D_OCC64
— DEBUG: -g -DFC_DEBUG
svn: ‘/home/jonas/freecad/free-cad’ is not a working copy
sh: bzr: not found
git
/home/jonas/freecad/free-cad/src/Build/Version.h written
— Boost found: TRUE
— Build 64bit
— Coin3D doc is installed
—   Found /usr/share/doc/libcoin60-doc/html/coin.tag.gz
—   You should uncompress this file if you want to use it for source doc generation
— Configuring done
— Generating done
— Build files have been written to: /home/jonas/freecad/free-cad
jonas@jonas-laptop:~/freecad/free-cad$

So I wanted to keep the cbp out of the code trunk but I didn’t manage it:

I think I”m almost there:

 

 

 

 

 

 

I looks like I just need to click finish.
It seems to have worked.
This is strange though, I thought this process would have create a .pro file, but apparently not.  When I choose open recent project it points to the CMakeLists.txt file.  Go figure.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *