cmake 2.6.4 cannot configure sources

Everything related to the code /
Tout ce qui touche au code
Post Reply
User avatar
yoshi314
Posts: 54
Joined: Sat Feb 23, 2008 3:30 pm
Location: PL
Contact:

cmake 2.6.4 cannot configure sources

Post by yoshi314 » Sat Aug 08, 2009 11:56 am

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?

milipili
Posts: 545
Joined: Thu Nov 02, 2006 8:52 am
Location: Paris (France)
Contact:

Re: cmake 2.6.4 cannot configure sources

Post by milipili » Sat Aug 08, 2009 11:21 pm

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)
Damien Gerard
Ta3d & Yuni Developer

bigman2008
Posts: 18
Joined: Tue Jul 08, 2008 2:50 pm

Re: cmake 2.6.4 cannot configure sources

Post by bigman2008 » Sun Aug 09, 2009 8:35 pm

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.

Doors
Posts: 114
Joined: Wed Jan 09, 2008 7:53 pm
Contact:

Re: cmake 2.6.4 cannot configure sources

Post by Doors » Mon Aug 10, 2009 12:36 am

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.
Don't just look at the future through a window.
Open a door and go there.
http://ta3d.freedoors.org
http://www.freedoors.org
http://baencd.freedoors.org

User avatar
yoshi314
Posts: 54
Joined: Sat Feb 23, 2008 3:30 pm
Location: PL
Contact:

Re: cmake 2.6.4 cannot configure sources

Post by yoshi314 » Mon Aug 10, 2009 3:22 pm

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)

Doors
Posts: 114
Joined: Wed Jan 09, 2008 7:53 pm
Contact:

Re: cmake 2.6.4 cannot configure sources

Post by Doors » Mon Aug 10, 2009 6:31 pm

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.
Don't just look at the future through a window.
Open a door and go there.
http://ta3d.freedoors.org
http://www.freedoors.org
http://baencd.freedoors.org

milipili
Posts: 545
Joined: Thu Nov 02, 2006 8:52 am
Location: Paris (France)
Contact:

Re: cmake 2.6.4 cannot configure sources

Post by milipili » Mon Aug 17, 2009 2:07 pm

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.
Damien Gerard
Ta3d & Yuni Developer

milipili
Posts: 545
Joined: Thu Nov 02, 2006 8:52 am
Location: Paris (France)
Contact:

Re: cmake 2.6.4 cannot configure sources

Post by milipili » Mon Aug 17, 2009 2:37 pm

Doors wrote:P.S. - I am fighting some sort of Yuni error on R02020, double rint redeclaration.
Fixed thanks :) (yuni:r667)
Damien Gerard
Ta3d & Yuni Developer

Doors
Posts: 114
Joined: Wed Jan 09, 2008 7:53 pm
Contact:

Re: cmake 2.6.4 cannot configure sources

Post by Doors » Mon Aug 17, 2009 5:13 pm

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.
Don't just look at the future through a window.
Open a door and go there.
http://ta3d.freedoors.org
http://www.freedoors.org
http://baencd.freedoors.org

milipili
Posts: 545
Joined: Thu Nov 02, 2006 8:52 am
Location: Paris (France)
Contact:

Re: cmake 2.6.4 cannot configure sources

Post by milipili » Tue Aug 18, 2009 7:36 am

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 ?
Damien Gerard
Ta3d & Yuni Developer

Doors
Posts: 114
Joined: Wed Jan 09, 2008 7:53 pm
Contact:

Re: cmake 2.6.4 cannot configure sources

Post by Doors » Tue Aug 18, 2009 5:34 pm

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.
Don't just look at the future through a window.
Open a door and go there.
http://ta3d.freedoors.org
http://www.freedoors.org
http://baencd.freedoors.org

bigman2008
Posts: 18
Joined: Tue Jul 08, 2008 2:50 pm

Re: cmake 2.6.4 cannot configure sources

Post by bigman2008 » Thu Sep 03, 2009 10:04 pm

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!

Loom
Posts: 5
Joined: Tue Jun 02, 2009 2:56 pm

Re: cmake 2.6.4 cannot configure sources

Post by Loom » Fri Sep 04, 2009 9:19 am

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.
Bruno Borri
Yuni Developer

milipili
Posts: 545
Joined: Thu Nov 02, 2006 8:52 am
Location: Paris (France)
Contact:

Re: cmake 2.6.4 cannot configure sources

Post by milipili » Fri Sep 04, 2009 9:35 am

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.
Damien Gerard
Ta3d & Yuni Developer

xpoy
Posts: 669
Joined: Mon Sep 22, 2008 3:55 am

Re: cmake 2.6.4 cannot configure sources

Post by xpoy » Fri Sep 11, 2009 12:47 pm

there are a cmake pack on door's site, that one work well except some wrong commands

Doors
Posts: 114
Joined: Wed Jan 09, 2008 7:53 pm
Contact:

Re: cmake 2.6.4 cannot configure sources

Post by Doors » Sun Sep 13, 2009 10:58 pm

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.
Don't just look at the future through a window.
Open a door and go there.
http://ta3d.freedoors.org
http://www.freedoors.org
http://baencd.freedoors.org

xpoy
Posts: 669
Joined: Mon Sep 22, 2008 3:55 am

Re: cmake 2.6.4 cannot configure sources

Post by xpoy » Mon Sep 14, 2009 2:30 am

yours work well.
That problem can be a users problem, /:^]

Post Reply

Who is online

Users browsing this forum: No registered users and 45 guests