Comments (36)
Hmm, we did JUST update the French translation, but it seems to compile correctly locally for me. Have you tried a completely fresh build directory?
I'll do the same with the latest in master and try to get to the bottom of this.
from nedit-ng.
Hi,
I've just compiled from scratch and I've got the same error.
nedit-ng_fr.qm is not part of the git clone ? Is it build on the fly during cmake or make ?
Regards.
Xuo.
from nedit-ng.
It is built on the fly.
from nedit-ng.
Hi,
I have this kind ofwarnings during the make command :
make[2]: Avertissement : le fichier « Regex/CMakeFiles/Regex.dir/depend.make » a une date de modification 62 s dans le futur
Translation : Warning : the file « Regex/CMakeFiles/Regex.dir/depend.make » has a modification date 62s in the future.
Could this explain the error on nedit-ng_fr.qm ?
Is there a log I could have a look at to see if I can get more explanations about the reason why this file is not created ?
Regards.
Xuo.
from nedit-ng.
That sounds like you aren't using a fresh build directory if it thinks that some files were modified in the future.
Try the following please:
rm -rf /automount/Softs/local/nedit-ng/build/
mkdir /automount/Softs/local/nedit-ng/build/
cd /automount/Softs/local/nedit-ng/build/
cmake ..
make
There should be a set of lines similar to this one at some point:
Scanning dependencies of target nedit-ng_autogen
[ 22%] Generating nedit-ng_fr.qm
Updating '/home/eteran/projects/nedit-ng/build/source/nedit-ng_fr.qm'...
Generated 921 translation(s) (921 finished and 0 unfinished)
Ignored 2 untranslated source text(s)
from nedit-ng.
Hi,
I already did this several times :
432 19:11 rm -rf nedit-ng
433 19:12 h | grep clone
434 19:12 git clone https://github.com/eteran/nedit-ng.git
435 19:13 cd nedit-ng
436 19:13 mkdir build
437 19:13 cd build
438 19:13 cmake ..
439 19:13 make
I don't see any lines with nedit-ng_autogen.
I can't go further than 16% for the make command.
Are you sure /home/eteran/projects/nedit-ng is the same as https://github.com/eteran/nedit-ng.git ?
Here is a summary of what is displayed on the screen (not nice to read) :
/automount/Softs/local/nedit-ng/build 438 # cmake ..
-- The CXX compiler identification is GNU 5.5.0
-- Check for working CXX compiler: /bin/c++
-- Check for working CXX compiler: /bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Boost version: 1.60.0
-- Found BISON: /bin/bison (found version "3.0.4")
-- Boost version: 1.60.0
-- Found Git: /bin/git (found version "2.13.7")
-- Performing Test COMPILER_SUPPORTS_CXX14
-- Performing Test COMPILER_SUPPORTS_CXX14 - Success
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Boost version: 1.60.0
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/Softs/local/nedit-ng/build
/automount/Softs/local/nedit-ng/build 439 # make
make: Avertissement : le fichier « Makefile » a une date de modification 57 s dans le futur
make[1]: Avertissement : le fichier « CMakeFiles/Makefile2 » a une date de modification 58 s dans le futur
make[2]: Avertissement : le fichier « Regex/CMakeFiles/Regex.dir/flags.make » a une date de modification 58 s dans le futur
Scanning dependencies of target Regex
make[2]: AVERTISSEMENT : décalage d'horloge détecté. La construction peut être incomplète.
make[2]: Avertissement : le fichier « Regex/CMakeFiles/Regex.dir/flags.make » a une date de modification 57 s dans le futur
[ 1%] Building CXX object Regex/CMakeFiles/Regex.dir/Execute.cpp.o
[ 2%] Building CXX object Regex/CMakeFiles/Regex.dir/Compile.cpp.o
[ 3%] Building CXX object Regex/CMakeFiles/Regex.dir/Regex.cpp.o
[ 4%] Building CXX object Regex/CMakeFiles/Regex.dir/RegexError.cpp.o
[ 5%] Building CXX object Regex/CMakeFiles/Regex.dir/Substitute.cpp.o
[ 6%] Linking CXX static library libRegex.a
make[2]: AVERTISSEMENT : décalage d'horloge détecté. La construction peut être incomplète.
[ 6%] Built target Regex
make[2]: Avertissement : le fichier « Util/CMakeFiles/Util.dir/flags.make » a une date de modification 54 s dans le futur
Scanning dependencies of target Util
make[2]: AVERTISSEMENT : décalage d'horloge détecté. La construction peut être incomplète.
make[2]: Avertissement : le fichier « Util/CMakeFiles/Util.dir/flags.make » a une date de modification 54 s dans le futur
[ 7%] Building CXX object Util/CMakeFiles/Util.dir/ClearCase.cpp.o
[ 8%] Building CXX object Util/CMakeFiles/Util.dir/FileSystem.cpp.o
[ 9%] Building CXX object Util/CMakeFiles/Util.dir/Host.cpp.o
[ 10%] Building CXX object Util/CMakeFiles/Util.dir/Input.cpp.o
[ 11%] Building CXX object Util/CMakeFiles/Util.dir/regex.cpp.o
[ 12%] Building CXX object Util/CMakeFiles/Util.dir/Resource.cpp.o
[ 13%] Building CXX object Util/CMakeFiles/Util.dir/ServerCommon.cpp.o
[ 14%] Building CXX object Util/CMakeFiles/Util.dir/System.cpp.o
[ 14%] Building CXX object Util/CMakeFiles/Util.dir/User.cpp.o
[ 15%] Linking CXX static library libUtil.a
make[2]: AVERTISSEMENT : décalage d'horloge détecté. La construction peut être incomplète.
[ 15%] Built target Util
make[2]: Avertissement : le fichier « source/CMakeFiles/nedit-ng_automoc.dir/progress.make » a une date de modification 49 s dans le futur
Scanning dependencies of target nedit-ng_automoc
make[2]: AVERTISSEMENT : décalage d'horloge détecté. La construction peut être incomplète.
make[2]: Avertissement : le fichier « source/CMakeFiles/nedit-ng_automoc.dir/progress.make » a une date de modification 49 s dans le futur
[ 16%] Automatic moc, uic and rcc for target nedit-ng
Generating moc source nedit-ng_automoc.dir/moc_CallTipWidget_NN2Z5P56FPQ6OL.cpp
Generating moc source nedit-ng_automoc.dir/moc_CommandRecorde_AER5WZKKTZ5JU2.cpp
Generating moc source nedit-ng_automoc.dir/moc_Dialog_2WNWQALNP5RE5S.cpp
...
Generating moc source nedit-ng_automoc.dir/moc_TextArea_4M2DWNEYNAYW74.cpp
Generating moc compilation nedit-ng_automoc.cpp
Generating ui header ui_CallTipWidget.h
Generating ui header ui_DialogAbout.h
...
Generating qrc source nedit-ng_automoc.dir/qrc_translations_OX5LPOHFSWODBI.cpp
RCC: Error in '/automount/Softs/local/nedit-ng/build/source/translations.qrc': Cannot find file 'nedit-ng_fr.qm'
AUTORCC: error: process for nedit-ng_automoc.dir/qrc_translations_OX5LPOHFSWODBI.cpp failed:
RCC: Error in '/automount/Softs/local/nedit-ng/build/source/translations.qrc': Cannot find file 'nedit-ng_fr.qm'
rcc failed...
source/CMakeFiles/nedit-ng_automoc.dir/build.make:57 : la recette pour la cible « source/CMakeFiles/nedit-ng_automoc » a échouée
make[2]: *** [source/CMakeFiles/nedit-ng_automoc] Erreur 1
CMakeFiles/Makefile2:220 : la recette pour la cible « source/CMakeFiles/nedit-ng_automoc.dir/all » a échouée
make[1]: *** [source/CMakeFiles/nedit-ng_automoc.dir/all] Erreur 2
Makefile:138 : la recette pour la cible « all » a échouée
make: *** [all] Erreur 2
Hope this helps.
Regards.
Xuo.
from nedit-ng.
Hi,
Using the nedit-ng.zip file (instead of the git clone command), I don't have the "modification in the future" issue BUT I still have the Cannot find file 'nedit-ng_fr.qm' one.
Regards.
Xuo.
from nedit-ng.
Hi again,
The problem does not come the .zip file or the git command but from a local directory (/home/... where I don't have any "modification in the future" issue) and from an auto-mounted one (where I get this issue).
Now, we just have to understand the reason why I get the "Cannot find file 'nedit-ng_fr.qm'" issue.
Xuo.
from nedit-ng.
Is your clock correct? You definitely shouldn't be getting warnings about files being modified in the future. I think that is something which tends to mess with make
from nedit-ng.
is auto-mounted some remote filesystem? could it possibly be an issue with that filesystem? Can you try building it in a local filesystem?
from nedit-ng.
I don't see any lines with nedit-ng_autogen.
I can't go further than 16% for the make command.
Are you sure /home/eteran/projects/nedit-ng is the same as https://github.com/eteran/nedit-ng.git ?
Yes, I just did a fresh checkout and it built correctly on my machine :-/
from nedit-ng.
Hi,
My last "makes" (with either the zip file or a git clone command ) have been done locally, without any clock issue. But it does not compile correctly in both cases.
Regards.
Xuo.
PS : I have added the ntp package on the client side. Now both server and client have the same time and I don't have the clock issue wherever I compile nedit-ng ... but still the nedit-ng_fr.qm one.
from nedit-ng.
I honestly have no idea :-/
it builds locally for me and on my travis CI instance:
https://travis-ci.org/eteran/nedit-ng/jobs/417422305
Which if you look at the log, Generating nedit-ng_fr.qm is one of the very first things it does.
from nedit-ng.
Hi,
Do you run any commands before compiling to "modelize" a french setup ? (setenv LANG FR_UTF8 or anything else ?)
Xuo.
from nedit-ng.
I can't think of anything that should make a difference ... The build doesn't (well shouldn't) care what locale you're currently running.
from nedit-ng.
Hi,
My locale :
/automount/Softs/local/nedit-ng/build 491 # locale
LANG=fr_FR.UTF-8
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER="fr_FR.UTF-8"
LC_NAME="fr_FR.UTF-8"
LC_ADDRESS="fr_FR.UTF-8"
LC_TELEPHONE="fr_FR.UTF-8"
LC_MEASUREMENT="fr_FR.UTF-8"
LC_IDENTIFICATION="fr_FR.UTF-8"
LC_ALL=
And in my compilation, I have :
[ 15%] Built target Util
Scanning dependencies of target nedit-ng_automoc
while you have several other targets I don't have :
[ 16%] Built target Util
Scanning dependencies of target Settings
[ 16%] [BISON][parser] Building parser with bison 3.0.2
[ 17%] Building CXX object Settings/CMakeFiles/Settings.dir/Settings.cpp.o
Scanning dependencies of target Interpreter
[ 18%] Building CXX object Interpreter/CMakeFiles/Interpreter.dir/interpret.cpp.o
[ 19%] Linking CXX static library libSettings.a
[ 19%] Built target Settings
[ 20%] Building CXX object Interpreter/CMakeFiles/Interpreter.dir/parse.cpp.o
[ 21%] Building CXX object Interpreter/CMakeFiles/Interpreter.dir/parser.cpp.o
Scanning dependencies of target nedit-regex-test
[ 22%] Building CXX object Regex/test/CMakeFiles/nedit-regex-test.dir/Test.cpp.o
[ 23%] Linking CXX static library libInterpreter.a
[ 23%] Built target Interpreter
Scanning dependencies of target nedit-ng_autogen
...
And you don't have the target nedit-ng_automoc
What is target nedit-ng_automoc that you don't have in your own compilation ?
Xuo.
from nedit-ng.
cmake version?
from nedit-ng.
no, from the make command.
For me, it is :
[ 15%] Built target Util
Scanning dependencies of target nedit-ng_automoc
Xuo.
from nedit-ng.
sorry, I didn't understand your question :
/automount/Softs/local/nedit-ng 124 # cmake --version
cmake version 3.7.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
xuo.
from nedit-ng.
What i meant was, what is your cmake version. cmake --version
from nedit-ng.
cmake version 3.7.2
from nedit-ng.
I've added a line I removed (which seems to do nothing) from the translations aspect of the cmake file.
Can you do a fresh clone and see if that makes a difference please?
from nedit-ng.
hi,
No it was really an unuseful line. It didn't change anything.
Xuo.
from nedit-ng.
Do you know how to git clone version 2018.7 of nedit-ng ?
Xuo.
from nedit-ng.
I'm away from my computer, but there is a way to check out any tag. I'll let you know later tonight
from nedit-ng.
git clone https://github.com/eteran/nedit-ng.git
cd nedit-ng
git checkout 2018.7
# now you have the 2018.7 code checked out
If that works, I guess I'll just revert my tweaks to the build system, but honestly I don't understand why the old system would be any different since the translation system is the one part I didn't change since the last release.
from nedit-ng.
Hi,
If I summarize what I did, the issue comes from the file source/CMakeLists.txt
I've cloned nedit-ng master repository and copied into its source directory the file CMakeLists.txt from the tag 2018.7 (which compiles correctly). And it works.
In other words, the only file I need to change for nedit-ng to compile on my side is the file source/CMakeLists.txt.
Regards.
Xuo.
from nedit-ng.
Please let me know if the latest master builds for you. I don't know why the old version works and the new one does (they both use the same exact code for the translation stuff)... but it seems to make a difference.
from nedit-ng.
Hi,
Yes, the last master builds for me.
You think the problem comes from the translation code ?
Regards.
Xuo.
from nedit-ng.
Well, the issue you were having is in the generation of the nedit-ng_fr.qm
, which is the binary version of the french translation file. For some reason, it wasn't being generated with the "improved" cmake file, but worked for me and travis-CI builds.
I have no idea what the cause was though. Oh well.
from nedit-ng.
Hi,
Here is a "working" source/CMakeLists.txt.
Xuo.
CMakeLists.txt
from nedit-ng.
That looks like exactly the way it was when you said it wasn't working though
from nedit-ng.
Hi,
Here are the differences :
29a30,35
list(APPEND QRC_FILES ${TRANSLATIONS_QRC})
qt5_add_resources(QRC_SOURCES
nedit.qrc
${TRANSLATIONS_QRC}
)
33c39
< ${TRANSLATIONS_QRC}
${QRC_SOURCES}
Xuo.
from nedit-ng.
Interesting, I'll take a look. The build is currently working as it's supposed to, so I'm in no hurry. I'll reach out to you when I give the "new" method a go again (I prefer it because it's simpler to maintain AND it's a slightly faster build too).
from nedit-ng.
@ericxuo I've pushed a commit using your version of the CMake file, when you get a chance, can you double check that it works as expected?
Thanks
from nedit-ng.
Hi,
It could compile it without any problem.
Regards.
Xuo.
from nedit-ng.
Related Issues (20)
- crash with 2020.1-204-gfd49503 HOT 7
- Windows Split Pane does not retain position HOT 6
- Non-UI preferences should not be saved, breaking nc autostart HOT 5
- Build issue with current head HOT 14
- carriage return when pasting from terminal HOT 8
- Font family alias warnings on macOS HOT 1
- long -svrname argument HOT 3
- crash with latest commit HOT 17
- Using `DISPLAY` when calculating the local socket to use can cause issues HOT 1
- QT version 5.5 or 5.15? HOT 21
- [enhancement] Save and/or reload all files options in Shell menu item HOT 1
- Cursor blink phase does not reset when user enters character
- crash with 857d42e HOT 5
- macro execution stopped HOT 2
- nedit-import: Convert shortcuts to valid QT equivalents HOT 2
- Quick search: implement Clear&Paste by single click of middle mouse button HOT 2
- macro sub focus_window(next) does nothing HOT 2
- nc-ng does not open the file while nedit-ng does (through an ssh connection). HOT 3
- Command/macro to go back to last line(s) visited in file ? HOT 2
- config.ini nedit.titleFormat HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nedit-ng.