Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out of src dir build still not possible (USE_VC=1) #3

Open
adriansev opened this issue Dec 22, 2016 · 2 comments
Open

Out of src dir build still not possible (USE_VC=1) #3

adriansev opened this issue Dec 22, 2016 · 2 comments

Comments

@adriansev
Copy link

Hi! I am trying to compile vdt out of src dir and at configuration stage with the command:
cmake -DCMAKE_INSTALL_PREFIX=${tools}/heplibs/vdt -DCMAKE_BUILD_TYPE=Release -DPRELOAD=1 -DUSE_VC=1 -DAVX=1 ${tools}/heplibs/vdt-src

i have this in the output :
running cd src;python /home/physics-tools/heplibs/vdt-src/src/signatures_generator.py -p -o /home/physics-tools/heplibs/vdt-src/src;cd - 2>&1
/home/physics-tools/heplibs/vdt/BUILD/src
/home/physics-tools/heplibs/vdt/BUILD
running cd src;python vc_wrapper_generator.py;cd - 2>&1
/home/physics-tools/heplibs/vdt/BUILD/src
python: can't open file 'vc_wrapper_generator.py': [Errno 2] No such file or directory

CMake Error at lib/CMakeLists.txt:30 (add_library):
Cannot find source file:

/home/physics-tools/heplibs/vdt-src/src/vdtdiag_vcWrapper.cc

full log here : http://pastebin.com/n2tTgMJ7

Moreover it seems that configuration step modifies the source files (which is bad) :
diff --git a/include/externalLibcfg.h b/include/externalLibcfg.h
index d2d237d..031d5e9 100644
--- a/include/externalLibcfg.h
+++ b/include/externalLibcfg.h
@@ -7,7 +7,7 @@
#define VDT_EXTERNAL_LIB_CFG

//Vc usage setup
-#define USE_VC 0
+#define USE_VC 1
#if USE_VC
//use this flag through the program
#define VC_AVAILABLE

@adriansev adriansev changed the title Out of src dir build still not possible Out of src dir build still not possible (USE_VC=1) Dec 22, 2016
@dpiparo
Copy link
Owner

dpiparo commented Dec 23, 2016

Hi Adrian,

Thanks for the report.
Are you on 0.3.9?
For my education, the usage of VC is intended for testing purposes only, what is the reason leading you to require it?

Cheers,
D

@adriansev
Copy link
Author

Hi! Yes, i am on master 616450e
As for the reason, i was looking over the differences/synergies between vdt and vc and i thought that in fact would be natural for vdt (which provides optimized functions) to use intrisic data and operations provided by vc (IMHO, it would be useful and interesting a project merger of these two, especially that i think that there is duplicated code and work ) .. so, i did not required, i was just trying it out :)
Thank you!
Adrian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants