• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
FGFS

cmake

3 posts in this topic

Hi

with:

cmake ../simgear -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/media/DATA/FGFS/install/osgearth/include"
 

I get:

[ 75%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/scene/tgdb/ReaderWriterSTG.cxx.o
In file included from /media/DATA/FGFS/simgear/simgear/scene/tgdb/ReaderWriterSTG.cxx:51:0:
/media/DATA/FGFS/simgear/simgear/scene/util/OsgEarthLoadKML.hxx:31:28: fatal error: osgEarth/IOTypes: No such file or directory
compilation terminated.
make[2]: *** [simgear/CMakeFiles/SimGearScene.dir/scene/tgdb/ReaderWriterSTG.cxx.o] Error 1
make[1]: *** [simgear/CMakeFiles/SimGearScene.dir/all] Error 2
make: *** [all] Error 2
michael@michael-Ubuntu:/media/DATA/FGFS/simgearbuild$

 

IOTypes are in:

/media/DATA/FGFS/install/osgearth/include

 

What am I doing wrong/need to change?

Many thanks

 

0

Share this post


Link to post
Share on other sites

First, this is a build error so it is not exactly cmake that is failing.

 

Here is what I did to see what was going on. I clone the latest code from gitorious to

 

/repos/simgear

 

I prefer having the build directory in the repo but out of the source (many projects have build/* in their .gitignore for that reason). So I have,

 

/repos/simgear/build

 

From there I ran

 

$ cmake .. -DCMAKE_BUILD_TYPE=Release

 

I didn't add the CMAKE_PREFIX_PATH because that did not seem to make sense. The CMAKE_PREFIX_PATH is used to help cmake find things (libraries, headers, etc) using the cmake find_* functions. It is not the normal way of including headers from your own project and doens't work that way. Is that what you anticipated? Anyway, cmake worked so I build the code with make. It worked.

 

Since I didn't use the CMAKE_PREFIX_PATH and it worked I thought I would retry cmake again with CMAKE_PREFIX_PATH to see if there was some odd interaction going on. I actually used,

 

$ cmake .. -DCMAKE_BUILD_TYPE=Release  -DCMAKE_PREFIX_PATH="/media/DATA/FGFS/install/osgearth/include"

 

using your path, but since cmake could find everything it needed it did not seem to care. Again, the build succeeded.

 

My conclusion at this point is that you have done something to the structure of the project that is irregular. Have you restructured it? Maybe moved the directories after using cmake?

 

-Josh

Edited by jjd
0

Share this post


Link to post
Share on other sites

Thanks yes I also had a older osgearth installed. After remving this with synaptic I now get:

 

[ 75%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/scene/tgdb/ReaderWriterSTG.cxx.o
In file included from /media/DATA/FGFS/simgear/simgear/scene/tgdb/ReaderWriterSTG.cxx:51:0:
/media/DATA/FGFS/simgear/simgear/scene/util/OsgEarthLoadKML.hxx:30:28: fatal error: osgEarth/MapNode: No such file or directory
compilation terminated.
make[2]: *** [simgear/CMakeFiles/SimGearScene.dir/scene/tgdb/ReaderWriterSTG.cxx.o] Error 1
make[1]: *** [simgear/CMakeFiles/SimGearScene.dir/all] Error 2
make: *** [all] Error 2
michael@michael-Ubuntu:/media/DATA/FGFS/simgear/build$
 

but it's here:

 

michael@michael-Ubuntu:/media/DATA/FGFS/install/osgearth/include/osgEarth$ ls MapNo*
MapNode  MapNodeObserver  MapNodeOptions
 

the command was:

cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/media/DATA/FGFS/install/osgearth;/media/DATA/FGFS/install/osgearth/include" -DCMAKE_INSTALL_PREFIX=/media/DATA/FGFS/install/simgear
 

Thanks again and merry christmas

 

PS:

 

michael@michael-Ubuntu:/media/DATA/FGFS/simgear/build$ cmake ../simgear -L
CMake Error: The source "/media/DATA/FGFS/simgear/simgear/CMakeLists.txt" does not match the source "/media/DATA/FGFS/simgear/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.
-- Cache values
BUILD_TESTING:BOOL=ON
Boost_DIR:PATH=Boost_DIR-NOTFOUND
CMAKE_BUILD_TYPE:STRING=Release
CMAKE_DEBUG_POSTFIX:STRING=d
CMAKE_INSTALL_PREFIX:PATH=/media/DATA/FGFS/install/simgear
CMAKE_MINSIZEREL_POSTFIX:STRING=
CMAKE_RELEASE_POSTFIX:STRING=
CMAKE_RELWITHDEBINFO_POSTFIX:STRING=
ENABLE_OSGEARTH:BOOL=ON
ENABLE_PKGUTIL:BOOL=ON
ENABLE_RTI:BOOL=OFF
ENABLE_SOUND:BOOL=ON
ENABLE_TESTS:BOOL=ON
JPEG_FACTORY:BOOL=OFF
MSVC_3RDPARTY_ROOT:PATH=NOT_FOUND
OPENTHREADS_INCLUDE_DIR:PATH=/usr/include
OPENTHREADS_LIBRARY:FILEPATH=/usr/lib/libOpenThreads.so
OPENTHREADS_LIBRARY_DEBUG:FILEPATH=OPENTHREADS_LIBRARY_DEBUG-NOTFOUND
OSGDB_INCLUDE_DIR:PATH=/usr/include
OSGDB_LIBRARY:FILEPATH=/usr/lib/libosgDB.so
OSGDB_LIBRARY_DEBUG:FILEPATH=OSGDB_LIBRARY_DEBUG-NOTFOUND
OSGEARTHANNOTATION_LIBRARY:FILEPATH=/media/DATA/FGFS/install/osgearth/lib64/libosgEarthAnnotation.so
OSGEARTHFEATURES_LIBRARY:FILEPATH=/media/DATA/FGFS/install/osgearth/lib64/libosgEarthFeatures.so
OSGEARTHSYMBOLOGY_LIBRARY:FILEPATH=/media/DATA/FGFS/install/osgearth/lib64/libosgEarthSymbology.so
OSGEARTHUTIL_LIBRARY:FILEPATH=/media/DATA/FGFS/install/osgearth/lib64/libosgEarthUtil.so
OSGEARTH_INCLUDE_DIR:PATH=/media/DATA/FGFS/install/osgearth/include
OSGEARTH_LIBRARY:FILEPATH=/media/DATA/FGFS/install/osgearth/lib64/libosgEarth.so
OSGGA_INCLUDE_DIR:PATH=/usr/include
OSGGA_LIBRARY:FILEPATH=/usr/lib/libosgGA.so
OSGGA_LIBRARY_DEBUG:FILEPATH=OSGGA_LIBRARY_DEBUG-NOTFOUND
OSGPARTICLE_INCLUDE_DIR:PATH=/usr/include
OSGPARTICLE_LIBRARY:FILEPATH=/usr/lib/libosgParticle.so
OSGPARTICLE_LIBRARY_DEBUG:FILEPATH=OSGPARTICLE_LIBRARY_DEBUG-NOTFOUND
OSGSIM_INCLUDE_DIR:PATH=/usr/include
OSGSIM_LIBRARY:FILEPATH=/usr/lib/libosgSim.so
OSGSIM_LIBRARY_DEBUG:FILEPATH=OSGSIM_LIBRARY_DEBUG-NOTFOUND
OSGTEXT_INCLUDE_DIR:PATH=/usr/include
OSGTEXT_LIBRARY:FILEPATH=/usr/lib/libosgText.so
OSGTEXT_LIBRARY_DEBUG:FILEPATH=OSGTEXT_LIBRARY_DEBUG-NOTFOUND
OSGUTIL_INCLUDE_DIR:PATH=/usr/include
OSGUTIL_LIBRARY:FILEPATH=/usr/lib/libosgUtil.so
OSGUTIL_LIBRARY_DEBUG:FILEPATH=OSGUTIL_LIBRARY_DEBUG-NOTFOUND
OSG_INCLUDE_DIR:PATH=/usr/include
OSG_LIBRARY:FILEPATH=/usr/lib/libosg.so
OSG_LIBRARY_DEBUG:FILEPATH=OSG_LIBRARY_DEBUG-NOTFOUND
SIMGEAR_HEADLESS:BOOL=OFF
SIMGEAR_SHARED:BOOL=OFF
SYSTEM_EXPAT:BOOL=OFF
michael@michael-Ubuntu:/media/DATA/FGFS/simgear/build$
 

Edited by FGFS
0

Share this post


Link to post
Share on other sites

Oh man, I was confused! I thought that osgearth (read as osGEARth) was a part of simgear and couldn't understand why you were including simgear headers from outside the source tree... Anyway, you are going to want to address that error that cmake is reporting -- blow away the build directory and re-run cmake. Next, where does OsgEarthLoadKML.hxx come from? It is not in the simgear repository that I cloned.

 

-Josh

 

P.S. where did you get simgear from? Maybe I am using the wrong repository?

Edited by jjd
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0