Forum Replies Created
-
AuthorPosts
-
AnonymousParticipant
@bazis wrote:
Hi,
The root cause for this message is incompatibility between the debug information issued by GCC and read by GDB. If you encounter it again, try experimenting with the -gdwarf-
GCC flag. hi,brother
thanks very much
It’s was useful when i debug with gcc
but when i try to debug with g++
it still tell me “-var-create: unable to create variable object”AnonymousParticipantI’m trying to summon him for two years and I could not have any success, maybe Bibbidy Boo is the right formula 😆
If you have any success to compile the project, please tell me i need a modify version of batchmnt for the portable version.AnonymousParticipantI’m trying to get vmnt working. whenever i fix one problem another thousand pop up.
AnonymousParticipantI have try many time to compile the project ( i ahve ask also to other guys/forum ) but the result is always the same, FAIL
My goal was change one, only one, single line of batchmnt.cpp from:VirtualCDClient clt(&status);
To
VirtualCDClient clt(&status, true);
For make the command line work also with the portable version…if you have success with the compiling thing, please post the final batchmnt executable
Original thread:
forum.sysprogs.com/viewtopic.php?f=3&t=2439#p5350AnonymousParticipantI have been having the same problem, my solution is to make a copy of objlocalarmeabi to objlocalarmeabi-v7a folder in my after build script.
AnonymousParticipantThere isn’t any solution except don’t use WinCDEmu. One of the feature request, extreme easy to implement, of my thread “Basiz…we wait you!” was Remove the ISO, not the drive itself
This is the problem, some multi-disk installation search for the same drive but the drive change everytime you mount an ISO. So or you wait for an update ( listen, don’t loose time the author in this section is desaparecidos… ) or change the software.AnonymousParticipantPlease download compatible version: (http)
AnonymousParticipantHey,
I want to reheat that question:
What bazis writes works for me, but I would prefer to be able to run with su rights from an (automatically logged in) standard user account.The reason is, my application should have a GUI on lxde and still access root.
Debugging it either leads to (with root):- Invalid MIT-MAGIC-COOKIE-1 myAppName: cannot connect to X server :0
Or (without root):
- wiringPiSetup: Must be root. (Did you forget sudo?)
What works is:
- Taking the application created without root and running it on the lxde desktop with either:
- root: ./myAppName
- pi: sudo ./myAppName
works as intended, just isn’t debugging
TL:DR
I want to know how to debug applications with su rights on a standard users LXDE desktopThanks!
AnonymousParticipantIt did create a Makefile. It’s below. Also, I did try to make another project and it creates the same error.
ifeq ($(IS_LINUX_PROJECT),1)
RPATH_PREFIX := -Wl,–rpath=’$$ORIGIN/../
LIBRARY_LDFLAGS += $(EXTERNAL_LIBS)
LIBRARY_LDFLAGS += -Wl,–rpath=’$$ORIGIN’
LIBRARY_LDFLAGS += $(addsuffix ‘,$(addprefix $(RPATH_PREFIX),$(dir $(EXTERNAL_LIBS))))ifeq ($(TARGETTYPE),SHARED)
LIBRARY_LDFLAGS += -Wl,-soname,$(TARGETNAME)
endifelse
LIBRARY_LDFLAGS += $(EXTERNAL_LIBS)
endifLIBRARY_LDFLAGS += $(ADDITIONAL_LINKER_INPUTS)
all_make_files := Makefile $(CONFIGURATION_FLAGS_FILE) $(ADDITIONAL_MAKE_FILES)
ifeq ($(STARTUPFILES),)
all_source_files := $(SOURCEFILES)
else
all_source_files := $(STARTUPFILES) $(filter-out $(STARTUPFILES),$(SOURCEFILES))
endifsource_obj1 := $(all_source_files:.cpp=.o)
source_obj2 := $(source_obj1:.c=.o)
source_obj3 := $(source_obj2:.s=.o)
source_objs := $(source_obj3:.S=.o)all_objs := $(addprefix $(BINARYDIR)/, $(notdir $(source_objs)))
ifeq ($(GENERATE_BIN_FILE),1)
all: $(BINARYDIR)/$(basename $(TARGETNAME)).bin$(BINARYDIR)/$(basename $(TARGETNAME)).bin: $(BINARYDIR)/$(TARGETNAME)
$(OBJCOPY) -O binary $< $@ else
all: $(BINARYDIR)/$(TARGETNAME)
endififeq ($(TARGETTYPE),APP)
$(BINARYDIR)/$(TARGETNAME): $(all_objs) $(EXTERNAL_LIBS)
$(LD) -o $@ $(LDFLAGS) $(START_GROUP) $(all_objs) $(LIBRARY_LDFLAGS) $(END_GROUP)
endififeq ($(TARGETTYPE),SHARED)
$(BINARYDIR)/$(TARGETNAME): $(all_objs) $(EXTERNAL_LIBS)
$(LD) -shared -o $@ $(LDFLAGS) $(START_GROUP) $(all_objs) $(LIBRARY_LDFLAGS) $(END_GROUP)
endififeq ($(TARGETTYPE),STATIC)
$(BINARYDIR)/$(TARGETNAME): $(all_objs)
$(AR) -r $@ $^
endif-include $(all_objs:.o=.dep)
clean:
ifeq ($(USE_DEL_TO_CLEAN),1)
del /S /Q $(BINARYDIR)
else
rm -rf $(BINARYDIR)
endif$(BINARYDIR):
mkdir $(BINARYDIR)#VisualGDB: FileSpecificTemplates #<--- VisualGDB will use the following lines to define rules for source files in subdirectories
$(BINARYDIR)/%.o : %.cpp $(all_make_files) |$(BINARYDIR)
$(CXX) $(CXXFLAGS) -c $< -o $@ -MD -MF $(@:.o=.dep) $(BINARYDIR)/%.o : %.c $(all_make_files) |$(BINARYDIR)
$(CC) $(CFLAGS) -c $< -o $@ -MD -MF $(@:.o=.dep) $(BINARYDIR)/%.o : %.S $(all_make_files) |$(BINARYDIR)
$(CC) $(CFLAGS) $(ASFLAGS) -c $< -o $@ -MD -MF $(@:.o=.dep) $(BINARYDIR)/%.o : %.s $(all_make_files) |$(BINARYDIR)
$(CC) $(CFLAGS) $(ASFLAGS) -c $< -o $@ -MD -MF $(@:.o=.dep) #VisualGDB: GeneratedRules #<--- All lines below are auto-generated
$(BINARYDIR)/Component.o : Omx/Component.cpp $(all_make_files) |$(BINARYDIR)
$(CXX) $(CXXFLAGS) -c $< -o $@ -MD -MF $(@:.o=.dep)
$(BINARYDIR)/ComponentPort.o : Omx/ComponentPort.cpp $(all_make_files) |$(BINARYDIR)
$(CXX) $(CXXFLAGS) -c $< -o $@ -MD -MF $(@:.o=.dep)AnonymousParticipantI create a new Solution and now it works fine, I don’t know why 🙄
AnonymousParticipantI tried to clean the solution and to rebuild it many times but it still not working 🙁
AnonymousParticipantFirst of all, thank you for your answer 😀
So this is what I get in the OutPut window :
1>
Skipped Build: Project: libcocos2d, Configuration: Debug Win32
1>Project not selected to build for this solution configuration
2>Skipped Build: Project: libAudio, Configuration: Debug Win32
2>Project not selected to build for this solution configuration
3>Skipped Build: Project: libchipmunk, Configuration: Debug Win32
3>Project not selected to build for this solution configuration
4>Build started: Project: AndroidProject, Configuration: Debug (Android) Win32
4> VisualGDB: Run “C:Androidandroid-ndk-r9dndk-build.cmd NDK_DEBUG=1 APP_PLATFORM=android-14 VGDB_VSCONFIG=Debug__Android_ NDK_MODULE_PATH=C:/Android/frameworks/com.sysprogs.cocos2d-x-v3;C:/Android/frameworks/com.sysprogs.cocos2d-x-v3/external;C:/Android/frameworks/com.sysprogs.cocos2d-x-v3/cocos” in directory “C:Androidcocos2d-x-3.3beta0AndroidProjectAndroidProject” on local computer
4>Android NDK : warning : APP_PLATFORM android-14 is larger than android:minSdkVersion 9 in ./AndroidManifest.xml
4>Android NDK : warning : C:/Android/frameworks/com.sysprogs.cocos2d-x-v3/cocos/./Android.mk:cocos2dx_static: LOCAL_LDLIBS is always ignored for static libraries
4>Android NDK : warning : C:/Android/frameworks/com.sysprogs.cocos2d-x-v3/cocos/platform/android/Android.mk:cocos2dxandroid_static: LOCAL_LDLIBS is always ignored for static libraries
4> [armeabi] Gdbserver : [arm-linux-androideabi-4.8] libs/armeabi/gdbserver
4> [armeabi] Gdbsetup : libs/armeabi/gdb.setup
4> [armeabi] Install : libcocos2dcpp.so => libs/armeabi/libcocos2dcpp.so
4> VisualGDB: Run “C:Androidapache-ant-1.9.4binant.bat debug” in directory “C:Androidcocos2d-x-3.3beta0AndroidProjectAndroidProject” on local computer
4> Buildfile: C:Androidcocos2d-x-3.3beta0AndroidProjectAndroidProjectbuild.xml
4>
4> -set-mode-check:
4>
4> -set-debug-files:
4>
4> -check-env:
4> [checkenv] Android SDK Tools Revision 23.0.5
4> [checkenv] Installed at C:Androidadt-bundle-windows-x86_64-20140702sdk
4>
4> -setup:
4> [echo] Project Name: AppActivity
4> [gettype] Project Type: Application
4>
4> -set-debug-mode:
4>
4> -debug-obfuscation-check:
4>
4> -pre-build:
4>
4> -build-setup:
4> [getbuildtools] Using latest Build Tools: 20.0.0
4> [echo] Resolving Build Target for AppActivity…
4> [gettarget] Project Target: Android 4.0
4> [gettarget] API level: 14
4> [echo]4> [echo] Creating output directories if needed…
4> [mkdir] Created dir: C:Androidcocos2d-x-3.3beta0AndroidProjectAndroidProjectbinrsObj
4> [mkdir] Created dir: C:Androidcocos2d-x-3.3beta0AndroidProjectAndroidProjectbinrsLibs
4> [echo]4> [echo] Resolving Dependencies for AppActivity…
4> [dependency] Library dependencies:
4> [dependency]
4> [dependency]4> [dependency] Ordered libraries:
4> [dependency]
4> [dependency]4> [dependency] API<=15: Adding annotations.jar to the classpath.
4> [echo]4> [echo] Building Libraries with ‘debug’…
4>
4> nodeps:
4>
4> -set-mode-check:
4>
4> -set-debug-files:
4>
4> -check-env:
4> [checkenv] Android SDK Tools Revision 23.0.5
4> [checkenv] Installed at C:Androidadt-bundle-windows-x86_64-20140702sdk
4>
4> -setup:
4> [echo] Project Name: cocos2dxandroid
4> [gettype] Project Type: Android Library
4>
4> -set-debug-mode:
4>
4> -debug-obfuscation-check:
4>
4> -pre-build:
4>
4> -build-setup:
4> [getbuildtools] Using latest Build Tools: 20.0.0
4> [echo] Resolving Build Target for cocos2dxandroid…
4> [gettarget] Project Target: Android 2.3.3
4> [gettarget] API level: 10
4> [echo]4> [echo] Creating output directories if needed…
4> [echo]4> [echo] Resolving Dependencies for cocos2dxandroid…
4> [dependency] Library dependencies:
4> [dependency] No Libraries
4> [dependency]
4> [dependency]4> [dependency] API<=15: Adding annotations.jar to the classpath.
4>
4> -code-gen:
4> [mergemanifest] Found Deleted Target File
4> [mergemanifest] Merging AndroidManifest files into one.
4> [mergemanifest] Manifest merger disabled. Using project manifest only.
4> [echo] Handling aidl files…
4> [aidl] No AIDL files to compile.
4> [echo]4> [echo] Handling RenderScript files…
4> [echo]4> [echo] Handling Resources…
4> [aapt] Found new input file
4> [aapt] Generating resource IDs…
4> [aapt] (skipping file ‘.gitignore’ due to ANDROID_AAPT_IGNORE pattern ‘.*’)
4> [echo]4> [echo] Handling BuildConfig class…
4> [buildconfig] No need to generate new BuildConfig.
4>
4> -pre-compile:
4>
4> -compile:
4> [echo] Creating library output jar file…
4>
4> -post-compile:
4>
4> -obfuscate:
4>
4> -dex:
4> [echo] Library project: do not convert bytecode…
4>
4> -crunch:
4> [crunch] Crunching PNG Files in source dir: C:Androidframeworkscom.sysprogs.cocos2d-x-v3cocosplatformandroidjavares
4> [crunch] To destination dir: C:Androidframeworkscom.sysprogs.cocos2d-x-v3cocosplatformandroidjavabinres
4> [crunch] Crunched 0 PNG files to update cache
4>
4> -package-resources:
4> [echo] Library project: do not package resources…
4>
4> -package:
4> [echo] Library project: do not package apk…
4>
4> -post-package:
4>
4> -do-debug:
4> [echo] Library project: do not create apk…
4> [propertyfile] Updating property file: C:Androidframeworkscom.sysprogs.cocos2d-x-v3cocosplatformandroidjavabinbuild.prop
4> [propertyfile] Updating property file: C:Androidframeworkscom.sysprogs.cocos2d-x-v3cocosplatformandroidjavabinbuild.prop
4> [propertyfile] Updating property file: C:Androidframeworkscom.sysprogs.cocos2d-x-v3cocosplatformandroidjavabinbuild.prop
4> [propertyfile] Updating property file: C:Androidframeworkscom.sysprogs.cocos2d-x-v3cocosplatformandroidjavabinbuild.prop
4>
4> -post-build:
4>
4> debug:
4>
4> -code-gen:
4> [mergemanifest] Found Deleted Target File
4> [mergemanifest] Merging AndroidManifest files into one.
4> [mergemanifest] Manifest merger disabled. Using project manifest only.
4> [echo] Handling aidl files…
4> [aidl] No AIDL files to compile.
4> [echo]4> [echo] Handling RenderScript files…
4> [echo]4> [echo] Handling Resources…
4> [aapt] Generating resource IDs…
4> [aapt] (skipping file ‘.gitignore’ due to ANDROID_AAPT_IGNORE pattern ‘.*’)
4> [aapt] invalid resource directory name: C:Androidcocos2d-x-3.3beta0AndroidProjectAndroidProjectres/image.png
4>
4> BUILD FAILED
4> C:Androidadt-bundle-windows-x86_64-20140702sdktoolsantbuild.xml:653: The following error occurred while executing this line:
4> C:Androidadt-bundle-windows-x86_64-20140702sdktoolsantbuild.xml:698: null returned: 1
4>
4> Total time: 3 seconds
4>4> Command exited with code 1
4> Executable: C:Androidapache-ant-1.9.4binant.bat
4> Arguments: debug
4> Directory: C:Androidcocos2d-x-3.3beta0AndroidProjectAndroidProject
4>VisualGDB : error : Command-line action failed
4>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V120Microsoft.MakeFile.Targets(38,5): error MSB3073: The command “”C:Program Files (x86)SysprogsVisualGDB\VisualGDB.exe” /build “C:Androidcocos2d-x-3.3beta0AndroidProjectAndroidProjectAndroidProject.vcxproj” “/solution:C:Androidcocos2d-x-3.3beta0AndroidProjectAndroidProject.sln” “/config:Debug (Android)” “/platform:Win32″” exited with code 1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 3 skipped ==========This is what my build failed I guess :
4> BUILD FAILED
4> C:Androidadt-bundle-windows-x86_64-20140702sdktoolsantbuild.xml:653: The following error occurred while executing this line:
4> C:Androidadt-bundle-windows-x86_64-20140702sdktoolsantbuild.xml:698: null returned: 1But why is it not working, I mean, it was working perfectly few minutes before and then now there is a problem with a file I never heard about it?
AnonymousParticipantHi,
I have exactly the same error as steve, I’m running my android application with visual GDB and I’m getting this error :
“4>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V120Microsoft.MakeFile.Targets(38,5): error MSB3073: The command “”C:Program Files (x86)SysprogsVisualGDB\VisualGDB.exe” /build “C:Androidcocos2d-x-3.3beta0AndroidProjectAndroidProjectAndroidProject.vcxproj” “/solution:C:Androidcocos2d-x-3.3beta0AndroidProjectAndroidProject.sln” “/config:Debug (Android)” “/platform:Win32″” exited with code 1.”I don’t really understand the answer of ket, how can i fix this error?
Thank you.
AnonymousParticipantIt would be worth checking what the code is doing in those areas. I really don’t think it’s a machine issue – it’s 6GB of RAM, SSD, dual-core. It runs everything else just fine, even the makefile/GCC compilation straight after the pause runs faster than the pause itself ❓
AnonymousParticipantOK, here are the results…
1> Build started: Project: delete_me, Configuration: Debug Win32
……small delay ~0.5->1 second……..
1> VisualGDB: using project file C:devscratchpaddelete_medelete_me.vcxproj
1> VisualGDB: using solution file C:devscratchpaddelete_medelete_me.sln
1> VisualGDB: using configuration Debug……big wait here ~2 seconds…….
1> VisualGDB: Trying to detect if your Makefiles need updating... Using configuration: Debug|Win32
1> VisualGDB: Found a makefile: C:devscratchpaddelete_meMakefile
1> VisualGDB: Found 1 source file(s):
1> delete_me.cpp
1> VisualGDB: Found 0 excluded file(s) for current configuration:
1> VisualGDB: No source changes detected. C:devscratchpaddelete_meMakefile needs no updating.
1> VisualGDB: Run "cmd.exe /c "C:devgcc_distsmingwmingw32binmingw32-make.exe" CONFIG=Debug" in directory "C:devscratchpaddelete_me" on local computer
1> mingw32-make: Nothing to be done for 'all'. -
AuthorPosts