Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Enabling assembly source in the build (.s or .asm files): (12 Items)
   
Enabling assembly source in the build (.s or .asm files)  
Hi,

I am using QNX momentics 6.4.0 tools. I am able to create projects with C source and build properly. If I add any 
assembly source .s or .asm files, it is not getiing added into the build. I tried drag and drop copy as wells as linking
 resource method. None of them are taking Assembly code into the build. If I right click on the file, I don't see the 
option to comiple.  Can any one help how to include the Asssembly source into the build?
Re: Enabling assembly source in the build (.s or .asm files)  
On 23/03/2009 6:41 AM, Venkatarao Patnaik Balivada wrote:
> Hi,
>
> I am using QNX momentics 6.4.0 tools. I am able to create projects with C source and build properly. If I add any 
assembly source .s or .asm files, it is not getiing added into the build. I tried drag and drop copy as wells as linking
 resource method. None of them are taking Assembly code into the build. If I right click on the file, I don't see the 
option to comiple.  Can any one help how to include the Asssembly source into the build?
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post24973
>
>    
Works for me. Where do you place your assembler file?
Re: Enabling assembly source in the build (.s or .asm files)  
Tried 2 options

1) Under project directory, with drag and drop copy
2) Under project directory, linked to the directory containging the ASM files
Re: Enabling assembly source in the build (.s or .asm files)  
On 23/03/2009 8:13 AM, Venkatarao Patnaik Balivada wrote:
> Tried 2 options
>
> 1) Under project directory, with drag and drop copy
> 2) Under project directory, linked to the directory containging the ASM files
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post24983
>
>    
Then please send me an example project and console log from  your build.
Re: Enabling assembly source in the build (.s or .asm files)  
It is actually not including the file in the build. It doesn't give any error.

Find the .project file inline(not able to attach), I am not sure what is the project file. Find the .cproject file in 
the next message.

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>h264dec_lib</name>
	<comment></comment>
	<projects>
	</projects>
	<buildSpec>
		<buildCommand>
			<name>com.qnx.tools.ide.qde.core.cbuilder</name>
			<triggers>clean,full,incremental,</triggers>
			<arguments>
				<dictionary>
					<key>org.eclipse.cdt.core.errorOutputParser</key>
					<value>com.qnx.tools.ide.qde.core.IntelCErrorParser;com.qnx.tools.ide.qde.core.QdeExtraMakeErrorParser;org.eclipse.
cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GASErrorParser;org.eclipse.cdt.core.
GLDErrorParser;org.eclipse.cdt.core.VCErrorParser;</value>
				</dictionary>
				<dictionary>
					<key>org.eclipse.cdt.make.core.enableAutoBuild</key>
					<value>false</value>
				</dictionary>
				<dictionary>
					<key>build_return_code</key>
					<value>Status WARNING: com.qnx.tools.ide.qde.core code=0  null children=[Status WARNING: com.qnx.tools.ide.qde.core
 code=0 There are warnings...
Re: Enabling assembly source in the build (.s or .asm files)  
Looks like I am not able to include all contents

<?xml version="1.0" encoding="UTF-8"?>
<?fileVersion 4.0.0?>

<cproject>
<storageModule moduleId="org.eclipse.cdt.core.settings">
<cconfiguration id="org.eclipse.cdt.core.default.config.2076916013">
<storageModule buildSystemId="org.eclipse.cdt.core.defaultConfigDataProvider" id="org.eclipse.cdt.core.default.config.
2076916013" moduleId="org.eclipse.cdt.core.settings" name="Configuration">
<externalSettings/>
<extensions>
<extension id="com.qnx.tools.ide.qde.core.QDEBynaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
</extensions>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
<storageModule moduleId="org.eclipse.cdt.core.pathentry">
<pathentry kind="src" path=""/>
<pathentry kind="out" path=""/>
<pathentry kind="con" path="com.qnx.tools.ide.qde.QDE_PROJECT_CONTAINER"/>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets">
<buildTargets>
<target name="build" path="" targetID="com.qnx.tools.ide.qde.core.cbuilder">
<buildCommand>make</buildCommand>
<buildArguments></buildArguments>
<buildTarget>all</buildTarget>
<stopOnError>false</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
<target name="clean" path="" targetID="com.qnx.tools.ide.qde.core.cbuilder">
<buildCommand>make</buildCommand>
<buildArguments></buildArguments>
<buildTarget>clean</buildTarget>
<stopOnError>false</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
<target name="rebuild" path="" targetID="com.qnx.tools.ide.qde.core.cbuilder">
<buildCommand>make</buildCommand>
<buildArguments></buildArguments>
<buildTarget>clean all</buildTarget>
<stopOnError>false</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
</buildTargets>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
</cconfiguration>
</storageModule>
</cproject>

Re: Enabling assembly source in the build (.s or .asm files)  
trying to add .project file again

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>h264dec_lib</name>
	<comment></comment>
	<projects>
	</projects>
	<buildSpec>
		<buildCommand>
			<name>com.qnx.tools.ide.qde.core.cbuilder</name>
			<triggers>clean,full,incremental,</triggers>
			<arguments>
				<dictionary>
					<key>org.eclipse.cdt.core.errorOutputParser</key>
					<value>com.qnx.tools.ide.qde.core.IntelCErrorParser;com.qnx.tools.ide.qde.core.QdeExtraMakeErrorParser;org.eclipse.
cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GASErrorParser;org.eclipse.cdt.core.
GLDErrorParser;org.eclipse.cdt.core.VCErrorParser;</value>
				</dictionary>
				<dictionary>
					<key>org.eclipse.cdt.make.core.enableAutoBuild</key>
					<value>false</value>
				</dictionary>
				<dictionary>
					<key>build_return_code</key>
					<value>Status WARNING: com.qnx.tools.ide.qde.core code=0  null children=[Status WARNING: com.qnx.tools.ide.qde.core
 code=0 There are warnings...
Re: Enabling assembly source in the build (.s or .asm files)  
I don't need these files, but I still need example project (or at least 
its File System tree & common.mk) and your console log after such  build 
that failed to compile assembler code


On 23/03/2009 12:06 PM, Venkatarao Patnaik Balivada wrote:
> trying to add .project file again
>
> <?xml version="1.0" encoding="UTF-8"?>
> <projectDescription>
> 	<name>h264dec_lib</name>
> 	<comment></comment>
> 	<projects>
> 	</projects>
> 	<buildSpec>
> 		<buildCommand>
> 			<name>com.qnx.tools.ide.qde.core.cbuilder</name>
> 			<triggers>clean,full,incremental,</triggers>
> 			<arguments>
> 				<dictionary>
> 					<key>org.eclipse.cdt.core.errorOutputParser</key>
> 					<value>com.qnx.tools.ide.qde.core.IntelCErrorParser;com.qnx.tools.ide.qde.core.QdeExtraMakeErrorParser;org.
eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GASErrorParser;org.eclipse.cdt
.core.GLDErrorParser;org.eclipse.cdt.core.VCErrorParser;</value>
> 				</dictionary>
> 				<dictionary>
> 					<key>org.eclipse.cdt.make.core.enableAutoBuild</key>
> 					<value>false</value>
> 				</dictionary>
> 				<dictionary>
> 					<key>build_return_code</key>
> 					<value>Status WARNING: com.qnx.tools.ide.qde.core code=0  null children=[Status WARNING: com.qnx.tools.ide.qde.
core code=0 There are warnings null]</value>
> 				</dictionary>
> 				<dictionary>
> 					<key>org.eclipse.cdt.make.core.enableFullBuild</key>
> 					<value>true</value>
> 				</dictionary>
> 				<dictionary>
> 					<key>org.eclipse.cdt.make.core.build.target.inc</key>
> 					<value>all</value>
> 				</dictionary>
> 				<dictionary>
> 					<key>org.eclipse.cdt.make.core.enabledIncrementalBuild</key>
> 					<value>true</value>
> 				</dictionary>
> 				<dictionary>
> 					<key>org.eclipse.cdt.make.core.build.location</key>
> 					<value></value>
> 				</dictionary>
> 				<dictionary>
> 					<key>org.eclipse.cdt.make.core.build.target.clean</key>
> 					<value>clean</value>
> 				</dictionary>
> 				<dictionary>
> 					<key>org.eclipse.cdt.make.core.build.command</key>
> 					<value>make</value>
> 				</dictionary>
> 				<dictionary>
> 					<key>org.eclipse.cdt.make.core.enableCleanBuild</key>
> 					<value>true</value>
> 				</dictionary>
> 				<dictionary>
> 					<key>org.eclipse.cdt.make.core.build.target.full</key>
> 					<value>all</value>
> 				</dictionary>
> 				<dictionary>
> 					<key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
> 					<value>true</value>
> 				</dictionary>
> 				<dictionary>
> 					<key>org.eclipse.cdt.make.core.build.target.auto</key>
> 					<value>all</value>
> 				</dictionary>
> 				<dictionary>
> 					<key>org.eclipse.cdt.make.core.stopOnError</key>
> 					<value>false</value>
> 				</dictionary>
> 			</arguments>
> 		</buildCommand>
> 	</buildSpec>
> 	<natures>
> 		<nature>org.eclipse.cdt.core.cnature</nature>
> 		<nature>com.qnx.tools.ide.qde.core.qnxnature</nature>
> 	</natures>
> 	<linkedResources>
> 		<link>
> 			<name>EXTRA_SRCVPATH_lib</name>
>...
Re: Enabling assembly source in the build (.s or .asm files)  
What is example project? Do you mean source code? Another doubt I have is, 
1) How do I save the project in a project file which can be opened in IDE in some other machine?
2) From the documentation, I can see only the "export" option to save as zip file.

Please find the common.mk below
My directory structure is
h264dec/include    - contains API file
h264dec/lib           - *.c and *.h files
h264dec/lib/arm     - *.asm files


# This is an automatically generated record.
# The area between QNX Internal Start and QNX Internal End is controlled by
# the QNX IDE properties.


ifndef QCONFIG
QCONFIG=qconfig.mk
endif
include $(QCONFIG)

ifndef QNX_INTERNAL
QNX_INTERNAL=$(PROJECT_ROOT)/.qnx_internal.mk
endif

#===== USEFILE - the file containing the usage message for the application. 
USEFILE=



#===== CCFLAGS - add the flags to the C compiler command line. 
CCFLAGS+=-w3 -O3 -DMB_PADDING0 -mcpu=arm1136j-s  \
	-fsigned-char
#===== EXTRA_INCVPATH - a space-separated list of directories to search for include files.
EXTRA_INCVPATH+=D:/projects/h264dec/lib $(PROJECT_ROOT)  \
	D:/projects/h264dec/include
#===== EXTRA_SRCVPATH - a space-separated list of directories to search for source files.
EXTRA_SRCVPATH+=D:/projects/h264dec/lib  \
	D:/projects/h264dec/lib/arm
include $(MKFILES_ROOT)/qmacros.mk
include $(QNX_INTERNAL)
include $(MKFILES_ROOT)/qtargets.mk
OPTIMIZE_TYPE_g=none
OPTIMIZE_TYPE=$(OPTIMIZE_TYPE_$(filter g, $(VARIANTS)))




Re: Enabling assembly source in the build (.s or .asm files)  
console log

D:/projects/h264dec/lib/vlc.h: In function 'iReadSyntaxElementIntra4x4PredMode':
D:/projects/h264dec/lib/vlc.h:238: warning: unused variable 'next_input_byte'
D:/projects/h264dec/lib/vlc.h:236: warning: unused variable 'num_bits'
D:/projects/h264dec/lib/vlc.h: In function 'iDecodeVLC_common':
D:/projects/h264dec/lib/vlc.h:265: warning: unused variable 'next_input_byte'
D:/projects/h264dec/lib/vlc.h: In function 'iReadSyntaxElement_CoefToken':
D:/projects/h264dec/lib/vlc.h:302: warning: unused variable 'next_input_byte'
D:/projects/h264dec/lib/vlc.h:298: warning: unused variable 'num_bits'
D:/projects/h264dec/lib/vlc.h: In function 'iReadSyntaxElement_Level_VLCN':
D:/projects/h264dec/lib/vlc.h:337: warning: unused variable 'next_input_byte'
D:/projects/h264dec/lib/vlc.h: In function 'iReadSyntaxElement_Level_VLC0':
D:/projects/h264dec/lib/vlc.h:375: warning: unused variable 'next_input_byte'
D:/projects/h264dec/lib/header.c: At top level:
D:/projects/h264dec/lib/read_bitstream.h:104: warning: 'iPeekBits' defined but not used
D:/projects/h264dec/lib/read_bitstream.h:116: warning: 'iSkipBits' defined but not used
D:/projects/h264dec/lib/vlc.h:151: warning: 'iReadSyntaxElementVLC_CBPIntra' defined but not used
D:/projects/h264dec/lib/vlc.h:169: warning: 'iReadSyntaxElementVLC_CBPInter' defined but not used
D:/projects/h264dec/lib/vlc.h:187: warning: 'iReadSyntaxElementVLC_se' defined but not used
D:/projects/h264dec/lib/vlc.h:202: warning: 'iReadSyntaxElementVLC_ue' defined but not used
D:/projects/h264dec/lib/vlc.h:217: warning: 'iReadSyntaxElementFLC' defined but not used
D:/projects/h264dec/lib/vlc.h:233: warning: 'iReadSyntaxElementIntra4x4PredMode' defined but not used
D:/projects/h264dec/lib/vlc.h:295: warning: 'iReadSyntaxElement_CoefToken' defined but not used
D:/projects/h264dec/lib/vlc.h:331: warning: 'iReadSyntaxElement_Level_VLCN' defined but not used
D:/projects/h264dec/lib/vlc.h:369: warning: 'iReadSyntaxElement_Level_VLC0' defined but not used
C:/QNX640/host/win32/x86/usr/bin/qcc -V4.2.4,gcc_ntoarm -c  -Wc,-Wall -Wc,-Wno-parentheses -Wc,-fno-builtin -w3 -O3 -
DMB_PADDING0 -mcpu=arm1136j-s -fsigned-char             -I. -IC:/ide-4.5-workspace/h264dec_lib/arm/a.le -IC:/ide-4.5-
workspace/h264dec_lib/arm/a-le-g -IC:/ide-4.5-workspace/h264dec_lib/arm -IC:/ide-4.5-workspace/h264dec_lib -ID:/projects
/h264dec/lib -ID:/projects/h264dec/lib/arm -ID:/projects/h264dec/lib -IC:/ide-4.5-workspace/h264dec_lib -ID:/projects/
h264dec/include -IC:/QNX640/target/qnx6/usr/include      -EL  -g       -DVARIANT_a -DVARIANT_le -DVARIANT_g -
DBUILDENV_qss  D:/projects/h264dec/lib/image.c 
In file included from D:/projects/h264dec/lib/global.h:52,
                 from D:/projects/h264dec/lib/image.c:52:
D:/projects/h264dec/lib/defines.h:185:1: warning: "max" redefined
In file included from D:/projects/h264dec/lib/image.c:46:
C:/QNX640/target/qnx6/usr/include/stdlib.h:242:1: warning: this is the location of the previous definition
In file included from D:/projects/h264dec/lib/global.h:52,
                 from D:/projects/h264dec/lib/image.c:52:
D:/projects/h264dec/lib/defines.h:186:1: warning: "min" redefined
In file included from D:/projects/h264dec/lib/image.c:46:
C:/QNX640/target/qnx6/usr/include/stdlib.h:248:1: warning: this is the location of the previous definition
In file included from D:/projects/h264dec/lib/annexb.h:34,
                 from D:/projects/h264dec/lib/image.c:67:
D:/projects/h264dec/lib/read_bitstream.h: In function 'iPeekBits':
D:/projects/h264dec/lib/read_bitstream.h:108: warning: unused variable 'next_input_byte'
In file included from D:/projects/h264dec/lib/image.c:74:
D:/projects/h264dec/lib/vlc.h: In function 'iReadSyntaxElementVLC_CBPIntra':
D:/projects/h264dec/lib/vlc.h:156: warning: unused variable 'next_input_byte'
D:/projects/h264dec/lib/vlc.h: In function 'iReadSyntaxElementVLC_CBPInter':
D:/projects/h264dec/lib/vlc.h:174: warning: unused variable...
View Full Message
Re: Enabling assembly source in the build (.s or .asm files)  
Thanks. .s extension works with even linked files.
Re: Enabling assembly source in the build (.s or .asm files)  
Please change extension .asm to .s or .S


On 24/03/2009 2:11 AM, Venkatarao Patnaik Balivada wrote:
> What is example project? Do you mean source code? Another doubt I have is,
> 1) How do I save the project in a project file which can be opened in IDE in some other machine?
> 2) From the documentation, I can see only the "export" option to save as zip file.
>
> Please find the common.mk below
> My directory structure is
> h264dec/include    - contains API file
> h264dec/lib           - *.c and *.h files
> h264dec/lib/arm     - *.asm files
>
>
> # This is an automatically generated record.
> # The area between QNX Internal Start and QNX Internal End is controlled by
> # the QNX IDE properties.
>
>
> ifndef QCONFIG
> QCONFIG=qconfig.mk
> endif
> include $(QCONFIG)
>
> ifndef QNX_INTERNAL
> QNX_INTERNAL=$(PROJECT_ROOT)/.qnx_internal.mk
> endif
>
> #===== USEFILE - the file containing the usage message for the application.
> USEFILE=
>
>
>
> #===== CCFLAGS - add the flags to the C compiler command line.
> CCFLAGS+=-w3 -O3 -DMB_PADDING0 -mcpu=arm1136j-s  \
> 	-fsigned-char
> #===== EXTRA_INCVPATH - a space-separated list of directories to search for include files.
> EXTRA_INCVPATH+=D:/projects/h264dec/lib $(PROJECT_ROOT)  \
> 	D:/projects/h264dec/include
> #===== EXTRA_SRCVPATH - a space-separated list of directories to search for source files.
> EXTRA_SRCVPATH+=D:/projects/h264dec/lib  \
> 	D:/projects/h264dec/lib/arm
> include $(MKFILES_ROOT)/qmacros.mk
> include $(QNX_INTERNAL)
> include $(MKFILES_ROOT)/qtargets.mk
> OPTIMIZE_TYPE_g=none
> OPTIMIZE_TYPE=$(OPTIMIZE_TYPE_$(filter g, $(VARIANTS)))
>
>
>
>
>
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post25065
>
>