psi46 / pxar Goto Github PK
View Code? Open in Web Editor NEWLife is too short for perfection
Life is too short for perfection
Since roc_Chip_Mask()
automatically runs roc_Col_Enable(false)
for all columns it would be nice if TrimChip()
would have the same behavior, i.e. running roc_Col_Enable()
for all columns.
Some NIOS functions need to be aware of flags which can be set by the user, like FLAG_USE_CALS
and set the respective bits on the NIOS.
for communication between NIOS and HAL.
Implementation only on HAL level for now, NIOS will adapt to that then.
Make sure the format is generic enough to cover all cases even for massive module telsing in the future.
NIOS must be ready to be aware of different hardware setups (i.e. ROCTYPE and TBMTYPE), e.g. for data decoding of the psi46dig chip with flipped pixid bits.
These settings will most likely be set when initializing the devices (in HAL functions initROC and initTBM).
I tried to install pXar on Windows7 64-bit machine, following the 'README.md' steps.
cmake exit ok while when I built solution with Visual Studio Exp Desktop 2013 I got these 2 errors:
-----Error 1
error MSB3073: The command "setlocal
"C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -E copy_if_different C:/Users/Tino/Dottorato/Pixel_Upgrade/ROC_psi46_Test/Repository/pxar-master/extern/ftd2xx/i386/ftd2xx.dll /Release
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets 132 5 testpxar
-----Error 2
error C3861: 'sleep': identifier not found C:\Users\Tino\Dottorato\Pixel_Upgrade\ROC_psi46_Test\Repository\pxar-master\debug\takedata.cpp 174 1 takedata
It would be useful to have pXar run under Windows to be more flexible wrt choice of platform (e.g. bare module tests at probe stations).
Currently, at least core library and the debug program could be made to compile and execute under Windows.
How to retrieve data in DAQ mode?
How to run HR tests? Make use of user-side DAQ is it was in psi46expert or have some API functions for that?
We should starting to prepare some sort of user manual, a PDF that can be distributed which explains:
When trying to run MaskAndTrim on a full module we currently get a crash, no matter when calling it at initDUT state or before running a test:
[13:29:03.250] DEBUGAPI: <api.cc/MaskAndTrim:L1150> ROC 0 features 0 masked pixels.
[13:29:03.250] DEBUGAPI: <api.cc/MaskAndTrim:L1154> Unmasking and trimming ROC 0 in one go.
[13:29:03.251] DEBUGHAL: <hal.cc/RocSetMask:L473> Updating mask bits & trim values of ROC 0
Warning in <TUnixSystem::Run>: handle uncaugth exception, terminating
_api->initTestboard(std::vector<std::pair<std::string,uint8_t> > sig_delay,
std::vector<std::pair<std::string,double> > voltage/curr limits,
std::vector<std::pair<std::string,uint8_t> > pattergenerator setup);
_api->initDUT(std::string tbmtype, std::vector< std::vector<std::pair<std::string,uint8_t> > > tbmdacs,
std::string roctype, std::vector< std::vector<std::pair<std::string,uint8_t> > > rocdacs,
std::vector< std::vector<pixelConfig> > pixelConfiguration);
Detailed system information in the CMake output could make it easier to identify the cause of a problem from bug reports by users or other developers.
Dear all,
I noticed some problems in data transmission in DacDac scans which come earlier than the known 254x254 limit.
Wen running e.g. a VthrComp vs CalDel scan with DacMax = 130 for both the HAL reports the following:
[17:21:39.316] DEBUGHAL: <PixelCalibrateDacDacScan:L665> Scanning field DAC 26 0-130, DAC 12 0-130
[17:21:39.316] DEBUGRPC: <roc_I2cAddr:L1049> called.
[17:21:39.316] DEBUGRPC: <CalibrateDacDacScan:L1500> called.
[17:21:39.316] DEBUGRPC: <GetRpcCallId:L130> called.
[17:21:41.728] DEBUGHAL: <PixelCalibrateDacDacScan:L679> Function returns: 1
[17:21:41.728] DEBUGHAL: <PixelCalibrateDacDacScan:L680> Data size: nReadouts 16900, PHsum 516
so the size of the return vector nReadouts
is correct: 130x130 but PHsum
is significantly shorter. This does not happen up to a phase space size of 120x120:
[17:25:43.625] DEBUGHAL: <PixelCalibrateDacDacScan:L665> Scanning field DAC 26 0-120, DAC 12 0-120
[17:25:43.625] DEBUGRPC: <roc_I2cAddr:L1049> called.
[17:25:43.625] DEBUGRPC: <CalibrateDacDacScan:L1500> called.
[17:25:43.625] DEBUGRPC: <GetRpcCallId:L130> called.
[17:25:45.665] DEBUGHAL: <PixelCalibrateDacDacScan:L679> Function returns: 1
[17:25:45.665] DEBUGHAL: <PixelCalibrateDacDacScan:L680> Data size: nReadouts 14400, PHsum 14400
Suspicion here is some limit on the total data size, since nReadouts
is only of type int16_t
and transmitted correctly while PHsum
is int32_t
.
Beside that I don't get any values here, but that might again be my stupidity?
As Urs reports, api.h is not correctly included when compiling on OS X. Terminal output:
marwees>git clone [email protected]:psi46/pxar
marwees>cd pxar/
marwees>mkdir build
marwees>cd build/
marwees>cmake ..
-- The C compiler identification is GNU 4.2.1
-- The CXX compiler identification is Clang 4.1.0
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found libusb-1.0:
-- - Includes: /opt/local/include/libusb-1.0
-- - Libraries: /opt/local/lib/libusb-1.0.dylib
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Found libFTD2XX: /System/Library/Frameworks/PCSC.framework/Headers,
/usr/local/lib/libftd2xx.dylib
-- libFTDI NOT FOUND.
-- Using libFTD2XX.
-- Found PythonLibs: /usr/lib/libpython2.7.dylib (found version "2.7.2")
-- Found ROOT: /Users/ursl/root/root-053401/bin/root (found version 5.34/01)
-- Build Type:
-- Installing to: /Users/ursl/psi46/pxar
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/ursl/psi46/pxar/build
marwees>make
[SNIP]
Linking CXX shared library ../../lib/libpxar.dylib
[ 83%] Built target pxar
Scanning dependencies of target testpxar
[100%] Building CXX object main/CMakeFiles/testpxar.dir/pxar.o
In file included from /Users/ursl/psi46/pxar/main/pxar.cpp:2:
/Users/ursl/psi46/pxar/main/pxar.h:6:1: error: use of undeclared
identifier 'pxar'
pxar::api * api_inst;
^
/Users/ursl/psi46/pxar/main/pxar.cpp:5:14: warning: unused parameter
'argc' [-Wunused-parameter]
int main(int argc, char * argv[])
^
/Users/ursl/psi46/pxar/main/pxar.cpp:5:27: warning: unused parameter
'argv' [-Wunused-parameter]
int main(int argc, char * argv[])
^
2 warnings and 1 error generated.
make[2]: *** [main/CMakeFiles/testpxar.dir/pxar.o] Error 1
make[1]: *** [main/CMakeFiles/testpxar.dir/all] Error 2
make: *** [all] Error 2
marwees>
This is the error that goes away changing in pxar.cpp from #include
"api.h" to #include "../api/api.h"
This should not be necessary since we provide the include file via CMake's toplevel file:
# Include directories
INCLUDE_DIRECTORIES( ./core/api)
Needs to be investigated.
All possible flags available to the tests have to be defined.
Add yours here:
FLAG_FORCE_SERIAL
- avoid parallelization on module level, execute tests for all ROCs in series
FLAG_USE_CALS
- send calibration pulse through the sensor
When enabling enough pixels the readout from the data buffer on the DTB does not contain valid data in some regions. Since the readout length is exactly what is expected this doesn't seem to be a problem of the data acquisition on the board but of the transfer over USB.
Settings were:
10 triggers (RES CAL TRIG TOK)
1px in every Column enabled
Expected: 10 Events with ROC header (1w) + 52*2w = 1050w
Result: some valid data and quite some 0f0f
patterns:
[17:39:05.054] DEBUGHAL: <hal.cc/daqStart:L911> Starting new DAQ session.
[17:39:05.057] DEBUGHAL: <hal.cc/daqStart:L922> Enabling Deserializer160 for data acquisition. Phase: 4
[17:39:05.057] DEBUGHAL: <hal.cc/daqTrigger:L935> Triggering 10x
[17:39:05.057] DEBUGHAL: <hal.cc/daqStop:L950> Stopped DAQ session. Data still in buffers.
[17:39:05.057] DEBUGAPI: <api.cc/daqStop:L985> Resetting Pattern Generator to previous state.
[17:39:05.057] DEBUGHAL: <hal.cc/SetupPatternGenerator:L120> Setting PG cmd 819 (addr 0 pat 800 del 25)
[17:39:05.057] DEBUGHAL: <hal.cc/SetupPatternGenerator:L120> Setting PG cmd 46a (addr 1 pat 400 del 106)
[17:39:05.057] DEBUGHAL: <hal.cc/SetupPatternGenerator:L120> Setting PG cmd 210 (addr 2 pat 200 del 16)
[17:39:05.057] DEBUGHAL: <hal.cc/SetupPatternGenerator:L120> Setting PG cmd 100 (addr 3 pat 100 del 0)
[17:39:05.059] DEBUGHAL: <hal.cc/daqRead:L963> Read 1050 data words.
[17:39:05.059] DEBUGHAL: <hal.cc/daqReset:L969> Closing DAQ session, deleting data buffers.
Raw DAQ data blob:
87f8 0021 008c 0021 02cc 0061 00e9 0061 02ed 00a1 00ea 00a1 02ec 00e1 0107 00e1 0307 0121 00ef 0121 0308 0161 00e6 0161 02e6 0221 0102 0221 02ed 0261 00ef 0261 02ef 02a1 00e4 02a1 02ed 02e1 00e5 02e1 02e5 0321 00ec 0321 02ec 0361 00ed 0361 02ea 0421 00e9 0421 02e9 0461 00ef 0461 02ed 04a1 00e0 04a1 02e5 04e1 00ec 04e1 02e9 0521 00e2 0521 02cf 0561 00cd 0561 02e7 0621 00e5 0621 02cf 0661 00e1 0661 02e1 06a1 00c7 06a1 02c7 06e1 00e1 06e1 02cc 0721 00e5 0721 02e6 0761 00c9 0761 02c9 0821 00c7 0821 02c7 0861 00ed 0861 42e1
87f9 0021 008d 0021 02cc 0061 00ec 0061 02ef 00a1 00ed 00a1 02ee 00e1 010d 00e1 0309 0121 0105 0121 030d 0161 00ea 0161 02e7 0221 0106 0221 0300 0261 00e4 0261 02e5 02a1 00e6 02a1 02ef 02e1 00e9 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 010b 00e1 030a 0121 0102 0121 030d 0161 00e8 0161 02e9 0221 0104 0221 02ef 0261 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0107 0221 0302 0261 00e5 0261 02e9 02a1 00e5 02a1 0305 02e1 00e9 02e1 02e7 0321 00e2 0321 02e7 0361 00ef 0361 02ef 0421 00ed 0421 02ed 0461 0102 0461 0300 04a1 00e2 04a1 02e9 04e1 00ef 04e1 02ed 0521 00e5 0521 02e4 0561 00e0 0561 02ec 0621 00ea 0621 02e4 0661 00e4 0661 02e4 06a1 00c9 06a1 02cd 06e1 00e4 06e1 02e0 0721 00e6 0721 02ed 0761 00cc 0761 02cd 0821 00c9 0821 02cf 0861 00e7 0861 42cf
87f8 0021 008d 0021 02cd 0061 00ed 0061 02ed 00a1 00ed 00a1 02ec 00e1 010a 00e1 0307 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 02e6 0321 00e2 0321 02e6 0361 00ef 0361 02ed 0421 00ed 0421 02ef 0461 0104 0461 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f 0f0f
In the old version of the USB interface for the PSI ATB board there was a WaitForFilledQueue function which seems to be removed. Maybe this has to do with that?
Hi all,
I have problem in compiling the latest code:
OS: Mac OS X 10.9.1
CMake: 2.8.12.1
ROOT: 5.34/11 (heads/v5-34-00-patches@v5-34-11-49-gafa5f25, Nov 15 2013, 22:54:18 on macosx64)
xshi_orca3$ cmake ..
-- Found libusb-1.0:
-- - Includes: /usr/local/include/libusb-1.0
-- - Libraries: /usr/local/lib/libusb-1.0.dylib
-- Found libFTD2XX: /System/Library/Frameworks/PCSC.framework/Headers, /usr/local/lib/libftd2xx.dylib
-- libFTDI NOT FOUND.
-- Using libFTD2XX.
-- Build Type:
-- Installing to: /Users/xshi/work/cms/pxl/pxar
-- Found ROOT: /Users/xshi/local/share/root/bin/root (found version 5.34/11)
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/xshi/work/cms/pxl/pxar/build
xshi_orca3$ make install
[ 18%] Built target pxar
[ 20%] Generating pxarGuiDict.cxx, pxarGuiDict.h
Error: class,struct,union or type __signed not defined /usr/include/sys/_types/_int8_t.h:30:
Error: class,struct,union or type int8_t not defined /usr/include/stdint.h:29:
Error: class,struct,union or type int8_t not defined /usr/include/stdint.h:40:
Error: class,struct,union or type __signed not defined /usr/include/i386/_types.h:37:
Error: operator '/' divided by zero /Users/xshi/local/share/root/include/TString.h:170:
Error: operator '/' divided by zero /Users/xshi/local/share/root/include/TString.h:170:
Warning: Error occurred during reading source files
Warning: Error occurred during dictionary source generation
!!!Removing /Users/xshi/work/cms/pxl/pxar/build/main/pxarGuiDict.cxx /Users/xshi/work/cms/pxl/pxar/build/main/pxarGuiDict.h !!!
Error: /Users/xshi/local/share/root/bin/rootcint: error loading headers...
make[2]: *** [main/pxarGuiDict.cxx] Error 1
make[1]: *** [main/CMakeFiles/pxarGui.dir/all] Error 2
make: *** [all] Error 2
Hello,
I have this error under Ubuntu:
In file included from /home/purduepix/pxar/main/PixGui.cc:8:0:
/home/purduepix/pxar/main/PixParTab.hh:34:28: error: extra qualification ‘PixParTab::’ on member ‘getSelectedRocs’ [-fpermissive]
/home/purduepix/pxar/main/PixParTab.hh:35:28: error: extra qualification ‘PixParTab::’ on member ‘getSelectedTbms’ [-fpermissive]
/home/purduepix/pxar/main/PixGui.cc: In constructor ‘PixGui::PixGui(const TGWindow_, UInt_t, UInt_t, PixSetup_)’:
/home/purduepix/pxar/main/PixGui.cc:173:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/purduepix/pxar/main/PixGui.cc:169:14: warning: unused variable ‘t’ [-Wunused-variable]
/home/purduepix/pxar/main/PixGui.cc: In member function ‘void PixGui::handleButtons(Int_t)’:
/home/purduepix/pxar/main/PixGui.cc:254:10: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
/home/purduepix/pxar/main/PixGui.cc: In member function ‘void PixGui::changeRootFile()’:
/home/purduepix/pxar/main/PixGui.cc:370:10: warning: unused variable ‘f’ [-Wunused-variable]
make[2]: *** [main/CMakeFiles/pxarui.dir/PixGui.o] Error 1
make[1]: *** [main/CMakeFiles/pxarui.dir/all] Error 2
make: *** [all] Error 2
Any suggestions?
Thanks!
Xin
As I told yesterday, I managed to install pxar on SL5.
I create this issue just as documentation.
The environment is:
Linux (2.6.18-371.4.1.el5 "Scientific Linux release 5.10 (Boron)")
CMake 2.6.4 - root version 5.34/08 - 32-bit compiler - gcc version 4.1.2
libftd2xx.so.1.0.4
and this is the cmake output:
[root@lxcmsi07 build]# source ~/root/bin/thisroot.sh
[root@lxcmsi07 build]# cmake -DBUILD_pxarui=ON ..
-- Using gcc-specific CXX flags
-- Found libFTD2XX: /usr/local/include, /usr/lib/libftd2xx.so
-- libFTDI NOT FOUND.
-- Using libFTD2XX.
-- Found libusb-1.0:
-- - Includes: /usr/local/include
-- - Libraries: /usr/local/lib/libusb-1.0.so
-- Build Type: Relwithdebinfo
-- Installing to: /root/pxar-master
-- Found ROOT: /root/root/bin/root (found version 5.34/08)
-- Found Doxygen: /usr/bin/doxygen
-- Found LaTeX compiler.
-- I could not find the latex2html command.
-- CMAKE_BINARY_DIR: /root/pxar-master/build
-- PROJECT_SOURCE_DIR: /root/pxar-master
-- This is CMake 2.6.4 (/usr/bin/cmake) running on Linux (2.6.18-371.4.1.el5 "Scientific Linux release 5.10 (Boron)")
-- 32-bit compiler detected
-- Using GNU (/usr/bin/c++) version 412
-- Compiler Flags: -Wall -Wextra -g -Wno-deprecated -pedantic -Wno-long-long
-- Configuring done
-- Generating done
-- Build files have been written to: /root/pxar-master/build
I have some problems with the test but I will put them in other issues.
Hi all,
after following the build instructions on the twiki I get several errors when issuing "make install".
log files for "cmake -DBUILD_pxarui=ON .." and "make install" can be found in my public: /afs/desy.de/user/s/smaettig/public/pxarCrash
the errors are concerning pxarGuiDict and PixParTab
Simon suggested me to test:
cmake -DBUILD_pxardebug=ON -DBUILD_pxarui=OFF ..
after which "make install" works fine.
Thanks for your help,
Stefan
Make the NIOS, USB and RPC part working
This is just to summarize my efforts to also make the ROOT gui (currently located at ./main) work under Windows using Windows 7, 32bit, MSVC 10, ROOT 5.34.14 (built with VC10):
Warning: This friend declaration may cause creation of wrong stub function in dictionary. Use '#pragma link off func
tion ...;' to avoid it. C:/root/cint/cint/lib\prec_stl/string(137)
Warning: This friend declaration may cause creation of wrong stub function in dictionary. Use '#pragma link off func
tion ...;' to avoid it. C:/root/cint/cint/lib\prec_stl/string(173)
Error: class,struct,union or type __w64 not defined c:\program files (x86)\microsoft visual studio 10.0\vc\include\
codeanalysis\sourceannotations.h(29)
Syntax error c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(79)
Warning: Unknown type Parameter in function argument c:\program files (x86)\microsoft visual studio 10.0\vc\include\
codeanalysis\sourceannotations.h(79)
Syntax error c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(110)
Warning: Unknown type Parameter|ReturnValue in function argument c:\program files (x86)\microsoft visual studio 10.0
\vc\include\codeanalysis\sourceannotations.h(110)
Syntax error c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(141)
Warning: Unknown type Parameter in function argument c:\program files (x86)\microsoft visual studio 10.0\vc\include\
codeanalysis\sourceannotations.h(141)
Syntax error c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(153)
Warning: Unknown type ReturnValue in function argument c:\program files (x86)\microsoft visual studio 10.0\vc\includ
e\codeanalysis\sourceannotations.h(153)
Syntax error c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(163)
Warning: Unknown type Method in function argument c:\program files (x86)\microsoft visual studio 10.0\vc\include\cod
eanalysis\sourceannotations.h(163)
Syntax error c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(174)
Warning: Unknown type Parameter in function argument c:\program files (x86)\microsoft visual studio 10.0\vc\include\
codeanalysis\sourceannotations.h(174)
Syntax error c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(184)
Warning: Unknown type Parameter|ReturnValue in function argument c:\program files (x86)\microsoft visual studio 10.0
\vc\include\codeanalysis\sourceannotations.h(184)
Syntax error c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(194)
Warning: Unknown type Parameter in function argument c:\program files (x86)\microsoft visual studio 10.0\vc\include\
codeanalysis\sourceannotations.h(194)
Syntax error c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(206)
Warning: Unknown type Parameter|ReturnValue in function argument c:\program files (x86)\microsoft visual studio 10.0
\vc\include\codeanalysis\sourceannotations.h(206)
Error: class,struct,union or type vc_attributes::PreAttribute not defined c:\program files (x86)\microsoft visual s
tudio 10.0\vc\include\codeanalysis\sourceannotations.h(256)
Error: class,struct,union or type vc_attributes::PostAttribute not defined c:\program files (x86)\microsoft visual
studio 10.0\vc\include\codeanalysis\sourceannotations.h(257)
Error: class,struct,union or type vc_attributes::FormatStringAttribute not defined c:\program files (x86)\microsoft
visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(258)
Error: class,struct,union or type vc_attributes::InvalidCheckAttribute not defined c:\program files (x86)\microsoft
visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(259)
Error: class,struct,union or type vc_attributes::SuccessAttribute not defined c:\program files (x86)\microsoft visu
al studio 10.0\vc\include\codeanalysis\sourceannotations.h(260)
Error: class,struct,union or type vc_attributes::PreBoundAttribute not defined c:\program files (x86)\microsoft vis
ual studio 10.0\vc\include\codeanalysis\sourceannotations.h(261)
Error: class,struct,union or type vc_attributes::PostBoundAttribute not defined c:\program files (x86)\microsoft vi
sual studio 10.0\vc\include\codeanalysis\sourceannotations.h(262)
Error: class,struct,union or type vc_attributes::PreRangeAttribute not defined c:\program files (x86)\microsoft vis
ual studio 10.0\vc\include\codeanalysis\sourceannotations.h(263)
Error: class,struct,union or type vc_attributes::PostRangeAttribute not defined c:\program files (x86)\microsoft vi
sual studio 10.0\vc\include\codeanalysis\sourceannotations.h(264)
Error: class,struct,union or type __w64 not defined C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\
vadefs.h(48)
Error: class,struct,union or type __w64 not defined C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\
crtdefs.h(418)
Error: class,struct,union or type __w64 not defined C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\
crtdefs.h(436)
Error: class,struct,union or type __w64 not defined C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\
crtdefs.h(473)
Error: class,struct,union or type __int64 not defined C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUD
E\crtdefs.h(478)
Warning: Unknown type noreturn in function argument C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\c
rtdefs.h(546)
Error: Symbol _locale_tstruct, is not defined in current scope C:\Program Files (x86)\Microsoft Visual Studio 10.0\
VC\INCLUDE\crtdefs.h(1963)
Error: Symbol _locale_t is not defined in current scope C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCL
UDE\crtdefs.h(1963)
Error: class,struct,union or type __int64 not defined C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUD
E\yvals.h(553)
Error: class,struct,union or type _ULonglong not defined C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INC
LUDE\stdint.h(60)
Error: class,struct,union or type _ULonglong not defined C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INC
LUDE\stdint.h(63)
Error: class,struct,union or type _ULonglong not defined C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INC
LUDE\stdint.h(66)
Error: class,struct,union or type _ULonglong not defined C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INC
LUDE\stdint.h(69)
Error: class,struct,union or type pixel not defined C:/root/cint/cint/lib\prec_stl/memory(38)
Error: class,struct,union or type pixel not defined C:/root/cint/cint/lib\prec_stl/memory(39)
Error: class,struct,union or type pixel not defined C:/root/cint/cint/lib\prec_stl/memory(43)
Error: class,struct,union or type pixel not defined C:/root/cint/cint/lib\prec_stl/memory(44)
Error: class,struct,union or type pixel not defined C:/root/cint/cint/lib\prec_stl/memory(45)
Warning: Unknown type 'pixel' in function argument handled as int C:/root/cint/cint/lib\prec_stl/memory(72)
Error: class,struct,union or type pixel not defined C:/root/cint/cint/lib\prec_stl/vector(51)
Error: class,struct,union or type pixel not defined C:/root/cint/cint/lib\prec_stl/vector(121)
Syntax error C:/root/cint/cint/lib\prec_stl/vector(134)
Warning: Unknown type pixel in function argument C:/root/cint/cint/lib\prec_stl/vector(134)
Error: class,struct,union or type pixel not defined C:/root/cint/cint/lib\prec_stl/vector(176)
Error: cannot open file "stdint.h" C:/Users/hanno/Documents/GitHub/pxar/main\ConfigParameters.hh(12)
Error: cannot open file "stdint.h" C:/Users/hanno/Documents/GitHub/pxar/core/api\api.h(12)
Error: class,struct,union or type pixel not defined prec_stl/memory(37)
Error: class,struct,union or type pixel not defined prec_stl/memory(38)
Error: class,struct,union or type pixel not defined prec_stl/memory(43)
Error: class,struct,union or type pixel not defined prec_stl/memory(44)
Error: class,struct,union or type pixel not defined prec_stl/memory(45)
Warning: Unknown type 'pixel' in function argument handled as int prec_stl/memory(68)
Error: class,struct,union or type pixel not defined prec_stl/vector(51)
Error: class,struct,union or type pixel not defined prec_stl/vector(119)
Syntax error prec_stl/vector(134)
Warning: Unknown type pixel in function argument prec_stl/vector(134)
Error: class,struct,union or type pixel not defined prec_stl/vector(174)
It would be nice to be able to scan a smaller range than just from zero to defined value:
CalibrateDacDacScan(int16_t nTriggers, int16_t col, int16_t row, int16_t dacReg1,
int16_t dacRange1, int16_t dacReg2, int16_t dacRange2,
vectorR<int16_t> &nReadouts, vectorR<int32_t> &PHsum)
Trying to compile the pxar core library under Windows results in compilation errors due to missing inttypes.h
:
C:\Documents and Settings\Administrator\Desktop\pXar\build>msbuild pxar.sln /p:C
onfiguration=Release
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.1]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
Build started 1/30/2014 2:28:19 PM.
Project "C:\Documents and Settings\Administrator\Desktop\pXar\build\pxar.sln" o
n node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Release|Win32".
ValidateProjects:
The project "INSTALL" is not selected for building in solution configuration
"Release|Win32".
Project "C:\Documents and Settings\Administrator\Desktop\pXar\build\pxar.sln" (
1) is building "C:\Documents and Settings\Administrator\Desktop\pXar\build\ALL_
BUILD.vcxproj.metaproj" (2) on node 1 (default targets).
Project "C:\Documents and Settings\Administrator\Desktop\pXar\build\ALL_BUILD.v
cxproj.metaproj" (2) is building "C:\Documents and Settings\Administrator\Deskt
op\pXar\build\ZERO_CHECK.vcxproj" (3) on node 1 (default targets).
InitializeBuildStatus:
Creating "Win32\Release\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild" because "Alw
aysCreate" was specified.
CustomBuild:
Checking Build System
CMake does not need to re-run because C:/Documents and Settings/Administrator
/Desktop/pXar/build/CMakeFiles/generate.stamp is up-to-date.
CMake does not need to re-run because C:/Documents and Settings/Administrator
/Desktop/pXar/build/core/CMakeFiles/generate.stamp is up-to-date.
CMake does not need to re-run because C:/Documents and Settings/Administrator
/Desktop/pXar/build/debug/CMakeFiles/generate.stamp is up-to-date.
FinalizeBuildStatus:
Deleting file "Win32\Release\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild".
Touching "Win32\Release\ZERO_CHECK\ZERO_CHECK.lastbuildstate".
Done Building Project "C:\Documents and Settings\Administrator\Desktop\pXar\bui
ld\ZERO_CHECK.vcxproj" (default targets).
Project "C:\Documents and Settings\Administrator\Desktop\pXar\build\ALL_BUILD.v
cxproj.metaproj" (2) is building "C:\Documents and Settings\Administrator\Deskt
op\pXar\build\core\pxar.vcxproj.metaproj" (4) on node 1 (default targets).
Project "C:\Documents and Settings\Administrator\Desktop\pXar\build\core\pxar.v
cxproj.metaproj" (4) is building "C:\Documents and Settings\Administrator\Deskt
op\pXar\build\core\pxar.vcxproj" (5) on node 1 (default targets).
InitializeBuildStatus:
Creating "pxar.dir\Release\pxar.unsuccessfulbuild" because "AlwaysCreate" was
specified.
CustomBuild:
All outputs are up-to-date.
ClCompile:
C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /I"C:\Document
s and Settings\Administrator\Desktop\pXar\build" /I"C:\Documents and Settings
\Administrator\Desktop\pXar\extern\ftd2xx" /I"C:\Documents and Settings\Admin
istrator\Desktop\pXar\core\api" /I"C:\Documents and Settings\Administrator\De
sktop\pXar\core\utils" /I"C:\Documents and Settings\Administrator\Desktop\pXa
r\core\rpc" /I"C:\Documents and Settings\Administrator\Desktop\pXar\core\usb"
/I"C:\Documents and Settings\Administrator\Desktop\pXar\core\hal" /nologo /W
3 /WX- /O2 /Ob2 /Oy- /D WIN32 /D _WINDOWS /D NDEBUG /D "CMAKE_INTDIR=\"Releas
e\"" /D pxar_EXPORTS /D _WINDLL /D _MBCS /Gm- /EHsc /MD /GS /fp:precise /Zc:w
char_t /Zc:forScope /GR /Fo"pxar.dir\Release\\" /Fd"pxar.dir\Release\vc100.pd
b" /Gd /TP /wd4251 /wd4996 /analyze- /errorReport:queue ..\..\core\api\api.cc
..\..\core\api\dut.cc ..\..\core\hal\hal.cc ..\..\core\rpc\nios_fallback.cpp
..\..\core\rpc\rpc.cpp ..\..\core\rpc\rpc_calls.cpp ..\..\core\rpc\rpc_error
.cpp ..\..\core\rpc\rpc_io.cpp ..\..\core\usb\USBInterface.libftd2xx.cc
api.cc
c:\documents and settings\administrator\desktop\pxar\core\rpc\rpc_io.h(9): fata
l error C1083: Cannot open include file: 'inttypes.h': No such file or director
y [C:\Documents and Settings\Administrator\Desktop\pXar\build\core\pxar.vcxproj
]
dut.cc
c:\documents and settings\administrator\desktop\pxar\core\rpc\rpc_io.h(9): fata
l error C1083: Cannot open include file: 'inttypes.h': No such file or director
y [C:\Documents and Settings\Administrator\Desktop\pXar\build\core\pxar.vcxproj
]
hal.cc
c:\documents and settings\administrator\desktop\pxar\core\rpc\rpc_io.h(9): fata
l error C1083: Cannot open include file: 'inttypes.h': No such file or director
y [C:\Documents and Settings\Administrator\Desktop\pXar\build\core\pxar.vcxproj
]
nios_fallback.cpp
c:\documents and settings\administrator\desktop\pxar\core\rpc\rpc_io.h(9): fata
l error C1083: Cannot open include file: 'inttypes.h': No such file or director
y [C:\Documents and Settings\Administrator\Desktop\pXar\build\core\pxar.vcxproj
]
rpc.cpp
c:\documents and settings\administrator\desktop\pxar\core\rpc\rpc_io.h(9): fata
l error C1083: Cannot open include file: 'inttypes.h': No such file or director
y [C:\Documents and Settings\Administrator\Desktop\pXar\build\core\pxar.vcxproj
]
rpc_calls.cpp
c:\documents and settings\administrator\desktop\pxar\core\rpc\rpc_io.h(9): fata
l error C1083: Cannot open include file: 'inttypes.h': No such file or director
y [C:\Documents and Settings\Administrator\Desktop\pXar\build\core\pxar.vcxproj
]
rpc_error.cpp
c:\documents and settings\administrator\desktop\pxar\core\rpc\rpc_io.h(9): fata
l error C1083: Cannot open include file: 'inttypes.h': No such file or director
y [C:\Documents and Settings\Administrator\Desktop\pXar\build\core\pxar.vcxproj
]
rpc_io.cpp
c:\documents and settings\administrator\desktop\pxar\core\rpc\rpc_io.h(9): fata
l error C1083: Cannot open include file: 'inttypes.h': No such file or director
y [C:\Documents and Settings\Administrator\Desktop\pXar\build\core\pxar.vcxproj
]
USBInterface.libftd2xx.cc
c:\documents and settings\administrator\desktop\pxar\core\rpc\rpc_io.h(9): fata
l error C1083: Cannot open include file: 'inttypes.h': No such file or director
y [C:\Documents and Settings\Administrator\Desktop\pXar\build\core\pxar.vcxproj
]
Generating Code...
Done Building Project "C:\Documents and Settings\Administrator\Desktop\pXar\bui
ld\core\pxar.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\Documents and Settings\Administrator\Desktop\pXar\bui
ld\core\pxar.vcxproj.metaproj" (default targets) -- FAILED.
Done Building Project "C:\Documents and Settings\Administrator\Desktop\pXar\bui
ld\ALL_BUILD.vcxproj.metaproj" (default targets) -- FAILED.
Done Building Project "C:\Documents and Settings\Administrator\Desktop\pXar\bui
ld\pxar.sln" (default targets) -- FAILED.
Build FAILED.
"C:\Documents and Settings\Administrator\Desktop\pXar\build\pxar.sln" (default
target) (1) ->
"C:\Documents and Settings\Administrator\Desktop\pXar\build\ALL_BUILD.vcxproj.m
etaproj" (default target) (2) ->
"C:\Documents and Settings\Administrator\Desktop\pXar\build\core\pxar.vcxproj.m
etaproj" (default target) (4) ->
"C:\Documents and Settings\Administrator\Desktop\pXar\build\core\pxar.vcxproj"
(default target) (5) ->
(ClCompile target) ->
c:\documents and settings\administrator\desktop\pxar\core\rpc\rpc_io.h(9): fa
tal error C1083: Cannot open include file: 'inttypes.h': No such file or direct
ory [C:\Documents and Settings\Administrator\Desktop\pXar\build\core\pxar.vcxpr
oj]
c:\documents and settings\administrator\desktop\pxar\core\rpc\rpc_io.h(9): fa
tal error C1083: Cannot open include file: 'inttypes.h': No such file or direct
ory [C:\Documents and Settings\Administrator\Desktop\pXar\build\core\pxar.vcxpr
oj]
c:\documents and settings\administrator\desktop\pxar\core\rpc\rpc_io.h(9): fa
tal error C1083: Cannot open include file: 'inttypes.h': No such file or direct
ory [C:\Documents and Settings\Administrator\Desktop\pXar\build\core\pxar.vcxpr
oj]
c:\documents and settings\administrator\desktop\pxar\core\rpc\rpc_io.h(9): fa
tal error C1083: Cannot open include file: 'inttypes.h': No such file or direct
ory [C:\Documents and Settings\Administrator\Desktop\pXar\build\core\pxar.vcxpr
oj]
c:\documents and settings\administrator\desktop\pxar\core\rpc\rpc_io.h(9): fa
tal error C1083: Cannot open include file: 'inttypes.h': No such file or direct
ory [C:\Documents and Settings\Administrator\Desktop\pXar\build\core\pxar.vcxpr
oj]
c:\documents and settings\administrator\desktop\pxar\core\rpc\rpc_io.h(9): fa
tal error C1083: Cannot open include file: 'inttypes.h': No such file or direct
ory [C:\Documents and Settings\Administrator\Desktop\pXar\build\core\pxar.vcxpr
oj]
c:\documents and settings\administrator\desktop\pxar\core\rpc\rpc_io.h(9): fa
tal error C1083: Cannot open include file: 'inttypes.h': No such file or direct
ory [C:\Documents and Settings\Administrator\Desktop\pXar\build\core\pxar.vcxpr
oj]
c:\documents and settings\administrator\desktop\pxar\core\rpc\rpc_io.h(9): fa
tal error C1083: Cannot open include file: 'inttypes.h': No such file or direct
ory [C:\Documents and Settings\Administrator\Desktop\pXar\build\core\pxar.vcxpr
oj]
c:\documents and settings\administrator\desktop\pxar\core\rpc\rpc_io.h(9): fa
tal error C1083: Cannot open include file: 'inttypes.h': No such file or direct
ory [C:\Documents and Settings\Administrator\Desktop\pXar\build\core\pxar.vcxpr
oj]
0 Warning(s)
9 Error(s)
Time Elapsed 00:00:03.89
Possible solution to this is adding typedef
s manually for the WIN32 case:
USBInterface:
#ifdef WIN32
#include <Windows.h>
typedef signed char int8_t;
typedef signed short int16_t;
typedef signed int int32_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef signed long long int64_t;
typedef unsigned long long uint64_t;
#else
typedef uint32_t* LPDWORD;
typedef uint32_t DWORD;
#include <inttypes.h>
#endif
rpc_io.h:
#ifndef WIN32
#include <unistd.h>
#include <inttypes.h>
#else
typedef signed char int8_t;
typedef signed short int16_t;
typedef signed int int32_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef signed long long int64_t;
typedef unsigned long long uint64_t;
#endif
But maybe there is a better solution.
Hi all,
I have a successful build on Ubuntu and then connected it to a DTB which doesn't connect to a anything yet. Then I tried @ursl example from yesterday's talk:
$ cd main/
$ ../bin/pxarGui -g --dir ../data/defaultParametersRocPSI46digV2
[08:48:22.769] INFO: *** Welcome to pxar ***
[08:48:22.769] INFO: pxar: reading config parameters from ../data/defaultParametersRocPSI46digV2/configParameters.dat
ia dvalue: 1.19 _value: 1.190
[08:48:22.769] INFO: pxar: dumping results into pxar.root
[08:48:22.807] INFO: readDacFile reading ../data/defaultParametersRocPSI46digV2/dacParameters_C0.dat
[08:48:22.807] INFO: readMaskFile reading ../data/defaultParametersRocPSI46digV2/defaultMaskFile.dat
[08:48:22.808] INFO: readTrimFile reading ../data/defaultParametersRocPSI46digV2/trimParameters_C0.dat
[08:48:22.819] QUIET: Instanciating API for pxar v0.0.2
[08:48:22.820] INFO: Log level: DEBUGHAL
[08:48:37.833] INFO: pxar caught an exception from the board. Exiting.
before I connect anything, I'd like to confirm whether this is a bug ...
Thanks!
Xin
Implement Doxygen into CMake and be able to build the documentation / API manual via CMake.
Check where documentation is missing in the API.
I have a problem running DacDac tests, all I get back from the testboard is zero. The length of the vectors is exactly what I expect, but all value entries are 0.
This happens for various dac-dac pairs, e.g. the classical CalDel vs. VthrComp. The range of course spans the working parameters tested before with some other tests (a Dac scan directly before that ran through correctly and returns efficiency values.
Anyone of you NIOS gurus has an idea? I looked at that code briefly (the files located on Niklas' CERN AFS) but that all looked fine to me...
Hardware Abstract Layer
This will allow reading back all programmed settings in a unified way. This feature is required to allow the UI writing updated config files by just pulling all the settings from the API.
Implement a system that reports a unique API version to be referenced. This can also be used to reference the correct Firnmware Flash Version for the DTB, have to think about the detailed implementation.
Possibility here would be to use CMake to extract versioning numbers from git. one could e.g. make new git tags for every new flash file we release, with the same name...
Code snippet for that:
# Check if this is source package build
if(NOT IS_DIRECTORY ${CMAKE_SOURCE_DIR}/.git)
set(SOURCE_PACKAGE 1)
endif()
#
# Set package version
#
if(NOT SOURCE_PACKAGE)
message("-- Determining version")
exec_program(git ${CMAKE_CURRENT_SOURCE_DIR} ARGS describe --tags HEAD | "sed 's,^release-,,;s,-,+,;s,-,~,;'" OUTPUT_VARIABLE PROJECT_VERSION)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake/version.cmake.cmake" "${CMAKE_CURRENT_BINARY_DIR}/version.cmake" @ONLY)
else(NOT SOURCE_PACKAGE)
include(cmake/version.cmake)
endif()
this would require to update the version.cmake manually and commit this as sort of "release commit" before setting a new tag.
If s-curve fit do not converge during trim test it crashes.
OS: Debian Wheezy
pxar version: 05fbfb1 Mon Jan 27 18:00:51 2014
Here is an extract from a log:
......
XXXXXXXXXXX PixInitFunc: STEP FUNCTION
[08:13:26.774] INFO: failed fit for TrimThr0_VthrComp_c40_r14_C0, adding to list of hists
[08:13:26.775] INFO: s-curve fit did not converge for histogram TrimThr0_VthrComp_c40_r15_C0
[08:13:26.775] INFO: failed fit for TrimThr0_VthrComp_c40_r15_C0, adding to list of hists
XXXXXXXXXXX PixInitFunc: STEP FUNCTION
[08:13:26.775] INFO: failed fit for TrimThr0_VthrComp_c40_r16_C0, adding to list of hists
......
adding TrimThr0_VthrComp_c12_r50_C0
adding TrimThr0_VthrComp_c12_r51_C0
adding TrimThr0_VthrComp_c12_r52_C0
adding TrimThr0_VthrComp_c12_r53_C0
.....
adding TrimThr0_VthrComp_c23_r54_C0
*** Break *** segmentation violation
There was a crash.
This is the entire stack trace of all threads:
Thread 5 (Thread 0x7fb3dc175700 (LWP 8335)):
#0 0x00007fb3dc91195d in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007fb3ddbc9cf3 in handle_events () from /usr/local/lib/libftd2xx.so
#2 0x00007fb3ddbc9f0c in libusb_handle_events_timeout () from /usr/local/lib/libftd2xx.so
#3 0x00007fb3ddbced7d in poll_async_libusb () from /usr/local/lib/libftd2xx.so
#4 0x00007fb3dd612e0e in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#5 0x00007fb3dc91d0fd in clone () from /lib/x86_64-linux-gnu/libc.so.6
Thread 4 (Thread 0x7fb3db13c700 (LWP 8336)):
#0 0x00007fb3dd616d21 in pthread_cond_timedwait
GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1 0x00007fb3ddbd8b4c in EventWait () from /usr/local/lib/libftd2xx.so
#2 0x00007fb3ddbdb031 in reader_thread () from /usr/local/lib/libftd2xx.so
#3 0x00007fb3dd612e0e in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#4 0x00007fb3dc91d0fd in clone () from /lib/x86_64-linux-gnu/libc.so.6
Thread 3 (Thread 0x7fb3da93b700 (LWP 8337)):
#0 0x00007fb3dd616d21 in pthread_cond_timedwait
GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1 0x00007fb3ddbd8b4c in EventWait () from /usr/local/lib/libftd2xx.so
#2 0x00007fb3ddbdb297 in processor_thread () from /usr/local/lib/libftd2xx.so
#3 0x00007fb3dd612e0e in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#4 0x00007fb3dc91d0fd in clone () from /lib/x86_64-linux-gnu/libc.so.6
Thread 2 (Thread 0x7fb3da13a700 (LWP 8338)):
#0 0x00007fb3dd616974 in pthread_cond_wait
GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1 0x00007fb3ddbd8a49 in EventWait () from /usr/local/lib/libftd2xx.so
#2 0x00007fb3ddbd199e in write_thread () from /usr/local/lib/libftd2xx.so
#3 0x00007fb3dd612e0e in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#4 0x00007fb3dc91d0fd in clone () from /lib/x86_64-linux-gnu/libc.so.6
Thread 1 (Thread 0x7fb3e34d1740 (LWP 8334)):
#0 0x00007fb3dc8ed867 in waitpid () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007fb3dc877480 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007fb3dc877840 in system () from /lib/x86_64-linux-gnu/libc.so.6
#3 0x00007fb3e1ed259c in TUnixSystem::StackTrace() () from /soft/root/5.34.14/lib/libCore.so
#4 0x00007fb3e1ed4dd3 in TUnixSystem::DispatchSignals(ESignals) () from /soft/root/5.34.14/lib/libCore.so
#5 <signal handler called>
#6 0x00007fb3e04a7a54 in TFormula::GetParameter(int) const () from /soft/root/5.34.14/lib/libHist.so
#7 0x00007fb3dd8ff8aa in PixTest::scurveMaps (this=0x1a2c8f0, dac=..., name=..., ntrig=10, dacmin=0, dacmax=50, result=7) at /soft/pxar/main.source/main/PixTest.cc:169
#8 0x00007fb3dd914b9d in PixTestTrim::doTest (this=0x1a2c8f0) at /soft/pxar/main.source/main/PixTestTrim.cc:118
#9 0x00007fb3dd93a75a in G__pxarGuiDict_885_0_15 (result7=0x1af3120, funcname=0x0, libp=0x1af31d0, hash=0) at /soft/pxar/main.source/build/main/pxarGuiDict.cxx:5189
#10 0x00007fb3e1363e1f in Cint::G__CallFunc::Execute(void*) () from /soft/root/5.34.14/lib/libCint.so
#11 0x00007fb3e1e96ffc in TCint::CallFunc_Exec(void*, void*) const () from /soft/root/5.34.14/lib/libCore.so
#12 0x00007fb3e1e3a269 in TQConnection::ExecuteMethod() () from /soft/root/5.34.14/lib/libCore.so
#13 0x00007fb3e1e3cd43 in TQObject::Emit(char const*) () from /soft/root/5.34.14/lib/libCore.so
#14 0x00007fb3e285c68e in TGButton::EmitSignals(bool) () from /soft/root/5.34.14/lib/libGui.so
#15 0x00007fb3e285d476 in TGButton::HandleButton(Event_t*) () from /soft/root/5.34.14/lib/libGui.so
#16 0x00007fb3e28a32aa in TGFrame::HandleEvent(Event_t*) () from /soft/root/5.34.14/lib/libGui.so
#17 0x00007fb3e2876b78 in TGClient::HandleEvent(Event_t*) () from /soft/root/5.34.14/lib/libGui.so
#18 0x00007fb3e2876c85 in TGClient::ProcessOneEvent() () from /soft/root/5.34.14/lib/libGui.so
#19 0x00007fb3e2876cdd in TGClient::HandleInput() () from /soft/root/5.34.14/lib/libGui.so
#20 0x00007fb3e1ed5488 in TUnixSystem::DispatchOneEvent(bool) () from /soft/root/5.34.14/lib/libCore.so
#21 0x00007fb3e1e59d86 in TSystem::InnerLoop() () from /soft/root/5.34.14/lib/libCore.so
#22 0x00007fb3e1e5b974 in TSystem::Run() () from /soft/root/5.34.14/lib/libCore.so
#23 0x00007fb3e1e016bf in TApplication::Run(bool) () from /soft/root/5.34.14/lib/libCore.so
#24 0x0000000000411ff4 in runGui (a=..., argc=3, argv=0x7fff377e1608) at /soft/pxar/main.source/main/pXar.cc:196
#25 0x00000000004105ba in main (argc=4, argv=0x7fff377e1608) at /soft/pxar/main.source/main/pXar.cc:127
The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
http://root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
#6 0x00007fb3e04a7a54 in TFormula::GetParameter(int) const () from /soft/root/5.34.14/lib/libHist.so
#7 0x00007fb3dd8ff8aa in PixTest::scurveMaps (this=0x1a2c8f0, dac=..., name=..., ntrig=10, dacmin=0, dacmax=50, result=7) at /soft/pxar/main.source/main/PixTest.cc:169
#8 0x00007fb3dd914b9d in PixTestTrim::doTest (this=0x1a2c8f0) at /soft/pxar/main.source/main/PixTestTrim.cc:118
[08:13:39.913] INFO: PixGui::destructor
I would suggest to implement a simple custom exception framework for the API and HAL layers based on the std::exception base classes to be able to better handle fault conditions at lower levels; this is mostly for internal use but could also be applied to alert the user to serious issues.
Last fall I wrote some code in psi46test and in the NIOS part of the firmware to enable communication between the host machine and a DTB via Ethernet. This involved creating another RPC implementation similar to what exists for USB. I would like to add this functionality to pxar.
Core developers: When would be a good time for me to begin work on this?
Dear all,
the versioning of the API as discussed in issue #14 does not work as expected; when running CMake, I get the following error in the output:
fatal: No names found, cannot describe anything.
-- Determined API version .
This is on Ubuntu 12.10, git 1.7.10.4, and CMake 2.8.9
When putting in a "wrong" chip (i.e. a digV1 with inverted pixel ID) the decoding fails. But instead of returning an error code (whatever) the return value of the CalibrateMap function (just as an example) is always 1.
It would be nice to use this channel for supplying information to the client software about what's going on in the NIOS code. Otherwise one keeps wondering about a completely scrambled hit map of the sensor...
The CMake command FIND_PATH apparently is fine with only finding one of the files specified in NAMES. For FTD2XX we need both ftd2xx.h and WinTypes.h
The following warnings appear when compiling the core library on Windows 7, 32bit, using MSVC 12:
..\..\core\rpc\nios_fallback.cpp(56): warning C4244: 'argument' : conversion from 'short' to 'uint8_t', possible loss of d
ata [C:\Users\hanno\Documents\GitHub\pxar\build\core\pxar.vcxproj]
..\..\core\rpc\nios_fallback.cpp(168): warning C4244: 'return' : conversion from 'int16_t' to 'int8_t', possible loss of d
ata [C:\Users\hanno\Documents\GitHub\pxar\build\core\pxar.vcxproj]
..\..\core\api\api.cc(1108): warning C4800: 'uint32_t' : forcing value to bool 'true' or 'false' (performance warning) [C:
\Users\hanno\Documents\GitHub\pxar\build\core\pxar.vcxproj]
..\..\core\api\api.cc(1112): warning C4800: 'uint32_t' : forcing value to bool 'true' or 'false' (performance warning) [C:
\Users\hanno\Documents\GitHub\pxar\build\core\pxar.vcxproj]
..\..\core\api\api.cc(1163): warning C4804: '<' : unsafe use of type 'bool' in operation [C:\Users\hanno\Documents\GitHub\
pxar\build\core\pxar.vcxproj]
As discussed in #42 some of these might be serious and could point to a bug.
Needed for both high rate tests and testbeam. According to what we discussed there should be a variety of API functions:
daqStart() - starts up a new DAQ session, putting the DTB in daq mode.
daqStop() - stopping the started DAQ session
daqGetEvent() - read out the first non-read decoded event. This allows to fetch single events already during data taking and would allow easy integration in all sorts of DAQ frameworks (like e.g. eudaq for DESY testbeams) but also analysis of the data already during data taking.
daqGetRawEvent() - like the above one but returning the undecoded RAW data from the sensors. Some might want to store that instead of decoded stuff.
daqGetBuffer() - reading out all events at once, to be used after DAQ has been stopped probably.
Please comment if you have any conceptual ideas or implementation proposals.
/Simon
Current HEAD version ea5e268 does not compiles.
OS: Debian Wheezy
g++ version: 4.7.2
Error message:
In file included from /soft/pxar/main.source/main/PixGui.cc:8:0:
/soft/pxar/main.source/main/PixParTab.hh:34:28: error: extra qualification ‘PixParTab::’ on member ‘getSelectedRocs’ [-fpermissive]
/soft/pxar/main.source/main/PixParTab.hh:35:28: error: extra qualification ‘PixParTab::’ on member ‘getSelectedTbms’ [-fpermissive]
I had some trouble doing PixelAlive and DacScan with thee latest pxar version (downloaded this morning, Feb 5th) and flash 1.17.
These are the shell outputs:
[11:10:14.492] INFO: PixTestAlive::doTest() ntrig = -1
[11:10:14.703] INFO: PixTestAlive::doTest() done
[11:13:58.023] INFO: Parameters for testDacScan
[11:13:58.023] INFO: pos 0::Ntrig: 10
[11:13:58.023] INFO: pos 1::DAC: caldel
[11:13:58.023] INFO: pos 2::DACLO: 0
[11:13:58.023] INFO: pos 3::DACHI: 250
[11:13:58.023] INFO: pos 4::PIX1: 11,20
[11:13:58.023] INFO: pos 5::PIX2: 20,30
[11:13:58.023] INFO: pos 6::PIX3: 40,50
[11:13:59.039] INFO: PixTestDacScan::doTest() ntrig = -1
[11:13:59.040] ERROR: Invalid register name "nada".
The plots on the gui are obviously blank.
Either we have to remove the Poff/Pon calls from the API or we introduce a new function to reprogram the DUT with the already stored configuration.
As soon as Poff is called all programmed DAC registers on the attached devices are lost. Currently this just sets the _programmed flag to FALSE and thereby prevents any further action on the DUT.
If keeping Poff is desired, one has to split api::initDUT() into a config setup stage and a separate function api::programDUT() to be called afterwards.
Have dictionaries available for DAC names -> register IDs & range checks for ROCs, TBMs and the DTB.
Hi all,
I found this error while trying to do make install:
/home/purduepix/pxar/build/main/pxarGuiDict.cxx: In member function ‘virtual void PixParTab::Streamer(TBuffer&)’:
/home/purduepix/pxar/build/main/pxarGuiDict.cxx:1198:44: error: invalid initialization of reference of type ‘std::map<std::basic_string<char>, void*>&’ from expression of type ‘std::map<std::basic_string<char>, TGTextEntry*>’
/home/purduepix/pxar/build/main/pxarGuiDict.cxx:1234:44: error: invalid initialization of reference of type ‘std::map<std::basic_string<char>, void*>&’ from expression of type ‘std::map<std::basic_string<char>, TGTextEntry*>’
/home/purduepix/pxar/build/main/pxarGuiDict.cxx:1270:44: error: invalid initialization of reference of type ‘std::map<std::basic_string<char>, void*>&’ from expression of type ‘std::map<std::basic_string<char>, TGTextEntry*>’
/home/purduepix/pxar/build/main/pxarGuiDict.cxx:1306:58: error: invalid initialization of reference of type ‘std::vector<std::map<std::basic_string<char>, void*> >&’ from expression of type ‘std::map<std::basic_string<char>, TGTextEntry*>’
/home/purduepix/pxar/build/main/pxarGuiDict.cxx:1323:55: error: invalid initialization of reference of type ‘std::vector<std::vector<std::basic_string<char> > >&’ from expression of type ‘std::vector<std::map<std::basic_string<char>, unsigned char> >’
/home/purduepix/pxar/build/main/pxarGuiDict.cxx:1357:58: error: invalid initialization of reference of type ‘std::vector<std::map<std::basic_string<char>, void*> >&’ from expression of type ‘std::map<std::basic_string<char>, TGTextEntry*>’
/home/purduepix/pxar/build/main/pxarGuiDict.cxx:1374:55: error: invalid initialization of reference of type ‘std::vector<std::vector<std::basic_string<char> > >&’ from expression of type ‘std::vector<std::map<std::basic_string<char>, unsigned char> >’
/home/purduepix/pxar/build/main/pxarGuiDict.cxx:1419:44: error: invalid initialization of reference of type ‘std::map<std::basic_string<char>, void*>&’ from expression of type ‘std::map<std::basic_string<char>, TGTextEntry*>’
/home/purduepix/pxar/build/main/pxarGuiDict.cxx:1449:44: error: invalid initialization of reference of type ‘std::map<std::basic_string<char>, void*>&’ from expression of type ‘std::map<std::basic_string<char>, TGTextEntry*>’
/home/purduepix/pxar/build/main/pxarGuiDict.cxx:1479:44: error: invalid initialization of reference of type ‘std::map<std::basic_string<char>, void*>&’ from expression of type ‘std::map<std::basic_string<char>, TGTextEntry*>’
/home/purduepix/pxar/build/main/pxarGuiDict.cxx:1509:58: error: invalid initialization of reference of type ‘std::vector<std::map<std::basic_string<char>, void*> >&’ from expression of type ‘std::map<std::basic_string<char>, TGTextEntry*>’
/home/purduepix/pxar/build/main/pxarGuiDict.cxx:1525:55: error: invalid initialization of reference of type ‘std::vector<std::vector<std::basic_string<char> > >&’ from expression of type ‘std::vector<std::map<std::basic_string<char>, unsigned char> >’
/home/purduepix/pxar/build/main/pxarGuiDict.cxx:1552:58: error: invalid initialization of reference of type ‘std::vector<std::map<std::basic_string<char>, void*> >&’ from expression of type ‘std::map<std::basic_string<char>, TGTextEntry*>’
/home/purduepix/pxar/build/main/pxarGuiDict.cxx:1568:55: error: invalid initialization of reference of type ‘std::vector<std::vector<std::basic_string<char> > >&’ from expression of type ‘std::vector<std::map<std::basic_string<char>, unsigned char> >’
Please let me know how to proceed. I'm on Ubuntu
Thanks!
Xin
Fill DACDAC routines with example dummy code and write data repacking/wrapping functions.
pxar always crashes on exit even if there were no any test performed.
OS: Debian Wheezy
pxar version: 05fbfb1 Mon Jan 27 18:00:51 2014
Here is extract from the log (btw, do someone know how to attach a log as a file?):
[08:18:02.647] INFO: PixGui::destructor
*** Error in `bin/pxarGui': free(): invalid pointer: 0x00007fffcf34b7e0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7aa16)[0x7fd72c9c6a16]
/lib/x86_64-linux-gnu/libc.so.6(+0x7b793)[0x7fd72c9c7793]
/soft/root/5.34.14/lib/libCore.so(_ZN8TStorage13ObjectDeallocEPv+0x78)[0x7fd731f60888]
/soft/pxar/main.source/lib/libpxarui.so(_ZN6PixGuiD0Ev+0x24)[0x7fd72d9fbf30]
/soft/root/5.34.14/lib/libGui.so(+0x3498fe)[0x7fd732ab28fe]
/soft/root/5.34.14/lib/libCint.so(_ZN4Cint11G__CallFunc7ExecuteEPv+0xcf)[0x7fd73147be1f]
/soft/root/5.34.14/lib/libCore.so(ZNK5TCint13CallFunc_ExecEPvS0+0xc)[0x7fd731faeffc]
/soft/root/5.34.14/lib/libCore.so(_ZN12TQConnection13ExecuteMethodEv+0x89)[0x7fd731f52269]
/soft/root/5.34.14/lib/libCore.so(_ZN8TQObject4EmitEPKc+0x263)[0x7fd731f54d43]
/soft/root/5.34.14/lib/libCore.so(_ZN6TTimer6NotifyEv+0xd)[0x7fd731f8243d]
/soft/root/5.34.14/lib/libCore.so(_ZN6TTimer10CheckTimerERK5TTime+0x21)[0x7fd731f82321]
/soft/root/5.34.14/lib/libCore.so(_ZN11TUnixSystem14DispatchTimersEb+0xd5)[0x7fd731feccd5]
/soft/root/5.34.14/lib/libCore.so(_ZN11TUnixSystem16DispatchOneEventEb+0x251)[0x7fd731fed691]
/soft/root/5.34.14/lib/libCore.so(_ZN7TSystem9InnerLoopEv+0x16)[0x7fd731f71d86]
/soft/root/5.34.14/lib/libCore.so(_ZN7TSystem3RunEv+0x74)[0x7fd731f73974]
/soft/root/5.34.14/lib/libCore.so(_ZN12TApplication3RunEb+0x1f)[0x7fd731f196bf]
bin/pxarGui(_Z6runGuiR8PixSetupiPPc+0xab)[0x411ff4]
bin/pxarGui(main+0x132b)[0x4105ba]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7fd72c96d995]
bin/pxarGui[0x40c909]
======= Memory map: ========
00400000-0041b000 r-xp 00000000 08:01 3410308 /soft/pxar/main.source/bin/pxarGui
0061b000-0061c000 rw-p 0001b000 08:01 3410308 /soft/pxar/main.source/bin/pxarGui
0061c000-0061e000 rw-p 00000000 00:00 0
01a29000-02ca2000 rw-p 00000000 00:00 0 [heap]
7fd71c000000-7fd71c021000 rw-p 00000000 00:00 0
7fd71c021000-7fd720000000 ---p 00000000 00:00 0
7fd723896000-7fd7239bc000 r-xp 00000000 08:01 3807750 /soft/root/5.34.14/lib/libASImage.so
7fd7239bc000-7fd723bbc000 ---p 00126000 08:01 3807750 /soft/root/5.34.14/lib/libASImage.so
7fd723bbc000-7fd723bc2000 rw-p 00126000 08:01 3807750 /soft/root/5.34.14/lib/libASImage.so
7fd723bc2000-7fd723bd0000 rw-p 00000000 00:00 0
7fd723bd0000-7fd723bd5000 r-xp 00000000 08:01 27270711 /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7fd723bd5000-7fd723dd4000 ---p 00005000 08:01 27270711 /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7fd723dd4000-7fd723dd5000 r--p 00004000 08:01 27270711 /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7fd723dd5000-7fd723dd6000 rw-p 00005000 08:01 27270711 /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7fd723dd6000-7fd723dfd000 r-xp 00000000 08:01 262293 /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7fd723dfd000-7fd723ffd000 ---p 00027000 08:01 262293 /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7fd723ffd000-7fd723fff000 r--p 00027000 08:01 262293 /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7fd723fff000-7fd724000000 rw-p 00029000 08:01 262293 /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7fd724000000-7fd724021000 rw-p 00000000 00:00 0
7fd724021000-7fd728000000 ---p 00000000 00:00 0
7fd728003000-7fd72800d000 r-xp 00000000 08:01 27270873 /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fd72800d000-7fd72820c000 ---p 0000a000 08:01 27270873 /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fd72820c000-7fd72820d000 rw-p 00009000 08:01 27270873 /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fd72820d000-7fd728216000 r-xp 00000000 08:01 27270148 /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7fd728216000-7fd728415000 ---p 00009000 08:01 27270148 /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7fd728415000-7fd728416000 rw-p 00008000 08:01 27270148 /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7fd728416000-7fd72844b000 r-xp 00000000 08:01 27269978 /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.5.0
7fd72844b000-7fd72864b000 ---p 00035000 08:01 27269978 /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.5.0
7fd72864b000-7fd72864c000 r--p 00035000 08:01 27269978 /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.5.0
7fd72864c000-7fd72864d000 rw-p 00036000 08:01 27269978 /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.5.0
7fd72864d000-7fd728661000 r-xp 00000000 08:01 27270514 /usr/lib/x86_64-linux-gnu/libXft.so.2.3.1
7fd728661000-7fd728861000 ---p 00014000 08:01 27270514 /usr/lib/x86_64-linux-gnu/libXft.so.2.3.1
7fd728861000-7fd728862000 rw-p 00014000 08:01 27270514 /usr/lib/x86_64-linux-gnu/libXft.so.2.3.1
7fd728862000-7fd72887a000 r-xp 00000000 08:01 3807774 /soft/root/5.34.14/lib/libGX11TTF.so
7fd72887a000-7fd728a79000 ---p 00018000 08:01 3807774 /soft/root/5.34.14/lib/libGX11TTF.so
7fd728a79000-7fd728a7b000 rw-p 00017000 08:01 3807774 /soft/root/5.34.14/lib/libGX11TTF.so
7fd728a7b000-7fd728a80000 r-xp 00000000 08:01 27269985 /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7fd728a80000-7fd728c7f000 ---p 00005000 08:01 27269985 /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7fd728c7f000-7fd728c80000 rw-p 00004000 08:01 27269985 /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7fd728c80000-7fd728c82000 r-xp 00000000 08:01 27269983 /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7fd728c82000-7fd728e82000 ---p 00002000 08:01 27269983 /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7fd728e82000-7fd728e83000 rw-p 00002000 08:01 27269983 /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7fd728e83000-7fd728ea2000 r-xp 00000000 08:01 27269987 /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7fd728ea2000-7fd7290a1000 ---p 0001f000 08:01 27269987 /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7fd7290a1000-7fd7290a2000 r--p 0001e000 08:01 27269987 /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7fd7290a2000-7fd7290a3000 rw-p 0001f000 08:01 27269987 /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7fd7290a3000-7fd7291d8000 r-xp 00000000 08:01 27269992 /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7fd7291d8000-7fd7293d8000 ---p 00135000 08:01 27269992 /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7fd7293d8000-7fd7293de000 rw-p 00135000 08:01 27269992 /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7fd7293de000-7fd7293ef000 r-xp 00000000 08:01 27270715 /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
7fd7293ef000-7fd7295ef000 ---p 00011000 08:01 27270715 /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0Aborted
When trying to run msbuild INSTALL.vcxproj /p:Configuration=Release
after a successful build (with a hacky fix for issue #46 ) the following errros are issued under Windows XP:
C:\Documents and Settings\Administrator\Desktop\pXar\build>msbuild INSTALL.vcxpr
oj /p:Configuration=Release
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.1]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
Build started 1/30/2014 2:36:17 PM.
Project "C:\Documents and Settings\Administrator\Desktop\pXar\build\INSTALL.vcx
proj" on node 1 (default targets).
Project "C:\Documents and Settings\Administrator\Desktop\pXar\build\INSTALL.vcx
proj" (1) is building "C:\Documents and Settings\Administrator\Desktop\pXar\bui
ld\ALL_BUILD.vcxproj" (2) on node 1 (default targets).
Project "C:\Documents and Settings\Administrator\Desktop\pXar\build\ALL_BUILD.v
cxproj" (2) is building "C:\Documents and Settings\Administrator\Desktop\pXar\b
uild\ZERO_CHECK.vcxproj" (3) on node 1 (default targets).
InitializeBuildStatus:
Creating "Win32\Release\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild" because "Alw
aysCreate" was specified.
CustomBuild:
Checking Build System
CMake does not need to re-run because C:/Documents and Settings/Administrator
/Desktop/pXar/build/CMakeFiles/generate.stamp is up-to-date.
CMake does not need to re-run because C:/Documents and Settings/Administrator
/Desktop/pXar/build/core/CMakeFiles/generate.stamp is up-to-date.
CMake does not need to re-run because C:/Documents and Settings/Administrator
/Desktop/pXar/build/debug/CMakeFiles/generate.stamp is up-to-date.
FinalizeBuildStatus:
Deleting file "Win32\Release\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild".
Touching "Win32\Release\ZERO_CHECK\ZERO_CHECK.lastbuildstate".
Done Building Project "C:\Documents and Settings\Administrator\Desktop\pXar\bui
ld\ZERO_CHECK.vcxproj" (default targets).
Project "C:\Documents and Settings\Administrator\Desktop\pXar\build\ALL_BUILD.v
cxproj" (2) is building "C:\Documents and Settings\Administrator\Desktop\pXar\b
uild\core\pxar.vcxproj" (4) on node 1 (default targets).
InitializeBuildStatus:
Creating "pxar.dir\Release\pxar.unsuccessfulbuild" because "AlwaysCreate" was
specified.
CustomBuild:
All outputs are up-to-date.
ClCompile:
All outputs are up-to-date.
Link:
All outputs are up-to-date.
pxar.vcxproj -> C:\Documents and Settings\Administrator\Desktop\pXar\build\co
re\Release\pxar.dll
FinalizeBuildStatus:
Deleting file "pxar.dir\Release\pxar.unsuccessfulbuild".
Touching "pxar.dir\Release\pxar.lastbuildstate".
Done Building Project "C:\Documents and Settings\Administrator\Desktop\pXar\bui
ld\core\pxar.vcxproj" (default targets).
Project "C:\Documents and Settings\Administrator\Desktop\pXar\build\ALL_BUILD.v
cxproj" (2) is building "C:\Documents and Settings\Administrator\Desktop\pXar\b
uild\debug\testpxar.vcxproj" (5) on node 1 (default targets).
InitializeBuildStatus:
Creating "testpxar.dir\Release\testpxar.unsuccessfulbuild" because "AlwaysCre
ate" was specified.
CustomBuild:
All outputs are up-to-date.
ClCompile:
All outputs are up-to-date.
Link:
All outputs are up-to-date.
testpxar.vcxproj -> C:\Documents and Settings\Administrator\Desktop\pXar\buil
d\debug\Release\testpxar.exe
PostBuildEvent:
setlocal
"C:\Program Files\CMake 2.8\bin\cmake.exe" -E copy_if_different "C:/Documents
and Settings/Administrator/Desktop/pXar/extern/ftd2xx/i386/ftd2xx.dll" "C:/D
ocuments and Settings/Administrator/Desktop/pXar/bin"
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd
FinalizeBuildStatus:
Deleting file "testpxar.dir\Release\testpxar.unsuccessfulbuild".
Touching "testpxar.dir\Release\testpxar.lastbuildstate".
Done Building Project "C:\Documents and Settings\Administrator\Desktop\pXar\bui
ld\debug\testpxar.vcxproj" (default targets).
InitializeBuildStatus:
Creating "Win32\Release\ALL_BUILD\ALL_BUILD.unsuccessfulbuild" because "Alway
sCreate" was specified.
CustomBuild:
Build all projects
FinalizeBuildStatus:
Deleting file "Win32\Release\ALL_BUILD\ALL_BUILD.unsuccessfulbuild".
Touching "Win32\Release\ALL_BUILD\ALL_BUILD.lastbuildstate".
Done Building Project "C:\Documents and Settings\Administrator\Desktop\pXar\bui
ld\ALL_BUILD.vcxproj" (default targets).
InitializeBuildStatus:
Touching "Win32\Release\INSTALL\INSTALL.unsuccessfulbuild".
PostBuildEvent:
setlocal
"C:\Program Files\CMake 2.8\bin\cmake.exe" -DBUILD_TYPE=Release -P cmake_inst
all.cmake
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd
-- Install configuration: "Release"
-- Installing: C:/Documents and Settings/Administrator/Desktop/pXar/lib/pxar.
lib
CMake Error at core/cmake_install.cmake:46 (FILE):
file INSTALL destination: C:/Documents and
Settings/Administrator/Desktop/pXar/bin is not a directory.
Call Stack (most recent call first):
cmake_install.cmake:32 (INCLUDE)
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):
error MSB3073: The command "setlocal\r [C:\Documents and Settings\Administrato
r\Desktop\pXar\build\INSTALL.vcxproj]
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):
error MSB3073: "C:\Program Files\CMake 2.8\bin\cmake.exe" -DBUILD_TYPE=Release
-P cmake_install.cmake\r [C:\Documents and Settings\Administrator\Desktop\pXar
\build\INSTALL.vcxproj]
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):
error MSB3073: if %errorlevel% neq 0 goto :cmEnd\r [C:\Documents and Settings\
Administrator\Desktop\pXar\build\INSTALL.vcxproj]
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):
error MSB3073: :cmEnd\r [C:\Documents and Settings\Administrator\Desktop\pXar\
build\INSTALL.vcxproj]
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):
error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone\r [C:
\Documents and Settings\Administrator\Desktop\pXar\build\INSTALL.vcxproj]
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):
error MSB3073: :cmErrorLevel\r [C:\Documents and Settings\Administrator\Deskto
p\pXar\build\INSTALL.vcxproj]
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):
error MSB3073: exit /b %1\r [C:\Documents and Settings\Administrator\Desktop\p
Xar\build\INSTALL.vcxproj]
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):
error MSB3073: :cmDone\r [C:\Documents and Settings\Administrator\Desktop\pXar
\build\INSTALL.vcxproj]
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):
error MSB3073: if %errorlevel% neq 0 goto :VCEnd\r [C:\Documents and Settings\
Administrator\Desktop\pXar\build\INSTALL.vcxproj]
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):
error MSB3073: :VCEnd" exited with code 1. [C:\Documents and Settings\Administ
rator\Desktop\pXar\build\INSTALL.vcxproj]
Done Building Project "C:\Documents and Settings\Administrator\Desktop\pXar\bui
ld\INSTALL.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\Documents and Settings\Administrator\Desktop\pXar\build\INSTALL.vcxproj" (d
efault target) (1) ->
(PostBuildEvent target) ->
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5
): error MSB3073: The command "setlocal\r [C:\Documents and Settings\Administra
tor\Desktop\pXar\build\INSTALL.vcxproj]
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):
error MSB3073: "C:\Program Files\CMake 2.8\bin\cmake.exe" -DBUILD_TYPE=Release
-P cmake_install.cmake\r [C:\Documents and Settings\Administrator\Desktop\pXar
\build\INSTALL.vcxproj]
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):
error MSB3073: if %errorlevel% neq 0 goto :cmEnd\r [C:\Documents and Settings\
Administrator\Desktop\pXar\build\INSTALL.vcxproj]
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):
error MSB3073: :cmEnd\r [C:\Documents and Settings\Administrator\Desktop\pXar\
build\INSTALL.vcxproj]
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):
error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone\r [C:
\Documents and Settings\Administrator\Desktop\pXar\build\INSTALL.vcxproj]
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):
error MSB3073: :cmErrorLevel\r [C:\Documents and Settings\Administrator\Deskto
p\pXar\build\INSTALL.vcxproj]
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):
error MSB3073: exit /b %1\r [C:\Documents and Settings\Administrator\Desktop\p
Xar\build\INSTALL.vcxproj]
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):
error MSB3073: :cmDone\r [C:\Documents and Settings\Administrator\Desktop\pXar
\build\INSTALL.vcxproj]
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):
error MSB3073: if %errorlevel% neq 0 goto :VCEnd\r [C:\Documents and Settings\
Administrator\Desktop\pXar\build\INSTALL.vcxproj]
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):
error MSB3073: :VCEnd" exited with code 1. [C:\Documents and Settings\Administ
rator\Desktop\pXar\build\INSTALL.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:01.89
C:\Documents and Settings\Administrator\Desktop\pXar\build>
However, testpxar
seems to run fine after copying together all those various DLL files (had to DTB connected, which was correctly detected...)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.