I usually run cmake-gui which gives better help on what's missing and what
variables need to be set.

Iterate that a few times to get everything right.
If you need to repeat it for a CI system or similar, then store what
variables are set manually in a script similar to your invocation after
figuring out what through the GUI.

I've only ever built OpenSG2 on Windows, so I can't help with particulars
on your *nix system.

The copy error looks suspicios though. Can you write to that location?

Cheers,
/Marcus

2017-01-06 20:10 GMT+01:00 Daniel Sperka <djspe...@ucdavis.edu>:

> Hi -
>
>    Can someone please give me commands to build opensg2 on linux? I'm
> looking at porting existing osg1.8 code to osg2, so I need to build
> libOSGSystem and libOSGWindowX (don't need GLUT or Qt)
>
> I'm not familiar with cmake or its conventions and cannot grok the correct
> incantations. Here is what I've tried so far:
>
> * Downloaded snapshot of opensg2 from sourceforge
> * create folder 'Build' root dir of opensg code
> * run cmake like so:
>
> cmake -DOpenSG_BINARY_DIR=./Build \
>                                   -DOSG_ENABLE_VTK=OFF \
>                                   -DOSG_ENABLE_C++11=ON \
>                                   -DOSG_ENABLE_FCD2CODE=ON \
>                                   -DOSG_VERBOSE_BUILD_MESSAGES=ON
>
> [ Note - I fumbled with the variables here by scanning CCacheLists.txt -
> please advise ]
>
> * cmake gives error like this:
>
> Error copying file "/home/dan/src/opensg2/OpenSG/OSGConfigured.h.cmake"
> to "/home/dan/src/opensg2/OpenSG/Source/Base/Base/
> OSGConfigured.h.tmp.cmake".
>
> - running make in spite of error gives
>
>
> [---cut---]
> /home/dan/src/opensg2/OpenSG/Source/Base/Base/OSGConfigured.h:14:2:
> error: #endif without #if
>  #endif // _OSGCONFIGURED_H_
> [---cut---]
>
>
>
> *** Contents of OSGConfigured.h
>
> [---START---]
> /* #undef OSG_WITH_NVSDKCOMMON */
>
> /* #undef OSG_WITH_NVOCLUTILS */
>
> /* #undef OSG_WITH_CUDACOMMON */
>
> /* #undef OSG_WITH_CUDAUTIL */
>
> /* #undef OSG_WITH_CUDPP */
>
> /* #undef OSG_WITH_CG */
>
> #endif // _OSGCONFIGURED_H_
> [---END---]
>
>
>
>
>
> Clearly something is broke, and I suspect I've just missed some obvious
> cmake setting. Can anyone guide me?
>
> Thanks!
>
> Dan
>
>
> --
> Daniel J. Sperka, Ph. D.
> UC Davis Center for Neuroscience
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Opensg-users mailing list
> Opensg-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/opensg-users
>
>


-- 
Med vänliga hälsningar,
Marcus Lindblom Sonestedt
*Systemarkitekt*
*BIT ADDICT *- Passion för utveckling
+46 (0)706 43 63 28
marcus.lindblom.sonest...@bitaddict.se
www.bitaddict.se
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to