|
Post by bigbass on Dec 18, 2020 6:23:00 GMT 1
Hello I am testing cmake builds they are working correctly *however if you are a new bacon user and stumbled here the official bacon package is here for your OS www.basic-converter.org/with that notice said here we go with cmake builds -------------------------------------------------------------------------- cmake building bacongui-fltksourceforge.net/p/bassix-gtk3-webkit-browser/wiki/Cmake-bacongui-fltk/version gets updated on the wiki page easier to maintain and less forum space needed for downloads and images HISTORY tech notes that may be useful to know there were some difficult problems to overcome to get fltk to compile a lot of trial and error later the light came on and I renamed the bacon source file from *bac.c to *bac.cxx and then cmake could build it ! cmake can take c code and compile it with the c compiler but if you want to use a c++ compiler (fltk code) we are forced to use *.cxx or *.cpp type of file naming must be some built in detection I couldn't override but found a fix for that
|
|
|
Post by vovchik on Dec 18, 2020 17:06:14 GMT 1
Dear Joe, Thanks for that. I was able to run "setup" after modifying the cmake version info at the top of the CMakeLists.txt file (on my mint I need 10.2). Both the bacon and fltk version work. With kind regards, vovchik
|
|
|
Post by bigbass on Dec 18, 2020 17:45:57 GMT 1
Hello vovchik Thanks for the feedback that's a good point about the cmake version will have to do something about that I had to do the same on the RPI3 then thought it would be ok so thanks for the heads up on mint maybe I can add a cmake version test to the setup and give a message tip if they don't match? I added an uninstaller TECH NOTES: By default, CMake does not provide the "make uninstall" target, so you cannot do this. We do not want "make uninstall" to remove useful files from the system. but they provide code to add that feature back in gitlab.kitware.com/cmake/community/-/wikis/FAQ#can-i-do-make-uninstall-with-cmakeI added this fix to the build already so it works correctly with cmake now #sudo make uninstall removed file to save space on the forum CMAKE_BACONGUI_FLTK-4.3-007.tar.gz we can bundle up some fltk apps now thanks vovchik Joe
|
|
|
Post by bigbass on Dec 19, 2020 3:14:46 GMT 1
Hello vovchik
I added a version get for cmake
# make a configure time system check for the cmake version execute_process(COMMAND cmake --version WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} RESULT_VARIABLE _RESULT )
and a range of versions it could use
cmake_minimum_required(VERSION 3.0.0...4.0.0 FATAL_ERROR)
but I don't know if it will work or not on mint but I think it should I went to version 4.0.0 to play it safe for awhile the latest is Latest Release (3.19.2)
and 3.0.0 goes back to debian jessie on the low end
removed file to save space on the forum CMAKE_BACONGUI_FLTK-4.3-008.tar.gz
if you get time please let me know if it still complains about mismatched versions thanks
Joe
|
|
|
Post by vovchik on Dec 19, 2020 11:17:57 GMT 1
Dear Joe,
Thanks. That did it. I just typed ./setup and it did what it was supposed to do.
With kind regards, vovchik
|
|
|
Post by bigbass on Dec 19, 2020 16:40:32 GMT 1
Hello vovchik Thanks for the confirmation on mint! I think it is a very good thing the lexer has done away with workarounds because of the $ symbol and many more problems m4 couldn't do cleanly (but could do ) all those benefits have produced cleaner code and allowed for even cmake testing another way to really test the source code so as of today it is confirmed that bacon and bacongui-fltk both passed the test with a clean build and we can package up any apps that are built on bacon installing and uninstalling and adds to bacon even more compiling options none of this would be possible without all the work Peter put into the constant perfecting of bacon Joe
|
|
|
Post by bigbass on Dec 22, 2020 4:55:50 GMT 1
Hello A minor but important fix
I added this then edited the bacongui-fltk to get it to compile DATA_PATH$ = "/usr/share"
then when doing the gtk build I got the syntax correct and now I am adding to the fltk build
# reduce binary size and strip # FIX added DATA_PATH manually needed inside bacongui-fltk add_compile_options( -DDATA_PATH=\"/usr/share\" -Wno-write-strings -Wno-pointer-arith -c -Os -s )
removed file to save space on the forum CMAKE_BACONGUI_FLTK-4.3-009.tar.gz
|
|
|
Post by bigbass on Dec 29, 2020 20:22:18 GMT 1
Hello
these are the finals I went back and made bacon the primary package which will install the docs and syntax and icons
bacongui-gtk and bacongui-fltk will only install the binaries and desktop files
this way you can safely uninstall bacongui-gtk or bacongui-fltk and not have any missing files for bacon
all three packages now have debian package makers and rpm if needed
I am happy we have cmake to install and build packages and it was fun doing that for bacon and bacon apps
|
|
|
Post by bigbass on Feb 2, 2021 18:39:09 GMT 1
Hello I am testing cmake builds they are working correctly on the raspberry pi3 *however if you are a new bacon user and stumbled here the official package is here www.basic-converter.org/with that notice said here we go with cmake just cd into the directory then cmake .
cmake --build .
if you want to install the binary you can type sudo make install optional EXTRA features let's say you have raspberry pi4 after the cmake --build . you could generate a package using the command cpack
|
|