From rmartele at gmail.com Tue Feb 2 14:05:30 2016 From: rmartele at gmail.com (Renaud Marteleur) Date: Wed Feb 3 09:42:41 2016 Subject: [libxsd-frontend-users] Unable to build libxsd-frontend-2.0.0 because of cutl Message-ID: Hi everyone, I am currently trying to build XSD by following these steps: http://www.codesynthesis.com/projects/xsd/extras/build-unix.xhtml My operating system is: RHEL_6.3 x86_64 I checked the prerequisites: - GNU bash 4.1.2 - GNU m4 1.4.13 - GNU make 3.81 - GNU g++ 4.4.6 I installed - xerces-c-3.1.2 ==> as explained, no problem - build-0.3.10 ==> as explained, no problem - libcutl-1.10.0 ==> first difference: I got no question when I executed the "make" command. I also didn't just execute a "make" but first a "./configure --disable-threads --disable-network --disable-shared CXXFLAGS=-O2 CFLAGS=-O2" then "make" then (in root) "make install". Finally, when I tried to build "Libxsd-frontend" (libxsd-frontend-2.0.0), I got few differences: - no question about 'libfrontend-elements' - no question about 'boost libraries' - after setting the library type I would like to use (1: archive) I got this first error message: "/libxsd-frontend-2.0.0/build/import/libcutl/stub.make:21: /libcutl-1.10.0/build/export/libcutl/stub.make: No such file or directory" - I can continue the configuration, so do I and finally I get: "make: *** No rule to make target `/libcutl-1.10.0/build/export/libcutl/stub.make'. Stop." I tried to answer "y" instead of "n" to this question: "Would you like to configure dependency on the installed version of 'libcutl' as opposed to the development build?". It allowed me to go further (I think some files were compiled...) and I ended up with this error message "make: *** No rule to make target `-lcutl', needed by `/lab/users/rmr/codesynthesisxsd/libxsd-frontend-2.0.0/xsd-frontend/xsd-frontend.l'. Stop.". Here is the list of the cutl files installed: - /usr/local/include/cutl - /usr/local/share/doc/libcutl - /usr/local/lib/libcutl-1.10.so - /usr/local/lib/libcutl.la - /usr/local/lib/pkgconfig/libcutl.pc - /usr/local/lib/libcutl.so - /usr/local/lib/libcutl.a Any idea/help will be gratefully accepted. Thanks. Renaud M. From boris at codesynthesis.com Thu Feb 4 03:16:01 2016 From: boris at codesynthesis.com (Boris Kolpackov) Date: Thu Feb 4 03:16:01 2016 Subject: [libxsd-frontend-users] Unable to build libxsd-frontend-2.0.0 because of cutl In-Reply-To: References: Message-ID: Hi Renaud, Renaud Marteleur writes: > I tried to answer "y" instead of "n" to this question: "Would you like to > configure dependency on the installed version of 'libcutl' as opposed to > the development build?". Yes, that's the correct answer in your case since you've installed it. > It allowed me to go further (I think some files were compiled...) and I > ended up with this error message "make: *** No rule to make target > `-lcutl' [...] I think the compiler does not search /usr/local/lib for libraries by default. Try adding -L/usr/local/lib when asked for extra C++ linker options. Boris From rmartele at gmail.com Thu Feb 4 08:20:25 2016 From: rmartele at gmail.com (Renaud Marteleur) Date: Thu Feb 4 08:30:53 2016 Subject: [libxsd-frontend-users] Unable to build libxsd-frontend-2.0.0 because of cutl In-Reply-To: References: Message-ID: It worked! In the step-by-step guide I referenced ( http://www.codesynthesis.com/projects/xsd/extras/build-unix.xhtml), the last step was then to build XSD. I did it, and I had to do the same things: - "y" to "Would you like to configure dependency on the installed version of 'libcutl' as opposed to the development build?" - "-L/usr/local/lib" to "Please enter any extra C++ linker options." I am now able to run the "xsd" executable and generate some code. Thanks a lot for the quick help. Renaud Le jeu. 4 f?vr. 2016 ? 09:16, Boris Kolpackov a ?crit : > Hi Renaud, > > Renaud Marteleur writes: > > > I tried to answer "y" instead of "n" to this question: "Would you like to > > configure dependency on the installed version of 'libcutl' as opposed to > > the development build?". > > Yes, that's the correct answer in your case since you've installed it. > > > > It allowed me to go further (I think some files were compiled...) and I > > ended up with this error message "make: *** No rule to make target > > `-lcutl' [...] > > I think the compiler does not search /usr/local/lib for libraries by > default. Try adding -L/usr/local/lib when asked for extra C++ linker > options. > > Boris >