Parse json to DynamicFrame columns - amazon-web-services

Hello I am trying to parse json file in following structure to DynamicFrame colums.I need every column separetely
changedFields|First Name|Last Name| ...... | id
| | | |
| | | |
|-- employees: array
| |-- element: struct
| | |-- changedFields: array
| | | |-- element: choice
| | | | |-- int
| | | | |-- string
| | |-- fields: struct
| | | |-- First Name: string
| | | |-- Last Name: string
| | | |-- Status: string
| | | |-- Employee #: string
| | | |-- Marital Status: string
| | | |-- Address Line 1: string
| | | |-- Mobile Phone: string
| | | |-- Work Email: string
| | | |-- Hire Date: string
| | | |-- Original Hire Date: string
| | | |-- Effective Date: string
| | | |-- Location: string
| | | |-- Division: string
| | | |-- Department: string
| | | |-- Job Title: string
| | | |-- Reports To: string
| | |-- id: string

df=spark.read.format("json").option("inferSchema","true").load("test.json").select(F.explode("employees").alias('employees')).select('employees.*').select("element.*")
df2 = df.select(df.select(F.explode("fields").alias("fields").select("fields.*"), df.select("fields.*"), df.id.alias("id"))
df.show()

Related

AWS Glue: how to cast array using resolveChoice()?

I have a schema in AWS Glue job.
|-- individual_lender_probs: array
| |-- element: struct
| | |-- lender: string
| | |-- buy_rate: double
| | |-- approve_prob: double
How can I create a schema for this using resolveChoice()? It should be like df=df.resolveChoice(specs = [('individual_lender_probs','cast:XXXX')])

How do i add additional rows in M QUERY

I want to add more rows using the Query editor (Power query/ M Query) in only the Start Date and End Date column:
+----------+------------------+--------------+-----------+-------------+------------+
| Employee | Booking Type | Jobs | WorkLoad% | Start Date | End date |
+----------+------------------+--------------+-----------+-------------+------------+
| John | Chargeable | CNS | 20 | 04/02/2020 | 31/03/2020 |
| John | Chargeable | CNS | 20 | 04/03/2020 | 27/04/2020 |
| Bernard | Vacation/Holiday | SN | 100 | 30/04/2020 | 11/05/2020 |
| Bernard | Vacation/Holiday | Annual leave | 100 | 23/01/2020 | 24/02/2020 |
| Bernard | Chargeable | Tech PLC | 50 | 29/02/2020 | 30/03/2020 |
+----------+------------------+--------------+-----------+-------------+------------+
I want to find the MIN(Start Date) and MAX(End Date) and then append the range of start to end dates to this table only in the Start Date and End Date column in the Query Editor (Power Query/ M Query). Preferrable if I can create another table2 duplicating the original table and append these rows.
For example:
+----------+------------------+--------------+-----------+-------------+------------+
| Employee | Booking Type | Jobs | WorkLoad% | Start Date | End date |
+----------+------------------+--------------+-----------+-------------+------------+
| John | Chargeable | CNS | 20 | 04/02/2020 | 31/03/2020 |
| John | Chargeable | CNS | 20 | 04/03/2020 | 27/04/2020 |
| Bernard | Vacation/Holiday | SN | 100 | 30/04/2020 | 11/05/2020 |
| Bernard | Vacation/Holiday | Annual leave | 100 | 23/01/2020 | 24/02/2020 |
| Bernard | Chargeable | Tech PLC | 50 | 29/02/2020 | 30/03/2020 |
| | | | | 23/01/2020 | 23/01/2020 |
| | | | | 24/01/2020 | 24/01/2020 |
| | | | | 25/01/2020 | 25/01/2020 |
| | | | | 26/01/2020 | 26/01/2020 |
| | | | | 27/01/2020 | 27/01/2020 |
| | | | | 28/01/2020 | 28/01/2020 |
| | | | | 29/01/2020 | 29/01/2020 |
| | | | | 30/01/2020 | 30/01/2020 |
| | | | | 31/01/2020 | 31/01/2020 |
| | | | | ... | ... |
| | | | | 11/05/2020 | 11/05/2020 |
+----------+------------------+--------------+-----------+-------------+------------+
The List.Dates function is pretty useful here.
Generate the dates in your range, duplicate that to two columns and then append.
let
StartDate = List.Min(StartTable[Start Date]),
EndDate = List.Max(StartTable[End Date]),
DateList = List.Dates(StartDate, Duration.Days(EndDate - StartDate), #duration(1,0,0,0)),
DateCols = Table.FromColumns({DateList, DateList}, {"Start Date", "End Date"}),
AppendDates = Table.Combine({StartTable, DateCols})
in
AppendDates

Can't load qml file in cmake based qt project [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
I am working on a Qt Project that's based on cmake. The Qt version is 5.7, Ubuntu 14.04. The error I am getting is:
QQmlApplicationEngine failed to load component
qrc:/main.qml:-1 File not found
The CMakeLists.txt is:
file(GLOB_RECURSE UI_FILES *.ui)
file(GLOB_RECURSE CODE_FILES *.cpp *.h)
qt5_wrap_ui(UI_HEADERS ${UI_FILES})
qt5_add_resources(RESOURCE_FILES ../resources/resources.qrc)
set(SOURCES
assets/assets.qrc
icons/icons.qrc
qml/qml.qrc)
include(../vendor/CMakeLists.txt)
if (WIN32)
set(WINDOWS_RES_FILE ${CMAKE_CURRENT_BINARY_DIR}/resources.obj)
if (MSVC)
add_custom_command(OUTPUT ${WINDOWS_RES_FILE}
COMMAND rc.exe /fo ${WINDOWS_RES_FILE} resources.rc
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/win
)
else()
add_custom_command(OUTPUT ${WINDOWS_RES_FILE}
COMMAND windres.exe resources.rc ${WINDOWS_RES_FILE}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/win
)
endif()
endif()
add_executable(${CMAKE_PROJECT_NAME}
${SOURCES}
${UI_HEADERS}
${CODE_FILES}
${RESOURCE_FILES}
${WINDOWS_RES_FILE}
${VENDOR_SOURCES}
)
target_link_libraries(${CMAKE_PROJECT_NAME}
Qt5::Core
Qt5::Qml
Qt5::Quick
Qt5::Concurrent
Qt5::Widgets)
find_package( PythonLibs 2.7 REQUIRED )
include_directories( ${PYTHON_INCLUDE_DIRS} )
find_package( Boost COMPONENTS python REQUIRED )
include_directories(${Boost_INCLUDE_DIR})
link_directories(${Boost_LIBRARY_DIR})
target_link_libraries(${CMAKE_PROJECT_NAME}
${PYTHON_LIBRARIES}
${Boost_LIBRARIES}
${SWORD_LIBRARIES})
include_directories(${SWORD_INCLUDE_DIRS})
set_target_properties(${CMAKE_PROJECT_NAME} PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_SOURCE_DIR}/data/Info.plist)
if (UNIX)
install(TARGETS ${CMAKE_PROJECT_NAME}
RUNTIME DESTINATION bin)
elseif (WIN32)
install(TARGETS ${CMAKE_PROJECT_NAME}
DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
The tree output of project is:
.
|-- build
| |-- CMakeCache.txt
| |-- CMakeFiles
| | |-- 3.6.0-rc4
| | | |-- CMakeCCompiler.cmake
| | | |-- CMakeCXXCompiler.cmake
| | | |-- CMakeDetermineCompilerABI_C.bin
| | | |-- CMakeDetermineCompilerABI_CXX.bin
| | | |-- CMakeSystem.cmake
| | | |-- CompilerIdC
| | | | |-- a.out
| | | | `-- CMakeCCompilerId.c
| | | `-- CompilerIdCXX
| | | |-- a.out
| | | `-- CMakeCXXCompilerId.cpp
| | |-- cmake.check_cache
| | |-- CMakeDirectoryInformation.cmake
| | |-- CMakeOutput.log
| | |-- CMakeRuleHashes.txt
| | |-- CMakeTmp
| | |-- feature_tests.bin
| | |-- feature_tests.c
| | |-- feature_tests.cxx
| | |-- Makefile2
| | |-- Makefile.cmake
| | |-- Progress
| | | |-- 1
| | | |-- 11
| | | |-- 2
| | | |-- 3
| | | `-- count.txt
| | |-- progress.marks
| | |-- TargetDirectories.txt
| | `-- uninstall.dir
| | |-- build.make
| | |-- cmake_clean.cmake
| | |-- DependInfo.cmake
| | `-- progress.make
| |-- cmake_install.cmake
| |-- CTestTestfile.cmake
| |-- ecm_uninstall.cmake
| |-- Makefile
| |-- source
| | |-- __
| | | `-- resources
| | | `-- resources.qrc.depends
| | |-- CMakeFiles
| | | |-- CMakeDirectoryInformation.cmake
| | | |-- progress.marks
| | | |-- tutifruti_automoc.dir
| | | | |-- AutogenInfo.cmake
| | | | |-- AutomocOldMocDefinitions.cmake
| | | | |-- build.make
| | | | |-- cmake_clean.cmake
| | | | |-- DependInfo.cmake
| | | | |-- depend.internal
| | | | |-- depend.make
| | | | `-- progress.make
| | | `-- tutifruti.dir
| | | |-- __
| | | | `-- vendor
| | | | `-- material
| | | | `-- src
| | | | `-- core
| | | |-- build.make
| | | |-- cmake_clean.cmake
| | | |-- CXX.includecache
| | | |-- DependInfo.cmake
| | | |-- depend.internal
| | | |-- depend.make
| | | |-- flags.make
| | | |-- link.txt
| | | `-- progress.make
| | |-- cmake_install.cmake
| | |-- CTestTestfile.cmake
| | |-- defines.h
| | |-- Makefile
| | |-- moc_main_window.cpp
| | |-- qrc_resources.cpp
| | |-- tutifruti_automoc.cpp
| | |-- tutifruti_automoc.dir
| | | `-- vendor
| | | `-- material
| | | `-- src
| | | |-- core
| | | | |-- moc_device.cpp
| | | | `-- moc_units.cpp
| | | `-- moc_plugin.cpp
| | `-- ui_main_window.h
| `-- tests
| |-- CMakeFiles
| | |-- CMakeDirectoryInformation.cmake
| | `-- progress.marks
| |-- cmake_install.cmake
| |-- CTestTestfile.cmake
| |-- defines.h
| `-- Makefile
|-- cmake
| |-- FindCaffe.cmake
| |-- FindSWORD.cmake
| `-- LibFindMacros.cmake
|-- CMakeLists.txt
|-- CMakeLists.txt.user
|-- LICENCE
|-- Licence.rtf
|-- README.md
|-- resources
| |-- icons
| | |-- action_home.svg
| | |-- action_list.svg
| | |-- action_search.svg
| | |-- action_settings.svg
| | |-- file_cloud_done.svg
| | |-- icons.qrc
| | |-- maps_place.svg
| | |-- navigation_check.svg
| | `-- social_school.svg
| `-- resources.qrc
|-- source
| |-- assets
| | |-- assets.qrc
| | |-- book-open-page.svg
| | `-- book-open.svg
| |-- backend
| | |-- biblechapter.cpp
| | |-- biblechapter.h
| | |-- bible.cpp
| | |-- bible.h
| | |-- biblemanager.cpp
| | |-- biblemanager.h
| | |-- CMakeLists.txt
| | |-- module.cpp
| | |-- module.h
| | |-- plugin.cpp
| | |-- progress.h
| | `-- promise.h
| |-- CMakeLists.txt
| |-- cpp
| |-- icons
| | |-- action_home.svg
| | |-- action_list.svg
| | |-- action_search.svg
| | |-- action_settings.svg
| | |-- file_cloud_done.svg
| | |-- icons.qrc
| | |-- maps_place.svg
| | |-- navigation_check.svg
| | `-- social_school.svg
| |-- icons.yml
| |-- main.cpp
| |-- python
| | |-- data
| | | |-- external
| | | |-- interim
| | | |-- processed
| | | `-- raw
| | |-- docs
| | | |-- commands.rst
| | | |-- conf.py
| | | |-- getting-started.rst
| | | |-- index.rst
| | | |-- make.bat
| | | `-- Makefile
| | |-- LICENSE
| | |-- Makefile
| | |-- models
| | |-- notebooks
| | |-- README.md
| | |-- references
| | |-- reports
| | | `-- figures
| | |-- requirements.txt
| | |-- src
| | | |-- data
| | | | `-- make_dataset.py
| | | |-- features
| | | | `-- build_features.py
| | | |-- __init__.py
| | | |-- models
| | | | |-- predict_model.py
| | | | `-- train_model.py
| | | `-- visualization
| | | `-- visualize.py
| | `-- tox.ini
| `-- qml
| |-- components
| | |-- BibleView.qml
| | |-- Placeholder.qml
| | `-- VerseDelegate.qml
| |-- main.qml
| |-- qml.qrc
| `-- ui
| |-- HomeTab.qml
| `-- SettingsPage.qml
|-- tests
| |-- CMakeLists.txt
| |-- defines.h.cmake
| `-- example_tests.cpp.example
|-- text.txt
|-- vendor
| |-- CMakeLists.txt
| `-- material
| |-- CHANGELOG.md
| |-- CONTRIBUTING.md
| |-- demo
| | |-- BottomSheetDemo.qml
| | |-- ButtonDemo.qml
| | |-- CheckBoxDemo.qml
| | |-- ColorPaletteDemo.qml
| | |-- CustomIconsDemo.qml
| | |-- DatePickerDemo.qml
| | |-- demo.pro
| | |-- demo.qmlproject
| | |-- demo.qrc
| | |-- DialogDemo.qml
| | |-- FormsDemo.qml
| | |-- icons
| | | |-- action_account_circle.svg
| | | |-- action_autorenew.svg
| | | |-- action_delete.svg
| | | |-- action_language.svg
| | | |-- action_settings.svg
| | | |-- alert_warning.svg
| | | |-- communication_email.svg
| | | |-- content_add.svg
| | | |-- content_create.svg
| | | |-- content_forward.svg
| | | |-- device_access_alarm.svg
| | | |-- file_file_download.svg
| | | |-- icons.qrc
| | | |-- image_color_lens.svg
| | | |-- image_edit.svg
| | | |-- maps_place.svg
| | | |-- navigation_arrow_drop_down.svg
| | | `-- social_share.svg
| | |-- icons.yml
| | |-- images
| | | |-- balloon.jpg
| | | |-- go-last.color.svg
| | | |-- list-add.color.svg
| | | |-- weather-pouring.svg
| | | `-- weather-sunset.svg
| | |-- ListItemsDemo.qml
| | |-- main.cpp
| | |-- main.qml
| | |-- PageStackDemo.qml
| | |-- ProgressBarDemo.qml
| | |-- RadioButtonDemo.qml
| | |-- SidebarPage.qml
| | |-- SliderDemo.qml
| | |-- SubPage.qml
| | |-- SwitchDemo.qml
| | |-- TextFieldDemo.qml
| | |-- TimePickerDemo.qml
| | `-- TypographyDemo.qml
| |-- deploy_key.enc
| |-- documentation
| | |-- images
| | | `-- buttons.png
| | |-- material.qdoc
| | `-- material.qdocconf
| |-- fonts
| | |-- fonts.qrc
| | |-- MaterialFontLoader.qml
| | |-- qmldir
| | `-- roboto
| | |-- Roboto-BlackItalic.ttf
| | |-- Roboto-Black.ttf
| | |-- Roboto-BoldItalic.ttf
| | |-- Roboto-Bold.ttf
| | |-- RobotoCondensed-BoldItalic.ttf
| | |-- RobotoCondensed-Bold.ttf
| | |-- RobotoCondensed-Italic.ttf
| | |-- RobotoCondensed-LightItalic.ttf
| | |-- RobotoCondensed-Light.ttf
| | |-- RobotoCondensed-Regular.ttf
| | |-- Roboto-Italic.ttf
| | |-- Roboto-LightItalic.ttf
| | |-- Roboto-Light.ttf
| | |-- Roboto-MediumItalic.ttf
| | |-- Roboto-Medium.ttf
| | |-- Roboto-Regular.ttf
| | |-- Roboto-ThinItalic.ttf
| | `-- Roboto-Thin.ttf
| |-- icons
| | |-- core_icons.qrc
| | |-- navigation_arrow_back.svg
| | |-- navigation_chevron_left.svg
| | |-- navigation_chevron_right.svg
| | |-- navigation_close.svg
| | |-- navigation_menu.svg
| | `-- navigation_more_vert.svg
| |-- icons.yml
| |-- LICENSE
| |-- LICENSE.CC-BY
| |-- LICENSE.MPL
| |-- material.pri
| |-- qml-material.pro
| |-- qpm.json
| |-- README.md
| |-- scripts
| | |-- build_docs.sh
| | |-- deploy.sh
| | |-- icons.py
| | |-- lint.sh
| | |-- make_awesome.py
| | |-- normalize_imports.sh
| | `-- qrc.py
| |-- src
| | |-- components
| | | |-- ActionButton.qml
| | | |-- Card.qml
| | | |-- components.qrc
| | | |-- DatePicker.qml
| | | |-- IconButton.qml
| | | |-- OverlayLayer.qml
| | | |-- OverlayView.qml
| | | |-- ProgressCircle.qml
| | | |-- Scrollbar.qml
| | | |-- Snackbar.qml
| | | |-- ThinDivider.qml
| | | |-- TimePicker.qml
| | | |-- Tooltip.qml
| | | `-- Wave.qml
| | |-- controls
| | | |-- Action.qml
| | | |-- Button.qml
| | | |-- CheckBox.qml
| | | |-- controls.qrc
| | | |-- Label.qml
| | | |-- ProgressBar.qml
| | | |-- RadioButton.qml
| | | |-- Slider.qml
| | | |-- Switch.qml
| | | |-- Tab.qml
| | | `-- TextField.qml
| | |-- core
| | | |-- AwesomeIcon.qml
| | | |-- awesome.js
| | | |-- core.qrc
| | | |-- device.cpp
| | | |-- device.h
| | | |-- FontAwesome.otf
| | | |-- Icon.qml
| | | |-- Ink.qml
| | | |-- MaterialAnimation.qml
| | | |-- Object.qml
| | | |-- Palette.qml
| | | |-- PlatformExtensions.qml
| | | |-- ThemePalette.qml
| | | |-- Theme.qml
| | | |-- units.cpp
| | | |-- units.h
| | | |-- UnitsHelper.qml
| | | |-- utils.js
| | | `-- View.qml
| | |-- extras
| | | |-- AutomaticGrid.qml
| | | |-- CircleImage.qml
| | | |-- CircleMask.qml
| | | |-- ColumnFlow.qml
| | | |-- extras.qrc
| | | |-- Image.qml
| | | `-- qmldir
| | |-- listitems
| | | |-- BaseListItem.qml
| | | |-- CMakeLists.txt
| | | |-- Divider.qml
| | | |-- listitems.qrc
| | | |-- qmldir
| | | |-- SectionHeader.qml
| | | |-- SimpleMenu.qml
| | | |-- Standard.qml
| | | |-- Subheader.qml
| | | `-- Subtitled.qml
| | |-- material.qrc
| | |-- plugin.cpp
| | |-- plugin.h
| | |-- popups
| | | |-- BottomActionSheet.qml
| | | |-- BottomSheet.qml
| | | |-- Dialog.qml
| | | |-- Dropdown.qml
| | | |-- InputDialog.qml
| | | |-- MenuField.qml
| | | |-- Popover.qml
| | | |-- PopupBase.qml
| | | |-- popups.qrc
| | | `-- TimePickerDialog.qml
| | |-- qmldir
| | |-- src.pro
| | |-- styles
| | | |-- ApplicationWindowStyle.qml
| | | |-- ButtonStyle.qml
| | | |-- CheckBoxStyle.qml
| | | |-- CMakeLists.txt
| | | |-- ProgressBarStyle.qml
| | | |-- qmldir
| | | |-- RadioButtonStyle.qml
| | | |-- SliderStyle.qml
| | | |-- styles.qrc
| | | |-- SwitchStyle.qml
| | | |-- TextFieldStyle.qml
| | | |-- ToolBarStyle.qml
| | | `-- ToolButtonStyle.qml
| | `-- window
| | |-- ActionBar.qml
| | |-- ApplicationWindow.qml
| | |-- AppTheme.qml
| | |-- MainView.qml
| | |-- NavigationDrawerPage.qml
| | |-- NavigationDrawer.qml
| | |-- Page.qml
| | |-- PageSidebar.qml
| | |-- PageStack.qml
| | |-- Sidebar.qml
| | |-- TabBar.qml
| | |-- TabbedPage.qml
| | |-- Toolbar.qml
| | |-- Window.qml
| | `-- window.qrc
| |-- styles_demo
| | |-- main.qml
| | `-- Makefile
| |-- tests
| | |-- icons
| | | |-- action_alarm.svg
| | | |-- action_search.svg
| | | |-- action_settings.svg
| | | |-- content_add.svg
| | | `-- icons.qrc
| | |-- icons.yml
| | |-- tests.cpp
| | |-- tests.pro
| | |-- tst_actionbar.qml
| | |-- tst_card.qml
| | `-- tst_pagestack.qml
| `-- vendor.cmake
`-- win
|-- appicon.ico
|-- CMakeLists.txt
|-- installer.cmake.nsi
|-- installer.cmake.wxs
|-- qt.conf
`-- resources.rc
How do I remove this error from the project?
You can use QDirIterator to double check what resources the application contains. For example in main():
QDirIterator it(":/", QDirIterator::Subdirectories);
while (it.hasNext())
qDebug() << it.next();
Without knowing how Qt resource handling works with CMake, I'd say the following lines look like the culprit.
qt5_add_resources(RESOURCE_FILES ../resources/resources.qrc)
set(SOURCES
assets/assets.qrc
icons/icons.qrc
qml/qml.qrc)
Why is one .qrc added with qt5_add_resources(), whereas the others are added to SOURCES?

Cannot link against LibUSB Visual Studio 2013. Linker error 2019 (LNK2019)

Apparently there's nothing I have more difficulty with than flipping switches in VS and using DLLs. No matter how many times I do it, I can never seem to get it right.
Anyway, I'm trying to link LibUSB against a test application. I've downloaded the Windows binaries from LibUSB.info and now I'd like to link it to my test project. My directory structure is as follows:
Folder PATH listing for volume Local Disk
Volume serial number is 00000200 1C56:6A00
C:.
| LibUSBTest.sdf
| LibUSBTest.sln
| out.txt
|
+---Debug
| LibUSBTest.pdb
|
+---ipch
| +---libusbtest-291f707a
| | libusbtest-85afab4d.ipch
| |
| \---libusbtest-e65e4917
| libusbtest-85afab4d.ipch
|
+---libusb
| | libusb-1.0.def
| | README.txt
| |
| +---examples
| | +---bin32
| | | fxload.exe
| | | listdevs.exe
| | | xusb.exe
| | |
| | +---bin64
| | | fxload.exe
| | | listdevs.exe
| | | xusb.exe
| | |
| | \---source
| | ezusb.c
| | ezusb.h
| | fxload.c
| | listdevs.c
| | stdint.h
| | xusb.c
| |
| +---include
| | \---libusb-1.0
| | libusb.h
| |
| +---MinGW32
| | +---dll
| | | libusb-1.0.dll
| | | libusb-1.0.dll.a
| | |
| | \---static
| | libusb-1.0.a
| |
| +---MinGW64
| | +---dll
| | | libusb-1.0.dll
| | | libusb-1.0.dll.a
| | |
| | \---static
| | libusb-1.0.a
| |
| +---MS32
| | +---dll
| | | libusb-1.0.dll
| | | libusb-1.0.lib
| | | libusb-1.0.pdb
| | |
| | \---static
| | libusb-1.0.lib
| |
| \---MS64
| +---dll
| | libusb-1.0.dll
| | libusb-1.0.lib
| | libusb-1.0.pdb
| |
| \---static
| libusb-1.0.lib
|
\---LibUSBTest
| LibUSBTest.cpp
| LibUSBTest.vcxproj
| LibUSBTest.vcxproj.filters
| ReadMe.txt
| stdafx.cpp
| stdafx.h
| targetver.h
|
\---Debug
| LibUSBTest.Build.CppClean.log
| LibUSBTest.log
| LibUSBTest.obj
| LibUSBTest.pch
| stdafx.obj
| vc120.idb
| vc120.pdb
|
\---LibUSBTest.tlog
cl.command.1.tlog
CL.read.1.tlog
CL.write.1.tlog
LibUSBTest.lastbuildstate
link-cvtres.read.1.tlog
link-cvtres.write.1.tlog
link-rc.read.1.tlog
link-rc.write.1.tlog
link.command.1.tlog
link.read.1.tlog
link.write.1.tlog
unsuccessfulbuild
| vc120.idb
| vc120.pdb
|
\---LibUSBTest.tlog
cl.command.1.tlog
CL.read.1.tlog
CL.write.1.tlog
LibUSBTest.lastbuildstate
link-cvtres.read.1.tlog
link-cvtres.write.1.tlog
link-rc.read.1.tlog
link-rc.write.1.tlog
link.command.1.tlog
link.read.1.tlog
link.write.1.tlog
unsuccessfulbuild
At the top of my source code, I've defined #pragma comment(lib, "libusb-1.0.lib") to add the library dependency.
Under Properties->VC++ Directories->Library Directories I've added $(SolutionDir)libusb\MS32\dll\ and for Include Directories I've added $(SolutionDir)libusb\include\libusb-1.0\
Just to be safe, under Properties->C/C++->General->Additional Include Directories I've added $(SolutionDir)libusb\include\libusb-1.0\
Finally, under Linker->General-> Additional Library Directories I've added $(SolutionDir)libusb\MS32\dll\
I'm assuming I need to copy the DLL and/or Lib file somewhere in the project directory, but even doing that manually hasn't helped matters.
Edit: Output Window Results
The output window caused me to reach the character limit, so I unfortunately had to resort to using PasteBin for that part.

N-level tree structure in android implementation

I want to implement a N-level tree structure in android. I have gone through the ExpandableListView, but it is applicable for only 2 or 3 levels. My requirement is as below...
CAR
|
|==Toyota
| |
| |==Sedan
| | |
| | |==Camry
| | | |
| | | |==Manufacture year
| | | |==Body Colour
| | | | |
| | | | |==Black
| | | | |==Blue
| | | | |==Red
| | | |
| | | |==Alloy Wheels
| | | |==CD player
| | | |==Petrol/Diesel
| | |
| | |==Yaris
| | |
| | |==Manufacture year
| | |==Body Colour
| | | |
| | | |==Black
| | | |==Blue
| | | |==Red
| | |
| | |==Alloy Wheels
| | |==CD player
| | |==Petrol/Diesel
| |
| |==Hatch Pack
| | |
| | |==Yaris
| | |
| | |==Manufacture year
| | |==Body Colour
| | | |
| | | |==Black
| | | |==Blue
| | | |==Red
| | |
| | |==Alloy Wheels
| | |==CD player
| | |==Petrol/Diesel
| |
| |
| |
| |==Four Wheel Drive
|
|
|==Mazda
|
| This section will have
| same classification as above
|
|==Nissan
|
| This section will have
| same classification as above
|
|==Ferrari
|
| This section will have
| same classification as above
|
|==Hyundai
|
| This section will have
| same classification as above
|
Do you ppl have any suggestions to implement this in Android. A sample code would be more helpful. Thanks in advance.