SlickEdit Community
SlickEdit Product Discussion => SlickEdit® => Topic started by: jmfrouin on March 03, 2008, 01:48:17 PM
-
Hi,
I try (without success for the moment) to setup SE with cmake.
Anyone find a solution ?
Thanks for your help
Best regards
-
I have made a generator for SlickEdit when v10 was out and I have been using on linux. I don't know if it works with other systems.
If you want the patch for current cvs version just ask.
-
Yes thanks with pleasure :)
jmfrouin@gmail.com
-
I have made a generator for SlickEdit when v10 was out and I have been using on linux. I don't know if it works with other systems.
If you want the patch for current cvs version just ask.
Any chance I can get your cmake generator?
-
@timdave: We have a custom generator for Cmake that will generate SlickEdit workspace/projects. I can give you a link to a build if you let me know what platform/OS you are looking for.
-
Lee, I would love this for Linux. I am using Arch 64-bit if that matters, but I'll take anything linux compatible even 32 bit.
I was using CLion lately instead of SlickEdit because of the cmake stuff and I would love to get back into slickedit. I just purchased 2016 (had let my license fall since 2014) and would love to use just SE instead of a combination of clion/se.
-
Awesome! I primarily use use Fedora x64, I do use Debian x64 on occasion too.
-
@timdave: We have a custom generator for Cmake that will generate SlickEdit workspace/projects. I can give you a link to a build if you let me know what platform/OS you are looking for.
Awesome! I primarily use use Fedora x64, I do use Debian x64 on occasion too.
-
@timdave Currently I am just lazy with my slickedit/cmake support. Just wanted to share this in case it helps you. Basically I set my "Build", "Rebuild" commands to something like this:
Build: make -j12 -f "%rp/build/Makefile"
Rebuild: make -j12 -f "%rp/build/Makefile" clean && make -j12 -f "%rp/build/Makefile"
Then in my main project directory I create the build dir and run the cmake, so:
$ cd /my/project/root
$ mkdir build
$ cd build
$ cmake ..
Now I can make/remake but I won't have control over the cmake part inside the IDE. So if I need to change a variable or something I would have to use the command line, so for instance if I want to run release mode or something:
$ cd build
$ rm -rf *
$ cmake -DCMAKE_BUILD_TYPE=Release ..
Now I can build again inside slickedit.
It's hacky and I prefer a better method, but it works for me for now. Just wanted to share in case you can get some use from that as well. :)
-
@timdave: We have a custom generator for Cmake that will generate SlickEdit workspace/projects. I can give you a link to a build if you let me know what platform/OS you are looking for.
I am also interested in the customer generator for cmake you've mentioned.
Would you PM me the link?
I am more interested in being able to generate the .vpw and .vpj files so that I can open the workspace and project generated by cmake for editing purposes. It would also be great that I can build from within slickedit.
My platform is debian/Jessie.
Thanks in advance!
-
Very Cool! I would also like the generator. I'm working under CentOS 7.2.
Is this a modification to CMake, or a CMake parser within SE? Any chance this can be made publicly available?
Thanks,
Peter
-
I am interested in this as well.
-
We have done some development on building a custom generator for CMake. It is currently based on CMake 3.2.2. If anyone is interested I can provide a download link to a build, just let me know which platform (Linux/Win/Mac, 32/64-bit). Can also provide the source if needed.
The customized generator builds SlickEdit workspaces and projects for tagging and navigation, and use makefiles for builds. There is a plan to eventually support more recent versions of CMake, when time allows or demand requires it. Also in future development, we would like to have it fully intergrated with our build system. But this is the first go-around with it.
-
Hi Lee,
That's sounding pretty good. Do you have a timeline for making the change available in more recent versions of CMake? We're using CMake 3.7.1 due to features we depend on and cannot revert.
Thanks,
Peter
-
We have done some development on building a custom generator for CMake. It is currently based on CMake 3.2.2. If anyone is interested I can provide a download link to a build, just let me know which platform (Linux/Win/Mac, 32/64-bit). Can also provide the source if needed.
Hi Lee. I am interested in the custom generator for CMake and would like to request a download link for a Windows 64-bit platform as well as the source.
-
There are 64-bit builds available, download here:
[removed outdated links]
Use the generator option -G "SlickEdit - Unix Makefiles". The SlickEdit generator builds SlickEdit workspaces and projects for tagging and navigation, and use makefiles for builds. You can PM me directly here if you have any issues or questions, or add to followup post in the Community Forum.
Source for that build can be found here:
[removed outdated links]
Source for the SlickEdit generator is located in:
Source/cmExtraSlickEditGenerator.cxx
Source/cmExtraSlickEditGenerator.h
I am going to try to find some time soon to upgrade to more updated versions of Cmake for those that have requested them. I'll post them up when they are ready.
-
Have updated CMake generator to more recent versions, downloads are available at these links:
Windows:
https://support.slickedit.com/outbound/cmake/cmake-3.3.2/cmake-3.3.2-win64-x64.zip
https://support.slickedit.com/outbound/cmake/cmake-3.6.3/cmake-3.6.3-win64-x64.zip
https://support.slickedit.com/outbound/cmake/cmake-3.7.2/cmake-3.7.2-win64-x64.zip
https://support.slickedit.com/outbound/cmake/cmake-3.8.0/cmake-3.8.0-win64-x64.zip
Linux:
https://support.slickedit.com/outbound/cmake/cmake-3.3.2/cmake-3.3.2-Linux-x86_64.tar.gz
https://support.slickedit.com/outbound/cmake/cmake-3.6.3/cmake-3.6.3-Linux-x86_64.tar.gz
https://support.slickedit.com/outbound/cmake/cmake-3.7.2/cmake-3.7.2-Linux-x86_64.tar.gz
https://support.slickedit.com/outbound/cmake/cmake-3.8.0/cmake-3.8.0-Linux-x86_64.tar.gz
Source:
https://support.slickedit.com/outbound/cmake/cmake-3.3.2/cmake-3.3.2_src.zip
https://support.slickedit.com/outbound/cmake/cmake-3.6.3/cmake-3.6.3_src.zip
https://support.slickedit.com/outbound/cmake/cmake-3.7.2/cmake-3.7.2_src.zip
https://support.slickedit.com/outbound/cmake/cmake-3.8.0/cmake-3.8.0_src.zip
Only have the 64-bit builds available currently, but will do 32-bit builds on request. Same for MacOS if someone needs it.
Use the generator option -G "SlickEdit - Unix Makefiles" or -G "SlickEdit - NMake Makefiles", depending on platform. The SlickEdit generator builds SlickEdit workspaces and projects for tagging and navigation, and uses makefiles for builds. You can PM me directly here if you have any issues or questions, or add to followup post in the Community Forum.
-
Do you guys have plans to submit it to cmake so it will be included in future versions?
(They are on 3.8.1 now)
-
Not in the near future. CMake's API's are still going through a lot of changes. For example, the original code we wrote was very broken for the new version. It makes more sense for us to build and test CMake versions until CMake's API's stabilize. I would hope with a very minor release they wouldn't break our changes but only time will tell.
For now, if you need some changes in a new version of CMake, please make a request.
-
3.8.0 works OK for me.
I was just wondering in general (since other editors have committed their support to the cmake repository directly).
-
I'm having an issue with the cmake you provided.
Part of my project is using a completely custom toolchain ...
So in a CMakeFiles.txt I have something like:
set(SRCS file1.a file2.a)
foreach(FILENAME ${SRCS})
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${FILENAME}.bin [snipped])
list(APPEND MY_CUSTOM_BINARIES ${CMAKE_CURRENT_BINARY_DIR}/${FILENAME}.bin)
endforeach(FILENAME)
add_custom_target(MyCustomTarget DEPENDS ${MY_CUSTOM_BINARIES}
)
And in my main target (an executeable) CMakeFiles.txt I added:
add_dependencies(MyMainTarget MyCustomTarget)
cmake itself works fine, and the SlickEdit project files are built ... but the project doesn't include the custom stuff.
Any idea how I can add that?
-
I can definitely look into it. I am guessing it is not listing or showing the custom target? What should the expected results look like? I'll can try to find some similar samples or if you could provide one that would definitely help.
-
Awesome - thanks.
If you have trouble creating such a project, let me know and I can make a dummy one for you to test with.
Since this is in a separate CMakeFile.txt in a subdir, and it contains a target, it would be nice if it was treated the same way as other targets.
In other words, a separate MyCustomTarget.vpj with the sources populated.
(Don't know if it's easy for you to backtrac to the sources from the dependencies)
-
If you can create a small sample, that would be great. That way I can see exactly the same scenario that you are seeing. We aren't CMake experts, we know just enough to be a danger to ourselves and others.
-
Haha that pretty much describes myself and cmake too.
I'll try creating one today.
In the meantime, I saw in the cmake docs that I'm supposed to add a "SOURCES" tag to the add_custom_command list ... but that doesn't work for me either.
-
Here's a tiny sample that illustrates the problem.
The Custom project simply creates an object from a binary (using objcopy), and communicates the name up to the main project which links it.
I would expect a "Custom.vpj" to be created from this.
-
We posted a new sticky thread here: https://community.slickedit.com/index.php/topic,15318.0.html (https://community.slickedit.com/index.php/topic,15318.0.html)
The CMake 3.8.0 project generator on that page includes support for utility projects like the sample above.
-
i am interested in this as well.
-
Any updates to this?
For example it doesn't support VS 2019 ...
-
It also doesn't seem to work with modern Linux distro's (like my Debian Buster), it's looking for libssl1.0 but libssl1.1 is installed (same for libcrypto).
./cmake: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory
-
I got that as well, but downloading the source provided by slickedit and building cmake myself solved that issue.
-
I got that as well, but downloading the source provided by slickedit and building cmake myself solved that issue.
I'm actually doing the same now (started when I was posting my reply), but if it doesn't work with SlickEdit 2019 it doesn't really matter.
-
I've just compiled the version 3.8 of the SlickEdit cmake sources posted here and it seems to work with SlickEdit 2019.So what did I do :
- Download the Linux sources for the Project Generator (https://support.slickedit.com/outbound/cmake/cmake-3.8.0/cmake-3.8.0_src.zip).
- Extracted into a temp directory, entered that directory, made bootstrap executable, made a directory called build and ran bootstrap from that directory.
- ran "$ make" and after that "$ make install".
- Created a simple "Hello World" program (just one main.cpp file).
- Made a CMakeLists.txt file with the basic information for the build and put it in a directory called "MakeFiles".
- Ran the Project generator (cmake -G SlickEdit - Unix Makefiles).
- Got an error and installed the ninja-build tool ($ sudo apt install ninja-build).
- re-ran the cmake command.
this made 1 SlickEdit Workspace called "Hello" and 2 ProjectsSo for the little I've tested the project generator seems to work well with SlickEdit 2019 on Debian Buster, but I didn't see an "execute" option to start the compiled program after the build (as is with a "normal" C++ project when started from within SlickEdit) so if this could be added that would be nice. Or better yet, full CMake integration ;)
Hope this helps anyone.
-
Did anybody (SlickEdit guys?) port up to recent versions of CMake?
-
Version 3.14.5 is here:
https://support.slickedit.com/outbound/CMake/cmake-3.14.5/cmake-3.14.5_src.zip (https://support.slickedit.com/outbound/CMake/cmake-3.14.5/cmake-3.14.5_src.zip)
https://support.slickedit.com/outbound/CMake/cmake-3.14.5/cmake-3.14.5_src.tar.gz (https://support.slickedit.com/outbound/CMake/cmake-3.14.5/cmake-3.14.5_src.tar.gz)
https://support.slickedit.com/outbound/CMake/cmake-3.14.5/cmake-3.14.5-win64-x64.zip (https://support.slickedit.com/outbound/CMake/cmake-3.14.5/cmake-3.14.5-win64-x64.zip)
https://support.slickedit.com/outbound/CMake/cmake-3.14.5/cmake-3.14.5-Linux-x86_64.tar.gz (https://support.slickedit.com/outbound/CMake/cmake-3.14.5/cmake-3.14.5-Linux-x86_64.tar.gz)
https://support.slickedit.com/outbound/CMake/cmake-3.14.5/cmake-3.14.5-Darwin-x86_64.tar.gz (https://support.slickedit.com/outbound/CMake/cmake-3.14.5/cmake-3.14.5-Darwin-x86_64.tar.gz)
Note that the Linux version of cmake version 3.14.5 would not build on our standard Linux build machine. This means it's much more likely it won't run on your version of Linux and that you will have to build it.
We will look into updating this to 3.16.2 which is the latest version.
-
Awesome - thanks!
-
Clark,
With the recent release of Debian 11, is there a chance of getting a version 3.18.4 of CMake (that's the version that comes with Debian 11)?
-
Latest version (3.20.5) is here:
https://community.slickedit.com/index.php/topic,18251.msg71959.html#msg71959 (https://community.slickedit.com/index.php/topic,18251.msg71959.html#msg71959)
-
Thanks!