Page 1 of 1

cmake 2.6.4 cannot configure sources

Posted: Sat Aug 08, 2009 11:56 am
by yoshi314
i've been stuck for this since ~ a week or so, when trying to run cmake . in src directory.

Code: Select all

CMake Error at CMakeLists.txt:53 (ADD_SUBDIRECTORY):
  add_subdirectory given source "libs/yuni/src" which is not an existing
  directory.
does anybody have a clue what does that dir do in CMakeFiles.txt ? what is that "yuni" library?

Re: cmake 2.6.4 cannot configure sources

Posted: Sat Aug 08, 2009 11:21 pm
by milipili
If you're using the svn repository, you have to checkout // update your working copy with externals. Yuni is a cross-platform framework (not part of Ta3d), still in development.
(http://trac.libyuni.org)

Re: cmake 2.6.4 cannot configure sources

Posted: Sun Aug 09, 2009 8:35 pm
by bigman2008
Yes I have this problem too even with cmake 2.6.3 and cmake 2.7 dev version. I don't know what is going on with that.

Re: cmake 2.6.4 cannot configure sources

Posted: Mon Aug 10, 2009 12:36 am
by Doors
yoshi314 wrote:i've been stuck for this since ~ a week or so, when trying to run cmake . in src directory.

Code: Select all

CMake Error at CMakeLists.txt:53 (ADD_SUBDIRECTORY):
  add_subdirectory given source "libs/yuni/src" which is not an existing
  directory.
does anybody have a clue what does that dir do in CMakeFiles.txt ? what is that "yuni" library?
First the cmake configuration expects to be working on a live SVN copy.
I got this kind of errors when working on a non SVN copy, took me what felt like forever to trace it since no meaningful error message is given.

I am not sure what platform you are working on but I solved it on mine by disabling all of the SVN updates.

If you want to try what I did, grab either of these.
They are SVN revision 2007 (R02007) in a single archive that compiles on win32 with Mingw 4.4.0

http://ta3d.freedoors.org/Source/Ta3DR02007.7z
http://ta3d.freedoors.org/Source/Ta3dR02007.exe

If you are working on Win32 then feel free to grab

http://ta3d.freedoors.org/Compiler/Ta3Dev.exe

for a working setup. It extracts to C:\Ta3Dev by default. Profile name of Ta3d hard coded.
It is compatible with running multiple copies without one effecting the others. (I do a lot of parallel testing.)
Cmake is limited though, it likes to remember wherever you last ran it.

My mod is only in three cmakelists.txt files. Do a test search for Doors, I mark all my mods for testing.
./cmakelists.txt
./ta3d/cmakelists.txt
./libs/yuni/src/cmakelists.txt

Good luck.

P.S. - I am fighting some sort of Yuni error on R02020, double rint redeclaration.

Re: cmake 2.6.4 cannot configure sources

Posted: Mon Aug 10, 2009 3:22 pm
by yoshi314
i figured out the issue - i tend to checkout svn via git-svn and it didn't fetch that library somehow (if it's an external svn source - that might be the reason)

Re: cmake 2.6.4 cannot configure sources

Posted: Mon Aug 10, 2009 6:31 pm
by Doors
yoshi314 wrote:i figured out the issue - i tend to checkout svn via git-svn and it didn't fetch that library somehow (if it's an external svn source - that might be the reason)
The Ta3d SVN links somehow to the Yuni SVN so that updating Ta3d also updates Yuni.

Tortoise handles it, the context menu stuff drives me batty though.

Re: cmake 2.6.4 cannot configure sources

Posted: Mon Aug 17, 2009 2:07 pm
by milipili
yoshi314 wrote:i figured out the issue - i tend to checkout svn via git-svn and it didn't fetch that library somehow (if it's an external svn source - that might be the reason)
Yes, as said before, you need to fetch externals as well. The external link will disappear as soon as a stable version of Yuni is available.

Re: cmake 2.6.4 cannot configure sources

Posted: Mon Aug 17, 2009 2:37 pm
by milipili
Doors wrote:P.S. - I am fighting some sort of Yuni error on R02020, double rint redeclaration.
Fixed thanks :) (yuni:r667)

Re: cmake 2.6.4 cannot configure sources

Posted: Mon Aug 17, 2009 5:13 pm
by Doors
milipili wrote:
Doors wrote:P.S. - I am fighting some sort of Yuni error on R02020, double rint redeclaration.
Fixed thanks :) (yuni:r667)
Thanks.

R02020 compiles with Mingw 4.4.0 on Win32

I will have an updated source package up hopefully by tonight.

A fresh demo package in the next few days.

Re: cmake 2.6.4 cannot configure sources

Posted: Tue Aug 18, 2009 7:36 am
by milipili
A mailing list is already available about issues specific to libyuni, and its developers rarely read this forum. Perhaps would you] prefer a forum (like for ta3d) to report issues or to request some help about this library ?

Re: cmake 2.6.4 cannot configure sources

Posted: Tue Aug 18, 2009 5:34 pm
by Doors
milipili wrote:A mailing list is already available about issues specific to libyuni, and its developers rarely read this forum. Perhaps would you] prefer a forum (like for ta3d) to report issues or to request some help about this library ?
I was not sure the problem was with libyuni.
The error message was unclear to me, so I mentioned it here hoping someone would recognize it.

The whole reason I quit using Cygwin is because if you run multiple copies what you do in one effects the others, it also expects to be in your master path.
I could not tell if Ta3d was effecting Libyuni or visa versa, or something else.

C/C++ is so not my thing. I much prefer working at the hardware level, it's easier.

Re: cmake 2.6.4 cannot configure sources

Posted: Thu Sep 03, 2009 10:04 pm
by bigman2008
here is mybuild log.

-- --- TA3D, Remake of the Total Annihilation engine ---
--
-- Version : v0.6.0 (Rev: 2031)
-- System : Windows-5.1 (x86)
--
-- The Yuni Framework
--
-- Version : v0.1-debug (Rev: 744)
-- System: Windows-5.1 (x86)
-- Folders
-- root: `J:/Ta3d/Ta3Dev/home/TA3D/latest/ta3d/src/libs/yuni/src`
-- libs: `J:/Ta3d/Ta3Dev/home/TA3D/latest/ta3d/src/libs/yuni/src/../bin/static/`
-- [Profile] Default
-- unzip: J:/Ta3d/Ta3Dev/home/TA3D/latest/ta3d/src/libs/yuni/bin/unzip.exe
-- [!!] Warning: The Gfx3D module is disabled. The module `ui3d` can not be enabled.
--
-- Modules
--
-- Build Configuration: Debug
-- Threading Support: PThreads for Windows (via DevPacks)
-- DevPack: pthreads (2.8.0-r3, windows, i386, vs.unknown, all): Missing
-- . Extracting the receipt file
-- Configuring incomplete, errors occurred!

Re: cmake 2.6.4 cannot configure sources

Posted: Fri Sep 04, 2009 9:19 am
by Loom
Yuni uses special packs for external libraries, particularly pthreads for windows.
DevPack: pthreads (2.8.0-r3, windows, i386, vs.unknown, all)
This means you use an unrecognized version of Visual Studio. Since currently recognized versions are VS8 (2005) and VS9 (2008), I suppose you either use VS7 (2003) or VS6 (.NET).
Whichever it is, I strongly suggest you upgrade to a more recent version. You may find VS2008 Express here.

If however, you are using a recent version and the devpack loader still finds a "vs.unknown", then it's a hideous bug we shall strive to destroy mercilessly.

Re: cmake 2.6.4 cannot configure sources

Posted: Fri Sep 04, 2009 9:35 am
by milipili
You can compile libyuni with Visual Studio (v8 and v9) but Ta3d does not compile with any version of Visual Studio yet. Please use mingw instead.

Re: cmake 2.6.4 cannot configure sources

Posted: Fri Sep 11, 2009 12:47 pm
by xpoy
there are a cmake pack on door's site, that one work well except some wrong commands

Re: cmake 2.6.4 cannot configure sources

Posted: Sun Sep 13, 2009 10:58 pm
by Doors
xpoy wrote:there are a cmake pack on door's site, that one work well except some wrong commands
Whats the problem?

I posted everything in working condition, I thought.

If I glitched I would like to know.

The 4.4.0 pack should self extract fine.
Then extract an r0xxxx source pack pack.
Goes into /home/ta3d/r0xxxx with xxxx being the svn revision.

If my directions are unclear please let me know so I can fix them.

Thanks.

Re: cmake 2.6.4 cannot configure sources

Posted: Mon Sep 14, 2009 2:30 am
by xpoy
yours work well.
That problem can be a users problem, /:^]