Re: [CMake] toolchain file - cross-compiling windows-amd64->windows-x86

2019-09-19 Thread Gonzalo Garramuño
.bat -rxvt Then I call cmake and ninja with a bash script (both are in the bash PATH).  Find it attached. -- Gonzalo Garramuño #!/bin/bash # # Determine CPU architecture # KERNEL=`uname -s` if [[ $KERNEL == CYGWIN* ]]; then KERNEL=Windows RELEASE=(`cmd /c 'ver'`) RELEASE=${RELEAS

Re: [CMake] How do I get ExternalProject_Add to install libs/programs with sudo access

2019-06-23 Thread Gonzalo Garramuño
El 23/6/19 a las 19:21, Ruben Di Battista escribió: If I’m not mistaken, you should be able to change the install prefix using the CMAKE_ARGS option in the Configure step.     CMAKE_ARGS -DCMAKE_INSTALL_PREFIX= -DCMAKE_CXX_FLAGS='-g' Thanks, Ruben.  I am familiar with this.  I was hoping to

[CMake] How do I get ExternalProject_Add to install libs/programs with sudo access

2019-06-23 Thread Gonzalo Garramuño
I am in the process of adding ExternalProject_Add commands to my program and I find them to work okay, except when they get to the install step.  Once they reach the install, they fail as they don't have super user access to install in /usr/local/, which is where I want them. How do you work

Re: [CMake] CMake | CMake/CPack do not print out messages as they progress (#19343)

2019-06-07 Thread Gonzalo Garramuño
I found out the problem was an old ninja version. I am closing the bug report. El 06/06/19 a las 12:27, Brad King escribió: GitLab I tried CMake 3.14.5 and 3.15.0-rc1 on your example. They both behave the same. Running |ninja bundle| shows incremental output from cpack. Alternatively

Re: [CMake] ADD_CUSTOM_TARGET USES_TERMINAL not printing out stuff

2019-06-05 Thread Gonzalo Garramuño
El 05/06/19 a las 11:51, Brad King escribió: On 6/5/19 8:27 AM, Gonzalo Garramuño wrote: This used to print out all that cpack was doing while it was doing it. Now with v3.15.0-rc1 it just sits there and outputs all the text at the end when it finishes, which sucks as it looks like it has

[CMake] ADD_CUSTOM_TARGET USES_TERMINAL not printing out stuff

2019-06-05 Thread Gonzalo Garramuño
I run cpack with the trick of using a custom configuration. ADD_CUSTOM_TARGET( bundle                COMMAND "${CMAKE_CPACK_COMMAND}"                "-C" "$"                "--config" "${CMAKE_BINARY_DIR}/BundleConfig.cmake"                COMMENT "Running CPack. Please wait..."               

Re: [CMake] Cmake/Cpack creates a corrupt .rpm

2019-05-31 Thread Gonzalo Garramuño
El 30/5/19 a las 22:16, Gonzalo Garramuño escribió: El 30/5/19 a las 21:36, Zan Lynx escribió: RPM files are not cpio. They contain a cpio. Use rpm2cpio as a filter. Thanks for that.  Using: rpm2cpio mrViewer-v5.0.7-Linux-64.rpm | cpio -idmv I can extract all the contents of the archive

Re: [CMake] Cmake/Cpack creates a corrupt .rpm

2019-05-30 Thread Gonzalo Garramuño
El 30/5/19 a las 21:36, Zan Lynx escribió: RPM files are not cpio. They contain a cpio. Use rpm2cpio as a filter. Thanks for that.  Using: rpm2cpio mrViewer-v5.0.7-Linux-64.rpm | cpio -idmv I can extract all the contents of the archive with no errors. However, rpm -i bails out with a cpio:

Re: [CMake] Cmake/Cpack creates a corrupt .rpm

2019-05-30 Thread Gonzalo Garramuño
El 30/5/19 a las 12:51, Gonzalo Garramuño escribió: rpm -ql mrViewer-v5.0.6-Linux-64.rpm If I run cpio -i < mrViewer-v5.0.6-Linux-64.rpm I get a bunch of warnings of Incorrect numbers (and garbage) and Cannot make mknod: the multibyte or extended character is incomplete or inva

Re: [CMake] Cmake/Cpack creates a corrupt .rpm

2019-05-30 Thread Gonzalo Garramuño
El 30/5/19 a las 12:51, Gonzalo Garramuño escribió: I have a CMakeLists.txt (extract) with the following commands: SET(CPACK_GENERATOR DEB RPM TGZ ) # SET the installation directory. SET(CPACK_SET_DESTDIR true) # Needed SET(CPACK_INSTALL_PREFIX /usr/local/${mrViewerShortName}) SET

[CMake] Cmake/Cpack creates a corrupt .rpm

2019-05-30 Thread Gonzalo Garramuño
ge.net/projects/mrviewer/files/v5.0.6/mrViewer-v5.0.6-Linux-64.rpm/download If I use: rpm -ql mrViewer-v5.0.6-Linux-64.rpm all files are there.  However, when installing, the installer fails on reaching the lib directory of the rpm. CMake/CPack used to build the rpm just fine some (long) ve

[CMake] RC compilation failing

2019-04-09 Thread Gonzalo Garramuño
Corporation.  All rights reserved. RC : fatal error RW1023: I/O error seeking in file According to the MSDEV pages that means I don't have disk space, but that's not true.  I checked permissions too and that seemed okay too. -- Gonzalo Garramuño -- Powered by www.kitware.com Please keep

Re: [CMake] Fwd: Re: Question about CMAKE_MODULE_PATH

2019-02-18 Thread Gonzalo Garramuño
( FATAL_ERROR "your quit message" ) -- Gonzalo Garramuño -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, pl

Re: [CMake] Removing rpath paths

2018-10-28 Thread Gonzalo Garramuño
in them.  I used the commandline: chrpath -d library to remove it.  Now all is fine with the world. -- Gonzalo Garramuño -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support

Re: [CMake] Removing rpath paths

2018-10-28 Thread Gonzalo Garramuño
El 28/10/18 a las 13:59, Alexander Neundorf escribió: On 2018 M10 28, Sun 10:19:58 CET Gonzalo Garramuño wrote: ... 3) Why does running 'readelf -d myexecutable | grep RPATH' returns nothing only grep for "PATH", then you also get the newer RUNPATH entry. Alex Thanks

[CMake] Removing rpath paths

2018-10-28 Thread Gonzalo Garramuño
"" I can still run it even if LD_LIBRARY_PATH is unset? 3) Why does running 'readelf -d myexecutable | grep RPATH' returns nothing -- Gonzalo Garramuño -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ K

Re: [CMake] /W1 and resource.rc files

2018-05-14 Thread Gonzalo Garramuño
El 13/05/2018 a las 21:24, Gonzalo Garramuño escribió: I am running into trouble specifying the /W1 flag in add_definitions. This was my problem.  I should have been using add_compile_options. -- Gonzalo Garramuño -- Powered by www.kitware.com Please keep messages on-topic and check

[CMake] /W1 and resource.rc files

2018-05-13 Thread Gonzalo Garramuño
of: cl : Command line warning D9025 : overriding '/W3' with '/W1' I am unsure what sets /W3. Does anyone have a suggestion on how to work around the above, with the little fuss possible? -- Gonzalo Garramuño -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ

[CMake] /W1 and resource.rc files

2018-05-13 Thread Gonzalo Garramuño
of: cl : Command line warning D9025 : overriding '/W3' with '/W1' I am unsure what sets /W3. -- Gonzalo Garramuño -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake

Re: [CMake] VC2015 and Windows 7 compatibility

2017-09-20 Thread Gonzalo Garramuño
El 20/09/2017 a las 04:44, Elvis Stansvik escribió: 2017-09-20 7:53 GMT+02:00 Elvis Stansvik <elvis.stans...@orexplore.com>: 2017-09-19 23:22 GMT+02:00 Gonzalo Garramuño <ggarr...@gmail.com>: El 19/09/2017 a las 15:19, J Decker escribió: you can just install the runtime redi

Re: [CMake] CPack: Create debian packge for each sub-project

2017-07-23 Thread Gonzalo Garramuño
t is not possible. I would also like to know this for separate packager generators. How to call "make package" on just one package generator (like build just DEB and not RPM). -- Gonzalo Garramuño -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ

[CMake] Boost moves to CMake

2017-07-18 Thread Gonzalo Garramuño
Just posted in the boost mailing list. Congratulations to both teams! -- Gonzalo Garramuño -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more

Re: [CMake] Help on first cmake project

2017-07-07 Thread Gonzalo Garramuño
then do: $ cd .. $ rm -rf build-linux64 Thanks for helping a beginner! Florian No problem. -- Gonzalo Garramuño -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake

Re: [CMake] .so link and cpack

2017-04-09 Thread Gonzalo Garramuño
El 09/04/17 a las 07:13, Eric Noulard escribió: Hi Gonzalo, You should be able to build Deb package including symlink without trouble. Could you give the exact sequence of dpkg command which leads to the error you are speaking of? $ dpkg -i mrViewer-v3.5.8-Linux-64.deb (Leyendo la base

[CMake] .so link and cpack

2017-04-08 Thread Gonzalo Garramuño
Currently, I have a project where I build a library and an executable that depends on the library. Finally, I package a .deb package with cpack. Now, my problem is that cpack packs the symbolic link of my library and that creates problems with the deb installer ( dpkg -i ) whenever I try to

Re: [CMake] Desktop icon not safe (missing +x ) on cmake deb file

2017-03-19 Thread Gonzalo Garramuño
El 19/03/2017 a las 15:13, Gonzalo Garramuño escribió: Hi, I had a program which I compile with cmake. This program was on an NTFS partition with permissions: defaults. This meant all files were owned by root with 777 permissions. This worked fine but it was not secure and created

[CMake] Desktop icon not safe (missing +x ) on cmake deb file

2017-03-19 Thread Gonzalo Garramuño
permissions like: -rwxrwxrwx 1 gga root 1,2K mar 14 09:36 mrViewer-v3.5.4.desktop So it should be executable and it should get installed with same permissions. However, this does not work. I am at a loss on what to try. Any help is appreciated. -- Gonzalo Garramuño -- Powered

Re: [CMake] Forcing linking compatability to old libc / libstdc++ (Linux)

2017-01-26 Thread Gonzalo Garramuño
.6: version `GLIBC_2.18' not found (required by /usr/local/mrViewer/lib/libstdc++.so.6 ) -- Gonzalo Garramuño -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake

[CMake] Forcing linking compatability to old libc / libstdc++ (Linux)

2017-01-26 Thread Gonzalo Garramuño
to compile my program targeting the older libc and libstdc++. Those files come with symbol version and visibility. Is there an easy way to do that other than copying the old libraries? Any help or hint is appreciated. -- Gonzalo Garramuño -- Powered by www.kitware.com Please keep messages

Re: [CMake] install() rename with version string

2017-01-19 Thread Gonzalo Garramuño
USES_TERMINAL ) -- Gonzalo Garramuño -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http

Re: [CMake] Custom command on cpack target

2017-01-14 Thread Gonzalo Garramuño
El 10/01/17 a las 17:34, Gonzalo Garramuño escribió: I would like to run a custom command on the zip file generated by cpack. The idea is that I want to calculate its sha256 checksum. Unfortunately it seems the zip file cannot be a target in a CMakeLists.txt file or I'm doing something

[CMake] Custom command on cpack target

2017-01-10 Thread Gonzalo Garramuño
I would like to run a custom command on the zip file generated by cpack. The idea is that I want to calculate its sha256 checksum. Unfortunately it seems the zip file cannot be a target in a CMakeLists.txt file or I'm doing something wrong. Can someone give me a hand? -- Gonzalo

[CMake] Chocolatey? (Windows)

2017-01-10 Thread Gonzalo Garramuño
I was wondering if anyone was familiar with Chocolatey and whether there are plans to add support for it in cmake/cpack. For those that don't know, Chocolatey is a small Windows' utility similar to Debian's apt-get. It allows simple management of packages (binaries mainly). -- Powered by

[CMake] CMakeRelink.dir fails on make package on Ninja

2016-07-29 Thread Gonzalo
;mk" bash script to run the compilation. -- Gonzalo Garramuño ggarr...@gmail.com #!/bin/bash --norc # # Determine CPU architecture # KERNEL=`uname -s` if [[ $KERNEL == CYGWIN* ]]; then KERNEL=Windows RELEASE=(`cmd /c 'ver'`) RELEASE=${RELEASE[3]%.[0-9]*} elif [[ $KERNEL == MINGW* ]]; th

Re: [CMake] Does Makefile generated by CMake support make -jN?

2016-07-15 Thread Gonzalo
El 13/07/16 a las 03:21, Chaos Zhang escribió: Thanks for your references Decker, the condition is it cost close to three times time after i use CMake than already exist makefile to build project. And i found the CPU didn't use effectively than exist make flow, so i wonder if CMake provide

Re: [CMake] ImageMagick Not Found with CMake

2016-07-05 Thread Gonzalo
they are in /usr/local/bin and cmake does not check that. Call cmake with your standard options plus: -DImageMagick_EXECUTABLE_DIR=/usr/local/bin -- Gonzalo Garramuño ggarr...@gmail.com -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org

Re: [CMake] how to compile single source file with debug options?

2016-06-10 Thread Gonzalo
file in a directory, you'd rename the debug CMakeCache.txt file and run cmake/make. I'll let others chime in with more elegant solutions. -- Gonzalo Garramuño ggarr...@gmail.com -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wik

Re: [CMake] how to compile single source file with debug options?

2016-06-10 Thread Gonzalo
around. If you do and have a debug build, you can then just do: touch file.c and only that file will be recompiled and relinked. -- Gonzalo Garramuño ggarr...@gmail.com -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Re: [CMake] Off-topic? Winmm linking/running problems

2016-06-08 Thread Gonzalo Garramuño
On 08/06/2016 12:11 p.m., Gonzalo Garramuño wrote: I have a multiplatform viewer and recently I started to experience some very weird behavior. Found the problem being the volume control not being 32bits. Sorry for the noise. -- Powered by www.kitware.com Please keep messages on-topic

[CMake] CMake v3.6.0 rc1

2016-06-08 Thread Gonzalo Garramuño
I tried v3.6.0 rc1 but it fails on linking with a message about unknown symbols when doing cmake -E vs_link_dll on a windows library. It seems not to recognize the symbols in, for example, tinyxml2. The same code works just fine under cmake v3.5.2. -- Powered by www.kitware.com Please keep

[CMake] Off-topic? Winmm linking/running problems

2016-06-08 Thread Gonzalo Garramuño
I have a multiplatform viewer and recently I started to experience some very weird behavior. I am using the latest cmake 3.5.3 rc1 and the latest released ninja (1.7), albeit the problem appears with NMake Makefiles too. The viewer links against winmm.dll, the windows multimedia library for

Re: [CMake] How to run an install command as administrator?

2016-05-28 Thread Gonzalo Garramuño
On 26/05/2016 01:16 p.m., Juan Dent wrote: Hi, I have a simple CMakeLists.txt that tries to install at a place in the drive that requires administrator privileges. How can I make that install command to run as administrator, is there a way in CMake? If you are on Linux or Mac, it is easy.

[CMake] CPACK_NSIS_EXTRA_INSTALL_COMMANDS before install

2016-05-28 Thread Gonzalo Garramuño
Hi, I am using CPACK_NSIS_EXTRA_INSTALL_COMMANDS to create a new page where the user can select file associations (using the full syntax of NSIS). My problem is that the page gets shown after the install is done. I would like to have a variable which puts the NSIS commands before the

Re: [CMake] Using Clang + Ninja on Windows?

2016-04-21 Thread Gonzalo
th compilers compatible? That is, can I develop a program with clang but use visualc++ dlls or viceversa. -- Gonzalo Garramuño ggarr...@gmail.com -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers vari

Re: [CMake] Building CMake on gcc 5.2.1 fails

2016-03-11 Thread Gonzalo
to this. I do have the gcc/g++ libraries installed ( … a locate libstdc++ shows them). You are missing the headers to the libraries. Do a locate sstream. It should appear like: /usr/include/c++/5.2/sstream If it does not show up you need to apt-get the -dev versions of the libraries. -- Gonzalo

Re: [CMake] linking boost libraries built inside the project on mac os

2016-02-02 Thread Gonzalo
¿ That just means that the dynamic library libboost_unit_test_framework is not installed in any system directory. You can install it some system dir or use DYLD_FALLBACK_LIBRARY_PATH to specify the directory where it resides. -- Gonzalo Garramuño ggarr...@gmail.com -- Powered by www.kitware.com

Re: [CMake] [ANNOUNCE] CMake 3.4.3 available for download

2016-01-25 Thread Gonzalo Garramuño
On 25/01/2016 04:36 p.m., Robert Maynard wrote: We are pleased to announce that CMake 3.4.3 is now available for download. Please use the latest release from our download page: https://cmake.org/download/ Brad, Does this one have the fix for the FLTK_WRAP_UI? -- Powered by

Re: [CMake] Shared library for a executable

2016-01-25 Thread Gonzalo
El 22/01/16 a las 10:50, Raymond Wan escribió: Hi Gonzalo, I recently tried doing this and wrote it up as a record for myself. Of course, I don't know if it's the right way, but I'm doing it this way until I figure out a better way... See if this helps and let me know if you figure out

[CMake] Shared library for a executable

2016-01-22 Thread Gonzalo
the library and the executable. In addition, I would like my library to be able to be compiled by itself (its own project). Can someone point me how to do this? I set it up for my program with v2.8 but now this is failing on 3.4.2. -- Gonzalo Garramuño ggarr...@gmail.com -- Powered

Re: [CMake] Internal error bug in v3.4.2.

2016-01-21 Thread Gonzalo
tgt, dagChecker), entrySources); This line never ends up calling ExpandListArgument and crashes before. All variables are defined but I am suspicious of the (*it)->ge auto pointer, but cannot comment further. I hope this helps you track it. -

Re: [CMake] Internal error bug in v3.4.2.

2016-01-21 Thread Gonzalo
both projects compile from the top CMakeLists.txt file, and also be able to compile the library individually. -- Gonzalo Garramuño ggarr...@gmail.com # # These are the libraries we will depend on # # For window management FIND_PACKAGE( FLTK2 REQUIRED )# for window management

Re: [CMake] Internal error bug in v3.4.2.

2016-01-21 Thread Gonzalo
is available on SVN only here: svn co http://seriss.com/public/fltk/fltk/trunk fltk-2.0 -- Gonzalo Garramuño ggarr...@gmail.com -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support

Re: [CMake] Internal error bug in v3.4.2.

2016-01-21 Thread Gonzalo Garramuño
On 21/01/2016 03:47 p.m., Brad King wrote: On 01/21/2016 11:00 AM, Gonzalo wrote: Find attached the mrViewer/src/CMakeList.txt file that still fails. Thanks. From that I was able to reproduce it in a small test case with CMake 3.4. It appears that the problem has been fixed since

Re: [CMake] Internal error bug in v3.4.2.

2016-01-21 Thread Gonzalo
! Congratulations and thanks again. -- Gonzalo Garramuño ggarr...@gmail.com -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering

Re: [CMake] Internal error bug in v3.4.2.

2016-01-20 Thread Gonzalo
it works fine (the flags passed are compatible). So I am puzzled. -- Gonzalo Garramuño ggarr...@gmail.com -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community

Re: [CMake] Internal error bug in v3.4.2.

2016-01-20 Thread Gonzalo
El 20/01/16 a las 15:51, Brad King escribió: On 01/20/2016 01:46 PM, Gonzalo wrote: So that I know. What's the way of using FLTK now with cmake if FLTK_WRAP_UI is gone. It's not gone or even deprecated. It's just not well tested and seems to be broken in your particular case in a way

Re: [CMake] Internal error bug in v3.4.2.

2016-01-20 Thread Gonzalo
El 20/01/16 a las 11:24, Brad King escribió: On 01/19/2016 08:42 PM, Gonzalo wrote: I compiled v3.4.2 and after installing it in /usr/local, I tried running it in a project that was working fine with cmake 2.8. Thanks for reporting this. The 2.8 series was quite long. To help narrow

[CMake] Internal error bug in v3.4.2.

2016-01-19 Thread Gonzalo
Configure() [(cmake) ???:-1] 0x5c37fc : cmake::Run(std::vector<std::string, std::allocator > const&, bool) [(cmake) ???:-1] 0x513446 : do_cmake(int, char const* const*) [(cmake) ???:-1] 0x514cbe : main [(cmake) ???:-1] 0x7f9fa3b14ec5 : __libc_start_main [(libc.so.6) ???:-1] 0x51

Re: [CMake] using source files in build directory

2015-10-22 Thread Gonzalo
to a few file changes while preserving the files themselves? You are aware that you can do out of source builds, right? $ mkdir build-linux64 $ cd build-linux64 $ cmake .. # plus any options you want $ make -- Gonzalo Garramuño ggarr...@gmail.com -- Powered by www.kitware.com Please keep

Re: [CMake] Visual Studio - Ninja Generator

2015-08-31 Thread Gonzalo
El 31/08/15 a las 11:35, Guillaume Dumont escribió: Hi all, Using ninja is especially useful for projects with a lot of CUDA files which are built sequentially for every target using MSVS. I would like to contribute but I don't really know where to start and if such an effort already

Re: [CMake] CMake generates “-L/usr/local/lib” on Mac OSX

2015-08-24 Thread Gonzalo
El 24/08/15 a las 16:13, Oleg Zhylin escibió: Gonzalo, Could you please elaborate, where should I check it? In the shell, do: echo $LD_LIBRARY_PATH and check the directories. I am not sure cmake pays attention to it, but I believe it might. -- Powered by www.kitware.com Please keep

[CMake] Problem with cpack in latest cmake v3.3.1 and ninja

2015-08-17 Thread Gonzalo
I upgraded my cmake just recently and I am using the Ninja generator. The compilation and linking seems to work fine. However, when I run make package, I get the following: [2/2] Run CPack packaging tool... FAILED: cd

[CMake] ninja under windows

2015-08-03 Thread Gonzalo Garramuño
I compiled Ninja on cygwin from git. That now works fine it seems. I am trying to compile for msvc. However, when cmake runs, I get: [1/123] Building CXX object 'libACESclip\CMakeFiles\ACESclip.dir\src\ACESclipWriter.cpp.obj'ninja: fatal: unknown deps type 'msvc' $ ninja --version

Re: [CMake] CMake fails on linking.

2015-07-02 Thread Gonzalo Garramuno
). Not sure on the Mac how these are called. -- Gonzalo Garramuño -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering

[CMake] Lower the barrier of entry to the wiki

2015-02-20 Thread Gonzalo BG
it is going to be a miracle if I actually get to contribute those recipes. I think that there is just no excuse for this. Bests, Gonzalo BG -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services

[CMake] Setting environment variables on windows on install

2015-01-24 Thread Gonzalo Garramuno
I would like to set an environment variable in the NSIS installer, other than PATH during the install. Can someone show me how? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to

Re: [CMake] Out of Source CMakeLists

2015-01-20 Thread Gonzalo Garramuno
On 20/01/15 15:57, Ma O-Nigiri wrote: Is this possible? I tried fiddling with some of the path variables and it didn't pan out. I believe what you want is not possible. However, you can have: cmake/modules FindOpenEXR.cmake mytool CMakeLists.txt ( with add_subdirectory( src ) )

Re: [CMake] NSIS startup menu and icons

2015-01-12 Thread Gonzalo Garramuno
On 10/01/15 14:01, Gonzalo Garramuño wrote: I have created an NSIS section for my CMakeLists.txt and I am trying to pack and install my application (mrViewer). I managed to make it all work by flattening the destination, so that instead of ${mrViewerPackageName}/bin, it remains as bin only

[CMake] NSIS startup menu and icons

2015-01-10 Thread Gonzalo Garramuño
I have created an NSIS section for my CMakeLists.txt and I am trying to pack and install my application (mrViewer). The package builds correctly and runs just fine, but the mrViewer icon is missing in desktop and in the menu entry and the startup menu has a mrViewer entry that leads nowhere

Re: [CMake] NSIS builder creating invalid exe

2015-01-10 Thread Gonzalo Garramuno
On 09/01/15 19:22, Bill Hoffman wrote: On 1/9/2015 12:43 PM, Gonzalo Garramuño wrote: I updated my CMakeLists.txt to create an NSIS installer under a Nmake Makefile. The packaging works without errors when run with 'nmake package'. However, the resulting exe file when run, returns: Bad file

[CMake] NSIS builder creating invalid exe

2015-01-09 Thread Gonzalo Garramuño
I updated my CMakeLists.txt to create an NSIS installer under a Nmake Makefile. The packaging works without errors when run with 'nmake package'. However, the resulting exe file when run, returns: Bad file number. The problem happens on both builds for win32 and win64. The NSIS installer is

Re: [CMake] Creating an installer using cpack

2015-01-09 Thread Gonzalo Garramuno
On 08/01/15 21:56, J Decker wrote: I don't think you should install libraries like that... things in binary would be build products, can you possibly just install the libs as normal INSTALL( Target ... LIBRARY DESTINATION lib ) The lib files are not built by cmake but are dependencies for my

Re: [CMake] Creating an installer using cpack

2015-01-09 Thread Gonzalo Garramuño
NSIS problems on Windows. Thanks to all for your help. Gonzalo -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering

[CMake] Creating an installer using cpack

2015-01-08 Thread Gonzalo Garramuno
location. b) Install the c libraries in a local lib directory. for cpack packaging. Thank you very much in advance, Gonzalo -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support

Re: [CMake] missing qt on windows

2012-05-15 Thread Gonzalo Amadio
to C:/Qt/4.8.1/bin/qmake.exe Click OK :) On 15 May 2012 11:36, Gonzalo Amadio gonzaloama...@gmail.com wrote: Hello, I am trying to install MITK on windows 7 64bit. It is required to have QT, I downloaded it from http://qt.nokia.com/downloads and istalled it. I installed the Cmake GUI

[CMake] error executing example of vtk

2012-05-14 Thread Gonzalo Amadio
: No such file or directory compilation terminated. make: *** [WriteVTP.o] Error 1 Build Finished I am using Eclipse, in ubuntu 11.04. Maybe I have to set up the compiling configuration of eclipse? -- Gonzalo Amadio -- Powered by www.kitware.com Visit other Kitware open

Re: [CMake] EXECUTABLE_OUTPUT_PATH vs CMAKE_RUNTIME_OUTPUT_DIRECTORY

2008-03-04 Thread Gonzalo Garramuño
that depends on those variables. -- Gonzalo Garramuño [EMAIL PROTECTED] AMD4400 - ASUS48N-E GeForce7300GT Xubuntu Gutsy ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] [Spam] Re: EXECUTABLE_OUTPUT_PATH vs CMAKE_RUNTIME_OUTPUT_DIRECTORY

2008-03-04 Thread Gonzalo Garramuño
Andreas Pakulat wrote: On 04.03.08 10:51:10, Gonzalo Garramuño wrote: Alexander Neundorf wrote: Brad just documented this a few days ago: http://www.cmake.org/pipermail/cmake-commits/2008-February/00.html This is a pretty horrible and drastic change with no heads up. Why

Re: [CMake] cmake community site

2008-03-04 Thread Gonzalo Garramuño
Mike Jackson wrote: Also, what happens when you stop being a student with lots of time to keep the site going? That's easy. If he did a good job, he gets hired by Kitware :) -- Gonzalo Garramuño [EMAIL PROTECTED] AMD4400 - ASUS48N-E GeForce7300GT Xubuntu Gutsy

Re: [CMake] [Spam] Brandon Van Every

2008-03-04 Thread Gonzalo Garramuño
). -- Gonzalo Garramuño [EMAIL PROTECTED] AMD4400 - ASUS48N-E GeForce7300GT Xubuntu Gutsy ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Re: Raven, Antwrap, Buildr

2008-03-03 Thread Gonzalo Garramuño
only, so it is extremely bare-bones. -- Gonzalo Garramuño [EMAIL PROTECTED] AMD4400 - ASUS48N-E GeForce7300GT Xubuntu Gutsy ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Re: Changing MD - MT (+patch for free toolkit)

2008-02-19 Thread Gonzalo Garramuño
Mathieu Malaterre wrote: On Feb 19, 2008 5:43 AM, Gonzalo Garramuño [EMAIL PROTECTED] wrote: Mathieu Malaterre wrote: Ok this was yet-another-weird-dll thingy, one cannot do: class GDCM_EXPORT String : std::string { ... } Please, learn a little bit more about C++. Oh thank you ! I'll take

Re: [CMake] Re: Changing MD - MT (+patch for free toolkit)

2008-02-18 Thread Gonzalo Garramuño
. That can (and will) spell disaster for anyone else trying to use your library/functions or even for yourself if you go through pointers or references. -- Gonzalo Garramuño [EMAIL PROTECTED] AMD4400 - ASUS48N-E GeForce7300GT Xubuntu Gutsy ___ CMake

[CMake] add_custom_command as target

2008-01-17 Thread Gonzalo Garramuño
as a target (without needlessly being added to add_executable, etc). Basically, I'm trying to have a macro that compiles NVidia's .cg files to profile shaders and as such the shaders are targets that depend on the cg files. -- Gonzalo Garramuño [EMAIL PROTECTED] AMD4400 - ASUS48N-E

Re: [CMake] add_custom_command as target

2008-01-17 Thread Gonzalo Garramuño
a custom command. -- Gonzalo Garramuño [EMAIL PROTECTED] AMD4400 - ASUS48N-E GeForce7300GT Xubuntu Gutsy ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [Spam] Re: [CMake] Re: Migration to subversion

2008-01-04 Thread Gonzalo Garramuño
, if you are like me, you'll realize that you've been doing source version control wrong all these years *sigh*. -- Gonzalo Garramuño [EMAIL PROTECTED] AMD4400 - ASUS48N-E GeForce7300GT Xubuntu Gutsy ___ CMake mailing list CMake@cmake.org http://www.cmake.org

Re: [CMake] Re: Migration to subversion

2008-01-04 Thread Gonzalo Garramuño
James Mansion wrote: Gonzalo Garramuño wrote: In summary, once you use git, if you are like me, you'll realize that you've been doing source version control wrong all these years *sigh*. Does git work on Win32? Yes, but not as well as on Linux. There's two ports of it. The cygwin port

Re: [CMake] mingw32 linker line exceeds win32 limitations

2008-01-03 Thread Gonzalo Garramuño
or an executable target? Is this the same as it is used with the NMake Generator? If so, please don't make this the default. It makes it impossible to see what the link line is when make VERBOSE=1. Or just have it turn on only when the line actually does exceed the limits. -- Gonzalo

Re: [CMake] Re: Parsing cmake command line parameters

2007-12-18 Thread Gonzalo Garramuño
? The premake.lua is ALWAYS read. If no parameter is passed, there's a dry run of the file, and help with options get spit. It is gorgeous. Sure, lua runs 10 times faster than the cmake language does, but that's a different story. -- Gonzalo Garramuño [EMAIL PROTECTED] AMD4400 - ASUS48N-E

Re: [CMake] premake build system

2007-12-17 Thread Gonzalo Garramuño
help). I really like it much better than the scons derivatives, but the lack of proper dependency checking is a killer. -- Gonzalo Garramuño [EMAIL PROTECTED] AMD4400 - ASUS48N-E GeForce7300GT Xubuntu Gutsy ___ CMake mailing list CMake@cmake.org http

Re: [CMake] premake build system

2007-12-17 Thread Gonzalo Garramuño
Brandon Van Every wrote: On Dec 17, 2007 5:46 AM, Gonzalo Garramuño [EMAIL PROTECTED] wrote: premake3/4 is tiny and its syntax is *really* nice. ... Show me a tool that does something CMake *can't* do, or does badly. ... Well, in the quote that you did not keep, I posted that premake

Re: [CMake] Re: premake build system

2007-12-17 Thread Gonzalo Garramuño
is good (and a good OO framework should be better than what cmake does with FIND_PACKAGE). Things that would also earn tons of brownie points would be: * smaller than cmake (both to compile and distribute). * good for cross-compilation. -- Gonzalo Garramuño [EMAIL PROTECTED

Re: [CMake] Re: premake build system

2007-12-17 Thread Gonzalo Garramuño
Bill Hoffman wrote: Gonzalo Garramuño wrote: * good for cross-compilation. CVS CMake (and the coming 2.6 CMake) have extensive support for cross compilation. http://www.cmake.org/Wiki/CMake_Cross_Compiling I'm still having a lot of problems with it. Even cross-compiling on a 64

Re: [CMake] Re: premake build system

2007-12-17 Thread Gonzalo Garramuño
, imagine if you were using a common language like Ruby which is 125 person year project at a cost of 6 million. You'd have had 4 million to spare and 50+ additional year/developers to begin with even before you wrote your first cmake line! -- Gonzalo Garramuño [EMAIL PROTECTED] AMD4400

Re: [Spam] Re: [CMake] Re: premake build system

2007-12-17 Thread Gonzalo Garramuño
Alexander Neundorf wrote: On Monday 17 December 2007, Gonzalo Garramuño wrote: Bill Hoffman wrote: Gonzalo Garramuño wrote: * good for cross-compilation. CVS CMake (and the coming 2.6 CMake) have extensive support for cross compilation. http://www.cmake.org/Wiki/CMake_Cross_Compiling

Re: [Spam] Re: [CMake] Re: premake build system

2007-12-17 Thread Gonzalo Garramuño
David C Thompson wrote: Gonzalo Garramuño wrote: Alexander Neundorf wrote: On Monday 17 December 2007, Gonzalo Garramuño wrote: Bill Hoffman wrote: Gonzalo Garramuño wrote: * good for cross-compilation. CVS CMake (and the coming 2.6 CMake) have extensive support for cross compilation

Re: [CMake] Re: premake build system

2007-12-17 Thread Gonzalo Garramuño
UnixPaths.cmake without calling my FindBuildDir, which is a bug in how cmake deals with variables. -- Gonzalo Garramuño [EMAIL PROTECTED] AMD4400 - ASUS48N-E GeForce7300GT Xubuntu Gutsy #-*-cmake-*- # # This simple CMake extension makes sure that builds get # created inside a BUILD/os-osversion-arch

Re: [CMake] Waf build tool

2007-12-16 Thread Gonzalo Garramuño
did not even bother checking the speed. -- Gonzalo Garramuño [EMAIL PROTECTED] AMD4400 - ASUS48N-E GeForce7300GT Xubuntu Gutsy ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Waf build tool

2007-12-16 Thread Gonzalo Garramuño
) # calls A::f d) ...other... I consider a) to c) the cornerstone of OO. b and c cannot be done in cmake. a) can (only partially) be done and with an uglier syntax. -- Gonzalo Garramuño [EMAIL PROTECTED] AMD4400 - ASUS48N-E GeForce7300GT Xubuntu Gutsy

[CMake] Including of Platform/UnixPaths.cmake now broken

2007-12-10 Thread Gonzalo Garramuño
(the current one in CVS does not). or b) A fix to this broken behavior. -- Gonzalo Garramuño [EMAIL PROTECTED] AMD4400 - ASUS48N-E GeForce7300GT Xubuntu Gutsy ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo

  1   2   >